]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed check for bitmapType match (thanks to HP compiler for the warning)
[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.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
0ee4059d 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 ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
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
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
38b4a946 1032 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
38b4a946 1035 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1036 --enable-palette use wxPalette class
1037 --enable-image use wxImage class
1038 --enable-gif use gif images (GIF file format)
1039 --enable-pcx use pcx images (PCX file format)
1040 --enable-iff use iff images (IFF file format)
1041 --enable-pnm use pnm images (PNM file format)
1042 --enable-xpm use xpm images (XPM file format)
1043 --enable-icocur use Windows ICO and CUR formats
77ffb593 1044 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1045 --enable-vendor=VENDOR vendor name (win32 DLL only)
1046 --disable-largefile omit support for large files
1047 --disable-gtktest do not try to compile and run a test GTK+ program
1048 --disable-gtktest Do not try to compile and run a test GTK program
1049 --disable-sdltest Do not try to compile and run a test SDL program
1050 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1051 --disable-precomp-headers
1052 don't use precompiled headers even if compiler can
a848cd7e
SC
1053
1054Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1057 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1058 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1059 --with-motif use Motif/Lesstif
1060 --with-mac use Mac OS X
1061 --with-cocoa use Cocoa
1062 --with-wine use Wine
1063 --with-msw use MS-Windows
1064 --with-pm use OS/2 Presentation Manager
1065 --with-mgl use SciTech MGL
1066 --with-microwin use MicroWindows
1067 --with-x11 use X11
1068 --with-libpng use libpng (PNG image format)
1069 --with-libjpeg use libjpeg (JPEG file format)
1070 --with-libtiff use libtiff (TIFF file format)
1071 --with-libxpm use libxpm (XPM file format)
1072 --with-libmspack use libmspack (CHM help files loading)
1073 --with-sdl use SDL for audio on Unix
d51253e8 1074 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1075 --with-opengl use OpenGL (or Mesa)
1076 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1077 --with-regex enable support for wxRegEx class
1078 --with-zlib use zlib for LZW compression
1079 --with-odbc use the IODBC and wxODBC classes
1080 --with-expat enable XML support using expat parser
ceec2216 1081 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1082 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1083 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1084 --with-x use the X Window System
1085 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1086 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1087 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1088 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1089 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1090
1091Some influential environment variables:
dcc1b6ad
VS
1092 CC C compiler command
1093 CFLAGS C compiler flags
1094 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1095 nonstandard directory <lib dir>
1096 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1097 headers in a nonstandard directory <include dir>
1098 CPP C preprocessor
1099 CXX C++ compiler command
1100 CXXFLAGS C++ compiler flags
1101 CXXCPP C++ preprocessor
a848cd7e
SC
1102
1103Use these variables to override the choices made by `configure' or to help
1104it to find libraries and programs with nonstandard names/locations.
1105
77ffb593 1106Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1107_ACEOF
1108fi
1109
1110if test "$ac_init_help" = "recursive"; then
1111 # If there are subdirs, report their specific --help.
1112 ac_popdir=`pwd`
1113 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1114 test -d $ac_dir || continue
1115 ac_builddir=.
1116
1117if test "$ac_dir" != .; then
1118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1119 # A "../" for each directory in $ac_dir_suffix.
1120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1121else
1122 ac_dir_suffix= ac_top_builddir=
1123fi
1124
1125case $srcdir in
1126 .) # No --srcdir option. We are building in place.
1127 ac_srcdir=.
1128 if test -z "$ac_top_builddir"; then
1129 ac_top_srcdir=.
1130 else
1131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1132 fi ;;
1133 [\\/]* | ?:[\\/]* ) # Absolute path.
1134 ac_srcdir=$srcdir$ac_dir_suffix;
1135 ac_top_srcdir=$srcdir ;;
1136 *) # Relative path.
1137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1139esac
ac1cb8d3
VS
1140
1141# Do not use `cd foo && pwd` to compute absolute paths, because
1142# the directories may not exist.
1143case `pwd` in
1144.) ac_abs_builddir="$ac_dir";;
1145*)
1146 case "$ac_dir" in
1147 .) ac_abs_builddir=`pwd`;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1149 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1150 esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_top_builddir=${ac_top_builddir}.;;
1154*)
1155 case ${ac_top_builddir}. in
1156 .) ac_abs_top_builddir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1159 esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_srcdir=$ac_srcdir;;
1163*)
1164 case $ac_srcdir in
1165 .) ac_abs_srcdir=$ac_abs_builddir;;
1166 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1167 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1168 esac;;
1169esac
1170case $ac_abs_builddir in
1171.) ac_abs_top_srcdir=$ac_top_srcdir;;
1172*)
1173 case $ac_top_srcdir in
1174 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1175 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1177 esac;;
1178esac
a848cd7e
SC
1179
1180 cd $ac_dir
1181 # Check for guested configure; otherwise get Cygnus style configure.
1182 if test -f $ac_srcdir/configure.gnu; then
1183 echo
1184 $SHELL $ac_srcdir/configure.gnu --help=recursive
1185 elif test -f $ac_srcdir/configure; then
1186 echo
1187 $SHELL $ac_srcdir/configure --help=recursive
1188 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1189 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1190 echo
1191 $ac_configure --help
1192 else
1193 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1194 fi
6ebeb4c7 1195 cd "$ac_popdir"
a848cd7e
SC
1196 done
1197fi
1198
1199test -n "$ac_init_help" && exit 0
1200if $ac_init_version; then
1201 cat <<\_ACEOF
dd8df4fc 1202wxWidgets configure 2.7.0
ac1cb8d3 1203generated by GNU Autoconf 2.59
a848cd7e 1204
ac1cb8d3 1205Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1206This configure script is free software; the Free Software Foundation
1207gives unlimited permission to copy, distribute and modify it.
1208_ACEOF
1209 exit 0
1210fi
1211exec 5>config.log
1212cat >&5 <<_ACEOF
1213This file contains any messages produced by compilers while
1214running configure, to aid debugging if configure makes a mistake.
1215
dd8df4fc 1216It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1217generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1218
1219 $ $0 $@
1220
1221_ACEOF
1222{
1223cat <<_ASUNAME
1224## --------- ##
1225## Platform. ##
1226## --------- ##
1227
1228hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1229uname -m = `(uname -m) 2>/dev/null || echo unknown`
1230uname -r = `(uname -r) 2>/dev/null || echo unknown`
1231uname -s = `(uname -s) 2>/dev/null || echo unknown`
1232uname -v = `(uname -v) 2>/dev/null || echo unknown`
1233
1234/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1235/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1236
1237/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1238/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1239/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1240hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1241/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1242/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1243/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1244
1245_ASUNAME
1246
1247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1248for as_dir in $PATH
1249do
1250 IFS=$as_save_IFS
1251 test -z "$as_dir" && as_dir=.
1252 echo "PATH: $as_dir"
1253done
1254
1255} >&5
1256
1257cat >&5 <<_ACEOF
1258
1259
1260## ----------- ##
1261## Core tests. ##
1262## ----------- ##
1263
1264_ACEOF
1265
1266
1267# Keep a trace of the command line.
1268# Strip out --no-create and --no-recursion so they do not pile up.
1269# Strip out --silent because we don't want to record it for future runs.
1270# Also quote any args containing shell meta-characters.
1271# Make two passes to allow for proper duplicate-argument suppression.
1272ac_configure_args=
1273ac_configure_args0=
1274ac_configure_args1=
1275ac_sep=
1276ac_must_keep_next=false
1277for ac_pass in 1 2
1278do
1279 for ac_arg
1280 do
1281 case $ac_arg in
1282 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284 | -silent | --silent | --silen | --sile | --sil)
1285 continue ;;
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 esac
1289 case $ac_pass in
1290 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1291 2)
1292 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1293 if test $ac_must_keep_next = true; then
ac1cb8d3 1294 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1295 else
ac1cb8d3
VS
1296 case $ac_arg in
1297 *=* | --config-cache | -C | -disable-* | --disable-* \
1298 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1299 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1300 | -with-* | --with-* | -without-* | --without-* | --x)
1301 case "$ac_configure_args0 " in
1302 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1303 esac
1304 ;;
1305 -* ) ac_must_keep_next=true ;;
1306 esac
a848cd7e
SC
1307 fi
1308 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1309 # Get rid of the leading space.
1310 ac_sep=" "
1311 ;;
1312 esac
1313 done
1314done
1315$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1316$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1317
1318# When interrupted or exit'd, cleanup temporary files, and complete
1319# config.log. We remove comments because anyway the quotes in there
1320# would cause problems or look ugly.
1321# WARNING: Be sure not to use single quotes in there, as some shells,
1322# such as our DU 5.0 friend, will then `close' the trap.
1323trap 'exit_status=$?
1324 # Save into config.log some information that might help in debugging.
1325 {
1326 echo
1327
1328 cat <<\_ASBOX
1329## ---------------- ##
1330## Cache variables. ##
1331## ---------------- ##
1332_ASBOX
1333 echo
1334 # The following way of writing the cache mishandles newlines in values,
1335{
1336 (set) 2>&1 |
1337 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1338 *ac_space=\ *)
1339 sed -n \
ac1cb8d3
VS
1340 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1342 ;;
1343 *)
1344 sed -n \
ac1cb8d3 1345 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1346 ;;
1347 esac;
1348}
1349 echo
1350
1351 cat <<\_ASBOX
1352## ----------------- ##
1353## Output variables. ##
1354## ----------------- ##
1355_ASBOX
1356 echo
1357 for ac_var in $ac_subst_vars
1358 do
1359 eval ac_val=$`echo $ac_var`
1360 echo "$ac_var='"'"'$ac_val'"'"'"
1361 done | sort
1362 echo
1363
1364 if test -n "$ac_subst_files"; then
1365 cat <<\_ASBOX
1366## ------------- ##
1367## Output files. ##
1368## ------------- ##
1369_ASBOX
1370 echo
1371 for ac_var in $ac_subst_files
1372 do
1373 eval ac_val=$`echo $ac_var`
ac1cb8d3 1374 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1375 done | sort
1376 echo
1377 fi
1378
1379 if test -s confdefs.h; then
1380 cat <<\_ASBOX
1381## ----------- ##
1382## confdefs.h. ##
1383## ----------- ##
1384_ASBOX
1385 echo
1386 sed "/^$/d" confdefs.h | sort
1387 echo
1388 fi
1389 test "$ac_signal" != 0 &&
1390 echo "$as_me: caught signal $ac_signal"
1391 echo "$as_me: exit $exit_status"
1392 } >&5
ac1cb8d3 1393 rm -f core *.core &&
a848cd7e
SC
1394 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1395 exit $exit_status
1396 ' 0
1397for ac_signal in 1 2 13 15; do
1398 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1399done
1400ac_signal=0
1401
1402# confdefs.h avoids OS command line length limits that DEFS can exceed.
1403rm -rf conftest* confdefs.h
1404# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1405echo >confdefs.h
1406
1407# Predefined preprocessor variables.
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_NAME "$PACKAGE_NAME"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1416_ACEOF
1417
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_VERSION "$PACKAGE_VERSION"
1421_ACEOF
1422
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_STRING "$PACKAGE_STRING"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1431_ACEOF
1432
1433
1434# Let the site file select an alternate cache file if it wants to.
1435# Prefer explicitly selected file to automatically selected ones.
1436if test -z "$CONFIG_SITE"; then
1437 if test "x$prefix" != xNONE; then
1438 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1439 else
1440 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1441 fi
1442fi
1443for ac_site_file in $CONFIG_SITE; do
1444 if test -r "$ac_site_file"; then
1445 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1446echo "$as_me: loading site script $ac_site_file" >&6;}
1447 sed 's/^/| /' "$ac_site_file" >&5
1448 . "$ac_site_file"
1449 fi
1450done
1451
1452if test -r "$cache_file"; then
1453 # Some versions of bash will fail to source /dev/null (special
1454 # files actually), so we avoid doing that.
1455 if test -f "$cache_file"; then
1456 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1457echo "$as_me: loading cache $cache_file" >&6;}
1458 case $cache_file in
1459 [\\/]* | ?:[\\/]* ) . $cache_file;;
1460 *) . ./$cache_file;;
1461 esac
1462 fi
1463else
1464 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1465echo "$as_me: creating cache $cache_file" >&6;}
1466 >$cache_file
1467fi
1468
1469# Check that the precious variables saved in the cache have kept the same
1470# value.
1471ac_cache_corrupted=false
1472for ac_var in `(set) 2>&1 |
ac1cb8d3 1473 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1474 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1475 eval ac_new_set=\$ac_env_${ac_var}_set
1476 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1477 eval ac_new_val="\$ac_env_${ac_var}_value"
1478 case $ac_old_set,$ac_new_set in
1479 set,)
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1481echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1483 ,set)
1484 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1485echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1486 ac_cache_corrupted=: ;;
1487 ,);;
1488 *)
1489 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1490 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1491echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1492 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1493echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1494 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1495echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1496 ac_cache_corrupted=:
a848cd7e
SC
1497 fi;;
1498 esac
1499 # Pass precious variables to config.status.
1500 if test "$ac_new_set" = set; then
1501 case $ac_new_val in
1502 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1503 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1504 *) ac_arg=$ac_var=$ac_new_val ;;
1505 esac
1506 case " $ac_configure_args " in
1507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1508 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1509 esac
1510 fi
1511done
1512if $ac_cache_corrupted; then
1513 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1514echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1515 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1516echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1517 { (exit 1); exit 1; }; }
1518fi
1519
1520ac_ext=c
1521ac_cpp='$CPP $CPPFLAGS'
1522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555ac_aux_dir=
1556for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1557 if 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/install.sh; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/install.sh -c"
1564 break
1565 elif test -f $ac_dir/shtool; then
1566 ac_aux_dir=$ac_dir
1567 ac_install_sh="$ac_aux_dir/shtool install -c"
1568 break
1569 fi
1570done
1571if test -z "$ac_aux_dir"; then
1572 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1573echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1574 { (exit 1); exit 1; }; }
1575fi
1576ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1577ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1578ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1579
1580# Make sure we can run config.sub.
1581$ac_config_sub sun4 >/dev/null 2>&1 ||
1582 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1583echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1584 { (exit 1); exit 1; }; }
1585
1586echo "$as_me:$LINENO: checking build system type" >&5
1587echo $ECHO_N "checking build system type... $ECHO_C" >&6
1588if test "${ac_cv_build+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591 ac_cv_build_alias=$build_alias
1592test -z "$ac_cv_build_alias" &&
1593 ac_cv_build_alias=`$ac_config_guess`
1594test -z "$ac_cv_build_alias" &&
1595 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1596echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1597 { (exit 1); exit 1; }; }
1598ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1599 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1600echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1601 { (exit 1); exit 1; }; }
1602
1603fi
1604echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1605echo "${ECHO_T}$ac_cv_build" >&6
1606build=$ac_cv_build
1607build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1608build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1609build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610
1611
1612echo "$as_me:$LINENO: checking host system type" >&5
1613echo $ECHO_N "checking host system type... $ECHO_C" >&6
1614if test "${ac_cv_host+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616else
1617 ac_cv_host_alias=$host_alias
1618test -z "$ac_cv_host_alias" &&
1619 ac_cv_host_alias=$ac_cv_build_alias
1620ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1621 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1622echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1623 { (exit 1); exit 1; }; }
1624
1625fi
1626echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1627echo "${ECHO_T}$ac_cv_host" >&6
1628host=$ac_cv_host
1629host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632
1633
1634echo "$as_me:$LINENO: checking target system type" >&5
1635echo $ECHO_N "checking target system type... $ECHO_C" >&6
1636if test "${ac_cv_target+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639 ac_cv_target_alias=$target_alias
1640test "x$ac_cv_target_alias" = "x" &&
1641 ac_cv_target_alias=$ac_cv_host_alias
1642ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1643 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1644echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1645 { (exit 1); exit 1; }; }
1646
1647fi
1648echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1649echo "${ECHO_T}$ac_cv_target" >&6
1650target=$ac_cv_target
1651target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
1655
1656# The aliases save the names the user supplied, while $host etc.
1657# will get canonicalized.
1658test -n "$target_alias" &&
1659 test "$program_prefix$program_suffix$program_transform_name" = \
1660 NONENONEs,x,x, &&
1661 program_prefix=${target_alias}-
1662
1663
1664
ceec2216 1665wx_major_version_number=2
dd8df4fc
VZ
1666wx_minor_version_number=7
1667wx_release_number=0
1668wx_subrelease_number=0
a848cd7e 1669
ceec2216
RL
1670WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1671WX_VERSION=$WX_RELEASE.$wx_release_number
1672WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1673
ceec2216 1674WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1675
a848cd7e
SC
1676
1677
1678
1679USE_UNIX=1
1680USE_OS2=0
1681USE_WIN32=0
1682USE_DOS=0
1683USE_BEOS=0
1684USE_MAC=0
1685
1686USE_AIX=
1687USE_BSD= USE_DARWIN= USE_FREEBSD=
1688USE_GNU= USE_HPUX=
1689USE_LINUX=
1690USE_NETBSD=
1691USE_OPENBSD=
1692USE_OSF= USE_SGI=
1693USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1694USE_ULTRIX=
1695USE_UNIXWARE=
1696
1697USE_ALPHA=
1698
1699NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1700
1701ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1702
1703DEFAULT_wxUSE_COCOA=0
1704DEFAULT_wxUSE_GTK=0
1705DEFAULT_wxUSE_MAC=0
1706DEFAULT_wxUSE_MGL=0
1707DEFAULT_wxUSE_MICROWIN=0
1708DEFAULT_wxUSE_MOTIF=0
1709DEFAULT_wxUSE_MSW=0
1710DEFAULT_wxUSE_PM=0
1711DEFAULT_wxUSE_X11=0
1712
1713DEFAULT_DEFAULT_wxUSE_COCOA=0
1714DEFAULT_DEFAULT_wxUSE_GTK=0
1715DEFAULT_DEFAULT_wxUSE_MAC=0
1716DEFAULT_DEFAULT_wxUSE_MGL=0
1717DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1718DEFAULT_DEFAULT_wxUSE_MOTIF=0
1719DEFAULT_DEFAULT_wxUSE_MSW=0
1720DEFAULT_DEFAULT_wxUSE_PM=0
1721DEFAULT_DEFAULT_wxUSE_X11=0
1722
1723PROGRAM_EXT=
1724SO_SUFFIX=so
1725SAMPLES_RPATH_FLAG=
1726SAMPLES_RPATH_POSTLINK=
1727
a03b8b04
RD
1728DEFAULT_STD_FLAG=yes
1729
a848cd7e
SC
1730case "${host}" in
1731 *-hp-hpux* )
1732 USE_HPUX=1
1733 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1734 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1735 SO_SUFFIX=sl
1736 cat >>confdefs.h <<\_ACEOF
1737#define __HPUX__ 1
1738_ACEOF
1739
1740 ;;
1741 *-*-linux* )
1742 USE_LINUX=1
1743 cat >>confdefs.h <<\_ACEOF
1744#define __LINUX__ 1
1745_ACEOF
1746
1747 TMP=`uname -m`
1748 if test "x$TMP" = "xalpha"; then
1749 USE_ALPHA=1
1750 cat >>confdefs.h <<\_ACEOF
1751#define __ALPHA__ 1
1752_ACEOF
1753
1754 fi
1755 DEFAULT_DEFAULT_wxUSE_GTK=1
1756 ;;
1757 *-*-gnu* | *-*-k*bsd*-gnu )
1758 USE_GNU=1
1759 TMP=`uname -m`
1760 if test "x$TMP" = "xalpha"; then
1761 USE_ALPHA=1
1762 cat >>confdefs.h <<\_ACEOF
1763#define __ALPHA__ 1
1764_ACEOF
1765
1766 fi
1767 DEFAULT_DEFAULT_wxUSE_GTK=1
1768 ;;
1769 *-*-irix5* | *-*-irix6* )
1770 USE_SGI=1
1771 USE_SVR4=1
1772 cat >>confdefs.h <<\_ACEOF
1773#define __SGI__ 1
1774_ACEOF
1775
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SVR4__ 1
1778_ACEOF
1779
1780 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1781 ;;
1782 *-*-solaris2* )
1783 USE_SUN=1
1784 USE_SOLARIS=1
1785 USE_SVR4=1
1786 cat >>confdefs.h <<\_ACEOF
1787#define __SUN__ 1
1788_ACEOF
1789
1790 cat >>confdefs.h <<\_ACEOF
1791#define __SOLARIS__ 1
1792_ACEOF
1793
1794 cat >>confdefs.h <<\_ACEOF
1795#define __SVR4__ 1
1796_ACEOF
1797
1798 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1799 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1800 ;;
1801 *-*-sunos4* )
1802 USE_SUN=1
1803 USE_SUNOS=1
1804 USE_BSD=1
1805 cat >>confdefs.h <<\_ACEOF
1806#define __SUN__ 1
1807_ACEOF
1808
1809 cat >>confdefs.h <<\_ACEOF
1810#define __SUNOS__ 1
1811_ACEOF
1812
1813 cat >>confdefs.h <<\_ACEOF
1814#define __BSD__ 1
1815_ACEOF
1816
1817 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1818 ;;
1819 *-*-freebsd*)
1820 USE_BSD=1
1821 USE_FREEBSD=1
1822 cat >>confdefs.h <<\_ACEOF
1823#define __FREEBSD__ 1
1824_ACEOF
1825
1826 cat >>confdefs.h <<\_ACEOF
1827#define __BSD__ 1
1828_ACEOF
1829
1830 DEFAULT_DEFAULT_wxUSE_GTK=1
1831 ;;
1832 *-*-openbsd*)
1833 USE_BSD=1
1834 USE_OPENBSD=1
1835 cat >>confdefs.h <<\_ACEOF
1836#define __OPENBSD__ 1
1837_ACEOF
1838
1839 cat >>confdefs.h <<\_ACEOF
1840#define __BSD__ 1
1841_ACEOF
1842
1843 DEFAULT_DEFAULT_wxUSE_GTK=1
1844 ;;
1845 *-*-netbsd*)
1846 USE_BSD=1
1847 USE_NETBSD=1
1848 cat >>confdefs.h <<\_ACEOF
1849#define __NETBSD__ 1
1850_ACEOF
1851
1852 cat >>confdefs.h <<\_ACEOF
1853#define __BSD__ 1
1854_ACEOF
1855
1856 DEFAULT_DEFAULT_wxUSE_GTK=1
1857 ;;
1858 *-*-osf* )
1859 USE_ALPHA=1
1860 USE_OSF=1
1861 cat >>confdefs.h <<\_ACEOF
1862#define __ALPHA__ 1
1863_ACEOF
1864
1865 cat >>confdefs.h <<\_ACEOF
1866#define __OSF__ 1
1867_ACEOF
1868
1869 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1870 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1871 ;;
1872 *-*-dgux5* )
1873 USE_ALPHA=1
1874 USE_SVR4=1
1875 cat >>confdefs.h <<\_ACEOF
1876#define __ALPHA__ 1
1877_ACEOF
1878
1879 cat >>confdefs.h <<\_ACEOF
1880#define __SVR4__ 1
1881_ACEOF
1882
1883 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1884 ;;
1885 *-*-sysv5* )
1886 USE_SYSV=1
1887 USE_SVR4=1
1888 cat >>confdefs.h <<\_ACEOF
1889#define __SYSV__ 1
1890_ACEOF
1891
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SVR4__ 1
1894_ACEOF
1895
1896 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1897 ;;
1898 *-*-aix* )
1899 USE_AIX=1
1900 USE_SYSV=1
1901 USE_SVR4=1
1902 SO_SUFFIX=a
1903 cat >>confdefs.h <<\_ACEOF
1904#define __AIX__ 1
1905_ACEOF
1906
1907 cat >>confdefs.h <<\_ACEOF
1908#define __SYSV__ 1
1909_ACEOF
1910
1911 cat >>confdefs.h <<\_ACEOF
1912#define __SVR4__ 1
1913_ACEOF
1914
1915 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1916 ;;
1917
1918 *-*-*UnixWare*)
1919 USE_SYSV=1
1920 USE_SVR4=1
1921 USE_UNIXWARE=1
1922 cat >>confdefs.h <<\_ACEOF
1923#define __UNIXWARE__ 1
1924_ACEOF
1925
1926 ;;
1927
1928 *-*-cygwin* | *-*-mingw32* )
1929 SO_SUFFIX=dll
1930 PROGRAM_EXT=".exe"
a848cd7e 1931 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1932 DEFAULT_STD_FLAG=no
a848cd7e
SC
1933 ;;
1934
1935 *-pc-msdosdjgpp )
1936 USE_UNIX=0
1937 USE_DOS=1
1938 cat >>confdefs.h <<\_ACEOF
1939#define __DOS__ 1
1940_ACEOF
1941
1942 PROGRAM_EXT=".exe"
1943 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1944 ;;
1945
1946 *-pc-os2_emx | *-pc-os2-emx )
1947 cat >>confdefs.h <<\_ACEOF
1948#define __EMX__ 1
1949_ACEOF
1950
1951 USE_OS2=1
1952 cat >>confdefs.h <<\_ACEOF
1953#define __OS2__ 1
1954_ACEOF
1955
1956 PROGRAM_EXT=".exe"
1957 DEFAULT_DEFAULT_wxUSE_PM=1
1958 CXX=gcc
1959 LDFLAGS="$LDFLAGS -Zcrtdll"
1960 ac_executable_extensions=".exe"
1961 export ac_executable_extensions
1962 ac_save_IFS="$IFS"
1963 IFS='\\'
1964 ac_TEMP_PATH=
1965 for ac_dir in $PATH; do
1966 IFS=$ac_save_IFS
1967 if test -z "$ac_TEMP_PATH"; then
1968 ac_TEMP_PATH="$ac_dir"
1969 else
1970 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1971 fi
1972 done
1973 export PATH="$ac_TEMP_PATH"
1974 unset ac_TEMP_PATH
a03b8b04 1975 DEFAULT_STD_FLAG=no
a848cd7e
SC
1976 ;;
1977
cfda0ea8 1978 *-*-darwin* )
a848cd7e
SC
1979 USE_BSD=1
1980 USE_DARWIN=1
1981 SO_SUFFIX=dylib
1982 cat >>confdefs.h <<\_ACEOF
1983#define __BSD__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define __DARWIN__ 1
a848cd7e
SC
1988_ACEOF
1989
1990 cat >>confdefs.h <<\_ACEOF
1991#define TARGET_CARBON 1
1992_ACEOF
1993
1994 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1995 DEFAULT_STD_FLAG=no
a848cd7e 1996 ;;
1e9e8aba
DE
1997 powerpc-apple-macos* )
1998 USE_UNIX=0
1999 ac_cv_c_bigendian=yes
2000 SO_SUFFIX=shlib
2001 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2002 DEFAULT_STD_FLAG=no
1e9e8aba 2003 ;;
a848cd7e
SC
2004
2005 *-*-beos* )
2006 USE_BEOS=1
2007 cat >>confdefs.h <<\_ACEOF
2008#define __BEOS__ 1
2009_ACEOF
2010
2011 ;;
2012
2013 *)
2014 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2015echo "$as_me: error: unknown system type ${host}." >&2;}
2016 { (exit 1); exit 1; }; }
2017esac
2018
2019
2020
2021
2022 wx_arg_cache_file="configarg.cache"
2023 echo "loading argument cache $wx_arg_cache_file"
2024 rm -f ${wx_arg_cache_file}.tmp
2025 touch ${wx_arg_cache_file}.tmp
2026 touch ${wx_arg_cache_file}
2027
2028
2029DEBUG_CONFIGURE=0
2030if test $DEBUG_CONFIGURE = 1; then
2031 DEFAULT_wxUSE_UNIVERSAL=no
2032 DEFAULT_wxUSE_STL=no
2033
2034 DEFAULT_wxUSE_NANOX=no
2035
2036 DEFAULT_wxUSE_THREADS=yes
2037
2038 DEFAULT_wxUSE_SHARED=yes
2039 DEFAULT_wxUSE_OPTIMISE=no
2040 DEFAULT_wxUSE_PROFILE=no
2041 DEFAULT_wxUSE_NO_DEPS=no
2042 DEFAULT_wxUSE_NO_RTTI=no
2043 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2044 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2045 DEFAULT_wxUSE_PERMISSIVE=no
2046 DEFAULT_wxUSE_DEBUG_FLAG=yes
2047 DEFAULT_wxUSE_DEBUG_INFO=yes
2048 DEFAULT_wxUSE_DEBUG_GDB=yes
2049 DEFAULT_wxUSE_MEM_TRACING=no
2050 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2051 DEFAULT_wxUSE_DMALLOC=no
2052 DEFAULT_wxUSE_APPLE_IEEE=no
2053
2054 DEFAULT_wxUSE_EXCEPTIONS=no
2055 DEFAULT_wxUSE_LOG=yes
2056 DEFAULT_wxUSE_LOGWINDOW=no
2057 DEFAULT_wxUSE_LOGGUI=no
2058 DEFAULT_wxUSE_LOGDIALOG=no
2059
2060 DEFAULT_wxUSE_GUI=yes
2061 DEFAULT_wxUSE_CONTROLS=no
2062
2063 DEFAULT_wxUSE_REGEX=no
2064 DEFAULT_wxUSE_XML=no
2065 DEFAULT_wxUSE_EXPAT=no
2066 DEFAULT_wxUSE_ZLIB=no
2067 DEFAULT_wxUSE_LIBPNG=no
2068 DEFAULT_wxUSE_LIBJPEG=no
2069 DEFAULT_wxUSE_LIBTIFF=no
2070 DEFAULT_wxUSE_LIBXPM=no
2071 DEFAULT_wxUSE_LIBMSPACK=no
2072 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2073 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2074 DEFAULT_wxUSE_ODBC=no
2075 DEFAULT_wxUSE_OPENGL=no
2076
2077 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2078 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2079 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2080 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2081 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2082 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2083 DEFAULT_wxUSE_CMDLINE_PARSER=no
2084 DEFAULT_wxUSE_DATETIME=no
2085 DEFAULT_wxUSE_TIMER=no
2086 DEFAULT_wxUSE_STOPWATCH=no
2087 DEFAULT_wxUSE_FILE=no
2088 DEFAULT_wxUSE_FFILE=no
07158944 2089 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2090 DEFAULT_wxUSE_TEXTBUFFER=no
2091 DEFAULT_wxUSE_TEXTFILE=no
2092 DEFAULT_wxUSE_SOUND=no
3b57de8b 2093 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2094 DEFAULT_wxUSE_INTL=no
2095 DEFAULT_wxUSE_CONFIG=no
2096 DEFAULT_wxUSE_FONTMAP=no
2097 DEFAULT_wxUSE_STREAMS=no
2098 DEFAULT_wxUSE_SOCKETS=no
2099 DEFAULT_wxUSE_OLE=no
2100 DEFAULT_wxUSE_DATAOBJ=no
2101 DEFAULT_wxUSE_DIALUP_MANAGER=no
2102 DEFAULT_wxUSE_JOYSTICK=no
2103 DEFAULT_wxUSE_DYNLIB_CLASS=no
2104 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2105 DEFAULT_wxUSE_LONGLONG=no
2106 DEFAULT_wxUSE_GEOMETRY=no
2107
2108 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2109 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2110 DEFAULT_wxUSE_POSTSCRIPT=no
2111
2112 DEFAULT_wxUSE_CLIPBOARD=no
2113 DEFAULT_wxUSE_TOOLTIPS=no
2114 DEFAULT_wxUSE_DRAG_AND_DROP=no
2115 DEFAULT_wxUSE_DRAGIMAGE=no
2116 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2117 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2118
8a7b1113 2119 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2120 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2121 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2122 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2123
2124 DEFAULT_wxUSE_RESOURCES=no
2125 DEFAULT_wxUSE_CONSTRAINTS=no
2126 DEFAULT_wxUSE_IPC=no
2127 DEFAULT_wxUSE_HELP=no
2128 DEFAULT_wxUSE_MS_HTML_HELP=no
2129 DEFAULT_wxUSE_WXHTML_HELP=no
2130 DEFAULT_wxUSE_TREELAYOUT=no
2131 DEFAULT_wxUSE_METAFILE=no
2132 DEFAULT_wxUSE_MIMETYPE=no
2133 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2134 DEFAULT_wxUSE_PROTOCOL=no
2135 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2136 DEFAULT_wxUSE_PROTOCOL_FTP=no
2137 DEFAULT_wxUSE_PROTOCOL_FILE=no
2138 DEFAULT_wxUSE_URL=no
2139
2140 DEFAULT_wxUSE_COMMONDLGS=no
2141 DEFAULT_wxUSE_CHOICEDLG=no
2142 DEFAULT_wxUSE_COLOURDLG=no
2143 DEFAULT_wxUSE_DIRDLG=no
2144 DEFAULT_wxUSE_FILEDLG=no
2145 DEFAULT_wxUSE_FINDREPLDLG=no
2146 DEFAULT_wxUSE_FONTDLG=no
2147 DEFAULT_wxUSE_MSGDLG=no
2148 DEFAULT_wxUSE_NUMBERDLG=no
2149 DEFAULT_wxUSE_TEXTDLG=no
2150 DEFAULT_wxUSE_SPLASH=no
2151 DEFAULT_wxUSE_STARTUP_TIPS=no
2152 DEFAULT_wxUSE_PROGRESSDLG=no
2153 DEFAULT_wxUSE_WIZARDDLG=no
2154
2155 DEFAULT_wxUSE_MENUS=no
2156 DEFAULT_wxUSE_MINIFRAME=no
2157 DEFAULT_wxUSE_HTML=no
9a8f0513 2158 DEFAULT_wxUSE_XRC=no
646b6ec1 2159 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2160 DEFAULT_wxUSE_FILESYSTEM=no
2161 DEFAULT_wxUSE_FS_INET=no
2162 DEFAULT_wxUSE_FS_ZIP=no
2163 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2164 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2165 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2166 DEFAULT_wxUSE_VALIDATORS=no
2167
2168 DEFAULT_wxUSE_ACCEL=no
2169 DEFAULT_wxUSE_BUTTON=no
2170 DEFAULT_wxUSE_BMPBUTTON=no
2171 DEFAULT_wxUSE_CALCTRL=no
2172 DEFAULT_wxUSE_CARET=no
2173 DEFAULT_wxUSE_CHECKBOX=no
2174 DEFAULT_wxUSE_CHECKLST=no
2175 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2176 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2177 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2178 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2179 DEFAULT_wxUSE_DISPLAY=no
2180 DEFAULT_wxUSE_GAUGE=no
2181 DEFAULT_wxUSE_GRID=no
2182 DEFAULT_wxUSE_IMAGLIST=no
2183 DEFAULT_wxUSE_LISTBOOK=no
2184 DEFAULT_wxUSE_LISTBOX=no
2185 DEFAULT_wxUSE_LISTCTRL=no
2186 DEFAULT_wxUSE_NOTEBOOK=no
2187 DEFAULT_wxUSE_RADIOBOX=no
2188 DEFAULT_wxUSE_RADIOBTN=no
2189 DEFAULT_wxUSE_SASH=no
2190 DEFAULT_wxUSE_SCROLLBAR=no
2191 DEFAULT_wxUSE_SLIDER=no
2192 DEFAULT_wxUSE_SPINBTN=no
2193 DEFAULT_wxUSE_SPINCTRL=no
2194 DEFAULT_wxUSE_SPLITTER=no
2195 DEFAULT_wxUSE_STATBMP=no
2196 DEFAULT_wxUSE_STATBOX=no
2197 DEFAULT_wxUSE_STATLINE=no
2198 DEFAULT_wxUSE_STATTEXT=no
2199 DEFAULT_wxUSE_STATUSBAR=yes
2200 DEFAULT_wxUSE_TABDIALOG=no
2201 DEFAULT_wxUSE_TEXTCTRL=no
2202 DEFAULT_wxUSE_TOGGLEBTN=no
2203 DEFAULT_wxUSE_TOOLBAR=no
2204 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2205 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2206 DEFAULT_wxUSE_TREECTRL=no
2207 DEFAULT_wxUSE_POPUPWIN=no
2208 DEFAULT_wxUSE_TIPWINDOW=no
2209
2210 DEFAULT_wxUSE_UNICODE=no
2211 DEFAULT_wxUSE_UNICODE_MSLU=no
2212 DEFAULT_wxUSE_WCSRTOMBS=no
2213
2214 DEFAULT_wxUSE_PALETTE=no
2215 DEFAULT_wxUSE_IMAGE=no
2216 DEFAULT_wxUSE_GIF=no
2217 DEFAULT_wxUSE_PCX=no
2218 DEFAULT_wxUSE_PNM=no
2219 DEFAULT_wxUSE_IFF=no
2220 DEFAULT_wxUSE_XPM=no
2221 DEFAULT_wxUSE_ICO_CUR=no
2222 DEFAULT_wxUSE_ACCESSIBILITY=no
2223
2224 DEFAULT_wxUSE_MONOLITHIC=no
2225 DEFAULT_wxUSE_PLUGINS=no
2226 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2227else
2228 DEFAULT_wxUSE_UNIVERSAL=no
2229 DEFAULT_wxUSE_STL=no
2230
2231 DEFAULT_wxUSE_NANOX=no
2232
2233 DEFAULT_wxUSE_THREADS=yes
2234
2235 DEFAULT_wxUSE_SHARED=yes
2236 DEFAULT_wxUSE_OPTIMISE=yes
2237 DEFAULT_wxUSE_PROFILE=no
2238 DEFAULT_wxUSE_NO_DEPS=no
2239 DEFAULT_wxUSE_NO_RTTI=no
2240 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2241 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2242 DEFAULT_wxUSE_PERMISSIVE=no
2243 DEFAULT_wxUSE_DEBUG_FLAG=no
2244 DEFAULT_wxUSE_DEBUG_INFO=no
2245 DEFAULT_wxUSE_DEBUG_GDB=no
2246 DEFAULT_wxUSE_MEM_TRACING=no
2247 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2248 DEFAULT_wxUSE_DMALLOC=no
2249 DEFAULT_wxUSE_APPLE_IEEE=yes
2250
2251 DEFAULT_wxUSE_EXCEPTIONS=yes
2252 DEFAULT_wxUSE_LOG=yes
2253 DEFAULT_wxUSE_LOGWINDOW=yes
2254 DEFAULT_wxUSE_LOGGUI=yes
2255 DEFAULT_wxUSE_LOGDIALOG=yes
2256
2257 DEFAULT_wxUSE_GUI=yes
2258
2259 DEFAULT_wxUSE_REGEX=yes
2260 DEFAULT_wxUSE_XML=yes
2261 DEFAULT_wxUSE_EXPAT=yes
2262 DEFAULT_wxUSE_ZLIB=yes
2263 DEFAULT_wxUSE_LIBPNG=yes
2264 DEFAULT_wxUSE_LIBJPEG=yes
2265 DEFAULT_wxUSE_LIBTIFF=yes
2266 DEFAULT_wxUSE_LIBXPM=yes
2267 DEFAULT_wxUSE_LIBMSPACK=yes
2268 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2269 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2270 DEFAULT_wxUSE_ODBC=no
52cb607e 2271 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2272
2273 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2274 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2275 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2276 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2277 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2278 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2279 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2280 DEFAULT_wxUSE_DATETIME=yes
2281 DEFAULT_wxUSE_TIMER=yes
2282 DEFAULT_wxUSE_STOPWATCH=yes
2283 DEFAULT_wxUSE_FILE=yes
2284 DEFAULT_wxUSE_FFILE=yes
07158944 2285 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2286 DEFAULT_wxUSE_TEXTBUFFER=yes
2287 DEFAULT_wxUSE_TEXTFILE=yes
2288 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2289 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2290 DEFAULT_wxUSE_INTL=yes
2291 DEFAULT_wxUSE_CONFIG=yes
2292 DEFAULT_wxUSE_FONTMAP=yes
2293 DEFAULT_wxUSE_STREAMS=yes
2294 DEFAULT_wxUSE_SOCKETS=yes
2295 DEFAULT_wxUSE_OLE=yes
2296 DEFAULT_wxUSE_DATAOBJ=yes
2297 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2298 DEFAULT_wxUSE_JOYSTICK=yes
2299 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2300 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2301 DEFAULT_wxUSE_LONGLONG=yes
2302 DEFAULT_wxUSE_GEOMETRY=yes
2303
2304 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2305 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2306 DEFAULT_wxUSE_POSTSCRIPT=yes
2307
2308 DEFAULT_wxUSE_CLIPBOARD=yes
2309 DEFAULT_wxUSE_TOOLTIPS=yes
2310 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2311 DEFAULT_wxUSE_DRAGIMAGE=yes
2312 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2313 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2314
8a7b1113 2315 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2316 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2318 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2319
2320 DEFAULT_wxUSE_RESOURCES=no
2321 DEFAULT_wxUSE_CONSTRAINTS=yes
2322 DEFAULT_wxUSE_IPC=yes
2323 DEFAULT_wxUSE_HELP=yes
2324 DEFAULT_wxUSE_MS_HTML_HELP=yes
2325 DEFAULT_wxUSE_WXHTML_HELP=yes
2326 DEFAULT_wxUSE_TREELAYOUT=yes
2327 DEFAULT_wxUSE_METAFILE=yes
2328 DEFAULT_wxUSE_MIMETYPE=yes
2329 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2330 DEFAULT_wxUSE_PROTOCOL=yes
2331 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2333 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2334 DEFAULT_wxUSE_URL=yes
2335
2336 DEFAULT_wxUSE_COMMONDLGS=yes
2337 DEFAULT_wxUSE_CHOICEDLG=yes
2338 DEFAULT_wxUSE_COLOURDLG=yes
2339 DEFAULT_wxUSE_DIRDLG=yes
2340 DEFAULT_wxUSE_FILEDLG=yes
2341 DEFAULT_wxUSE_FINDREPLDLG=yes
2342 DEFAULT_wxUSE_FONTDLG=yes
2343 DEFAULT_wxUSE_MSGDLG=yes
2344 DEFAULT_wxUSE_NUMBERDLG=yes
2345 DEFAULT_wxUSE_TEXTDLG=yes
2346 DEFAULT_wxUSE_SPLASH=yes
2347 DEFAULT_wxUSE_STARTUP_TIPS=yes
2348 DEFAULT_wxUSE_PROGRESSDLG=yes
2349 DEFAULT_wxUSE_WIZARDDLG=yes
2350
2351 DEFAULT_wxUSE_MENUS=yes
2352 DEFAULT_wxUSE_MINIFRAME=yes
2353 DEFAULT_wxUSE_HTML=yes
9a8f0513 2354 DEFAULT_wxUSE_XRC=yes
646b6ec1 2355 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2356 DEFAULT_wxUSE_FILESYSTEM=yes
2357 DEFAULT_wxUSE_FS_INET=yes
2358 DEFAULT_wxUSE_FS_ZIP=yes
2359 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2360 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2361 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2362 DEFAULT_wxUSE_VALIDATORS=yes
2363
2364 DEFAULT_wxUSE_ACCEL=yes
2365 DEFAULT_wxUSE_BUTTON=yes
2366 DEFAULT_wxUSE_BMPBUTTON=yes
2367 DEFAULT_wxUSE_CALCTRL=yes
2368 DEFAULT_wxUSE_CARET=yes
2369 DEFAULT_wxUSE_CHECKBOX=yes
2370 DEFAULT_wxUSE_CHECKLST=yes
2371 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2372 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2373 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2374 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2375 DEFAULT_wxUSE_DISPLAY=yes
2376 DEFAULT_wxUSE_GAUGE=yes
2377 DEFAULT_wxUSE_GRID=yes
2378 DEFAULT_wxUSE_IMAGLIST=yes
2379 DEFAULT_wxUSE_LISTBOOK=yes
2380 DEFAULT_wxUSE_LISTBOX=yes
2381 DEFAULT_wxUSE_LISTCTRL=yes
2382 DEFAULT_wxUSE_NOTEBOOK=yes
2383 DEFAULT_wxUSE_RADIOBOX=yes
2384 DEFAULT_wxUSE_RADIOBTN=yes
2385 DEFAULT_wxUSE_SASH=yes
2386 DEFAULT_wxUSE_SCROLLBAR=yes
2387 DEFAULT_wxUSE_SLIDER=yes
2388 DEFAULT_wxUSE_SPINBTN=yes
2389 DEFAULT_wxUSE_SPINCTRL=yes
2390 DEFAULT_wxUSE_SPLITTER=yes
2391 DEFAULT_wxUSE_STATBMP=yes
2392 DEFAULT_wxUSE_STATBOX=yes
2393 DEFAULT_wxUSE_STATLINE=yes
2394 DEFAULT_wxUSE_STATTEXT=yes
2395 DEFAULT_wxUSE_STATUSBAR=yes
2396 DEFAULT_wxUSE_TABDIALOG=no
2397 DEFAULT_wxUSE_TEXTCTRL=yes
2398 DEFAULT_wxUSE_TOGGLEBTN=yes
2399 DEFAULT_wxUSE_TOOLBAR=yes
2400 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2401 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2402 DEFAULT_wxUSE_TREECTRL=yes
2403 DEFAULT_wxUSE_POPUPWIN=yes
2404 DEFAULT_wxUSE_TIPWINDOW=yes
2405
78de529b 2406 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2407 DEFAULT_wxUSE_UNICODE_MSLU=yes
2408 DEFAULT_wxUSE_WCSRTOMBS=no
2409
2410 DEFAULT_wxUSE_PALETTE=yes
2411 DEFAULT_wxUSE_IMAGE=yes
2412 DEFAULT_wxUSE_GIF=yes
2413 DEFAULT_wxUSE_PCX=yes
2414 DEFAULT_wxUSE_IFF=no
2415 DEFAULT_wxUSE_PNM=yes
2416 DEFAULT_wxUSE_XPM=yes
2417 DEFAULT_wxUSE_ICO_CUR=yes
2418 DEFAULT_wxUSE_ACCESSIBILITY=no
2419
2420 DEFAULT_wxUSE_MONOLITHIC=no
2421 DEFAULT_wxUSE_PLUGINS=no
2422 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2423
f34ca037 2424 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2425fi
2426
2427
2428
f34ca037 2429
a848cd7e
SC
2430for toolkit in `echo $ALL_TOOLKITS`; do
2431 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2432 if test "x$LINE" != "x" ; then
2433 has_toolkit_in_cache=1
2434 eval "DEFAULT_$LINE"
2435 eval "CACHE_$toolkit=1"
f34ca037
MW
2436
2437 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2438 if test "x$LINE" != "x" ; then
2439 eval "DEFAULT_$LINE"
2440 fi
a848cd7e
SC
2441 fi
2442done
2443
2444
2445
2446 enablestring=
2447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2448echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2449 no_cache=0
2450 # Check whether --enable-gui or --disable-gui was given.
2451if test "${enable_gui+set}" = set; then
2452 enableval="$enable_gui"
2453
2454 if test "$enableval" = yes; then
2455 ac_cv_use_gui='wxUSE_GUI=yes'
2456 else
2457 ac_cv_use_gui='wxUSE_GUI=no'
2458 fi
2459
2460else
2461
2462 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2463 if test "x$LINE" != x ; then
2464 eval "DEFAULT_$LINE"
2465 else
2466 no_cache=1
2467 fi
2468
2469 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2470
2471fi;
2472
2473 eval "$ac_cv_use_gui"
2474 if test "$no_cache" != 1; then
2475 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2476 fi
2477
2478 if test "$wxUSE_GUI" = yes; then
2479 echo "$as_me:$LINENO: result: yes" >&5
2480echo "${ECHO_T}yes" >&6
2481 else
2482 echo "$as_me:$LINENO: result: no" >&5
2483echo "${ECHO_T}no" >&6
2484 fi
2485
2486
2487 enablestring=
2488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2489echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2490 no_cache=0
2491 # Check whether --enable-monolithic or --disable-monolithic was given.
2492if test "${enable_monolithic+set}" = set; then
2493 enableval="$enable_monolithic"
2494
2495 if test "$enableval" = yes; then
2496 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2497 else
2498 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2499 fi
2500
2501else
2502
2503 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2504 if test "x$LINE" != x ; then
2505 eval "DEFAULT_$LINE"
2506 else
2507 no_cache=1
2508 fi
2509
2510 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2511
2512fi;
2513
2514 eval "$ac_cv_use_monolithic"
2515 if test "$no_cache" != 1; then
2516 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2517 fi
2518
2519 if test "$wxUSE_MONOLITHIC" = yes; then
2520 echo "$as_me:$LINENO: result: yes" >&5
2521echo "${ECHO_T}yes" >&6
2522 else
2523 echo "$as_me:$LINENO: result: no" >&5
2524echo "${ECHO_T}no" >&6
2525 fi
2526
2527
2528 enablestring=
2529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2530echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2531 no_cache=0
2532 # Check whether --enable-plugins or --disable-plugins was given.
2533if test "${enable_plugins+set}" = set; then
2534 enableval="$enable_plugins"
2535
2536 if test "$enableval" = yes; then
2537 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2538 else
2539 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2540 fi
2541
2542else
2543
2544 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2552
2553fi;
2554
2555 eval "$ac_cv_use_plugins"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_PLUGINS" = yes; then
2561 echo "$as_me:$LINENO: result: yes" >&5
2562echo "${ECHO_T}yes" >&6
2563 else
2564 echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
2566 fi
2567
2568
1c14217d
VZ
2569 withstring=without
2570 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2571echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2572 no_cache=0
2573
2574# Check whether --with-subdirs or --without-subdirs was given.
2575if test "${with_subdirs+set}" = set; then
2576 withval="$with_subdirs"
2577
2578 if test "$withval" = yes; then
2579 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2580 else
2581 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2582 fi
2583
2584else
2585
2586 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2587 if test "x$LINE" != x ; then
2588 eval "DEFAULT_$LINE"
2589 else
2590 no_cache=1
2591 fi
2592
2593 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2594
2595fi;
2596
2597 eval "$ac_cv_use_subdirs"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxWITH_SUBDIRS" = yes; then
2603 echo "$as_me:$LINENO: result: yes" >&5
2604echo "${ECHO_T}yes" >&6
2605 else
2606 echo "$as_me:$LINENO: result: no" >&5
2607echo "${ECHO_T}no" >&6
2608 fi
2609
2610
a848cd7e
SC
2611if test "$wxUSE_GUI" = "yes"; then
2612
2613
2614 enablestring=
2615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2616echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2617 no_cache=0
2618 # Check whether --enable-universal or --disable-universal was given.
2619if test "${enable_universal+set}" = set; then
2620 enableval="$enable_universal"
2621
2622 if test "$enableval" = yes; then
2623 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2624 else
2625 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2626 fi
2627
2628else
2629
2630 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2631 if test "x$LINE" != x ; then
2632 eval "DEFAULT_$LINE"
2633 else
2634 no_cache=1
2635 fi
2636
2637 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2638
2639fi;
2640
2641 eval "$ac_cv_use_universal"
2642 if test "$no_cache" != 1; then
2643 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2644 fi
2645
2646 if test "$wxUSE_UNIVERSAL" = yes; then
2647 echo "$as_me:$LINENO: result: yes" >&5
2648echo "${ECHO_T}yes" >&6
2649 else
2650 echo "$as_me:$LINENO: result: no" >&5
2651echo "${ECHO_T}no" >&6
2652 fi
2653
2654
2655# Check whether --with-gtk or --without-gtk was given.
2656if test "${with_gtk+set}" = set; then
2657 withval="$with_gtk"
2658 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2659fi;
2660
2661# Check whether --with-motif or --without-motif was given.
2662if test "${with_motif+set}" = set; then
2663 withval="$with_motif"
2664 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2665fi;
2666
2667# Check whether --with-mac or --without-mac was given.
2668if test "${with_mac+set}" = set; then
2669 withval="$with_mac"
c228d3a4 2670 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2671fi;
2672
2673# Check whether --with-cocoa or --without-cocoa was given.
2674if test "${with_cocoa+set}" = set; then
2675 withval="$with_cocoa"
c228d3a4 2676 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2677fi;
2678
2679# Check whether --with-wine or --without-wine was given.
2680if test "${with_wine+set}" = set; then
2681 withval="$with_wine"
2682 wxUSE_WINE="$withval" CACHE_WINE=1
2683fi;
2684
2685# Check whether --with-msw or --without-msw was given.
2686if test "${with_msw+set}" = set; then
2687 withval="$with_msw"
2688 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2689fi;
2690
2691# Check whether --with-pm or --without-pm was given.
2692if test "${with_pm+set}" = set; then
2693 withval="$with_pm"
2694 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2695fi;
2696
2697# Check whether --with-mgl or --without-mgl was given.
2698if test "${with_mgl+set}" = set; then
2699 withval="$with_mgl"
2700 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2701fi;
2702
2703# Check whether --with-microwin or --without-microwin was given.
2704if test "${with_microwin+set}" = set; then
2705 withval="$with_microwin"
2706 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2707fi;
2708
2709# Check whether --with-x11 or --without-x11 was given.
2710if test "${with_x11+set}" = set; then
2711 withval="$with_x11"
2712 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2713fi;
2714
2715 enablestring=
2716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2717echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2718 no_cache=0
2719 # Check whether --enable-nanox or --disable-nanox was given.
2720if test "${enable_nanox+set}" = set; then
2721 enableval="$enable_nanox"
2722
2723 if test "$enableval" = yes; then
2724 ac_cv_use_nanox='wxUSE_NANOX=yes'
2725 else
2726 ac_cv_use_nanox='wxUSE_NANOX=no'
2727 fi
2728
2729else
2730
2731 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2732 if test "x$LINE" != x ; then
2733 eval "DEFAULT_$LINE"
2734 else
2735 no_cache=1
2736 fi
2737
2738 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2739
2740fi;
2741
2742 eval "$ac_cv_use_nanox"
2743 if test "$no_cache" != 1; then
2744 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2745 fi
2746
2747 if test "$wxUSE_NANOX" = yes; then
2748 echo "$as_me:$LINENO: result: yes" >&5
2749echo "${ECHO_T}yes" >&6
2750 else
2751 echo "$as_me:$LINENO: result: no" >&5
2752echo "${ECHO_T}no" >&6
2753 fi
2754
2755
f34ca037
MW
2756# Check whether --enable-gtk2 or --disable-gtk2 was given.
2757if test "${enable_gtk2+set}" = set; then
2758 enableval="$enable_gtk2"
2759 wxUSE_GTK2="$enableval"
2760fi;
a848cd7e 2761
a848cd7e
SC
2762 enablestring=
2763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2764echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2765 no_cache=0
2766 # Check whether --enable-gpe or --disable-gpe was given.
2767if test "${enable_gpe+set}" = set; then
2768 enableval="$enable_gpe"
2769
2770 if test "$enableval" = yes; then
2771 ac_cv_use_gpe='wxUSE_GPE=yes'
2772 else
2773 ac_cv_use_gpe='wxUSE_GPE=no'
2774 fi
2775
2776else
2777
2778 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2779 if test "x$LINE" != x ; then
2780 eval "DEFAULT_$LINE"
2781 else
2782 no_cache=1
2783 fi
2784
2785 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2786
2787fi;
2788
2789 eval "$ac_cv_use_gpe"
2790 if test "$no_cache" != 1; then
2791 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2792 fi
2793
2794 if test "$wxUSE_GPE" = yes; then
2795 echo "$as_me:$LINENO: result: yes" >&5
2796echo "${ECHO_T}yes" >&6
2797 else
2798 echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6
2800 fi
2801
2802
2803
2804 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2805echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2806 no_cache=0
2807
2808# Check whether --with-libpng or --without-libpng was given.
2809if test "${with_libpng+set}" = set; then
2810 withval="$with_libpng"
2811
2812 if test "$withval" = yes; then
2813 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2814 elif test "$withval" = no; then
2815 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2816 elif test "$withval" = sys; then
2817 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2818 elif test "$withval" = builtin; then
2819 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2820 else
2821 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2822echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2823 { (exit 1); exit 1; }; }
2824 fi
2825
2826else
2827
2828 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2829 if test "x$LINE" != x ; then
2830 eval "DEFAULT_$LINE"
2831 else
2832 no_cache=1
2833 fi
2834
2835 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2836
2837fi;
2838
2839 eval "$ac_cv_use_libpng"
2840 if test "$no_cache" != 1; then
2841 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2842 fi
2843
2844 if test "$wxUSE_LIBPNG" = yes; then
2845 echo "$as_me:$LINENO: result: yes" >&5
2846echo "${ECHO_T}yes" >&6
2847 elif test "$wxUSE_LIBPNG" = no; then
2848 echo "$as_me:$LINENO: result: no" >&5
2849echo "${ECHO_T}no" >&6
2850 elif test "$wxUSE_LIBPNG" = sys; then
2851 echo "$as_me:$LINENO: result: system version" >&5
2852echo "${ECHO_T}system version" >&6
2853 elif test "$wxUSE_LIBPNG" = builtin; then
2854 echo "$as_me:$LINENO: result: builtin version" >&5
2855echo "${ECHO_T}builtin version" >&6
2856 else
2857 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2858echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2859 { (exit 1); exit 1; }; }
2860 fi
2861
2862
2863 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2864echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2865 no_cache=0
2866
2867# Check whether --with-libjpeg or --without-libjpeg was given.
2868if test "${with_libjpeg+set}" = set; then
2869 withval="$with_libjpeg"
2870
2871 if test "$withval" = yes; then
2872 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2873 elif test "$withval" = no; then
2874 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2875 elif test "$withval" = sys; then
2876 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2877 elif test "$withval" = builtin; then
2878 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2879 else
2880 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2881echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2882 { (exit 1); exit 1; }; }
2883 fi
2884
2885else
2886
2887 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2888 if test "x$LINE" != x ; then
2889 eval "DEFAULT_$LINE"
2890 else
2891 no_cache=1
2892 fi
2893
2894 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2895
2896fi;
2897
2898 eval "$ac_cv_use_libjpeg"
2899 if test "$no_cache" != 1; then
2900 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2901 fi
2902
2903 if test "$wxUSE_LIBJPEG" = yes; then
2904 echo "$as_me:$LINENO: result: yes" >&5
2905echo "${ECHO_T}yes" >&6
2906 elif test "$wxUSE_LIBJPEG" = no; then
2907 echo "$as_me:$LINENO: result: no" >&5
2908echo "${ECHO_T}no" >&6
2909 elif test "$wxUSE_LIBJPEG" = sys; then
2910 echo "$as_me:$LINENO: result: system version" >&5
2911echo "${ECHO_T}system version" >&6
2912 elif test "$wxUSE_LIBJPEG" = builtin; then
2913 echo "$as_me:$LINENO: result: builtin version" >&5
2914echo "${ECHO_T}builtin version" >&6
2915 else
2916 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2917echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2918 { (exit 1); exit 1; }; }
2919 fi
2920
2921
2922 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2923echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2924 no_cache=0
2925
2926# Check whether --with-libtiff or --without-libtiff was given.
2927if test "${with_libtiff+set}" = set; then
2928 withval="$with_libtiff"
2929
2930 if test "$withval" = yes; then
2931 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2932 elif test "$withval" = no; then
2933 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2934 elif test "$withval" = sys; then
2935 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2936 elif test "$withval" = builtin; then
2937 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2938 else
2939 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2940echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2941 { (exit 1); exit 1; }; }
2942 fi
2943
2944else
2945
2946 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2947 if test "x$LINE" != x ; then
2948 eval "DEFAULT_$LINE"
2949 else
2950 no_cache=1
2951 fi
2952
2953 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2954
2955fi;
2956
2957 eval "$ac_cv_use_libtiff"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_LIBTIFF" = yes; then
2963 echo "$as_me:$LINENO: result: yes" >&5
2964echo "${ECHO_T}yes" >&6
2965 elif test "$wxUSE_LIBTIFF" = no; then
2966 echo "$as_me:$LINENO: result: no" >&5
2967echo "${ECHO_T}no" >&6
2968 elif test "$wxUSE_LIBTIFF" = sys; then
2969 echo "$as_me:$LINENO: result: system version" >&5
2970echo "${ECHO_T}system version" >&6
2971 elif test "$wxUSE_LIBTIFF" = builtin; then
2972 echo "$as_me:$LINENO: result: builtin version" >&5
2973echo "${ECHO_T}builtin version" >&6
2974 else
2975 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2976echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2977 { (exit 1); exit 1; }; }
2978 fi
2979
2980
2981 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2982echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2983 no_cache=0
2984
2985# Check whether --with-libxpm or --without-libxpm was given.
2986if test "${with_libxpm+set}" = set; then
2987 withval="$with_libxpm"
2988
2989 if test "$withval" = yes; then
2990 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2991 elif test "$withval" = no; then
2992 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2993 elif test "$withval" = sys; then
2994 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2995 elif test "$withval" = builtin; then
2996 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2997 else
2998 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2999echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3000 { (exit 1); exit 1; }; }
3001 fi
3002
3003else
3004
3005 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3006 if test "x$LINE" != x ; then
3007 eval "DEFAULT_$LINE"
3008 else
3009 no_cache=1
3010 fi
3011
3012 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3013
3014fi;
3015
3016 eval "$ac_cv_use_libxpm"
3017 if test "$no_cache" != 1; then
3018 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3019 fi
3020
3021 if test "$wxUSE_LIBXPM" = yes; then
3022 echo "$as_me:$LINENO: result: yes" >&5
3023echo "${ECHO_T}yes" >&6
3024 elif test "$wxUSE_LIBXPM" = no; then
3025 echo "$as_me:$LINENO: result: no" >&5
3026echo "${ECHO_T}no" >&6
3027 elif test "$wxUSE_LIBXPM" = sys; then
3028 echo "$as_me:$LINENO: result: system version" >&5
3029echo "${ECHO_T}system version" >&6
3030 elif test "$wxUSE_LIBXPM" = builtin; then
3031 echo "$as_me:$LINENO: result: builtin version" >&5
3032echo "${ECHO_T}builtin version" >&6
3033 else
3034 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3035echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3036 { (exit 1); exit 1; }; }
3037 fi
3038
3039
1c14217d
VZ
3040 withstring=
3041 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3042echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3043 no_cache=0
3044
3045# Check whether --with-libmspack or --without-libmspack was given.
3046if test "${with_libmspack+set}" = set; then
3047 withval="$with_libmspack"
3048
3049 if test "$withval" = yes; then
3050 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3051 else
3052 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3053 fi
3054
3055else
3056
3057 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3058 if test "x$LINE" != x ; then
3059 eval "DEFAULT_$LINE"
3060 else
3061 no_cache=1
3062 fi
3063
3064 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3065
3066fi;
3067
3068 eval "$ac_cv_use_libmspack"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_LIBMSPACK" = yes; then
3074 echo "$as_me:$LINENO: result: yes" >&5
3075echo "${ECHO_T}yes" >&6
3076 else
3077 echo "$as_me:$LINENO: result: no" >&5
3078echo "${ECHO_T}no" >&6
3079 fi
3080
3081
1c14217d
VZ
3082 withstring=
3083 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3084echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3085 no_cache=0
3086
3087# Check whether --with-sdl or --without-sdl was given.
3088if test "${with_sdl+set}" = set; then
3089 withval="$with_sdl"
3090
3091 if test "$withval" = yes; then
3092 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3093 else
3094 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3095 fi
3096
3097else
3098
3099 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3100 if test "x$LINE" != x ; then
3101 eval "DEFAULT_$LINE"
3102 else
3103 no_cache=1
3104 fi
3105
3106 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3107
3108fi;
3109
3110 eval "$ac_cv_use_sdl"
3111 if test "$no_cache" != 1; then
3112 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3113 fi
3114
3115 if test "$wxUSE_LIBSDL" = yes; then
3116 echo "$as_me:$LINENO: result: yes" >&5
3117echo "${ECHO_T}yes" >&6
3118 else
3119 echo "$as_me:$LINENO: result: no" >&5
3120echo "${ECHO_T}no" >&6
3121 fi
3122
3123
1c14217d
VZ
3124 withstring=
3125 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3126echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3127 no_cache=0
3128
3129# Check whether --with-gnomeprint or --without-gnomeprint was given.
3130if test "${with_gnomeprint+set}" = set; then
3131 withval="$with_gnomeprint"
3132
3133 if test "$withval" = yes; then
3134 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3135 else
3136 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3137 fi
3138
3139else
3140
3141 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3142 if test "x$LINE" != x ; then
3143 eval "DEFAULT_$LINE"
3144 else
3145 no_cache=1
3146 fi
3147
3148 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3149
3150fi;
3151
3152 eval "$ac_cv_use_gnomeprint"
3153 if test "$no_cache" != 1; then
3154 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3155 fi
3156
3157 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3158 echo "$as_me:$LINENO: result: yes" >&5
3159echo "${ECHO_T}yes" >&6
3160 else
3161 echo "$as_me:$LINENO: result: no" >&5
3162echo "${ECHO_T}no" >&6
3163 fi
3164
3165
1c14217d
VZ
3166 withstring=
3167 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3168echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3169 no_cache=0
3170
3171# Check whether --with-opengl or --without-opengl was given.
3172if test "${with_opengl+set}" = set; then
3173 withval="$with_opengl"
3174
3175 if test "$withval" = yes; then
3176 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3177 else
3178 ac_cv_use_opengl='wxUSE_OPENGL=no'
3179 fi
3180
3181else
3182
3183 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3184 if test "x$LINE" != x ; then
3185 eval "DEFAULT_$LINE"
3186 else
3187 no_cache=1
3188 fi
3189
3190 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3191
3192fi;
3193
3194 eval "$ac_cv_use_opengl"
3195 if test "$no_cache" != 1; then
3196 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3197 fi
3198
3199 if test "$wxUSE_OPENGL" = yes; then
3200 echo "$as_me:$LINENO: result: yes" >&5
3201echo "${ECHO_T}yes" >&6
3202 else
3203 echo "$as_me:$LINENO: result: no" >&5
3204echo "${ECHO_T}no" >&6
3205 fi
3206
3207
3208fi
3209
3210
1c14217d
VZ
3211 withstring=
3212 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3213echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3214 no_cache=0
3215
3216# Check whether --with-dmalloc or --without-dmalloc was given.
3217if test "${with_dmalloc+set}" = set; then
3218 withval="$with_dmalloc"
3219
3220 if test "$withval" = yes; then
3221 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3222 else
3223 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3224 fi
3225
3226else
3227
3228 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3229 if test "x$LINE" != x ; then
3230 eval "DEFAULT_$LINE"
3231 else
3232 no_cache=1
3233 fi
3234
3235 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3236
3237fi;
3238
3239 eval "$ac_cv_use_dmalloc"
3240 if test "$no_cache" != 1; then
3241 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3242 fi
3243
3244 if test "$wxUSE_DMALLOC" = yes; then
3245 echo "$as_me:$LINENO: result: yes" >&5
3246echo "${ECHO_T}yes" >&6
3247 else
3248 echo "$as_me:$LINENO: result: no" >&5
3249echo "${ECHO_T}no" >&6
3250 fi
3251
3252
3253 echo "$as_me:$LINENO: checking for --with-regex" >&5
3254echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3255 no_cache=0
3256
3257# Check whether --with-regex or --without-regex was given.
3258if test "${with_regex+set}" = set; then
3259 withval="$with_regex"
3260
3261 if test "$withval" = yes; then
3262 ac_cv_use_regex='wxUSE_REGEX=yes'
3263 elif test "$withval" = no; then
3264 ac_cv_use_regex='wxUSE_REGEX=no'
3265 elif test "$withval" = sys; then
3266 ac_cv_use_regex='wxUSE_REGEX=sys'
3267 elif test "$withval" = builtin; then
3268 ac_cv_use_regex='wxUSE_REGEX=builtin'
3269 else
3270 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3271echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3272 { (exit 1); exit 1; }; }
3273 fi
3274
3275else
3276
3277 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3278 if test "x$LINE" != x ; then
3279 eval "DEFAULT_$LINE"
3280 else
3281 no_cache=1
3282 fi
3283
3284 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3285
3286fi;
3287
3288 eval "$ac_cv_use_regex"
3289 if test "$no_cache" != 1; then
3290 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3291 fi
3292
3293 if test "$wxUSE_REGEX" = yes; then
3294 echo "$as_me:$LINENO: result: yes" >&5
3295echo "${ECHO_T}yes" >&6
3296 elif test "$wxUSE_REGEX" = no; then
3297 echo "$as_me:$LINENO: result: no" >&5
3298echo "${ECHO_T}no" >&6
3299 elif test "$wxUSE_REGEX" = sys; then
3300 echo "$as_me:$LINENO: result: system version" >&5
3301echo "${ECHO_T}system version" >&6
3302 elif test "$wxUSE_REGEX" = builtin; then
3303 echo "$as_me:$LINENO: result: builtin version" >&5
3304echo "${ECHO_T}builtin version" >&6
3305 else
3306 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3307echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3308 { (exit 1); exit 1; }; }
3309 fi
3310
3311
3312 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3313echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3314 no_cache=0
3315
3316# Check whether --with-zlib or --without-zlib was given.
3317if test "${with_zlib+set}" = set; then
3318 withval="$with_zlib"
3319
3320 if test "$withval" = yes; then
3321 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3322 elif test "$withval" = no; then
3323 ac_cv_use_zlib='wxUSE_ZLIB=no'
3324 elif test "$withval" = sys; then
3325 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3326 elif test "$withval" = builtin; then
3327 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3328 else
3329 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3330echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3331 { (exit 1); exit 1; }; }
3332 fi
3333
3334else
3335
3336 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3337 if test "x$LINE" != x ; then
3338 eval "DEFAULT_$LINE"
3339 else
3340 no_cache=1
3341 fi
3342
3343 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3344
3345fi;
3346
3347 eval "$ac_cv_use_zlib"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_ZLIB" = yes; then
3353 echo "$as_me:$LINENO: result: yes" >&5
3354echo "${ECHO_T}yes" >&6
3355 elif test "$wxUSE_ZLIB" = no; then
3356 echo "$as_me:$LINENO: result: no" >&5
3357echo "${ECHO_T}no" >&6
3358 elif test "$wxUSE_ZLIB" = sys; then
3359 echo "$as_me:$LINENO: result: system version" >&5
3360echo "${ECHO_T}system version" >&6
3361 elif test "$wxUSE_ZLIB" = builtin; then
3362 echo "$as_me:$LINENO: result: builtin version" >&5
3363echo "${ECHO_T}builtin version" >&6
3364 else
3365 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3366echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3367 { (exit 1); exit 1; }; }
3368 fi
3369
3370
3371 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3372echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3373 no_cache=0
3374
3375# Check whether --with-odbc or --without-odbc was given.
3376if test "${with_odbc+set}" = set; then
3377 withval="$with_odbc"
3378
3379 if test "$withval" = yes; then
3380 ac_cv_use_odbc='wxUSE_ODBC=yes'
3381 elif test "$withval" = no; then
3382 ac_cv_use_odbc='wxUSE_ODBC=no'
3383 elif test "$withval" = sys; then
3384 ac_cv_use_odbc='wxUSE_ODBC=sys'
3385 elif test "$withval" = builtin; then
3386 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3387 else
3388 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3389echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3390 { (exit 1); exit 1; }; }
3391 fi
3392
3393else
3394
3395 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3396 if test "x$LINE" != x ; then
3397 eval "DEFAULT_$LINE"
3398 else
3399 no_cache=1
3400 fi
3401
3402 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3403
3404fi;
3405
3406 eval "$ac_cv_use_odbc"
3407 if test "$no_cache" != 1; then
3408 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3409 fi
3410
3411 if test "$wxUSE_ODBC" = yes; then
3412 echo "$as_me:$LINENO: result: yes" >&5
3413echo "${ECHO_T}yes" >&6
3414 elif test "$wxUSE_ODBC" = no; then
3415 echo "$as_me:$LINENO: result: no" >&5
3416echo "${ECHO_T}no" >&6
3417 elif test "$wxUSE_ODBC" = sys; then
3418 echo "$as_me:$LINENO: result: system version" >&5
3419echo "${ECHO_T}system version" >&6
3420 elif test "$wxUSE_ODBC" = builtin; then
3421 echo "$as_me:$LINENO: result: builtin version" >&5
3422echo "${ECHO_T}builtin version" >&6
3423 else
3424 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3425echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3426 { (exit 1); exit 1; }; }
3427 fi
3428
3429
3430 echo "$as_me:$LINENO: checking for --with-expat" >&5
3431echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3432 no_cache=0
3433
3434# Check whether --with-expat or --without-expat was given.
3435if test "${with_expat+set}" = set; then
3436 withval="$with_expat"
3437
3438 if test "$withval" = yes; then
3439 ac_cv_use_expat='wxUSE_EXPAT=yes'
3440 elif test "$withval" = no; then
3441 ac_cv_use_expat='wxUSE_EXPAT=no'
3442 elif test "$withval" = sys; then
3443 ac_cv_use_expat='wxUSE_EXPAT=sys'
3444 elif test "$withval" = builtin; then
3445 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3446 else
3447 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3448echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3449 { (exit 1); exit 1; }; }
3450 fi
3451
3452else
3453
3454 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3455 if test "x$LINE" != x ; then
3456 eval "DEFAULT_$LINE"
3457 else
3458 no_cache=1
3459 fi
3460
3461 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3462
3463fi;
3464
3465 eval "$ac_cv_use_expat"
3466 if test "$no_cache" != 1; then
3467 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3468 fi
3469
3470 if test "$wxUSE_EXPAT" = yes; then
3471 echo "$as_me:$LINENO: result: yes" >&5
3472echo "${ECHO_T}yes" >&6
3473 elif test "$wxUSE_EXPAT" = no; then
3474 echo "$as_me:$LINENO: result: no" >&5
3475echo "${ECHO_T}no" >&6
3476 elif test "$wxUSE_EXPAT" = sys; then
3477 echo "$as_me:$LINENO: result: system version" >&5
3478echo "${ECHO_T}system version" >&6
3479 elif test "$wxUSE_EXPAT" = builtin; then
3480 echo "$as_me:$LINENO: result: builtin version" >&5
3481echo "${ECHO_T}builtin version" >&6
3482 else
3483 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3484echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3485 { (exit 1); exit 1; }; }
3486 fi
3487
3488
3489
3490
3491 enablestring=
3492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3493echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3494 no_cache=0
3495 # Check whether --enable-shared or --disable-shared was given.
3496if test "${enable_shared+set}" = set; then
3497 enableval="$enable_shared"
3498
3499 if test "$enableval" = yes; then
3500 ac_cv_use_shared='wxUSE_SHARED=yes'
3501 else
3502 ac_cv_use_shared='wxUSE_SHARED=no'
3503 fi
3504
3505else
3506
3507 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3508 if test "x$LINE" != x ; then
3509 eval "DEFAULT_$LINE"
3510 else
3511 no_cache=1
3512 fi
3513
3514 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3515
3516fi;
3517
3518 eval "$ac_cv_use_shared"
3519 if test "$no_cache" != 1; then
3520 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3521 fi
3522
3523 if test "$wxUSE_SHARED" = yes; then
3524 echo "$as_me:$LINENO: result: yes" >&5
3525echo "${ECHO_T}yes" >&6
3526 else
3527 echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6
3529 fi
3530
3531
3532 enablestring=
3533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3534echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3535 no_cache=0
3536 # Check whether --enable-optimise or --disable-optimise was given.
3537if test "${enable_optimise+set}" = set; then
3538 enableval="$enable_optimise"
3539
3540 if test "$enableval" = yes; then
3541 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3542 else
3543 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3544 fi
3545
3546else
3547
3548 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3549 if test "x$LINE" != x ; then
3550 eval "DEFAULT_$LINE"
3551 else
3552 no_cache=1
3553 fi
3554
3555 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3556
3557fi;
3558
3559 eval "$ac_cv_use_optimise"
3560 if test "$no_cache" != 1; then
3561 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3562 fi
3563
3564 if test "$wxUSE_OPTIMISE" = yes; then
3565 echo "$as_me:$LINENO: result: yes" >&5
3566echo "${ECHO_T}yes" >&6
3567 else
3568 echo "$as_me:$LINENO: result: no" >&5
3569echo "${ECHO_T}no" >&6
3570 fi
3571
3572
3573 enablestring=
3574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3575echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3576 no_cache=0
3577 # Check whether --enable-debug or --disable-debug was given.
3578if test "${enable_debug+set}" = set; then
3579 enableval="$enable_debug"
3580
3581 if test "$enableval" = yes; then
3582 ac_cv_use_debug='wxUSE_DEBUG=yes'
3583 else
3584 ac_cv_use_debug='wxUSE_DEBUG=no'
3585 fi
3586
3587else
3588
3589 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3590 if test "x$LINE" != x ; then
3591 eval "DEFAULT_$LINE"
3592 else
3593 no_cache=1
3594 fi
3595
3596 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3597
3598fi;
3599
3600 eval "$ac_cv_use_debug"
3601 if test "$no_cache" != 1; then
3602 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3603 fi
3604
3605 if test "$wxUSE_DEBUG" = yes; then
3606 echo "$as_me:$LINENO: result: yes" >&5
3607echo "${ECHO_T}yes" >&6
3608 else
3609 echo "$as_me:$LINENO: result: no" >&5
3610echo "${ECHO_T}no" >&6
3611 fi
3612
3613
3614 enablestring=
3615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3616echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3617 no_cache=0
3618 # Check whether --enable-stl or --disable-stl was given.
3619if test "${enable_stl+set}" = set; then
3620 enableval="$enable_stl"
3621
3622 if test "$enableval" = yes; then
3623 ac_cv_use_stl='wxUSE_STL=yes'
3624 else
3625 ac_cv_use_stl='wxUSE_STL=no'
3626 fi
3627
3628else
3629
3630 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3631 if test "x$LINE" != x ; then
3632 eval "DEFAULT_$LINE"
3633 else
3634 no_cache=1
3635 fi
3636
3637 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3638
3639fi;
3640
3641 eval "$ac_cv_use_stl"
3642 if test "$no_cache" != 1; then
3643 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3644 fi
3645
3646 if test "$wxUSE_STL" = yes; then
3647 echo "$as_me:$LINENO: result: yes" >&5
3648echo "${ECHO_T}yes" >&6
3649 else
3650 echo "$as_me:$LINENO: result: no" >&5
3651echo "${ECHO_T}no" >&6
3652 fi
3653
3654if test "$USE_OS2" = "1"; then
69120ee4 3655 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3656
3657 enablestring=
3658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3659echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3660 no_cache=0
3661 # Check whether --enable-omf or --disable-omf was given.
3662if test "${enable_omf+set}" = set; then
3663 enableval="$enable_omf"
3664
3665 if test "$enableval" = yes; then
3666 ac_cv_use_omf='wxUSE_OMF=yes'
3667 else
3668 ac_cv_use_omf='wxUSE_OMF=no'
3669 fi
3670
3671else
3672
3673 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3674 if test "x$LINE" != x ; then
3675 eval "DEFAULT_$LINE"
3676 else
3677 no_cache=1
3678 fi
3679
3680 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3681
3682fi;
3683
3684 eval "$ac_cv_use_omf"
3685 if test "$no_cache" != 1; then
3686 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3687 fi
3688
3689 if test "$wxUSE_OMF" = yes; then
3690 echo "$as_me:$LINENO: result: yes" >&5
3691echo "${ECHO_T}yes" >&6
3692 else
3693 echo "$as_me:$LINENO: result: no" >&5
3694echo "${ECHO_T}no" >&6
3695 fi
3696
3697fi
3698
3699if test "$wxUSE_DEBUG" = "yes"; then
3700 DEFAULT_wxUSE_DEBUG_FLAG=yes
3701 DEFAULT_wxUSE_DEBUG_INFO=yes
3702 BUILD=debug
3703elif test "$wxUSE_DEBUG" = "no"; then
3704 DEFAULT_wxUSE_DEBUG_FLAG=no
3705 DEFAULT_wxUSE_DEBUG_INFO=no
3706 BUILD=release
3707fi
3708
3709
3710 enablestring=
3711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3712echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3713 no_cache=0
3714 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3715if test "${enable_debug_flag+set}" = set; then
3716 enableval="$enable_debug_flag"
3717
3718 if test "$enableval" = yes; then
3719 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3720 else
3721 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3722 fi
3723
3724else
3725
3726 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3727 if test "x$LINE" != x ; then
3728 eval "DEFAULT_$LINE"
3729 else
3730 no_cache=1
3731 fi
3732
3733 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3734
3735fi;
3736
3737 eval "$ac_cv_use_debug_flag"
3738 if test "$no_cache" != 1; then
3739 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3740 fi
3741
3742 if test "$wxUSE_DEBUG_FLAG" = yes; then
3743 echo "$as_me:$LINENO: result: yes" >&5
3744echo "${ECHO_T}yes" >&6
3745 else
3746 echo "$as_me:$LINENO: result: no" >&5
3747echo "${ECHO_T}no" >&6
3748 fi
3749
3750
3751 enablestring=
3752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3753echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3754 no_cache=0
3755 # Check whether --enable-debug_info or --disable-debug_info was given.
3756if test "${enable_debug_info+set}" = set; then
3757 enableval="$enable_debug_info"
3758
3759 if test "$enableval" = yes; then
3760 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3761 else
3762 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3763 fi
3764
3765else
3766
3767 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3768 if test "x$LINE" != x ; then
3769 eval "DEFAULT_$LINE"
3770 else
3771 no_cache=1
3772 fi
3773
3774 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3775
3776fi;
3777
3778 eval "$ac_cv_use_debug_info"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_DEBUG_INFO" = yes; then
3784 echo "$as_me:$LINENO: result: yes" >&5
3785echo "${ECHO_T}yes" >&6
3786 else
3787 echo "$as_me:$LINENO: result: no" >&5
3788echo "${ECHO_T}no" >&6
3789 fi
3790
3791
3792 enablestring=
3793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3794echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3795 no_cache=0
3796 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3797if test "${enable_debug_gdb+set}" = set; then
3798 enableval="$enable_debug_gdb"
3799
3800 if test "$enableval" = yes; then
3801 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3802 else
3803 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3804 fi
3805
3806else
3807
3808 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3809 if test "x$LINE" != x ; then
3810 eval "DEFAULT_$LINE"
3811 else
3812 no_cache=1
3813 fi
3814
3815 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3816
3817fi;
3818
3819 eval "$ac_cv_use_debug_gdb"
3820 if test "$no_cache" != 1; then
3821 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3822 fi
3823
3824 if test "$wxUSE_DEBUG_GDB" = yes; then
3825 echo "$as_me:$LINENO: result: yes" >&5
3826echo "${ECHO_T}yes" >&6
3827 else
3828 echo "$as_me:$LINENO: result: no" >&5
3829echo "${ECHO_T}no" >&6
3830 fi
3831
3832
3833 enablestring=
3834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3835echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3836 no_cache=0
3837 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3838if test "${enable_debug_cntxt+set}" = set; then
3839 enableval="$enable_debug_cntxt"
3840
3841 if test "$enableval" = yes; then
3842 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3843 else
3844 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3845 fi
3846
3847else
3848
3849 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3857
3858fi;
3859
3860 eval "$ac_cv_use_debug_cntxt"
3861 if test "$no_cache" != 1; then
3862 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3863 fi
3864
3865 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3866 echo "$as_me:$LINENO: result: yes" >&5
3867echo "${ECHO_T}yes" >&6
3868 else
3869 echo "$as_me:$LINENO: result: no" >&5
3870echo "${ECHO_T}no" >&6
3871 fi
3872
3873
3874 enablestring=
3875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3876echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3877 no_cache=0
3878 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3879if test "${enable_mem_tracing+set}" = set; then
3880 enableval="$enable_mem_tracing"
3881
3882 if test "$enableval" = yes; then
3883 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3884 else
3885 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3886 fi
3887
3888else
3889
3890 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3891 if test "x$LINE" != x ; then
3892 eval "DEFAULT_$LINE"
3893 else
3894 no_cache=1
3895 fi
3896
3897 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3898
3899fi;
3900
3901 eval "$ac_cv_use_mem_tracing"
3902 if test "$no_cache" != 1; then
3903 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3904 fi
3905
3906 if test "$wxUSE_MEM_TRACING" = yes; then
3907 echo "$as_me:$LINENO: result: yes" >&5
3908echo "${ECHO_T}yes" >&6
3909 else
3910 echo "$as_me:$LINENO: result: no" >&5
3911echo "${ECHO_T}no" >&6
3912 fi
3913
3914
3915 enablestring=
3916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3917echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3918 no_cache=0
3919 # Check whether --enable-profile or --disable-profile was given.
3920if test "${enable_profile+set}" = set; then
3921 enableval="$enable_profile"
3922
3923 if test "$enableval" = yes; then
3924 ac_cv_use_profile='wxUSE_PROFILE=yes'
3925 else
3926 ac_cv_use_profile='wxUSE_PROFILE=no'
3927 fi
3928
3929else
3930
3931 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3932 if test "x$LINE" != x ; then
3933 eval "DEFAULT_$LINE"
3934 else
3935 no_cache=1
3936 fi
3937
3938 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3939
3940fi;
3941
3942 eval "$ac_cv_use_profile"
3943 if test "$no_cache" != 1; then
3944 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3945 fi
3946
3947 if test "$wxUSE_PROFILE" = yes; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949echo "${ECHO_T}yes" >&6
3950 else
3951 echo "$as_me:$LINENO: result: no" >&5
3952echo "${ECHO_T}no" >&6
3953 fi
3954
3955
3956 enablestring=
3957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3958echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3959 no_cache=0
3960 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3961if test "${enable_no_rtti+set}" = set; then
3962 enableval="$enable_no_rtti"
3963
3964 if test "$enableval" = yes; then
3965 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3966 else
3967 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3968 fi
3969
3970else
3971
3972 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3973 if test "x$LINE" != x ; then
3974 eval "DEFAULT_$LINE"
3975 else
3976 no_cache=1
3977 fi
3978
3979 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3980
3981fi;
3982
3983 eval "$ac_cv_use_no_rtti"
3984 if test "$no_cache" != 1; then
3985 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3986 fi
3987
3988 if test "$wxUSE_NO_RTTI" = yes; then
3989 echo "$as_me:$LINENO: result: yes" >&5
3990echo "${ECHO_T}yes" >&6
3991 else
3992 echo "$as_me:$LINENO: result: no" >&5
3993echo "${ECHO_T}no" >&6
3994 fi
3995
3996
3997 enablestring=
3998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3999echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4000 no_cache=0
4001 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4002if test "${enable_no_exceptions+set}" = set; then
4003 enableval="$enable_no_exceptions"
4004
4005 if test "$enableval" = yes; then
4006 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4007 else
4008 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4009 fi
4010
4011else
4012
4013 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4014 if test "x$LINE" != x ; then
4015 eval "DEFAULT_$LINE"
4016 else
4017 no_cache=1
4018 fi
4019
4020 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4021
4022fi;
4023
4024 eval "$ac_cv_use_no_exceptions"
4025 if test "$no_cache" != 1; then
4026 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4027 fi
4028
4029 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4030 echo "$as_me:$LINENO: result: yes" >&5
4031echo "${ECHO_T}yes" >&6
4032 else
4033 echo "$as_me:$LINENO: result: no" >&5
4034echo "${ECHO_T}no" >&6
4035 fi
4036
4037
4038 enablestring=
4039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4040echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4041 no_cache=0
4042 # Check whether --enable-permissive or --disable-permissive was given.
4043if test "${enable_permissive+set}" = set; then
4044 enableval="$enable_permissive"
4045
4046 if test "$enableval" = yes; then
4047 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4048 else
4049 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4050 fi
4051
4052else
4053
4054 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4055 if test "x$LINE" != x ; then
4056 eval "DEFAULT_$LINE"
4057 else
4058 no_cache=1
4059 fi
4060
4061 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4062
4063fi;
4064
4065 eval "$ac_cv_use_permissive"
4066 if test "$no_cache" != 1; then
4067 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4068 fi
4069
4070 if test "$wxUSE_PERMISSIVE" = yes; then
4071 echo "$as_me:$LINENO: result: yes" >&5
4072echo "${ECHO_T}yes" >&6
4073 else
4074 echo "$as_me:$LINENO: result: no" >&5
4075echo "${ECHO_T}no" >&6
4076 fi
4077
4078
4079 enablestring=
4080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4081echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4082 no_cache=0
4083 # Check whether --enable-no_deps or --disable-no_deps was given.
4084if test "${enable_no_deps+set}" = set; then
4085 enableval="$enable_no_deps"
4086
4087 if test "$enableval" = yes; then
4088 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4089 else
4090 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4091 fi
4092
4093else
4094
4095 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4096 if test "x$LINE" != x ; then
4097 eval "DEFAULT_$LINE"
4098 else
4099 no_cache=1
4100 fi
4101
4102 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4103
4104fi;
4105
4106 eval "$ac_cv_use_no_deps"
4107 if test "$no_cache" != 1; then
4108 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4109 fi
4110
4111 if test "$wxUSE_NO_DEPS" = yes; then
4112 echo "$as_me:$LINENO: result: yes" >&5
4113echo "${ECHO_T}yes" >&6
4114 else
4115 echo "$as_me:$LINENO: result: no" >&5
4116echo "${ECHO_T}no" >&6
4117 fi
4118
4119
4120
4121 enablestring=
4122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4123echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4124 no_cache=0
4125 # Check whether --enable-compat22 or --disable-compat22 was given.
4126if test "${enable_compat22+set}" = set; then
4127 enableval="$enable_compat22"
4128
4129 if test "$enableval" = yes; then
4130 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4131 else
4132 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4133 fi
4134
4135else
4136
4137 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4138 if test "x$LINE" != x ; then
4139 eval "DEFAULT_$LINE"
4140 else
4141 no_cache=1
4142 fi
4143
4144 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4145
4146fi;
4147
4148 eval "$ac_cv_use_compat22"
4149 if test "$no_cache" != 1; then
4150 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4151 fi
4152
4153 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4154 echo "$as_me:$LINENO: result: yes" >&5
4155echo "${ECHO_T}yes" >&6
4156 else
4157 echo "$as_me:$LINENO: result: no" >&5
4158echo "${ECHO_T}no" >&6
4159 fi
4160
4161
4162 enablestring=disable
4163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4164echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4165 no_cache=0
4166 # Check whether --enable-compat24 or --disable-compat24 was given.
4167if test "${enable_compat24+set}" = set; then
4168 enableval="$enable_compat24"
4169
4170 if test "$enableval" = yes; then
4171 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4172 else
4173 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4174 fi
4175
4176else
4177
4178 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4179 if test "x$LINE" != x ; then
4180 eval "DEFAULT_$LINE"
4181 else
4182 no_cache=1
4183 fi
4184
4185 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4186
4187fi;
4188
4189 eval "$ac_cv_use_compat24"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4195 echo "$as_me:$LINENO: result: yes" >&5
4196echo "${ECHO_T}yes" >&6
4197 else
4198 echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200 fi
4201
4202
ffa0583f
RL
4203
4204 enablestring=
4205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4206echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4207 no_cache=0
4208 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4209if test "${enable_rpath+set}" = set; then
4210 enableval="$enable_rpath"
ffa0583f
RL
4211
4212 if test "$enableval" = yes; then
4213 ac_cv_use_rpath='wxUSE_RPATH=yes'
4214 else
4215 ac_cv_use_rpath='wxUSE_RPATH=no'
4216 fi
4217
4218else
4219
4220 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4221 if test "x$LINE" != x ; then
4222 eval "DEFAULT_$LINE"
4223 else
4224 no_cache=1
4225 fi
4226
4227 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4228
a848cd7e
SC
4229fi;
4230
ffa0583f
RL
4231 eval "$ac_cv_use_rpath"
4232 if test "$no_cache" != 1; then
4233 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4234 fi
4235
4236 if test "$wxUSE_RPATH" = yes; then
4237 echo "$as_me:$LINENO: result: yes" >&5
4238echo "${ECHO_T}yes" >&6
4239 else
4240 echo "$as_me:$LINENO: result: no" >&5
4241echo "${ECHO_T}no" >&6
4242 fi
4243
a848cd7e
SC
4244
4245
4246
4247
4248 enablestring=
4249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4250echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4251 no_cache=0
4252 # Check whether --enable-intl or --disable-intl was given.
4253if test "${enable_intl+set}" = set; then
4254 enableval="$enable_intl"
4255
4256 if test "$enableval" = yes; then
4257 ac_cv_use_intl='wxUSE_INTL=yes'
4258 else
4259 ac_cv_use_intl='wxUSE_INTL=no'
4260 fi
4261
4262else
4263
4264 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4265 if test "x$LINE" != x ; then
4266 eval "DEFAULT_$LINE"
4267 else
4268 no_cache=1
4269 fi
4270
4271 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4272
4273fi;
4274
4275 eval "$ac_cv_use_intl"
4276 if test "$no_cache" != 1; then
4277 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4278 fi
4279
4280 if test "$wxUSE_INTL" = yes; then
4281 echo "$as_me:$LINENO: result: yes" >&5
4282echo "${ECHO_T}yes" >&6
4283 else
4284 echo "$as_me:$LINENO: result: no" >&5
4285echo "${ECHO_T}no" >&6
4286 fi
4287
4288
4289 enablestring=
4290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4291echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4292 no_cache=0
4293 # Check whether --enable-config or --disable-config was given.
4294if test "${enable_config+set}" = set; then
4295 enableval="$enable_config"
4296
4297 if test "$enableval" = yes; then
4298 ac_cv_use_config='wxUSE_CONFIG=yes'
4299 else
4300 ac_cv_use_config='wxUSE_CONFIG=no'
4301 fi
4302
4303else
4304
4305 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4313
4314fi;
4315
4316 eval "$ac_cv_use_config"
4317 if test "$no_cache" != 1; then
4318 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4319 fi
4320
4321 if test "$wxUSE_CONFIG" = yes; then
4322 echo "$as_me:$LINENO: result: yes" >&5
4323echo "${ECHO_T}yes" >&6
4324 else
4325 echo "$as_me:$LINENO: result: no" >&5
4326echo "${ECHO_T}no" >&6
4327 fi
4328
4329
4330
4331 enablestring=
4332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4333echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4334 no_cache=0
4335 # Check whether --enable-protocols or --disable-protocols was given.
4336if test "${enable_protocols+set}" = set; then
4337 enableval="$enable_protocols"
4338
4339 if test "$enableval" = yes; then
4340 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4341 else
4342 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4343 fi
4344
4345else
4346
4347 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4348 if test "x$LINE" != x ; then
4349 eval "DEFAULT_$LINE"
4350 else
4351 no_cache=1
4352 fi
4353
4354 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4355
4356fi;
4357
4358 eval "$ac_cv_use_protocols"
4359 if test "$no_cache" != 1; then
4360 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4361 fi
4362
4363 if test "$wxUSE_PROTOCOL" = yes; then
4364 echo "$as_me:$LINENO: result: yes" >&5
4365echo "${ECHO_T}yes" >&6
4366 else
4367 echo "$as_me:$LINENO: result: no" >&5
4368echo "${ECHO_T}no" >&6
4369 fi
4370
4371
4372 enablestring=
4373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4374echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4375 no_cache=0
4376 # Check whether --enable-ftp or --disable-ftp was given.
4377if test "${enable_ftp+set}" = set; then
4378 enableval="$enable_ftp"
4379
4380 if test "$enableval" = yes; then
4381 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4382 else
4383 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4384 fi
4385
4386else
4387
4388 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4389 if test "x$LINE" != x ; then
4390 eval "DEFAULT_$LINE"
4391 else
4392 no_cache=1
4393 fi
4394
4395 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4396
4397fi;
4398
4399 eval "$ac_cv_use_ftp"
4400 if test "$no_cache" != 1; then
4401 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4402 fi
4403
4404 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4405 echo "$as_me:$LINENO: result: yes" >&5
4406echo "${ECHO_T}yes" >&6
4407 else
4408 echo "$as_me:$LINENO: result: no" >&5
4409echo "${ECHO_T}no" >&6
4410 fi
4411
4412
4413 enablestring=
4414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4415echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4416 no_cache=0
4417 # Check whether --enable-http or --disable-http was given.
4418if test "${enable_http+set}" = set; then
4419 enableval="$enable_http"
4420
4421 if test "$enableval" = yes; then
4422 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4423 else
4424 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4425 fi
4426
4427else
4428
4429 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4430 if test "x$LINE" != x ; then
4431 eval "DEFAULT_$LINE"
4432 else
4433 no_cache=1
4434 fi
4435
4436 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4437
4438fi;
4439
4440 eval "$ac_cv_use_http"
4441 if test "$no_cache" != 1; then
4442 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4443 fi
4444
4445 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4446 echo "$as_me:$LINENO: result: yes" >&5
4447echo "${ECHO_T}yes" >&6
4448 else
4449 echo "$as_me:$LINENO: result: no" >&5
4450echo "${ECHO_T}no" >&6
4451 fi
4452
4453
4454 enablestring=
4455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4456echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4457 no_cache=0
4458 # Check whether --enable-fileproto or --disable-fileproto was given.
4459if test "${enable_fileproto+set}" = set; then
4460 enableval="$enable_fileproto"
4461
4462 if test "$enableval" = yes; then
4463 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4464 else
4465 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4466 fi
4467
4468else
4469
4470 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4471 if test "x$LINE" != x ; then
4472 eval "DEFAULT_$LINE"
4473 else
4474 no_cache=1
4475 fi
4476
4477 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4478
4479fi;
4480
4481 eval "$ac_cv_use_fileproto"
4482 if test "$no_cache" != 1; then
4483 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4484 fi
4485
4486 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4487 echo "$as_me:$LINENO: result: yes" >&5
4488echo "${ECHO_T}yes" >&6
4489 else
4490 echo "$as_me:$LINENO: result: no" >&5
4491echo "${ECHO_T}no" >&6
4492 fi
4493
4494
4495 enablestring=
4496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4497echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4498 no_cache=0
4499 # Check whether --enable-sockets or --disable-sockets was given.
4500if test "${enable_sockets+set}" = set; then
4501 enableval="$enable_sockets"
4502
4503 if test "$enableval" = yes; then
4504 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4505 else
4506 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4507 fi
4508
4509else
4510
4511 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4519
4520fi;
4521
4522 eval "$ac_cv_use_sockets"
4523 if test "$no_cache" != 1; then
4524 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4525 fi
4526
4527 if test "$wxUSE_SOCKETS" = yes; then
4528 echo "$as_me:$LINENO: result: yes" >&5
4529echo "${ECHO_T}yes" >&6
4530 else
4531 echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6
4533 fi
4534
4535
4536 enablestring=
4537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4538echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4539 no_cache=0
4540 # Check whether --enable-ole or --disable-ole was given.
4541if test "${enable_ole+set}" = set; then
4542 enableval="$enable_ole"
4543
4544 if test "$enableval" = yes; then
4545 ac_cv_use_ole='wxUSE_OLE=yes'
4546 else
4547 ac_cv_use_ole='wxUSE_OLE=no'
4548 fi
4549
4550else
4551
4552 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4553 if test "x$LINE" != x ; then
4554 eval "DEFAULT_$LINE"
4555 else
4556 no_cache=1
4557 fi
4558
4559 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4560
4561fi;
4562
4563 eval "$ac_cv_use_ole"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_OLE" = yes; then
4569 echo "$as_me:$LINENO: result: yes" >&5
4570echo "${ECHO_T}yes" >&6
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574 fi
4575
4576
4577 enablestring=
4578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4579echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4580 no_cache=0
4581 # Check whether --enable-dataobj or --disable-dataobj was given.
4582if test "${enable_dataobj+set}" = set; then
4583 enableval="$enable_dataobj"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4587 else
4588 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4589 fi
4590
4591else
4592
4593 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4601
4602fi;
4603
4604 eval "$ac_cv_use_dataobj"
4605 if test "$no_cache" != 1; then
4606 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4607 fi
4608
4609 if test "$wxUSE_DATAOBJ" = yes; then
4610 echo "$as_me:$LINENO: result: yes" >&5
4611echo "${ECHO_T}yes" >&6
4612 else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615 fi
4616
4617
4618
4619 enablestring=
4620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4621echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4622 no_cache=0
4623 # Check whether --enable-ipc or --disable-ipc was given.
4624if test "${enable_ipc+set}" = set; then
4625 enableval="$enable_ipc"
4626
4627 if test "$enableval" = yes; then
4628 ac_cv_use_ipc='wxUSE_IPC=yes'
4629 else
4630 ac_cv_use_ipc='wxUSE_IPC=no'
4631 fi
4632
4633else
4634
4635 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4636 if test "x$LINE" != x ; then
4637 eval "DEFAULT_$LINE"
4638 else
4639 no_cache=1
4640 fi
4641
4642 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4643
4644fi;
4645
4646 eval "$ac_cv_use_ipc"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_IPC" = yes; then
4652 echo "$as_me:$LINENO: result: yes" >&5
4653echo "${ECHO_T}yes" >&6
4654 else
4655 echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6
4657 fi
4658
4659
4660
4661 enablestring=
4662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4663echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4664 no_cache=0
4665 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4666if test "${enable_apple_ieee+set}" = set; then
4667 enableval="$enable_apple_ieee"
4668
4669 if test "$enableval" = yes; then
4670 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4671 else
4672 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4673 fi
4674
4675else
4676
4677 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4678 if test "x$LINE" != x ; then
4679 eval "DEFAULT_$LINE"
4680 else
4681 no_cache=1
4682 fi
4683
4684 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4685
4686fi;
4687
4688 eval "$ac_cv_use_apple_ieee"
4689 if test "$no_cache" != 1; then
4690 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4691 fi
4692
4693 if test "$wxUSE_APPLE_IEEE" = yes; then
4694 echo "$as_me:$LINENO: result: yes" >&5
4695echo "${ECHO_T}yes" >&6
4696 else
4697 echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6
4699 fi
4700
4701
81f90336
MW
4702 enablestring=
4703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4704echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4705 no_cache=0
4706 # Check whether --enable-arcstream or --disable-arcstream was given.
4707if test "${enable_arcstream+set}" = set; then
4708 enableval="$enable_arcstream"
4709
4710 if test "$enableval" = yes; then
9e8e867f 4711 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4712 else
9e8e867f 4713 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4714 fi
4715
4716else
4717
9e8e867f 4718 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4719 if test "x$LINE" != x ; then
4720 eval "DEFAULT_$LINE"
4721 else
4722 no_cache=1
4723 fi
4724
9e8e867f 4725 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4726
4727fi;
4728
4729 eval "$ac_cv_use_arcstream"
4730 if test "$no_cache" != 1; then
4731 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4732 fi
4733
9e8e867f 4734 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4735 echo "$as_me:$LINENO: result: yes" >&5
4736echo "${ECHO_T}yes" >&6
4737 else
4738 echo "$as_me:$LINENO: result: no" >&5
4739echo "${ECHO_T}no" >&6
4740 fi
4741
4742
a848cd7e 4743 enablestring=
36b6448c
VZ
4744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4745echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4746 no_cache=0
36b6448c
VZ
4747 # Check whether --enable-backtrace or --disable-backtrace was given.
4748if test "${enable_backtrace+set}" = set; then
4749 enableval="$enable_backtrace"
a848cd7e
SC
4750
4751 if test "$enableval" = yes; then
36b6448c 4752 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4753 else
36b6448c 4754 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4755 fi
4756
4757else
4758
36b6448c 4759 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4760 if test "x$LINE" != x ; then
4761 eval "DEFAULT_$LINE"
4762 else
4763 no_cache=1
4764 fi
4765
36b6448c 4766 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4767
4768fi;
4769
36b6448c 4770 eval "$ac_cv_use_backtrace"
a848cd7e 4771 if test "$no_cache" != 1; then
36b6448c 4772 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4773 fi
4774
36b6448c 4775 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4776 echo "$as_me:$LINENO: result: yes" >&5
4777echo "${ECHO_T}yes" >&6
4778 else
4779 echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6
4781 fi
4782
4783
eaff0f0d 4784 enablestring=
36b6448c
VZ
4785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4786echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4787 no_cache=0
36b6448c
VZ
4788 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4789if test "${enable_catch_segvs+set}" = set; then
4790 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4791
4792 if test "$enableval" = yes; then
36b6448c 4793 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4794 else
36b6448c 4795 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4796 fi
4797
4798else
4799
36b6448c 4800 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4801 if test "x$LINE" != x ; then
4802 eval "DEFAULT_$LINE"
4803 else
4804 no_cache=1
4805 fi
4806
36b6448c 4807 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4808
4809fi;
4810
36b6448c 4811 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4812 if test "$no_cache" != 1; then
36b6448c 4813 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4814 fi
4815
36b6448c 4816 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4817 echo "$as_me:$LINENO: result: yes" >&5
4818echo "${ECHO_T}yes" >&6
4819 else
4820 echo "$as_me:$LINENO: result: no" >&5
4821echo "${ECHO_T}no" >&6
4822 fi
4823
4824
a848cd7e
SC
4825 enablestring=
4826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4827echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4828 no_cache=0
4829 # Check whether --enable-cmdline or --disable-cmdline was given.
4830if test "${enable_cmdline+set}" = set; then
4831 enableval="$enable_cmdline"
4832
4833 if test "$enableval" = yes; then
4834 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4835 else
4836 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4837 fi
4838
4839else
4840
4841 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4842 if test "x$LINE" != x ; then
4843 eval "DEFAULT_$LINE"
4844 else
4845 no_cache=1
4846 fi
4847
4848 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4849
4850fi;
4851
4852 eval "$ac_cv_use_cmdline"
4853 if test "$no_cache" != 1; then
4854 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4855 fi
4856
4857 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4858 echo "$as_me:$LINENO: result: yes" >&5
4859echo "${ECHO_T}yes" >&6
4860 else
4861 echo "$as_me:$LINENO: result: no" >&5
4862echo "${ECHO_T}no" >&6
4863 fi
4864
4865
4866 enablestring=
4867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4868echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4869 no_cache=0
4870 # Check whether --enable-datetime or --disable-datetime was given.
4871if test "${enable_datetime+set}" = set; then
4872 enableval="$enable_datetime"
4873
4874 if test "$enableval" = yes; then
4875 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4876 else
4877 ac_cv_use_datetime='wxUSE_DATETIME=no'
4878 fi
4879
4880else
4881
4882 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4883 if test "x$LINE" != x ; then
4884 eval "DEFAULT_$LINE"
4885 else
4886 no_cache=1
4887 fi
4888
4889 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4890
4891fi;
4892
4893 eval "$ac_cv_use_datetime"
4894 if test "$no_cache" != 1; then
4895 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4896 fi
4897
4898 if test "$wxUSE_DATETIME" = yes; then
4899 echo "$as_me:$LINENO: result: yes" >&5
4900echo "${ECHO_T}yes" >&6
4901 else
4902 echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6
4904 fi
4905
4906
36b6448c
VZ
4907 enablestring=
4908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4909echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4910 no_cache=0
4911 # Check whether --enable-debugreport or --disable-debugreport was given.
4912if test "${enable_debugreport+set}" = set; then
4913 enableval="$enable_debugreport"
4914
4915 if test "$enableval" = yes; then
4916 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4917 else
4918 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4919 fi
4920
4921else
4922
4923 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4924 if test "x$LINE" != x ; then
4925 eval "DEFAULT_$LINE"
4926 else
4927 no_cache=1
4928 fi
4929
4930 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4931
4932fi;
4933
4934 eval "$ac_cv_use_debugreport"
4935 if test "$no_cache" != 1; then
4936 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4937 fi
4938
4939 if test "$wxUSE_DEBUGREPORT" = yes; then
4940 echo "$as_me:$LINENO: result: yes" >&5
4941echo "${ECHO_T}yes" >&6
4942 else
4943 echo "$as_me:$LINENO: result: no" >&5
4944echo "${ECHO_T}no" >&6
4945 fi
4946
4947
a848cd7e
SC
4948 enablestring=
4949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4950echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4951 no_cache=0
4952 # Check whether --enable-dialupman or --disable-dialupman was given.
4953if test "${enable_dialupman+set}" = set; then
4954 enableval="$enable_dialupman"
4955
4956 if test "$enableval" = yes; then
4957 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4958 else
4959 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4960 fi
4961
4962else
4963
4964 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4965 if test "x$LINE" != x ; then
4966 eval "DEFAULT_$LINE"
4967 else
4968 no_cache=1
4969 fi
4970
4971 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4972
4973fi;
4974
4975 eval "$ac_cv_use_dialupman"
4976 if test "$no_cache" != 1; then
4977 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4978 fi
4979
4980 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4981 echo "$as_me:$LINENO: result: yes" >&5
4982echo "${ECHO_T}yes" >&6
4983 else
4984 echo "$as_me:$LINENO: result: no" >&5
4985echo "${ECHO_T}no" >&6
4986 fi
4987
4988
4989 enablestring=
4990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4991echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4992 no_cache=0
4993 # Check whether --enable-dynlib or --disable-dynlib was given.
4994if test "${enable_dynlib+set}" = set; then
4995 enableval="$enable_dynlib"
4996
4997 if test "$enableval" = yes; then
4998 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4999 else
5000 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5001 fi
5002
5003else
5004
5005 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5006 if test "x$LINE" != x ; then
5007 eval "DEFAULT_$LINE"
5008 else
5009 no_cache=1
5010 fi
5011
5012 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5013
5014fi;
5015
5016 eval "$ac_cv_use_dynlib"
5017 if test "$no_cache" != 1; then
5018 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5019 fi
5020
5021 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5022 echo "$as_me:$LINENO: result: yes" >&5
5023echo "${ECHO_T}yes" >&6
5024 else
5025 echo "$as_me:$LINENO: result: no" >&5
5026echo "${ECHO_T}no" >&6
5027 fi
5028
5029
5030 enablestring=
5031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5032echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5033 no_cache=0
5034 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5035if test "${enable_dynamicloader+set}" = set; then
5036 enableval="$enable_dynamicloader"
5037
5038 if test "$enableval" = yes; then
5039 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5040 else
5041 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5042 fi
5043
5044else
5045
5046 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5047 if test "x$LINE" != x ; then
5048 eval "DEFAULT_$LINE"
5049 else
5050 no_cache=1
5051 fi
5052
5053 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5054
5055fi;
5056
5057 eval "$ac_cv_use_dynamicloader"
5058 if test "$no_cache" != 1; then
5059 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5060 fi
5061
5062 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5063 echo "$as_me:$LINENO: result: yes" >&5
5064echo "${ECHO_T}yes" >&6
5065 else
5066 echo "$as_me:$LINENO: result: no" >&5
5067echo "${ECHO_T}no" >&6
5068 fi
5069
5070
5071 enablestring=
5072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5073echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5074 no_cache=0
5075 # Check whether --enable-exceptions or --disable-exceptions was given.
5076if test "${enable_exceptions+set}" = set; then
5077 enableval="$enable_exceptions"
5078
5079 if test "$enableval" = yes; then
5080 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5081 else
5082 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5083 fi
5084
5085else
5086
5087 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5088 if test "x$LINE" != x ; then
5089 eval "DEFAULT_$LINE"
5090 else
5091 no_cache=1
5092 fi
5093
5094 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5095
5096fi;
5097
5098 eval "$ac_cv_use_exceptions"
5099 if test "$no_cache" != 1; then
5100 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5101 fi
5102
5103 if test "$wxUSE_EXCEPTIONS" = yes; then
5104 echo "$as_me:$LINENO: result: yes" >&5
5105echo "${ECHO_T}yes" >&6
5106 else
5107 echo "$as_me:$LINENO: result: no" >&5
5108echo "${ECHO_T}no" >&6
5109 fi
5110
5111
5112 enablestring=
5113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5114echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5115 no_cache=0
5116 # Check whether --enable-ffile or --disable-ffile was given.
5117if test "${enable_ffile+set}" = set; then
5118 enableval="$enable_ffile"
5119
5120 if test "$enableval" = yes; then
5121 ac_cv_use_ffile='wxUSE_FFILE=yes'
5122 else
5123 ac_cv_use_ffile='wxUSE_FFILE=no'
5124 fi
5125
5126else
5127
5128 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5129 if test "x$LINE" != x ; then
5130 eval "DEFAULT_$LINE"
5131 else
5132 no_cache=1
5133 fi
5134
5135 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5136
5137fi;
5138
5139 eval "$ac_cv_use_ffile"
5140 if test "$no_cache" != 1; then
5141 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5142 fi
5143
5144 if test "$wxUSE_FFILE" = yes; then
5145 echo "$as_me:$LINENO: result: yes" >&5
5146echo "${ECHO_T}yes" >&6
5147 else
5148 echo "$as_me:$LINENO: result: no" >&5
5149echo "${ECHO_T}no" >&6
5150 fi
5151
5152
5153 enablestring=
5154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5155echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5156 no_cache=0
5157 # Check whether --enable-file or --disable-file was given.
5158if test "${enable_file+set}" = set; then
5159 enableval="$enable_file"
5160
5161 if test "$enableval" = yes; then
5162 ac_cv_use_file='wxUSE_FILE=yes'
5163 else
5164 ac_cv_use_file='wxUSE_FILE=no'
5165 fi
5166
5167else
5168
5169 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5170 if test "x$LINE" != x ; then
5171 eval "DEFAULT_$LINE"
5172 else
5173 no_cache=1
5174 fi
5175
5176 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5177
5178fi;
5179
5180 eval "$ac_cv_use_file"
5181 if test "$no_cache" != 1; then
5182 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5183 fi
5184
5185 if test "$wxUSE_FILE" = yes; then
5186 echo "$as_me:$LINENO: result: yes" >&5
5187echo "${ECHO_T}yes" >&6
5188 else
5189 echo "$as_me:$LINENO: result: no" >&5
5190echo "${ECHO_T}no" >&6
5191 fi
5192
5193
5194 enablestring=
5195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5196echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5197 no_cache=0
5198 # Check whether --enable-filesystem or --disable-filesystem was given.
5199if test "${enable_filesystem+set}" = set; then
5200 enableval="$enable_filesystem"
5201
5202 if test "$enableval" = yes; then
5203 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5204 else
5205 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5206 fi
5207
5208else
5209
5210 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5211 if test "x$LINE" != x ; then
5212 eval "DEFAULT_$LINE"
5213 else
5214 no_cache=1
5215 fi
5216
5217 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5218
5219fi;
5220
5221 eval "$ac_cv_use_filesystem"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_FILESYSTEM" = yes; then
5227 echo "$as_me:$LINENO: result: yes" >&5
5228echo "${ECHO_T}yes" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6
5232 fi
5233
5234
5235 enablestring=
5236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5237echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5238 no_cache=0
5239 # Check whether --enable-fontmap or --disable-fontmap was given.
5240if test "${enable_fontmap+set}" = set; then
5241 enableval="$enable_fontmap"
5242
5243 if test "$enableval" = yes; then
5244 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5245 else
5246 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5247 fi
5248
5249else
5250
5251 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5252 if test "x$LINE" != x ; then
5253 eval "DEFAULT_$LINE"
5254 else
5255 no_cache=1
5256 fi
5257
5258 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5259
5260fi;
5261
5262 eval "$ac_cv_use_fontmap"
5263 if test "$no_cache" != 1; then
5264 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5265 fi
5266
5267 if test "$wxUSE_FONTMAP" = yes; then
5268 echo "$as_me:$LINENO: result: yes" >&5
5269echo "${ECHO_T}yes" >&6
5270 else
5271 echo "$as_me:$LINENO: result: no" >&5
5272echo "${ECHO_T}no" >&6
5273 fi
5274
5275
5276 enablestring=
5277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5278echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5279 no_cache=0
5280 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5281if test "${enable_fs_inet+set}" = set; then
5282 enableval="$enable_fs_inet"
5283
5284 if test "$enableval" = yes; then
5285 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5286 else
5287 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5288 fi
5289
5290else
5291
5292 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5293 if test "x$LINE" != x ; then
5294 eval "DEFAULT_$LINE"
5295 else
5296 no_cache=1
5297 fi
5298
5299 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5300
5301fi;
5302
5303 eval "$ac_cv_use_fs_inet"
5304 if test "$no_cache" != 1; then
5305 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5306 fi
5307
5308 if test "$wxUSE_FS_INET" = yes; then
5309 echo "$as_me:$LINENO: result: yes" >&5
5310echo "${ECHO_T}yes" >&6
5311 else
5312 echo "$as_me:$LINENO: result: no" >&5
5313echo "${ECHO_T}no" >&6
5314 fi
5315
5316
5317 enablestring=
5318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5319echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5320 no_cache=0
5321 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5322if test "${enable_fs_zip+set}" = set; then
5323 enableval="$enable_fs_zip"
5324
5325 if test "$enableval" = yes; then
5326 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5327 else
5328 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5329 fi
5330
5331else
5332
5333 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5334 if test "x$LINE" != x ; then
5335 eval "DEFAULT_$LINE"
5336 else
5337 no_cache=1
5338 fi
5339
5340 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5341
5342fi;
5343
5344 eval "$ac_cv_use_fs_zip"
5345 if test "$no_cache" != 1; then
5346 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5347 fi
5348
5349 if test "$wxUSE_FS_ZIP" = yes; then
5350 echo "$as_me:$LINENO: result: yes" >&5
5351echo "${ECHO_T}yes" >&6
5352 else
5353 echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
5355 fi
5356
5357
5358 enablestring=
5359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5360echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5361 no_cache=0
5362 # Check whether --enable-geometry or --disable-geometry was given.
5363if test "${enable_geometry+set}" = set; then
5364 enableval="$enable_geometry"
5365
5366 if test "$enableval" = yes; then
5367 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5368 else
5369 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5370 fi
5371
5372else
5373
5374 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5375 if test "x$LINE" != x ; then
5376 eval "DEFAULT_$LINE"
5377 else
5378 no_cache=1
5379 fi
5380
5381 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5382
5383fi;
5384
5385 eval "$ac_cv_use_geometry"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_GEOMETRY" = yes; then
5391 echo "$as_me:$LINENO: result: yes" >&5
5392echo "${ECHO_T}yes" >&6
5393 else
5394 echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6
5396 fi
5397
5398
5399 enablestring=
5400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5401echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5402 no_cache=0
5403 # Check whether --enable-log or --disable-log was given.
5404if test "${enable_log+set}" = set; then
5405 enableval="$enable_log"
5406
5407 if test "$enableval" = yes; then
5408 ac_cv_use_log='wxUSE_LOG=yes'
5409 else
5410 ac_cv_use_log='wxUSE_LOG=no'
5411 fi
5412
5413else
5414
5415 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5416 if test "x$LINE" != x ; then
5417 eval "DEFAULT_$LINE"
5418 else
5419 no_cache=1
5420 fi
5421
5422 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5423
5424fi;
5425
5426 eval "$ac_cv_use_log"
5427 if test "$no_cache" != 1; then
5428 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5429 fi
5430
5431 if test "$wxUSE_LOG" = yes; then
5432 echo "$as_me:$LINENO: result: yes" >&5
5433echo "${ECHO_T}yes" >&6
5434 else
5435 echo "$as_me:$LINENO: result: no" >&5
5436echo "${ECHO_T}no" >&6
5437 fi
5438
5439
5440 enablestring=
5441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5442echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5443 no_cache=0
5444 # Check whether --enable-longlong or --disable-longlong was given.
5445if test "${enable_longlong+set}" = set; then
5446 enableval="$enable_longlong"
5447
5448 if test "$enableval" = yes; then
5449 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5450 else
5451 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5452 fi
5453
5454else
5455
5456 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5457 if test "x$LINE" != x ; then
5458 eval "DEFAULT_$LINE"
5459 else
5460 no_cache=1
5461 fi
5462
5463 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5464
5465fi;
5466
5467 eval "$ac_cv_use_longlong"
5468 if test "$no_cache" != 1; then
5469 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5470 fi
5471
5472 if test "$wxUSE_LONGLONG" = yes; then
5473 echo "$as_me:$LINENO: result: yes" >&5
5474echo "${ECHO_T}yes" >&6
5475 else
5476 echo "$as_me:$LINENO: result: no" >&5
5477echo "${ECHO_T}no" >&6
5478 fi
5479
5480
5481 enablestring=
5482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5483echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5484 no_cache=0
5485 # Check whether --enable-mimetype or --disable-mimetype was given.
5486if test "${enable_mimetype+set}" = set; then
5487 enableval="$enable_mimetype"
5488
5489 if test "$enableval" = yes; then
5490 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5491 else
5492 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5493 fi
5494
5495else
5496
5497 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5498 if test "x$LINE" != x ; then
5499 eval "DEFAULT_$LINE"
5500 else
5501 no_cache=1
5502 fi
5503
5504 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5505
5506fi;
5507
5508 eval "$ac_cv_use_mimetype"
5509 if test "$no_cache" != 1; then
5510 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5511 fi
5512
5513 if test "$wxUSE_MIMETYPE" = yes; then
5514 echo "$as_me:$LINENO: result: yes" >&5
5515echo "${ECHO_T}yes" >&6
5516 else
5517 echo "$as_me:$LINENO: result: no" >&5
5518echo "${ECHO_T}no" >&6
5519 fi
5520
5521
5522 enablestring=
5523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5524echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5525 no_cache=0
5526 # Check whether --enable-mslu or --disable-mslu was given.
5527if test "${enable_mslu+set}" = set; then
5528 enableval="$enable_mslu"
5529
5530 if test "$enableval" = yes; then
5531 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5532 else
5533 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5534 fi
5535
5536else
5537
5538 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5539 if test "x$LINE" != x ; then
5540 eval "DEFAULT_$LINE"
5541 else
5542 no_cache=1
5543 fi
5544
5545 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5546
5547fi;
5548
5549 eval "$ac_cv_use_mslu"
5550 if test "$no_cache" != 1; then
5551 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5552 fi
5553
5554 if test "$wxUSE_UNICODE_MSLU" = yes; then
5555 echo "$as_me:$LINENO: result: yes" >&5
5556echo "${ECHO_T}yes" >&6
5557 else
5558 echo "$as_me:$LINENO: result: no" >&5
5559echo "${ECHO_T}no" >&6
5560 fi
5561
5562
5563 enablestring=
5564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5565echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5566 no_cache=0
5567 # Check whether --enable-snglinst or --disable-snglinst was given.
5568if test "${enable_snglinst+set}" = set; then
5569 enableval="$enable_snglinst"
5570
5571 if test "$enableval" = yes; then
5572 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5573 else
5574 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5575 fi
5576
5577else
5578
5579 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5580 if test "x$LINE" != x ; then
5581 eval "DEFAULT_$LINE"
5582 else
5583 no_cache=1
5584 fi
5585
5586 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5587
5588fi;
5589
5590 eval "$ac_cv_use_snglinst"
5591 if test "$no_cache" != 1; then
5592 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5593 fi
5594
5595 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5596 echo "$as_me:$LINENO: result: yes" >&5
5597echo "${ECHO_T}yes" >&6
5598 else
5599 echo "$as_me:$LINENO: result: no" >&5
5600echo "${ECHO_T}no" >&6
5601 fi
5602
5603
5604 enablestring=
07158944
VZ
5605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5606echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5607 no_cache=0
07158944
VZ
5608 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5609if test "${enable_std_iostreams+set}" = set; then
5610 enableval="$enable_std_iostreams"
a848cd7e
SC
5611
5612 if test "$enableval" = yes; then
07158944 5613 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5614 else
07158944 5615 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5616 fi
5617
5618else
5619
07158944 5620 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5621 if test "x$LINE" != x ; then
5622 eval "DEFAULT_$LINE"
5623 else
5624 no_cache=1
5625 fi
5626
07158944 5627 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5628
5629fi;
5630
07158944 5631 eval "$ac_cv_use_std_iostreams"
a848cd7e 5632 if test "$no_cache" != 1; then
07158944 5633 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5634 fi
5635
07158944 5636 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5637 echo "$as_me:$LINENO: result: yes" >&5
5638echo "${ECHO_T}yes" >&6
5639 else
5640 echo "$as_me:$LINENO: result: no" >&5
5641echo "${ECHO_T}no" >&6
5642 fi
5643
5644
59746b65
MW
5645 enablestring=
5646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5647echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5648 no_cache=0
5649 # Check whether --enable-std_string or --disable-std_string was given.
5650if test "${enable_std_string+set}" = set; then
5651 enableval="$enable_std_string"
5652
5653 if test "$enableval" = yes; then
5654 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5655 else
5656 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5657 fi
5658
5659else
5660
5661 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5662 if test "x$LINE" != x ; then
5663 eval "DEFAULT_$LINE"
5664 else
5665 no_cache=1
5666 fi
5667
5668 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5669
5670fi;
5671
5672 eval "$ac_cv_use_std_string"
5673 if test "$no_cache" != 1; then
5674 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5675 fi
5676
5677 if test "$wxUSE_STD_STRING" = yes; then
5678 echo "$as_me:$LINENO: result: yes" >&5
5679echo "${ECHO_T}yes" >&6
5680 else
5681 echo "$as_me:$LINENO: result: no" >&5
5682echo "${ECHO_T}no" >&6
5683 fi
5684
5685
a848cd7e 5686 enablestring=
07158944
VZ
5687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5688echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5689 no_cache=0
07158944
VZ
5690 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5691if test "${enable_stdpaths+set}" = set; then
5692 enableval="$enable_stdpaths"
a848cd7e
SC
5693
5694 if test "$enableval" = yes; then
07158944 5695 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5696 else
07158944 5697 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5698 fi
5699
5700else
5701
07158944 5702 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5703 if test "x$LINE" != x ; then
5704 eval "DEFAULT_$LINE"
5705 else
5706 no_cache=1
5707 fi
5708
07158944 5709 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5710
5711fi;
5712
07158944 5713 eval "$ac_cv_use_stdpaths"
a848cd7e 5714 if test "$no_cache" != 1; then
07158944 5715 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5716 fi
5717
07158944 5718 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5719 echo "$as_me:$LINENO: result: yes" >&5
5720echo "${ECHO_T}yes" >&6
5721 else
5722 echo "$as_me:$LINENO: result: no" >&5
5723echo "${ECHO_T}no" >&6
5724 fi
5725
5726
5727 enablestring=
5728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5729echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5730 no_cache=0
5731 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5732if test "${enable_stopwatch+set}" = set; then
5733 enableval="$enable_stopwatch"
5734
5735 if test "$enableval" = yes; then
5736 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5737 else
5738 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5739 fi
5740
5741else
5742
5743 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5744 if test "x$LINE" != x ; then
5745 eval "DEFAULT_$LINE"
5746 else
5747 no_cache=1
5748 fi
5749
5750 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5751
5752fi;
5753
5754 eval "$ac_cv_use_stopwatch"
5755 if test "$no_cache" != 1; then
5756 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5757 fi
5758
5759 if test "$wxUSE_STOPWATCH" = yes; then
5760 echo "$as_me:$LINENO: result: yes" >&5
5761echo "${ECHO_T}yes" >&6
5762 else
5763 echo "$as_me:$LINENO: result: no" >&5
5764echo "${ECHO_T}no" >&6
5765 fi
5766
5767
07158944
VZ
5768 enablestring=
5769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5770echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5771 no_cache=0
5772 # Check whether --enable-streams or --disable-streams was given.
5773if test "${enable_streams+set}" = set; then
5774 enableval="$enable_streams"
5775
5776 if test "$enableval" = yes; then
5777 ac_cv_use_streams='wxUSE_STREAMS=yes'
5778 else
5779 ac_cv_use_streams='wxUSE_STREAMS=no'
5780 fi
5781
5782else
5783
5784 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5785 if test "x$LINE" != x ; then
5786 eval "DEFAULT_$LINE"
5787 else
5788 no_cache=1
5789 fi
5790
5791 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5792
5793fi;
5794
5795 eval "$ac_cv_use_streams"
5796 if test "$no_cache" != 1; then
5797 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5798 fi
5799
5800 if test "$wxUSE_STREAMS" = yes; then
5801 echo "$as_me:$LINENO: result: yes" >&5
5802echo "${ECHO_T}yes" >&6
5803 else
5804 echo "$as_me:$LINENO: result: no" >&5
5805echo "${ECHO_T}no" >&6
5806 fi
5807
5808
a848cd7e
SC
5809 enablestring=
5810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5811echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5812 no_cache=0
5813 # Check whether --enable-system_options or --disable-system_options was given.
5814if test "${enable_system_options+set}" = set; then
5815 enableval="$enable_system_options"
5816
5817 if test "$enableval" = yes; then
5818 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5819 else
5820 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5821 fi
5822
5823else
5824
5825 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5826 if test "x$LINE" != x ; then
5827 eval "DEFAULT_$LINE"
5828 else
5829 no_cache=1
5830 fi
5831
5832 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5833
5834fi;
5835
5836 eval "$ac_cv_use_system_options"
5837 if test "$no_cache" != 1; then
5838 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5839 fi
5840
5841 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5842 echo "$as_me:$LINENO: result: yes" >&5
5843echo "${ECHO_T}yes" >&6
5844 else
5845 echo "$as_me:$LINENO: result: no" >&5
5846echo "${ECHO_T}no" >&6
5847 fi
5848
5849
5850 enablestring=
5851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5852echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5853 no_cache=0
5854 # Check whether --enable-textbuf or --disable-textbuf was given.
5855if test "${enable_textbuf+set}" = set; then
5856 enableval="$enable_textbuf"
5857
5858 if test "$enableval" = yes; then
5859 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5860 else
5861 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5862 fi
5863
5864else
5865
5866 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5867 if test "x$LINE" != x ; then
5868 eval "DEFAULT_$LINE"
5869 else
5870 no_cache=1
5871 fi
5872
5873 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5874
5875fi;
5876
5877 eval "$ac_cv_use_textbuf"
5878 if test "$no_cache" != 1; then
5879 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5880 fi
5881
5882 if test "$wxUSE_TEXTBUFFER" = yes; then
5883 echo "$as_me:$LINENO: result: yes" >&5
5884echo "${ECHO_T}yes" >&6
5885 else
5886 echo "$as_me:$LINENO: result: no" >&5
5887echo "${ECHO_T}no" >&6
5888 fi
5889
5890
5891 enablestring=
5892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5893echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5894 no_cache=0
5895 # Check whether --enable-textfile or --disable-textfile was given.
5896if test "${enable_textfile+set}" = set; then
5897 enableval="$enable_textfile"
5898
5899 if test "$enableval" = yes; then
5900 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5901 else
5902 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5903 fi
5904
5905else
5906
5907 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5908 if test "x$LINE" != x ; then
5909 eval "DEFAULT_$LINE"
5910 else
5911 no_cache=1
5912 fi
5913
5914 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5915
5916fi;
5917
5918 eval "$ac_cv_use_textfile"
5919 if test "$no_cache" != 1; then
5920 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5921 fi
5922
5923 if test "$wxUSE_TEXTFILE" = yes; then
5924 echo "$as_me:$LINENO: result: yes" >&5
5925echo "${ECHO_T}yes" >&6
5926 else
5927 echo "$as_me:$LINENO: result: no" >&5
5928echo "${ECHO_T}no" >&6
5929 fi
5930
5931
5932 enablestring=
5933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5934echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5935 no_cache=0
5936 # Check whether --enable-timer or --disable-timer was given.
5937if test "${enable_timer+set}" = set; then
5938 enableval="$enable_timer"
5939
5940 if test "$enableval" = yes; then
5941 ac_cv_use_timer='wxUSE_TIMER=yes'
5942 else
5943 ac_cv_use_timer='wxUSE_TIMER=no'
5944 fi
5945
5946else
5947
5948 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5949 if test "x$LINE" != x ; then
5950 eval "DEFAULT_$LINE"
5951 else
5952 no_cache=1
5953 fi
5954
5955 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5956
5957fi;
5958
5959 eval "$ac_cv_use_timer"
5960 if test "$no_cache" != 1; then
5961 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5962 fi
5963
5964 if test "$wxUSE_TIMER" = yes; then
5965 echo "$as_me:$LINENO: result: yes" >&5
5966echo "${ECHO_T}yes" >&6
5967 else
5968 echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
5970 fi
5971
5972
5973 enablestring=
5974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5975echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5976 no_cache=0
5977 # Check whether --enable-unicode or --disable-unicode was given.
5978if test "${enable_unicode+set}" = set; then
5979 enableval="$enable_unicode"
5980
5981 if test "$enableval" = yes; then
5982 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5983 else
5984 ac_cv_use_unicode='wxUSE_UNICODE=no'
5985 fi
5986
5987else
5988
5989 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5990 if test "x$LINE" != x ; then
5991 eval "DEFAULT_$LINE"
5992 else
5993 no_cache=1
5994 fi
5995
5996 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5997
5998fi;
5999
6000 eval "$ac_cv_use_unicode"
6001 if test "$no_cache" != 1; then
6002 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6003 fi
6004
6005 if test "$wxUSE_UNICODE" = yes; then
6006 echo "$as_me:$LINENO: result: yes" >&5
6007echo "${ECHO_T}yes" >&6
6008 else
6009 echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6
6011 fi
6012
6013
6014 enablestring=
6015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6016echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6017 no_cache=0
6018 # Check whether --enable-sound or --disable-sound was given.
6019if test "${enable_sound+set}" = set; then
6020 enableval="$enable_sound"
6021
6022 if test "$enableval" = yes; then
6023 ac_cv_use_sound='wxUSE_SOUND=yes'
6024 else
6025 ac_cv_use_sound='wxUSE_SOUND=no'
6026 fi
6027
6028else
6029
6030 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6031 if test "x$LINE" != x ; then
6032 eval "DEFAULT_$LINE"
6033 else
6034 no_cache=1
6035 fi
6036
6037 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6038
6039fi;
6040
6041 eval "$ac_cv_use_sound"
6042 if test "$no_cache" != 1; then
6043 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6044 fi
6045
6046 if test "$wxUSE_SOUND" = yes; then
6047 echo "$as_me:$LINENO: result: yes" >&5
6048echo "${ECHO_T}yes" >&6
6049 else
6050 echo "$as_me:$LINENO: result: no" >&5
6051echo "${ECHO_T}no" >&6
6052 fi
6053
6054
3b57de8b
RL
6055 enablestring=
6056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6057echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6058 no_cache=0
6059 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6060if test "${enable_mediactrl+set}" = set; then
6061 enableval="$enable_mediactrl"
6062
6063 if test "$enableval" = yes; then
6064 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6065 else
6066 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6067 fi
6068
6069else
6070
6071 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6072 if test "x$LINE" != x ; then
6073 eval "DEFAULT_$LINE"
6074 else
6075 no_cache=1
6076 fi
6077
6078 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6079
6080fi;
6081
6082 eval "$ac_cv_use_mediactrl"
6083 if test "$no_cache" != 1; then
6084 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6085 fi
6086
6087 if test "$wxUSE_MEDIACTRL" = yes; then
6088 echo "$as_me:$LINENO: result: yes" >&5
6089echo "${ECHO_T}yes" >&6
6090 else
6091 echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6
6093 fi
6094
6095
a848cd7e
SC
6096 enablestring=
6097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6098echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6099 no_cache=0
6100 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6101if test "${enable_wxprintfv+set}" = set; then
6102 enableval="$enable_wxprintfv"
6103
6104 if test "$enableval" = yes; then
6105 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6106 else
6107 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6108 fi
6109
6110else
6111
6112 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6113 if test "x$LINE" != x ; then
6114 eval "DEFAULT_$LINE"
6115 else
6116 no_cache=1
6117 fi
6118
6119 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6120
6121fi;
6122
6123 eval "$ac_cv_use_wxprintfv"
6124 if test "$no_cache" != 1; then
6125 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6126 fi
6127
6128 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6129 echo "$as_me:$LINENO: result: yes" >&5
6130echo "${ECHO_T}yes" >&6
6131 else
6132 echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6
6134 fi
6135
6136
6137 enablestring=
6138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6139echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6140 no_cache=0
6141 # Check whether --enable-zipstream or --disable-zipstream was given.
6142if test "${enable_zipstream+set}" = set; then
6143 enableval="$enable_zipstream"
6144
6145 if test "$enableval" = yes; then
6146 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6147 else
6148 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6149 fi
6150
6151else
6152
6153 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6154 if test "x$LINE" != x ; then
6155 eval "DEFAULT_$LINE"
6156 else
6157 no_cache=1
6158 fi
6159
6160 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6161
6162fi;
6163
6164 eval "$ac_cv_use_zipstream"
6165 if test "$no_cache" != 1; then
6166 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6167 fi
6168
6169 if test "$wxUSE_ZIPSTREAM" = yes; then
6170 echo "$as_me:$LINENO: result: yes" >&5
6171echo "${ECHO_T}yes" >&6
6172 else
6173 echo "$as_me:$LINENO: result: no" >&5
6174echo "${ECHO_T}no" >&6
6175 fi
6176
6177
a848cd7e
SC
6178
6179 enablestring=
6180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6181echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6182 no_cache=0
6183 # Check whether --enable-url or --disable-url was given.
6184if test "${enable_url+set}" = set; then
6185 enableval="$enable_url"
6186
6187 if test "$enableval" = yes; then
6188 ac_cv_use_url='wxUSE_URL=yes'
6189 else
6190 ac_cv_use_url='wxUSE_URL=no'
6191 fi
6192
6193else
6194
6195 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6196 if test "x$LINE" != x ; then
6197 eval "DEFAULT_$LINE"
6198 else
6199 no_cache=1
6200 fi
6201
6202 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6203
6204fi;
6205
6206 eval "$ac_cv_use_url"
6207 if test "$no_cache" != 1; then
6208 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6209 fi
6210
6211 if test "$wxUSE_URL" = yes; then
6212 echo "$as_me:$LINENO: result: yes" >&5
6213echo "${ECHO_T}yes" >&6
6214 else
6215 echo "$as_me:$LINENO: result: no" >&5
6216echo "${ECHO_T}no" >&6
6217 fi
6218
6219
6220 enablestring=
6221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6222echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6223 no_cache=0
6224 # Check whether --enable-protocol or --disable-protocol was given.
6225if test "${enable_protocol+set}" = set; then
6226 enableval="$enable_protocol"
6227
6228 if test "$enableval" = yes; then
6229 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6230 else
6231 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6232 fi
6233
6234else
6235
6236 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6237 if test "x$LINE" != x ; then
6238 eval "DEFAULT_$LINE"
6239 else
6240 no_cache=1
6241 fi
6242
6243 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6244
6245fi;
6246
6247 eval "$ac_cv_use_protocol"
6248 if test "$no_cache" != 1; then
6249 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6250 fi
6251
6252 if test "$wxUSE_PROTOCOL" = yes; then
6253 echo "$as_me:$LINENO: result: yes" >&5
6254echo "${ECHO_T}yes" >&6
6255 else
6256 echo "$as_me:$LINENO: result: no" >&5
6257echo "${ECHO_T}no" >&6
6258 fi
6259
6260
6261 enablestring=
6262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6263echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6264 no_cache=0
6265 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6266if test "${enable_protocol_http+set}" = set; then
6267 enableval="$enable_protocol_http"
6268
6269 if test "$enableval" = yes; then
6270 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6271 else
6272 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6273 fi
6274
6275else
6276
6277 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6278 if test "x$LINE" != x ; then
6279 eval "DEFAULT_$LINE"
6280 else
6281 no_cache=1
6282 fi
6283
6284 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6285
6286fi;
6287
6288 eval "$ac_cv_use_protocol_http"
6289 if test "$no_cache" != 1; then
6290 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6291 fi
6292
6293 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6294 echo "$as_me:$LINENO: result: yes" >&5
6295echo "${ECHO_T}yes" >&6
6296 else
6297 echo "$as_me:$LINENO: result: no" >&5
6298echo "${ECHO_T}no" >&6
6299 fi
6300
6301
6302 enablestring=
6303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6304echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6305 no_cache=0
6306 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6307if test "${enable_protocol_ftp+set}" = set; then
6308 enableval="$enable_protocol_ftp"
6309
6310 if test "$enableval" = yes; then
6311 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6312 else
6313 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6314 fi
6315
6316else
6317
6318 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6319 if test "x$LINE" != x ; then
6320 eval "DEFAULT_$LINE"
6321 else
6322 no_cache=1
6323 fi
6324
6325 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6326
6327fi;
6328
6329 eval "$ac_cv_use_protocol_ftp"
6330 if test "$no_cache" != 1; then
6331 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6332 fi
6333
6334 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6335 echo "$as_me:$LINENO: result: yes" >&5
6336echo "${ECHO_T}yes" >&6
6337 else
6338 echo "$as_me:$LINENO: result: no" >&5
6339echo "${ECHO_T}no" >&6
6340 fi
6341
6342
6343 enablestring=
6344 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6345echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6346 no_cache=0
6347 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6348if test "${enable_protocol_file+set}" = set; then
6349 enableval="$enable_protocol_file"
6350
6351 if test "$enableval" = yes; then
6352 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6353 else
6354 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6355 fi
6356
6357else
6358
6359 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6360 if test "x$LINE" != x ; then
6361 eval "DEFAULT_$LINE"
6362 else
6363 no_cache=1
6364 fi
6365
6366 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6367
6368fi;
6369
6370 eval "$ac_cv_use_protocol_file"
6371 if test "$no_cache" != 1; then
6372 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6373 fi
6374
6375 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6376 echo "$as_me:$LINENO: result: yes" >&5
6377echo "${ECHO_T}yes" >&6
6378 else
6379 echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6
6381 fi
6382
6383
6384
6385
6386
6387 enablestring=
6388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6389echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6390 no_cache=0
6391 # Check whether --enable-threads or --disable-threads was given.
6392if test "${enable_threads+set}" = set; then
6393 enableval="$enable_threads"
6394
6395 if test "$enableval" = yes; then
6396 ac_cv_use_threads='wxUSE_THREADS=yes'
6397 else
6398 ac_cv_use_threads='wxUSE_THREADS=no'
6399 fi
6400
6401else
6402
6403 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6404 if test "x$LINE" != x ; then
6405 eval "DEFAULT_$LINE"
6406 else
6407 no_cache=1
6408 fi
6409
6410 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6411
6412fi;
6413
6414 eval "$ac_cv_use_threads"
6415 if test "$no_cache" != 1; then
6416 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6417 fi
6418
6419 if test "$wxUSE_THREADS" = yes; then
6420 echo "$as_me:$LINENO: result: yes" >&5
6421echo "${ECHO_T}yes" >&6
6422 else
6423 echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6
6425 fi
6426
6427
6428if test "$wxUSE_GUI" = "yes"; then
6429
6430
6431
6432 enablestring=
6433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6434echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6435 no_cache=0
6436 # Check whether --enable-docview or --disable-docview was given.
6437if test "${enable_docview+set}" = set; then
6438 enableval="$enable_docview"
6439
6440 if test "$enableval" = yes; then
6441 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6442 else
6443 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6444 fi
6445
6446else
6447
6448 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6449 if test "x$LINE" != x ; then
6450 eval "DEFAULT_$LINE"
6451 else
6452 no_cache=1
6453 fi
6454
6455 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6456
6457fi;
6458
6459 eval "$ac_cv_use_docview"
6460 if test "$no_cache" != 1; then
6461 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6462 fi
6463
6464 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6465 echo "$as_me:$LINENO: result: yes" >&5
6466echo "${ECHO_T}yes" >&6
6467 else
6468 echo "$as_me:$LINENO: result: no" >&5
6469echo "${ECHO_T}no" >&6
6470 fi
6471
6472
6473 enablestring=
6474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6475echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6476 no_cache=0
6477 # Check whether --enable-help or --disable-help was given.
6478if test "${enable_help+set}" = set; then
6479 enableval="$enable_help"
6480
6481 if test "$enableval" = yes; then
6482 ac_cv_use_help='wxUSE_HELP=yes'
6483 else
6484 ac_cv_use_help='wxUSE_HELP=no'
6485 fi
6486
6487else
6488
6489 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6490 if test "x$LINE" != x ; then
6491 eval "DEFAULT_$LINE"
6492 else
6493 no_cache=1
6494 fi
6495
6496 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6497
6498fi;
6499
6500 eval "$ac_cv_use_help"
6501 if test "$no_cache" != 1; then
6502 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6503 fi
6504
6505 if test "$wxUSE_HELP" = yes; then
6506 echo "$as_me:$LINENO: result: yes" >&5
6507echo "${ECHO_T}yes" >&6
6508 else
6509 echo "$as_me:$LINENO: result: no" >&5
6510echo "${ECHO_T}no" >&6
6511 fi
6512
6513
6514 enablestring=
6515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6516echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6517 no_cache=0
6518 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6519if test "${enable_mshtmlhelp+set}" = set; then
6520 enableval="$enable_mshtmlhelp"
6521
6522 if test "$enableval" = yes; then
6523 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6524 else
6525 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6526 fi
6527
6528else
6529
6530 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6531 if test "x$LINE" != x ; then
6532 eval "DEFAULT_$LINE"
6533 else
6534 no_cache=1
6535 fi
6536
6537 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6538
6539fi;
6540
6541 eval "$ac_cv_use_mshtmlhelp"
6542 if test "$no_cache" != 1; then
6543 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6544 fi
6545
6546 if test "$wxUSE_MS_HTML_HELP" = yes; then
6547 echo "$as_me:$LINENO: result: yes" >&5
6548echo "${ECHO_T}yes" >&6
6549 else
6550 echo "$as_me:$LINENO: result: no" >&5
6551echo "${ECHO_T}no" >&6
6552 fi
6553
6554
6555 enablestring=
6556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6557echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6558 no_cache=0
6559 # Check whether --enable-html or --disable-html was given.
6560if test "${enable_html+set}" = set; then
6561 enableval="$enable_html"
6562
6563 if test "$enableval" = yes; then
6564 ac_cv_use_html='wxUSE_HTML=yes'
6565 else
6566 ac_cv_use_html='wxUSE_HTML=no'
6567 fi
6568
6569else
6570
6571 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6572 if test "x$LINE" != x ; then
6573 eval "DEFAULT_$LINE"
6574 else
6575 no_cache=1
6576 fi
6577
6578 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6579
6580fi;
6581
6582 eval "$ac_cv_use_html"
6583 if test "$no_cache" != 1; then
6584 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6585 fi
6586
6587 if test "$wxUSE_HTML" = yes; then
6588 echo "$as_me:$LINENO: result: yes" >&5
6589echo "${ECHO_T}yes" >&6
6590 else
6591 echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6
6593 fi
6594
6595
6596 enablestring=
6597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6598echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6599 no_cache=0
6600 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6601if test "${enable_htmlhelp+set}" = set; then
6602 enableval="$enable_htmlhelp"
6603
6604 if test "$enableval" = yes; then
6605 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6606 else
6607 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6608 fi
6609
6610else
6611
6612 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6613 if test "x$LINE" != x ; then
6614 eval "DEFAULT_$LINE"
6615 else
6616 no_cache=1
6617 fi
6618
6619 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6620
6621fi;
6622
6623 eval "$ac_cv_use_htmlhelp"
6624 if test "$no_cache" != 1; then
6625 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6626 fi
6627
6628 if test "$wxUSE_WXHTML_HELP" = yes; then
6629 echo "$as_me:$LINENO: result: yes" >&5
6630echo "${ECHO_T}yes" >&6
6631 else
6632 echo "$as_me:$LINENO: result: no" >&5
6633echo "${ECHO_T}no" >&6
6634 fi
6635
6636
9a8f0513
VS
6637 enablestring=
6638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6639echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6640 no_cache=0
6641 # Check whether --enable-xrc or --disable-xrc was given.
6642if test "${enable_xrc+set}" = set; then
6643 enableval="$enable_xrc"
6644
6645 if test "$enableval" = yes; then
6646 ac_cv_use_xrc='wxUSE_XRC=yes'
6647 else
6648 ac_cv_use_xrc='wxUSE_XRC=no'
6649 fi
6650
6651else
6652
6653 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6654 if test "x$LINE" != x ; then
6655 eval "DEFAULT_$LINE"
6656 else
6657 no_cache=1
6658 fi
6659
6660 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6661
6662fi;
6663
6664 eval "$ac_cv_use_xrc"
6665 if test "$no_cache" != 1; then
6666 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6667 fi
6668
6669 if test "$wxUSE_XRC" = yes; then
6670 echo "$as_me:$LINENO: result: yes" >&5
6671echo "${ECHO_T}yes" >&6
6672 else
6673 echo "$as_me:$LINENO: result: no" >&5
6674echo "${ECHO_T}no" >&6
6675 fi
6676
6677
a848cd7e
SC
6678 enablestring=
6679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6680echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6681 no_cache=0
6682 # Check whether --enable-constraints or --disable-constraints was given.
6683if test "${enable_constraints+set}" = set; then
6684 enableval="$enable_constraints"
6685
6686 if test "$enableval" = yes; then
6687 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6688 else
6689 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6690 fi
6691
6692else
6693
6694 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6695 if test "x$LINE" != x ; then
6696 eval "DEFAULT_$LINE"
6697 else
6698 no_cache=1
6699 fi
6700
6701 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6702
6703fi;
6704
6705 eval "$ac_cv_use_constraints"
6706 if test "$no_cache" != 1; then
6707 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6708 fi
6709
6710 if test "$wxUSE_CONSTRAINTS" = yes; then
6711 echo "$as_me:$LINENO: result: yes" >&5
6712echo "${ECHO_T}yes" >&6
6713 else
6714 echo "$as_me:$LINENO: result: no" >&5
6715echo "${ECHO_T}no" >&6
6716 fi
6717
6718
6719 enablestring=
6720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6721echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6722 no_cache=0
6723 # Check whether --enable-printarch or --disable-printarch was given.
6724if test "${enable_printarch+set}" = set; then
6725 enableval="$enable_printarch"
6726
6727 if test "$enableval" = yes; then
6728 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6729 else
6730 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6731 fi
6732
6733else
6734
6735 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6736 if test "x$LINE" != x ; then
6737 eval "DEFAULT_$LINE"
6738 else
6739 no_cache=1
6740 fi
6741
6742 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6743
6744fi;
6745
6746 eval "$ac_cv_use_printarch"
6747 if test "$no_cache" != 1; then
6748 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6749 fi
6750
6751 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6752 echo "$as_me:$LINENO: result: yes" >&5
6753echo "${ECHO_T}yes" >&6
6754 else
6755 echo "$as_me:$LINENO: result: no" >&5
6756echo "${ECHO_T}no" >&6
6757 fi
6758
6759
6760 enablestring=
6761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6762echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6763 no_cache=0
6764 # Check whether --enable-mdi or --disable-mdi was given.
6765if test "${enable_mdi+set}" = set; then
6766 enableval="$enable_mdi"
6767
6768 if test "$enableval" = yes; then
8a7b1113 6769 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6770 else
8a7b1113 6771 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6772 fi
6773
6774else
6775
8a7b1113 6776 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6777 if test "x$LINE" != x ; then
6778 eval "DEFAULT_$LINE"
6779 else
6780 no_cache=1
6781 fi
6782
8a7b1113 6783 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6784
6785fi;
6786
6787 eval "$ac_cv_use_mdi"
6788 if test "$no_cache" != 1; then
6789 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6790 fi
6791
8a7b1113
VZ
6792 if test "$wxUSE_MDI" = yes; then
6793 echo "$as_me:$LINENO: result: yes" >&5
6794echo "${ECHO_T}yes" >&6
6795 else
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
6798 fi
6799
6800
6801 enablestring=
6802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6803echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6804 no_cache=0
6805 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6806if test "${enable_mdidoc+set}" = set; then
6807 enableval="$enable_mdidoc"
6808
6809 if test "$enableval" = yes; then
6810 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6811 else
6812 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6813 fi
6814
6815else
6816
6817 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6818 if test "x$LINE" != x ; then
6819 eval "DEFAULT_$LINE"
6820 else
6821 no_cache=1
6822 fi
6823
6824 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6825
6826fi;
6827
6828 eval "$ac_cv_use_mdidoc"
6829 if test "$no_cache" != 1; then
6830 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6831 fi
6832
a848cd7e
SC
6833 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6834 echo "$as_me:$LINENO: result: yes" >&5
6835echo "${ECHO_T}yes" >&6
6836 else
6837 echo "$as_me:$LINENO: result: no" >&5
6838echo "${ECHO_T}no" >&6
6839 fi
6840
6841
6842 enablestring=
6843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6844echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6845 no_cache=0
6846 # Check whether --enable-loggui or --disable-loggui was given.
6847if test "${enable_loggui+set}" = set; then
6848 enableval="$enable_loggui"
6849
6850 if test "$enableval" = yes; then
6851 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6852 else
6853 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6854 fi
6855
6856else
6857
6858 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6859 if test "x$LINE" != x ; then
6860 eval "DEFAULT_$LINE"
6861 else
6862 no_cache=1
6863 fi
6864
6865 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6866
6867fi;
6868
6869 eval "$ac_cv_use_loggui"
6870 if test "$no_cache" != 1; then
6871 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6872 fi
6873
6874 if test "$wxUSE_LOGGUI" = yes; then
6875 echo "$as_me:$LINENO: result: yes" >&5
6876echo "${ECHO_T}yes" >&6
6877 else
6878 echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6
6880 fi
6881
6882
6883 enablestring=
6884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6885echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6886 no_cache=0
6887 # Check whether --enable-logwin or --disable-logwin was given.
6888if test "${enable_logwin+set}" = set; then
6889 enableval="$enable_logwin"
6890
6891 if test "$enableval" = yes; then
6892 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6893 else
6894 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6895 fi
6896
6897else
6898
6899 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6900 if test "x$LINE" != x ; then
6901 eval "DEFAULT_$LINE"
6902 else
6903 no_cache=1
6904 fi
6905
6906 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6907
6908fi;
6909
6910 eval "$ac_cv_use_logwin"
6911 if test "$no_cache" != 1; then
6912 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6913 fi
6914
6915 if test "$wxUSE_LOGWINDOW" = yes; then
6916 echo "$as_me:$LINENO: result: yes" >&5
6917echo "${ECHO_T}yes" >&6
6918 else
6919 echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6
6921 fi
6922
6923
6924 enablestring=
6925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6926echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6927 no_cache=0
6928 # Check whether --enable-logdialog or --disable-logdialog was given.
6929if test "${enable_logdialog+set}" = set; then
6930 enableval="$enable_logdialog"
6931
6932 if test "$enableval" = yes; then
6933 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6934 else
6935 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6936 fi
6937
6938else
6939
6940 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6948
6949fi;
6950
6951 eval "$ac_cv_use_logdialog"
6952 if test "$no_cache" != 1; then
6953 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6954 fi
6955
6956 if test "$wxUSE_LOGDIALOG" = yes; then
6957 echo "$as_me:$LINENO: result: yes" >&5
6958echo "${ECHO_T}yes" >&6
6959 else
6960 echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6
6962 fi
6963
6964
646b6ec1
VS
6965 enablestring=
6966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6967echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6968 no_cache=0
6969 # Check whether --enable-webkit or --disable-webkit was given.
6970if test "${enable_webkit+set}" = set; then
6971 enableval="$enable_webkit"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6975 else
6976 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6977 fi
6978
6979else
6980
6981 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6989
6990fi;
6991
6992 eval "$ac_cv_use_webkit"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_WEBKIT" = yes; then
6998 echo "$as_me:$LINENO: result: yes" >&5
6999echo "${ECHO_T}yes" >&6
7000 else
7001 echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6
7003 fi
7004
7005
a848cd7e
SC
7006
7007 enablestring=
7008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7009echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7010 no_cache=0
7011 # Check whether --enable-postscript or --disable-postscript was given.
7012if test "${enable_postscript+set}" = set; then
7013 enableval="$enable_postscript"
7014
7015 if test "$enableval" = yes; then
7016 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7017 else
7018 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7019 fi
7020
7021else
7022
7023 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7024 if test "x$LINE" != x ; then
7025 eval "DEFAULT_$LINE"
7026 else
7027 no_cache=1
7028 fi
7029
7030 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7031
7032fi;
7033
7034 eval "$ac_cv_use_postscript"
7035 if test "$no_cache" != 1; then
7036 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7037 fi
7038
7039 if test "$wxUSE_POSTSCRIPT" = yes; then
7040 echo "$as_me:$LINENO: result: yes" >&5
7041echo "${ECHO_T}yes" >&6
7042 else
7043 echo "$as_me:$LINENO: result: no" >&5
7044echo "${ECHO_T}no" >&6
7045 fi
7046
7047
7048
7049
7050
7051 enablestring=
7052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7053echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7054 no_cache=0
7055 # Check whether --enable-prologio or --disable-prologio was given.
7056if test "${enable_prologio+set}" = set; then
7057 enableval="$enable_prologio"
7058
7059 if test "$enableval" = yes; then
7060 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7061 else
7062 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7063 fi
7064
7065else
7066
7067 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7068 if test "x$LINE" != x ; then
7069 eval "DEFAULT_$LINE"
7070 else
7071 no_cache=1
7072 fi
7073
7074 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7075
7076fi;
7077
7078 eval "$ac_cv_use_prologio"
7079 if test "$no_cache" != 1; then
7080 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7081 fi
7082
7083 if test "$wxUSE_PROLOGIO" = yes; then
7084 echo "$as_me:$LINENO: result: yes" >&5
7085echo "${ECHO_T}yes" >&6
7086 else
7087 echo "$as_me:$LINENO: result: no" >&5
7088echo "${ECHO_T}no" >&6
7089 fi
7090
7091
7092 enablestring=
7093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7094echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7095 no_cache=0
7096 # Check whether --enable-resources or --disable-resources was given.
7097if test "${enable_resources+set}" = set; then
7098 enableval="$enable_resources"
7099
7100 if test "$enableval" = yes; then
7101 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7102 else
7103 ac_cv_use_resources='wxUSE_RESOURCES=no'
7104 fi
7105
7106else
7107
7108 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7109 if test "x$LINE" != x ; then
7110 eval "DEFAULT_$LINE"
7111 else
7112 no_cache=1
7113 fi
7114
7115 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7116
7117fi;
7118
7119 eval "$ac_cv_use_resources"
7120 if test "$no_cache" != 1; then
7121 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7122 fi
7123
7124 if test "$wxUSE_RESOURCES" = yes; then
7125 echo "$as_me:$LINENO: result: yes" >&5
7126echo "${ECHO_T}yes" >&6
7127 else
7128 echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6
7130 fi
7131
7132
7133
7134
7135 enablestring=
7136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7137echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7138 no_cache=0
7139 # Check whether --enable-clipboard or --disable-clipboard was given.
7140if test "${enable_clipboard+set}" = set; then
7141 enableval="$enable_clipboard"
7142
7143 if test "$enableval" = yes; then
7144 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7145 else
7146 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7147 fi
7148
7149else
7150
7151 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7152 if test "x$LINE" != x ; then
7153 eval "DEFAULT_$LINE"
7154 else
7155 no_cache=1
7156 fi
7157
7158 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7159
7160fi;
7161
7162 eval "$ac_cv_use_clipboard"
7163 if test "$no_cache" != 1; then
7164 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7165 fi
7166
7167 if test "$wxUSE_CLIPBOARD" = yes; then
7168 echo "$as_me:$LINENO: result: yes" >&5
7169echo "${ECHO_T}yes" >&6
7170 else
7171 echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6
7173 fi
7174
7175
7176 enablestring=
7177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7178echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7179 no_cache=0
7180 # Check whether --enable-dnd or --disable-dnd was given.
7181if test "${enable_dnd+set}" = set; then
7182 enableval="$enable_dnd"
7183
7184 if test "$enableval" = yes; then
7185 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7186 else
7187 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7188 fi
7189
7190else
7191
7192 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7193 if test "x$LINE" != x ; then
7194 eval "DEFAULT_$LINE"
7195 else
7196 no_cache=1
7197 fi
7198
7199 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7200
7201fi;
7202
7203 eval "$ac_cv_use_dnd"
7204 if test "$no_cache" != 1; then
7205 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7206 fi
7207
7208 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7209 echo "$as_me:$LINENO: result: yes" >&5
7210echo "${ECHO_T}yes" >&6
7211 else
7212 echo "$as_me:$LINENO: result: no" >&5
7213echo "${ECHO_T}no" >&6
7214 fi
7215
7216
7217 enablestring=
7218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7219echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7220 no_cache=0
7221 # Check whether --enable-metafile or --disable-metafile was given.
7222if test "${enable_metafile+set}" = set; then
7223 enableval="$enable_metafile"
7224
7225 if test "$enableval" = yes; then
7226 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7227 else
7228 ac_cv_use_metafile='wxUSE_METAFILE=no'
7229 fi
7230
7231else
7232
7233 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7234 if test "x$LINE" != x ; then
7235 eval "DEFAULT_$LINE"
7236 else
7237 no_cache=1
7238 fi
7239
7240 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7241
7242fi;
7243
7244 eval "$ac_cv_use_metafile"
7245 if test "$no_cache" != 1; then
7246 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7247 fi
7248
7249 if test "$wxUSE_METAFILE" = yes; then
7250 echo "$as_me:$LINENO: result: yes" >&5
7251echo "${ECHO_T}yes" >&6
7252 else
7253 echo "$as_me:$LINENO: result: no" >&5
7254echo "${ECHO_T}no" >&6
7255 fi
7256
7257
7258
7259
7260
7261 enablestring=
7262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7263echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7264 no_cache=0
7265 # Check whether --enable-controls or --disable-controls was given.
7266if test "${enable_controls+set}" = set; then
7267 enableval="$enable_controls"
7268
7269 if test "$enableval" = yes; then
7270 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7271 else
7272 ac_cv_use_controls='wxUSE_CONTROLS=no'
7273 fi
7274
7275else
7276
7277 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7278 if test "x$LINE" != x ; then
7279 eval "DEFAULT_$LINE"
7280 else
7281 no_cache=1
7282 fi
7283
7284 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7285
7286fi;
7287
7288 eval "$ac_cv_use_controls"
7289 if test "$no_cache" != 1; then
7290 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7291 fi
7292
7293 if test "$wxUSE_CONTROLS" = yes; then
7294 echo "$as_me:$LINENO: result: yes" >&5
7295echo "${ECHO_T}yes" >&6
7296 else
7297 echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6
7299 fi
7300
7301
7302if test "$wxUSE_CONTROLS" = "yes"; then
7303 DEFAULT_wxUSE_ACCEL=yes
7304 DEFAULT_wxUSE_BMPBUTTON=yes
7305 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7306 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7307 DEFAULT_wxUSE_CARET=yes
7308 DEFAULT_wxUSE_COMBOBOX=yes
7309 DEFAULT_wxUSE_CHECKBOX=yes
7310 DEFAULT_wxUSE_CHECKLISTBOX=yes
7311 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7312 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7313 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7314 DEFAULT_wxUSE_GAUGE=yes
7315 DEFAULT_wxUSE_GRID=yes
7316 DEFAULT_wxUSE_IMAGLIST=yes
7317 DEFAULT_wxUSE_LISTBOOK=yes
7318 DEFAULT_wxUSE_LISTBOX=yes
7319 DEFAULT_wxUSE_LISTCTRL=yes
7320 DEFAULT_wxUSE_NOTEBOOK=yes
7321 DEFAULT_wxUSE_RADIOBOX=yes
7322 DEFAULT_wxUSE_RADIOBTN=yes
7323 DEFAULT_wxUSE_SASH=yes
7324 DEFAULT_wxUSE_SCROLLBAR=yes
7325 DEFAULT_wxUSE_SLIDER=yes
7326 DEFAULT_wxUSE_SPINBTN=yes
7327 DEFAULT_wxUSE_SPINCTRL=yes
7328 DEFAULT_wxUSE_SPLITTER=yes
7329 DEFAULT_wxUSE_STATBMP=yes
7330 DEFAULT_wxUSE_STATBOX=yes
7331 DEFAULT_wxUSE_STATLINE=yes
7332 DEFAULT_wxUSE_STATUSBAR=yes
7333 DEFAULT_wxUSE_TAB_DIALOG=yes
7334 DEFAULT_wxUSE_TOGGLEBTN=yes
7335 DEFAULT_wxUSE_TOOLBAR=yes
7336 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7337 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7338 DEFAULT_wxUSE_TOOLTIPS=yes
7339 DEFAULT_wxUSE_TREECTRL=yes
7340 DEFAULT_wxUSE_POPUPWIN=yes
7341 DEFAULT_wxUSE_TIPWINDOW=yes
7342elif test "$wxUSE_CONTROLS" = "no"; then
7343 DEFAULT_wxUSE_ACCEL=no
7344 DEFAULT_wxUSE_BMPBUTTON=no
7345 DEFAULT_wxUSE_BUTTON=no
7346 DEFAULT_wxUSE_CALCTRL=no
7347 DEFAULT_wxUSE_CARET=no
7348 DEFAULT_wxUSE_COMBOBOX=no
7349 DEFAULT_wxUSE_CHECKBOX=no
7350 DEFAULT_wxUSE_CHECKLISTBOX=no
7351 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7352 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7353 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7354 DEFAULT_wxUSE_GAUGE=no
7355 DEFAULT_wxUSE_GRID=no
7356 DEFAULT_wxUSE_IMAGLIST=no
7357 DEFAULT_wxUSE_LISTBOOK=no
7358 DEFAULT_wxUSE_LISTBOX=no
7359 DEFAULT_wxUSE_LISTCTRL=no
7360 DEFAULT_wxUSE_NOTEBOOK=no
7361 DEFAULT_wxUSE_RADIOBOX=no
7362 DEFAULT_wxUSE_RADIOBTN=no
7363 DEFAULT_wxUSE_SASH=no
7364 DEFAULT_wxUSE_SCROLLBAR=no
7365 DEFAULT_wxUSE_SLIDER=no
7366 DEFAULT_wxUSE_SPINBTN=no
7367 DEFAULT_wxUSE_SPINCTRL=no
7368 DEFAULT_wxUSE_SPLITTER=no
7369 DEFAULT_wxUSE_STATBMP=no
7370 DEFAULT_wxUSE_STATBOX=no
7371 DEFAULT_wxUSE_STATLINE=no
7372 DEFAULT_wxUSE_STATUSBAR=no
7373 DEFAULT_wxUSE_TAB_DIALOG=no
7374 DEFAULT_wxUSE_TOGGLEBTN=no
7375 DEFAULT_wxUSE_TOOLBAR=no
7376 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7377 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7378 DEFAULT_wxUSE_TOOLTIPS=no
7379 DEFAULT_wxUSE_TREECTRL=no
7380 DEFAULT_wxUSE_POPUPWIN=no
7381 DEFAULT_wxUSE_TIPWINDOW=no
7382fi
7383
a848cd7e
SC
7384
7385 enablestring=
7386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7387echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7388 no_cache=0
7389 # Check whether --enable-accel or --disable-accel was given.
7390if test "${enable_accel+set}" = set; then
7391 enableval="$enable_accel"
7392
7393 if test "$enableval" = yes; then
7394 ac_cv_use_accel='wxUSE_ACCEL=yes'
7395 else
7396 ac_cv_use_accel='wxUSE_ACCEL=no'
7397 fi
7398
7399else
7400
7401 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7402 if test "x$LINE" != x ; then
7403 eval "DEFAULT_$LINE"
7404 else
7405 no_cache=1
7406 fi
7407
7408 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7409
7410fi;
7411
7412 eval "$ac_cv_use_accel"
7413 if test "$no_cache" != 1; then
7414 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7415 fi
7416
7417 if test "$wxUSE_ACCEL" = yes; then
7418 echo "$as_me:$LINENO: result: yes" >&5
7419echo "${ECHO_T}yes" >&6
7420 else
7421 echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6
7423 fi
7424
7425
7426 enablestring=
7427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7428echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7429 no_cache=0
7430 # Check whether --enable-button or --disable-button was given.
7431if test "${enable_button+set}" = set; then
7432 enableval="$enable_button"
7433
7434 if test "$enableval" = yes; then
7435 ac_cv_use_button='wxUSE_BUTTON=yes'
7436 else
7437 ac_cv_use_button='wxUSE_BUTTON=no'
7438 fi
7439
7440else
7441
7442 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7443 if test "x$LINE" != x ; then
7444 eval "DEFAULT_$LINE"
7445 else
7446 no_cache=1
7447 fi
7448
7449 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7450
7451fi;
7452
7453 eval "$ac_cv_use_button"
7454 if test "$no_cache" != 1; then
7455 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7456 fi
7457
7458 if test "$wxUSE_BUTTON" = yes; then
7459 echo "$as_me:$LINENO: result: yes" >&5
7460echo "${ECHO_T}yes" >&6
7461 else
7462 echo "$as_me:$LINENO: result: no" >&5
7463echo "${ECHO_T}no" >&6
7464 fi
7465
7466
7467 enablestring=
7468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7469echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7470 no_cache=0
7471 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7472if test "${enable_bmpbutton+set}" = set; then
7473 enableval="$enable_bmpbutton"
7474
7475 if test "$enableval" = yes; then
7476 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7477 else
7478 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7479 fi
7480
7481else
7482
7483 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7484 if test "x$LINE" != x ; then
7485 eval "DEFAULT_$LINE"
7486 else
7487 no_cache=1
7488 fi
7489
7490 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7491
7492fi;
7493
7494 eval "$ac_cv_use_bmpbutton"
7495 if test "$no_cache" != 1; then
7496 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7497 fi
7498
7499 if test "$wxUSE_BMPBUTTON" = yes; then
7500 echo "$as_me:$LINENO: result: yes" >&5
7501echo "${ECHO_T}yes" >&6
7502 else
7503 echo "$as_me:$LINENO: result: no" >&5
7504echo "${ECHO_T}no" >&6
7505 fi
7506
7507
7508 enablestring=
7509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7510echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7511 no_cache=0
7512 # Check whether --enable-calendar or --disable-calendar was given.
7513if test "${enable_calendar+set}" = set; then
7514 enableval="$enable_calendar"
7515
7516 if test "$enableval" = yes; then
7517 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7518 else
7519 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7520 fi
7521
7522else
7523
7524 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7525 if test "x$LINE" != x ; then
7526 eval "DEFAULT_$LINE"
7527 else
7528 no_cache=1
7529 fi
7530
7531 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7532
7533fi;
7534
7535 eval "$ac_cv_use_calendar"
7536 if test "$no_cache" != 1; then
7537 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7538 fi
7539
7540 if test "$wxUSE_CALCTRL" = yes; then
7541 echo "$as_me:$LINENO: result: yes" >&5
7542echo "${ECHO_T}yes" >&6
7543 else
7544 echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6
7546 fi
7547
7548
7549 enablestring=
7550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7551echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7552 no_cache=0
7553 # Check whether --enable-caret or --disable-caret was given.
7554if test "${enable_caret+set}" = set; then
7555 enableval="$enable_caret"
7556
7557 if test "$enableval" = yes; then
7558 ac_cv_use_caret='wxUSE_CARET=yes'
7559 else
7560 ac_cv_use_caret='wxUSE_CARET=no'
7561 fi
7562
7563else
7564
7565 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7566 if test "x$LINE" != x ; then
7567 eval "DEFAULT_$LINE"
7568 else
7569 no_cache=1
7570 fi
7571
7572 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7573
7574fi;
7575
7576 eval "$ac_cv_use_caret"
7577 if test "$no_cache" != 1; then
7578 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7579 fi
7580
7581 if test "$wxUSE_CARET" = yes; then
7582 echo "$as_me:$LINENO: result: yes" >&5
7583echo "${ECHO_T}yes" >&6
7584 else
7585 echo "$as_me:$LINENO: result: no" >&5
7586echo "${ECHO_T}no" >&6
7587 fi
7588
7589
7590 enablestring=
7591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7592echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7593 no_cache=0
7594 # Check whether --enable-checkbox or --disable-checkbox was given.
7595if test "${enable_checkbox+set}" = set; then
7596 enableval="$enable_checkbox"
7597
7598 if test "$enableval" = yes; then
7599 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7600 else
7601 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7602 fi
7603
7604else
7605
7606 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7607 if test "x$LINE" != x ; then
7608 eval "DEFAULT_$LINE"
7609 else
7610 no_cache=1
7611 fi
7612
7613 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7614
7615fi;
7616
7617 eval "$ac_cv_use_checkbox"
7618 if test "$no_cache" != 1; then
7619 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7620 fi
7621
7622 if test "$wxUSE_CHECKBOX" = yes; then
7623 echo "$as_me:$LINENO: result: yes" >&5
7624echo "${ECHO_T}yes" >&6
7625 else
7626 echo "$as_me:$LINENO: result: no" >&5
7627echo "${ECHO_T}no" >&6
7628 fi
7629
7630
7631 enablestring=
7632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7633echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7634 no_cache=0
7635 # Check whether --enable-checklst or --disable-checklst was given.
7636if test "${enable_checklst+set}" = set; then
7637 enableval="$enable_checklst"
7638
7639 if test "$enableval" = yes; then
7640 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7641 else
7642 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7643 fi
7644
7645else
7646
7647 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7648 if test "x$LINE" != x ; then
7649 eval "DEFAULT_$LINE"
7650 else
7651 no_cache=1
7652 fi
7653
7654 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7655
7656fi;
7657
7658 eval "$ac_cv_use_checklst"
7659 if test "$no_cache" != 1; then
7660 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7661 fi
7662
7663 if test "$wxUSE_CHECKLST" = yes; then
7664 echo "$as_me:$LINENO: result: yes" >&5
7665echo "${ECHO_T}yes" >&6
7666 else
7667 echo "$as_me:$LINENO: result: no" >&5
7668echo "${ECHO_T}no" >&6
7669 fi
7670
7671
7672 enablestring=
7673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7674echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7675 no_cache=0
7676 # Check whether --enable-choice or --disable-choice was given.
7677if test "${enable_choice+set}" = set; then
7678 enableval="$enable_choice"
7679
7680 if test "$enableval" = yes; then
7681 ac_cv_use_choice='wxUSE_CHOICE=yes'
7682 else
7683 ac_cv_use_choice='wxUSE_CHOICE=no'
7684 fi
7685
7686else
7687
7688 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7689 if test "x$LINE" != x ; then
7690 eval "DEFAULT_$LINE"
7691 else
7692 no_cache=1
7693 fi
7694
7695 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7696
7697fi;
7698
7699 eval "$ac_cv_use_choice"
7700 if test "$no_cache" != 1; then
7701 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7702 fi
7703
7704 if test "$wxUSE_CHOICE" = yes; then
7705 echo "$as_me:$LINENO: result: yes" >&5
7706echo "${ECHO_T}yes" >&6
7707 else
7708 echo "$as_me:$LINENO: result: no" >&5
7709echo "${ECHO_T}no" >&6
7710 fi
7711
7712
92bbdbcd
WS
7713 enablestring=
7714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7715echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7716 no_cache=0
7717 # Check whether --enable-choicebook or --disable-choicebook was given.
7718if test "${enable_choicebook+set}" = set; then
7719 enableval="$enable_choicebook"
7720
7721 if test "$enableval" = yes; then
7722 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7723 else
7724 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7725 fi
7726
7727else
7728
7729 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7730 if test "x$LINE" != x ; then
7731 eval "DEFAULT_$LINE"
7732 else
7733 no_cache=1
7734 fi
7735
7736 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7737
7738fi;
7739
7740 eval "$ac_cv_use_choicebook"
7741 if test "$no_cache" != 1; then
7742 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7743 fi
7744
7745 if test "$wxUSE_CHOICEBOOK" = yes; then
7746 echo "$as_me:$LINENO: result: yes" >&5
7747echo "${ECHO_T}yes" >&6
7748 else
7749 echo "$as_me:$LINENO: result: no" >&5
7750echo "${ECHO_T}no" >&6
7751 fi
7752
7753
a848cd7e
SC
7754 enablestring=
7755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7756echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7757 no_cache=0
7758 # Check whether --enable-combobox or --disable-combobox was given.
7759if test "${enable_combobox+set}" = set; then
7760 enableval="$enable_combobox"
7761
7762 if test "$enableval" = yes; then
7763 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7764 else
7765 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7766 fi
7767
7768else
7769
7770 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7771 if test "x$LINE" != x ; then
7772 eval "DEFAULT_$LINE"
7773 else
7774 no_cache=1
7775 fi
7776
7777 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7778
7779fi;
7780
7781 eval "$ac_cv_use_combobox"
7782 if test "$no_cache" != 1; then
7783 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7784 fi
7785
7786 if test "$wxUSE_COMBOBOX" = yes; then
7787 echo "$as_me:$LINENO: result: yes" >&5
7788echo "${ECHO_T}yes" >&6
7789 else
7790 echo "$as_me:$LINENO: result: no" >&5
7791echo "${ECHO_T}no" >&6
7792 fi
7793
7794
da98e9be
VZ
7795 enablestring=
7796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7797echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7798 no_cache=0
7799 # Check whether --enable-datepick or --disable-datepick was given.
7800if test "${enable_datepick+set}" = set; then
7801 enableval="$enable_datepick"
7802
7803 if test "$enableval" = yes; then
7804 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7805 else
7806 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7807 fi
7808
7809else
7810
7811 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7812 if test "x$LINE" != x ; then
7813 eval "DEFAULT_$LINE"
7814 else
7815 no_cache=1
7816 fi
7817
7818 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7819
7820fi;
7821
7822 eval "$ac_cv_use_datepick"
7823 if test "$no_cache" != 1; then
7824 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7825 fi
7826
7827 if test "$wxUSE_DATEPICKCTRL" = yes; then
7828 echo "$as_me:$LINENO: result: yes" >&5
7829echo "${ECHO_T}yes" >&6
7830 else
7831 echo "$as_me:$LINENO: result: no" >&5
7832echo "${ECHO_T}no" >&6
7833 fi
7834
7835
a848cd7e
SC
7836 enablestring=
7837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7838echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7839 no_cache=0
7840 # Check whether --enable-display or --disable-display was given.
7841if test "${enable_display+set}" = set; then
7842 enableval="$enable_display"
7843
7844 if test "$enableval" = yes; then
7845 ac_cv_use_display='wxUSE_DISPLAY=yes'
7846 else
7847 ac_cv_use_display='wxUSE_DISPLAY=no'
7848 fi
7849
7850else
7851
7852 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7853 if test "x$LINE" != x ; then
7854 eval "DEFAULT_$LINE"
7855 else
7856 no_cache=1
7857 fi
7858
7859 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7860
7861fi;
7862
7863 eval "$ac_cv_use_display"
7864 if test "$no_cache" != 1; then
7865 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7866 fi
7867
7868 if test "$wxUSE_DISPLAY" = yes; then
7869 echo "$as_me:$LINENO: result: yes" >&5
7870echo "${ECHO_T}yes" >&6
7871 else
7872 echo "$as_me:$LINENO: result: no" >&5
7873echo "${ECHO_T}no" >&6
7874 fi
7875
7876
7877 enablestring=
7878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7879echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7880 no_cache=0
7881 # Check whether --enable-gauge or --disable-gauge was given.
7882if test "${enable_gauge+set}" = set; then
7883 enableval="$enable_gauge"
7884
7885 if test "$enableval" = yes; then
7886 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7887 else
7888 ac_cv_use_gauge='wxUSE_GAUGE=no'
7889 fi
7890
7891else
7892
7893 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7894 if test "x$LINE" != x ; then
7895 eval "DEFAULT_$LINE"
7896 else
7897 no_cache=1
7898 fi
7899
7900 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7901
7902fi;
7903
7904 eval "$ac_cv_use_gauge"
7905 if test "$no_cache" != 1; then
7906 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7907 fi
7908
7909 if test "$wxUSE_GAUGE" = yes; then
7910 echo "$as_me:$LINENO: result: yes" >&5
7911echo "${ECHO_T}yes" >&6
7912 else
7913 echo "$as_me:$LINENO: result: no" >&5
7914echo "${ECHO_T}no" >&6
7915 fi
7916
7917
7918 enablestring=
7919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7920echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7921 no_cache=0
7922 # Check whether --enable-grid or --disable-grid was given.
7923if test "${enable_grid+set}" = set; then
7924 enableval="$enable_grid"
7925
7926 if test "$enableval" = yes; then
7927 ac_cv_use_grid='wxUSE_GRID=yes'
7928 else
7929 ac_cv_use_grid='wxUSE_GRID=no'
7930 fi
7931
7932else
7933
7934 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7935 if test "x$LINE" != x ; then
7936 eval "DEFAULT_$LINE"
7937 else
7938 no_cache=1
7939 fi
7940
7941 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7942
7943fi;
7944
7945 eval "$ac_cv_use_grid"
7946 if test "$no_cache" != 1; then
7947 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7948 fi
7949
7950 if test "$wxUSE_GRID" = yes; then
7951 echo "$as_me:$LINENO: result: yes" >&5
7952echo "${ECHO_T}yes" >&6
7953 else
7954 echo "$as_me:$LINENO: result: no" >&5
7955echo "${ECHO_T}no" >&6
7956 fi
7957
7958
7959 enablestring=
7960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7961echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7962 no_cache=0
7963 # Check whether --enable-imaglist or --disable-imaglist was given.
7964if test "${enable_imaglist+set}" = set; then
7965 enableval="$enable_imaglist"
7966
7967 if test "$enableval" = yes; then
7968 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7969 else
7970 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7971 fi
7972
7973else
7974
7975 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7976 if test "x$LINE" != x ; then
7977 eval "DEFAULT_$LINE"
7978 else
7979 no_cache=1
7980 fi
7981
7982 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7983
7984fi;
7985
7986 eval "$ac_cv_use_imaglist"
7987 if test "$no_cache" != 1; then
7988 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7989 fi
7990
7991 if test "$wxUSE_IMAGLIST" = yes; then
7992 echo "$as_me:$LINENO: result: yes" >&5
7993echo "${ECHO_T}yes" >&6
7994 else
7995 echo "$as_me:$LINENO: result: no" >&5
7996echo "${ECHO_T}no" >&6
7997 fi
7998
7999
8000 enablestring=
8001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8002echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8003 no_cache=0
8004 # Check whether --enable-listbook or --disable-listbook was given.
8005if test "${enable_listbook+set}" = set; then
8006 enableval="$enable_listbook"
8007
8008 if test "$enableval" = yes; then
8009 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8010 else
8011 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8012 fi
8013
8014else
8015
8016 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8017 if test "x$LINE" != x ; then
8018 eval "DEFAULT_$LINE"
8019 else
8020 no_cache=1
8021 fi
8022
8023 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8024
8025fi;
8026
8027 eval "$ac_cv_use_listbook"
8028 if test "$no_cache" != 1; then
8029 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8030 fi
8031
8032 if test "$wxUSE_LISTBOOK" = yes; then
8033 echo "$as_me:$LINENO: result: yes" >&5
8034echo "${ECHO_T}yes" >&6
8035 else
8036 echo "$as_me:$LINENO: result: no" >&5
8037echo "${ECHO_T}no" >&6
8038 fi
8039
8040
8041 enablestring=
8042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8043echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8044 no_cache=0
8045 # Check whether --enable-listbox or --disable-listbox was given.
8046if test "${enable_listbox+set}" = set; then
8047 enableval="$enable_listbox"
8048
8049 if test "$enableval" = yes; then
8050 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8051 else
8052 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8053 fi
8054
8055else
8056
8057 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8058 if test "x$LINE" != x ; then
8059 eval "DEFAULT_$LINE"
8060 else
8061 no_cache=1
8062 fi
8063
8064 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8065
8066fi;
8067
8068 eval "$ac_cv_use_listbox"
8069 if test "$no_cache" != 1; then
8070 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8071 fi
8072
8073 if test "$wxUSE_LISTBOX" = yes; then
8074 echo "$as_me:$LINENO: result: yes" >&5
8075echo "${ECHO_T}yes" >&6
8076 else
8077 echo "$as_me:$LINENO: result: no" >&5
8078echo "${ECHO_T}no" >&6
8079 fi
8080
8081
8082 enablestring=
8083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8084echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8085 no_cache=0
8086 # Check whether --enable-listctrl or --disable-listctrl was given.
8087if test "${enable_listctrl+set}" = set; then
8088 enableval="$enable_listctrl"
8089
8090 if test "$enableval" = yes; then
8091 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8092 else
8093 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8094 fi
8095
8096else
8097
8098 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8099 if test "x$LINE" != x ; then
8100 eval "DEFAULT_$LINE"
8101 else
8102 no_cache=1
8103 fi
8104
8105 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8106
8107fi;
8108
8109 eval "$ac_cv_use_listctrl"
8110 if test "$no_cache" != 1; then
8111 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8112 fi
8113
8114 if test "$wxUSE_LISTCTRL" = yes; then
8115 echo "$as_me:$LINENO: result: yes" >&5
8116echo "${ECHO_T}yes" >&6
8117 else
8118 echo "$as_me:$LINENO: result: no" >&5
8119echo "${ECHO_T}no" >&6
8120 fi
8121
8122
8123 enablestring=
8124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8125echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8126 no_cache=0
8127 # Check whether --enable-notebook or --disable-notebook was given.
8128if test "${enable_notebook+set}" = set; then
8129 enableval="$enable_notebook"
8130
8131 if test "$enableval" = yes; then
8132 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8133 else
8134 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8135 fi
8136
8137else
8138
8139 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8140 if test "x$LINE" != x ; then
8141 eval "DEFAULT_$LINE"
8142 else
8143 no_cache=1
8144 fi
8145
8146 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8147
8148fi;
8149
8150 eval "$ac_cv_use_notebook"
8151 if test "$no_cache" != 1; then
8152 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8153 fi
8154
8155 if test "$wxUSE_NOTEBOOK" = yes; then
8156 echo "$as_me:$LINENO: result: yes" >&5
8157echo "${ECHO_T}yes" >&6
8158 else
8159 echo "$as_me:$LINENO: result: no" >&5
8160echo "${ECHO_T}no" >&6
8161 fi
8162
8163
8164 enablestring=
8165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8166echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8167 no_cache=0
8168 # Check whether --enable-radiobox or --disable-radiobox was given.
8169if test "${enable_radiobox+set}" = set; then
8170 enableval="$enable_radiobox"
8171
8172 if test "$enableval" = yes; then
8173 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8174 else
8175 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8176 fi
8177
8178else
8179
8180 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8181 if test "x$LINE" != x ; then
8182 eval "DEFAULT_$LINE"
8183 else
8184 no_cache=1
8185 fi
8186
8187 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8188
8189fi;
8190
8191 eval "$ac_cv_use_radiobox"
8192 if test "$no_cache" != 1; then
8193 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8194 fi
8195
8196 if test "$wxUSE_RADIOBOX" = yes; then
8197 echo "$as_me:$LINENO: result: yes" >&5
8198echo "${ECHO_T}yes" >&6
8199 else
8200 echo "$as_me:$LINENO: result: no" >&5
8201echo "${ECHO_T}no" >&6
8202 fi
8203
8204
8205 enablestring=
8206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8207echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8208 no_cache=0
8209 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8210if test "${enable_radiobtn+set}" = set; then
8211 enableval="$enable_radiobtn"
8212
8213 if test "$enableval" = yes; then
8214 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8215 else
8216 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8217 fi
8218
8219else
8220
8221 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8222 if test "x$LINE" != x ; then
8223 eval "DEFAULT_$LINE"
8224 else
8225 no_cache=1
8226 fi
8227
8228 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8229
8230fi;
8231
8232 eval "$ac_cv_use_radiobtn"
8233 if test "$no_cache" != 1; then
8234 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8235 fi
8236
8237 if test "$wxUSE_RADIOBTN" = yes; then
8238 echo "$as_me:$LINENO: result: yes" >&5
8239echo "${ECHO_T}yes" >&6
8240 else
8241 echo "$as_me:$LINENO: result: no" >&5
8242echo "${ECHO_T}no" >&6
8243 fi
8244
8245
8246 enablestring=
8247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8248echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8249 no_cache=0
8250 # Check whether --enable-sash or --disable-sash was given.
8251if test "${enable_sash+set}" = set; then
8252 enableval="$enable_sash"
8253
8254 if test "$enableval" = yes; then
8255 ac_cv_use_sash='wxUSE_SASH=yes'
8256 else
8257 ac_cv_use_sash='wxUSE_SASH=no'
8258 fi
8259
8260else
8261
8262 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8263 if test "x$LINE" != x ; then
8264 eval "DEFAULT_$LINE"
8265 else
8266 no_cache=1
8267 fi
8268
8269 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8270
8271fi;
8272
8273 eval "$ac_cv_use_sash"
8274 if test "$no_cache" != 1; then
8275 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8276 fi
8277
8278 if test "$wxUSE_SASH" = yes; then
8279 echo "$as_me:$LINENO: result: yes" >&5
8280echo "${ECHO_T}yes" >&6
8281 else
8282 echo "$as_me:$LINENO: result: no" >&5
8283echo "${ECHO_T}no" >&6
8284 fi
8285
8286
8287 enablestring=
8288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8289echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8290 no_cache=0
8291 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8292if test "${enable_scrollbar+set}" = set; then
8293 enableval="$enable_scrollbar"
8294
8295 if test "$enableval" = yes; then
8296 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8297 else
8298 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8299 fi
8300
8301else
8302
8303 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8304 if test "x$LINE" != x ; then
8305 eval "DEFAULT_$LINE"
8306 else
8307 no_cache=1
8308 fi
8309
8310 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8311
8312fi;
8313
8314 eval "$ac_cv_use_scrollbar"
8315 if test "$no_cache" != 1; then
8316 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8317 fi
8318
8319 if test "$wxUSE_SCROLLBAR" = yes; then
8320 echo "$as_me:$LINENO: result: yes" >&5
8321echo "${ECHO_T}yes" >&6
8322 else
8323 echo "$as_me:$LINENO: result: no" >&5
8324echo "${ECHO_T}no" >&6
8325 fi
8326
8327
8328 enablestring=
8329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8330echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8331 no_cache=0
8332 # Check whether --enable-slider or --disable-slider was given.
8333if test "${enable_slider+set}" = set; then
8334 enableval="$enable_slider"
8335
8336 if test "$enableval" = yes; then
8337 ac_cv_use_slider='wxUSE_SLIDER=yes'
8338 else
8339 ac_cv_use_slider='wxUSE_SLIDER=no'
8340 fi
8341
8342else
8343
8344 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8345 if test "x$LINE" != x ; then
8346 eval "DEFAULT_$LINE"
8347 else
8348 no_cache=1
8349 fi
8350
8351 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8352
8353fi;
8354
8355 eval "$ac_cv_use_slider"
8356 if test "$no_cache" != 1; then
8357 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8358 fi
8359
8360 if test "$wxUSE_SLIDER" = yes; then
8361 echo "$as_me:$LINENO: result: yes" >&5
8362echo "${ECHO_T}yes" >&6
8363 else
8364 echo "$as_me:$LINENO: result: no" >&5
8365echo "${ECHO_T}no" >&6
8366 fi
8367
8368
8369 enablestring=
8370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8371echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8372 no_cache=0
8373 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8374if test "${enable_spinbtn+set}" = set; then
8375 enableval="$enable_spinbtn"
8376
8377 if test "$enableval" = yes; then
8378 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8379 else
8380 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8381 fi
8382
8383else
8384
8385 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8386 if test "x$LINE" != x ; then
8387 eval "DEFAULT_$LINE"
8388 else
8389 no_cache=1
8390 fi
8391
8392 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8393
8394fi;
8395
8396 eval "$ac_cv_use_spinbtn"
8397 if test "$no_cache" != 1; then
8398 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8399 fi
8400
8401 if test "$wxUSE_SPINBTN" = yes; then
8402 echo "$as_me:$LINENO: result: yes" >&5
8403echo "${ECHO_T}yes" >&6
8404 else
8405 echo "$as_me:$LINENO: result: no" >&5
8406echo "${ECHO_T}no" >&6
8407 fi
8408
8409
8410 enablestring=
8411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8412echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8413 no_cache=0
8414 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8415if test "${enable_spinctrl+set}" = set; then
8416 enableval="$enable_spinctrl"
8417
8418 if test "$enableval" = yes; then
8419 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8420 else
8421 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8422 fi
8423
8424else
8425
8426 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8427 if test "x$LINE" != x ; then
8428 eval "DEFAULT_$LINE"
8429 else
8430 no_cache=1
8431 fi
8432
8433 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8434
8435fi;
8436
8437 eval "$ac_cv_use_spinctrl"
8438 if test "$no_cache" != 1; then
8439 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8440 fi
8441
8442 if test "$wxUSE_SPINCTRL" = yes; then
8443 echo "$as_me:$LINENO: result: yes" >&5
8444echo "${ECHO_T}yes" >&6
8445 else
8446 echo "$as_me:$LINENO: result: no" >&5
8447echo "${ECHO_T}no" >&6
8448 fi
8449
8450
8451 enablestring=
8452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8453echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8454 no_cache=0
8455 # Check whether --enable-splitter or --disable-splitter was given.
8456if test "${enable_splitter+set}" = set; then
8457 enableval="$enable_splitter"
8458
8459 if test "$enableval" = yes; then
8460 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8461 else
8462 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8463 fi
8464
8465else
8466
8467 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8468 if test "x$LINE" != x ; then
8469 eval "DEFAULT_$LINE"
8470 else
8471 no_cache=1
8472 fi
8473
8474 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8475
8476fi;
8477
8478 eval "$ac_cv_use_splitter"
8479 if test "$no_cache" != 1; then
8480 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8481 fi
8482
8483 if test "$wxUSE_SPLITTER" = yes; then
8484 echo "$as_me:$LINENO: result: yes" >&5
8485echo "${ECHO_T}yes" >&6
8486 else
8487 echo "$as_me:$LINENO: result: no" >&5
8488echo "${ECHO_T}no" >&6
8489 fi
8490
8491
8492 enablestring=
8493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8494echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8495 no_cache=0
8496 # Check whether --enable-statbmp or --disable-statbmp was given.
8497if test "${enable_statbmp+set}" = set; then
8498 enableval="$enable_statbmp"
8499
8500 if test "$enableval" = yes; then
8501 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8502 else
8503 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8504 fi
8505
8506else
8507
8508 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8509 if test "x$LINE" != x ; then
8510 eval "DEFAULT_$LINE"
8511 else
8512 no_cache=1
8513 fi
8514
8515 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8516
8517fi;
8518
8519 eval "$ac_cv_use_statbmp"
8520 if test "$no_cache" != 1; then
8521 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8522 fi
8523
8524 if test "$wxUSE_STATBMP" = yes; then
8525 echo "$as_me:$LINENO: result: yes" >&5
8526echo "${ECHO_T}yes" >&6
8527 else
8528 echo "$as_me:$LINENO: result: no" >&5
8529echo "${ECHO_T}no" >&6
8530 fi
8531
8532
8533 enablestring=
8534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8535echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8536 no_cache=0
8537 # Check whether --enable-statbox or --disable-statbox was given.
8538if test "${enable_statbox+set}" = set; then
8539 enableval="$enable_statbox"
8540
8541 if test "$enableval" = yes; then
8542 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8543 else
8544 ac_cv_use_statbox='wxUSE_STATBOX=no'
8545 fi
8546
8547else
8548
8549 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8550 if test "x$LINE" != x ; then
8551 eval "DEFAULT_$LINE"
8552 else
8553 no_cache=1
8554 fi
8555
8556 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8557
8558fi;
8559
8560 eval "$ac_cv_use_statbox"
8561 if test "$no_cache" != 1; then
8562 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8563 fi
8564
8565 if test "$wxUSE_STATBOX" = yes; then
8566 echo "$as_me:$LINENO: result: yes" >&5
8567echo "${ECHO_T}yes" >&6
8568 else
8569 echo "$as_me:$LINENO: result: no" >&5
8570echo "${ECHO_T}no" >&6
8571 fi
8572
8573
8574 enablestring=
8575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8576echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8577 no_cache=0
8578 # Check whether --enable-statline or --disable-statline was given.
8579if test "${enable_statline+set}" = set; then
8580 enableval="$enable_statline"
8581
8582 if test "$enableval" = yes; then
8583 ac_cv_use_statline='wxUSE_STATLINE=yes'
8584 else
8585 ac_cv_use_statline='wxUSE_STATLINE=no'
8586 fi
8587
8588else
8589
8590 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8591 if test "x$LINE" != x ; then
8592 eval "DEFAULT_$LINE"
8593 else
8594 no_cache=1
8595 fi
8596
8597 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8598
8599fi;
8600
8601 eval "$ac_cv_use_statline"
8602 if test "$no_cache" != 1; then
8603 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8604 fi
8605
8606 if test "$wxUSE_STATLINE" = yes; then
8607 echo "$as_me:$LINENO: result: yes" >&5
8608echo "${ECHO_T}yes" >&6
8609 else
8610 echo "$as_me:$LINENO: result: no" >&5
8611echo "${ECHO_T}no" >&6
8612 fi
8613
8614
8615 enablestring=
8616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8617echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8618 no_cache=0
8619 # Check whether --enable-stattext or --disable-stattext was given.
8620if test "${enable_stattext+set}" = set; then
8621 enableval="$enable_stattext"
8622
8623 if test "$enableval" = yes; then
8624 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8625 else
8626 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8627 fi
8628
8629else
8630
8631 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8632 if test "x$LINE" != x ; then
8633 eval "DEFAULT_$LINE"
8634 else
8635 no_cache=1
8636 fi
8637
8638 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8639
8640fi;
8641
8642 eval "$ac_cv_use_stattext"
8643 if test "$no_cache" != 1; then
8644 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8645 fi
8646
8647 if test "$wxUSE_STATTEXT" = yes; then
8648 echo "$as_me:$LINENO: result: yes" >&5
8649echo "${ECHO_T}yes" >&6
8650 else
8651 echo "$as_me:$LINENO: result: no" >&5
8652echo "${ECHO_T}no" >&6
8653 fi
8654
8655
8656 enablestring=
8657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8658echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8659 no_cache=0
8660 # Check whether --enable-statusbar or --disable-statusbar was given.
8661if test "${enable_statusbar+set}" = set; then
8662 enableval="$enable_statusbar"
8663
8664 if test "$enableval" = yes; then
8665 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8666 else
8667 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8668 fi
8669
8670else
8671
8672 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8673 if test "x$LINE" != x ; then
8674 eval "DEFAULT_$LINE"
8675 else
8676 no_cache=1
8677 fi
8678
8679 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8680
8681fi;
8682
8683 eval "$ac_cv_use_statusbar"
8684 if test "$no_cache" != 1; then
8685 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8686 fi
8687
8688 if test "$wxUSE_STATUSBAR" = yes; then
8689 echo "$as_me:$LINENO: result: yes" >&5
8690echo "${ECHO_T}yes" >&6
8691 else
8692 echo "$as_me:$LINENO: result: no" >&5
8693echo "${ECHO_T}no" >&6
8694 fi
8695
8696
8697 enablestring=
8698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8699echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8700 no_cache=0
8701 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8702if test "${enable_tabdialog+set}" = set; then
8703 enableval="$enable_tabdialog"
8704
8705 if test "$enableval" = yes; then
8706 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8707 else
8708 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8709 fi
8710
8711else
8712
8713 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8714 if test "x$LINE" != x ; then
8715 eval "DEFAULT_$LINE"
8716 else
8717 no_cache=1
8718 fi
8719
8720 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8721
8722fi;
8723
8724 eval "$ac_cv_use_tabdialog"
8725 if test "$no_cache" != 1; then
8726 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8727 fi
8728
8729 if test "$wxUSE_TABDIALOG" = yes; then
8730 echo "$as_me:$LINENO: result: yes" >&5
8731echo "${ECHO_T}yes" >&6
8732 else
8733 echo "$as_me:$LINENO: result: no" >&5
8734echo "${ECHO_T}no" >&6
8735 fi
8736
8737
8738 enablestring=
8739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8740echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8741 no_cache=0
8742 # Check whether --enable-textctrl or --disable-textctrl was given.
8743if test "${enable_textctrl+set}" = set; then
8744 enableval="$enable_textctrl"
8745
8746 if test "$enableval" = yes; then
8747 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8748 else
8749 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8750 fi
8751
8752else
8753
8754 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8755 if test "x$LINE" != x ; then
8756 eval "DEFAULT_$LINE"
8757 else
8758 no_cache=1
8759 fi
8760
8761 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8762
8763fi;
8764
8765 eval "$ac_cv_use_textctrl"
8766 if test "$no_cache" != 1; then
8767 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8768 fi
8769
8770 if test "$wxUSE_TEXTCTRL" = yes; then
8771 echo "$as_me:$LINENO: result: yes" >&5
8772echo "${ECHO_T}yes" >&6
8773 else
8774 echo "$as_me:$LINENO: result: no" >&5
8775echo "${ECHO_T}no" >&6
8776 fi
8777
8778
8779 enablestring=
8780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8781echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8782 no_cache=0
8783 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8784if test "${enable_togglebtn+set}" = set; then
8785 enableval="$enable_togglebtn"
8786
8787 if test "$enableval" = yes; then
8788 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8789 else
8790 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8791 fi
8792
8793else
8794
8795 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8796 if test "x$LINE" != x ; then
8797 eval "DEFAULT_$LINE"
8798 else
8799 no_cache=1
8800 fi
8801
8802 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8803
8804fi;
8805
8806 eval "$ac_cv_use_togglebtn"
8807 if test "$no_cache" != 1; then
8808 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8809 fi
8810
8811 if test "$wxUSE_TOGGLEBTN" = yes; then
8812 echo "$as_me:$LINENO: result: yes" >&5
8813echo "${ECHO_T}yes" >&6
8814 else
8815 echo "$as_me:$LINENO: result: no" >&5
8816echo "${ECHO_T}no" >&6
8817 fi
8818
8819
8820 enablestring=
8821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8822echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8823 no_cache=0
8824 # Check whether --enable-toolbar or --disable-toolbar was given.
8825if test "${enable_toolbar+set}" = set; then
8826 enableval="$enable_toolbar"
8827
8828 if test "$enableval" = yes; then
8829 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8830 else
8831 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8832 fi
8833
8834else
8835
8836 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8837 if test "x$LINE" != x ; then
8838 eval "DEFAULT_$LINE"
8839 else
8840 no_cache=1
8841 fi
8842
8843 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8844
8845fi;
8846
8847 eval "$ac_cv_use_toolbar"
8848 if test "$no_cache" != 1; then
8849 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8850 fi
8851
8852 if test "$wxUSE_TOOLBAR" = yes; then
8853 echo "$as_me:$LINENO: result: yes" >&5
8854echo "${ECHO_T}yes" >&6
8855 else
8856 echo "$as_me:$LINENO: result: no" >&5
8857echo "${ECHO_T}no" >&6
8858 fi
8859
8860
8861 enablestring=
8862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8863echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8864 no_cache=0
8865 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8866if test "${enable_tbarnative+set}" = set; then
8867 enableval="$enable_tbarnative"
8868
8869 if test "$enableval" = yes; then
8870 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8871 else
8872 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8873 fi
8874
8875else
8876
8877 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8878 if test "x$LINE" != x ; then
8879 eval "DEFAULT_$LINE"
8880 else
8881 no_cache=1
8882 fi
8883
8884 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8885
8886fi;
8887
8888 eval "$ac_cv_use_tbarnative"
8889 if test "$no_cache" != 1; then
8890 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8891 fi
8892
8893 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8894 echo "$as_me:$LINENO: result: yes" >&5
8895echo "${ECHO_T}yes" >&6
8896 else
8897 echo "$as_me:$LINENO: result: no" >&5
8898echo "${ECHO_T}no" >&6
8899 fi
8900
8901
8902 enablestring=
8903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8904echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8905 no_cache=0
8906 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8907if test "${enable_tbarsmpl+set}" = set; then
8908 enableval="$enable_tbarsmpl"
8909
8910 if test "$enableval" = yes; then
8911 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8912 else
8913 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8914 fi
8915
8916else
8917
8918 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8919 if test "x$LINE" != x ; then
8920 eval "DEFAULT_$LINE"
8921 else
8922 no_cache=1
8923 fi
8924
8925 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8926
8927fi;
8928
8929 eval "$ac_cv_use_tbarsmpl"
8930 if test "$no_cache" != 1; then
8931 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8932 fi
8933
8934 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8935 echo "$as_me:$LINENO: result: yes" >&5
8936echo "${ECHO_T}yes" >&6
8937 else
8938 echo "$as_me:$LINENO: result: no" >&5
8939echo "${ECHO_T}no" >&6
8940 fi
8941
8942
8943 enablestring=
8944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8945echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8946 no_cache=0
8947 # Check whether --enable-treectrl or --disable-treectrl was given.
8948if test "${enable_treectrl+set}" = set; then
8949 enableval="$enable_treectrl"
8950
8951 if test "$enableval" = yes; then
8952 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8953 else
8954 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8955 fi
8956
8957else
8958
8959 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8960 if test "x$LINE" != x ; then
8961 eval "DEFAULT_$LINE"
8962 else
8963 no_cache=1
8964 fi
8965
8966 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8967
8968fi;
8969
8970 eval "$ac_cv_use_treectrl"
8971 if test "$no_cache" != 1; then
8972 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8973 fi
8974
8975 if test "$wxUSE_TREECTRL" = yes; then
8976 echo "$as_me:$LINENO: result: yes" >&5
8977echo "${ECHO_T}yes" >&6
8978 else
8979 echo "$as_me:$LINENO: result: no" >&5
8980echo "${ECHO_T}no" >&6
8981 fi
8982
8983
8984 enablestring=
8985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8986echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8987 no_cache=0
8988 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8989if test "${enable_tipwindow+set}" = set; then
8990 enableval="$enable_tipwindow"
8991
8992 if test "$enableval" = yes; then
8993 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8994 else
8995 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8996 fi
8997
8998else
8999
9000 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9001 if test "x$LINE" != x ; then
9002 eval "DEFAULT_$LINE"
9003 else
9004 no_cache=1
9005 fi
9006
9007 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9008
9009fi;
9010
9011 eval "$ac_cv_use_tipwindow"
9012 if test "$no_cache" != 1; then
9013 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9014 fi
9015
9016 if test "$wxUSE_TIPWINDOW" = yes; then
9017 echo "$as_me:$LINENO: result: yes" >&5
9018echo "${ECHO_T}yes" >&6
9019 else
9020 echo "$as_me:$LINENO: result: no" >&5
9021echo "${ECHO_T}no" >&6
9022 fi
9023
9024
9025 enablestring=
9026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9027echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9028 no_cache=0
9029 # Check whether --enable-popupwin or --disable-popupwin was given.
9030if test "${enable_popupwin+set}" = set; then
9031 enableval="$enable_popupwin"
9032
9033 if test "$enableval" = yes; then
9034 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9035 else
9036 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9037 fi
9038
9039else
9040
9041 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9042 if test "x$LINE" != x ; then
9043 eval "DEFAULT_$LINE"
9044 else
9045 no_cache=1
9046 fi
9047
9048 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9049
9050fi;
9051
9052 eval "$ac_cv_use_popupwin"
9053 if test "$no_cache" != 1; then
9054 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9055 fi
9056
9057 if test "$wxUSE_POPUPWIN" = yes; then
9058 echo "$as_me:$LINENO: result: yes" >&5
9059echo "${ECHO_T}yes" >&6
9060 else
9061 echo "$as_me:$LINENO: result: no" >&5
9062echo "${ECHO_T}no" >&6
9063 fi
9064
9065
9066
9067
9068 enablestring=
9069 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9070echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9071 no_cache=0
9072 # Check whether --enable-commondlg or --disable-commondlg was given.
9073if test "${enable_commondlg+set}" = set; then
9074 enableval="$enable_commondlg"
9075
9076 if test "$enableval" = yes; then
9077 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9078 else
9079 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9080 fi
9081
9082else
9083
9084 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9085 if test "x$LINE" != x ; then
9086 eval "DEFAULT_$LINE"
9087 else
9088 no_cache=1
9089 fi
9090
9091 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9092
9093fi;
9094
9095 eval "$ac_cv_use_commondlg"
9096 if test "$no_cache" != 1; then
9097 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9098 fi
9099
9100 if test "$wxUSE_COMMONDLGS" = yes; then
9101 echo "$as_me:$LINENO: result: yes" >&5
9102echo "${ECHO_T}yes" >&6
9103 else
9104 echo "$as_me:$LINENO: result: no" >&5
9105echo "${ECHO_T}no" >&6
9106 fi
9107
9108
9109 enablestring=
9110 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9111echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9112 no_cache=0
9113 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9114if test "${enable_choicedlg+set}" = set; then
9115 enableval="$enable_choicedlg"
9116
9117 if test "$enableval" = yes; then
9118 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9119 else
9120 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9121 fi
9122
9123else
9124
9125 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9126 if test "x$LINE" != x ; then
9127 eval "DEFAULT_$LINE"
9128 else
9129 no_cache=1
9130 fi
9131
9132 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9133
9134fi;
9135
9136 eval "$ac_cv_use_choicedlg"
9137 if test "$no_cache" != 1; then
9138 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9139 fi
9140
9141 if test "$wxUSE_CHOICEDLG" = yes; then
9142 echo "$as_me:$LINENO: result: yes" >&5
9143echo "${ECHO_T}yes" >&6
9144 else
9145 echo "$as_me:$LINENO: result: no" >&5
9146echo "${ECHO_T}no" >&6
9147 fi
9148
9149
9150 enablestring=
9151 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9152echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9153 no_cache=0
9154 # Check whether --enable-coldlg or --disable-coldlg was given.
9155if test "${enable_coldlg+set}" = set; then
9156 enableval="$enable_coldlg"
9157
9158 if test "$enableval" = yes; then
9159 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9160 else
9161 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9162 fi
9163
9164else
9165
9166 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9167 if test "x$LINE" != x ; then
9168 eval "DEFAULT_$LINE"
9169 else
9170 no_cache=1
9171 fi
9172
9173 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9174
9175fi;
9176
9177 eval "$ac_cv_use_coldlg"
9178 if test "$no_cache" != 1; then
9179 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9180 fi
9181
9182 if test "$wxUSE_COLOURDLG" = yes; then
9183 echo "$as_me:$LINENO: result: yes" >&5
9184echo "${ECHO_T}yes" >&6
9185 else
9186 echo "$as_me:$LINENO: result: no" >&5
9187echo "${ECHO_T}no" >&6
9188 fi
9189
9190
9191 enablestring=
9192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9193echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9194 no_cache=0
9195 # Check whether --enable-filedlg or --disable-filedlg was given.
9196if test "${enable_filedlg+set}" = set; then
9197 enableval="$enable_filedlg"
9198
9199 if test "$enableval" = yes; then
9200 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9201 else
9202 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9203 fi
9204
9205else
9206
9207 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9208 if test "x$LINE" != x ; then
9209 eval "DEFAULT_$LINE"
9210 else
9211 no_cache=1
9212 fi
9213
9214 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9215
9216fi;
9217
9218 eval "$ac_cv_use_filedlg"
9219 if test "$no_cache" != 1; then
9220 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9221 fi
9222
9223 if test "$wxUSE_FILEDLG" = yes; then
9224 echo "$as_me:$LINENO: result: yes" >&5
9225echo "${ECHO_T}yes" >&6
9226 else
9227 echo "$as_me:$LINENO: result: no" >&5
9228echo "${ECHO_T}no" >&6
9229 fi
9230
9231
9232 enablestring=
9233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9234echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9235 no_cache=0
9236 # Check whether --enable-finddlg or --disable-finddlg was given.
9237if test "${enable_finddlg+set}" = set; then
9238 enableval="$enable_finddlg"
9239
9240 if test "$enableval" = yes; then
9241 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9242 else
9243 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9244 fi
9245
9246else
9247
9248 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9249 if test "x$LINE" != x ; then
9250 eval "DEFAULT_$LINE"
9251 else
9252 no_cache=1
9253 fi
9254
9255 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9256
9257fi;
9258
9259 eval "$ac_cv_use_finddlg"
9260 if test "$no_cache" != 1; then
9261 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9262 fi
9263
9264 if test "$wxUSE_FINDREPLDLG" = yes; then
9265 echo "$as_me:$LINENO: result: yes" >&5
9266echo "${ECHO_T}yes" >&6
9267 else
9268 echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
9270 fi
9271
9272
9273 enablestring=
9274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9275echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9276 no_cache=0
9277 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9278if test "${enable_fontdlg+set}" = set; then
9279 enableval="$enable_fontdlg"
9280
9281 if test "$enableval" = yes; then
9282 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9283 else
9284 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9285 fi
9286
9287else
9288
9289 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9290 if test "x$LINE" != x ; then
9291 eval "DEFAULT_$LINE"
9292 else
9293 no_cache=1
9294 fi
9295
9296 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9297
9298fi;
9299
9300 eval "$ac_cv_use_fontdlg"
9301 if test "$no_cache" != 1; then
9302 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9303 fi
9304
9305 if test "$wxUSE_FONTDLG" = yes; then
9306 echo "$as_me:$LINENO: result: yes" >&5
9307echo "${ECHO_T}yes" >&6
9308 else
9309 echo "$as_me:$LINENO: result: no" >&5
9310echo "${ECHO_T}no" >&6
9311 fi
9312
9313
9314 enablestring=
9315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9316echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9317 no_cache=0
9318 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9319if test "${enable_dirdlg+set}" = set; then
9320 enableval="$enable_dirdlg"
9321
9322 if test "$enableval" = yes; then
9323 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9324 else
9325 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9326 fi
9327
9328else
9329
9330 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9331 if test "x$LINE" != x ; then
9332 eval "DEFAULT_$LINE"
9333 else
9334 no_cache=1
9335 fi
9336
9337 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9338
9339fi;
9340
9341 eval "$ac_cv_use_dirdlg"
9342 if test "$no_cache" != 1; then
9343 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9344 fi
9345
9346 if test "$wxUSE_DIRDLG" = yes; then
9347 echo "$as_me:$LINENO: result: yes" >&5
9348echo "${ECHO_T}yes" >&6
9349 else
9350 echo "$as_me:$LINENO: result: no" >&5
9351echo "${ECHO_T}no" >&6
9352 fi
9353
9354
9355 enablestring=
9356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9357echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9358 no_cache=0
9359 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9360if test "${enable_msgdlg+set}" = set; then
9361 enableval="$enable_msgdlg"
9362
9363 if test "$enableval" = yes; then
9364 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9365 else
9366 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9367 fi
9368
9369else
9370
9371 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9372 if test "x$LINE" != x ; then
9373 eval "DEFAULT_$LINE"
9374 else
9375 no_cache=1
9376 fi
9377
9378 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9379
9380fi;
9381
9382 eval "$ac_cv_use_msgdlg"
9383 if test "$no_cache" != 1; then
9384 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9385 fi
9386
9387 if test "$wxUSE_MSGDLG" = yes; then
9388 echo "$as_me:$LINENO: result: yes" >&5
9389echo "${ECHO_T}yes" >&6
9390 else
9391 echo "$as_me:$LINENO: result: no" >&5
9392echo "${ECHO_T}no" >&6
9393 fi
9394
9395
9396 enablestring=
9397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9398echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9399 no_cache=0
9400 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9401if test "${enable_numberdlg+set}" = set; then
9402 enableval="$enable_numberdlg"
9403
9404 if test "$enableval" = yes; then
9405 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9406 else
9407 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9408 fi
9409
9410else
9411
9412 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9413 if test "x$LINE" != x ; then
9414 eval "DEFAULT_$LINE"
9415 else
9416 no_cache=1
9417 fi
9418
9419 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9420
9421fi;
9422
9423 eval "$ac_cv_use_numberdlg"
9424 if test "$no_cache" != 1; then
9425 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9426 fi
9427
9428 if test "$wxUSE_NUMBERDLG" = yes; then
9429 echo "$as_me:$LINENO: result: yes" >&5
9430echo "${ECHO_T}yes" >&6
9431 else
9432 echo "$as_me:$LINENO: result: no" >&5
9433echo "${ECHO_T}no" >&6
9434 fi
9435
9436
9437 enablestring=
9438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9439echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9440 no_cache=0
9441 # Check whether --enable-splash or --disable-splash was given.
9442if test "${enable_splash+set}" = set; then
9443 enableval="$enable_splash"
9444
9445 if test "$enableval" = yes; then
9446 ac_cv_use_splash='wxUSE_SPLASH=yes'
9447 else
9448 ac_cv_use_splash='wxUSE_SPLASH=no'
9449 fi
9450
9451else
9452
9453 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9454 if test "x$LINE" != x ; then
9455 eval "DEFAULT_$LINE"
9456 else
9457 no_cache=1
9458 fi
9459
9460 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9461
9462fi;
9463
9464 eval "$ac_cv_use_splash"
9465 if test "$no_cache" != 1; then
9466 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9467 fi
9468
9469 if test "$wxUSE_SPLASH" = yes; then
9470 echo "$as_me:$LINENO: result: yes" >&5
9471echo "${ECHO_T}yes" >&6
9472 else
9473 echo "$as_me:$LINENO: result: no" >&5
9474echo "${ECHO_T}no" >&6
9475 fi
9476
9477
9478 enablestring=
9479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9480echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9481 no_cache=0
9482 # Check whether --enable-textdlg or --disable-textdlg was given.
9483if test "${enable_textdlg+set}" = set; then
9484 enableval="$enable_textdlg"
9485
9486 if test "$enableval" = yes; then
9487 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9488 else
9489 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9490 fi
9491
9492else
9493
9494 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9495 if test "x$LINE" != x ; then
9496 eval "DEFAULT_$LINE"
9497 else
9498 no_cache=1
9499 fi
9500
9501 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9502
9503fi;
9504
9505 eval "$ac_cv_use_textdlg"
9506 if test "$no_cache" != 1; then
9507 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9508 fi
9509
9510 if test "$wxUSE_TEXTDLG" = yes; then
9511 echo "$as_me:$LINENO: result: yes" >&5
9512echo "${ECHO_T}yes" >&6
9513 else
9514 echo "$as_me:$LINENO: result: no" >&5
9515echo "${ECHO_T}no" >&6
9516 fi
9517
9518
9519 enablestring=
9520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9521echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9522 no_cache=0
9523 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9524if test "${enable_tipdlg+set}" = set; then
9525 enableval="$enable_tipdlg"
9526
9527 if test "$enableval" = yes; then
9528 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9529 else
9530 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9531 fi
9532
9533else
9534
9535 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9536 if test "x$LINE" != x ; then
9537 eval "DEFAULT_$LINE"
9538 else
9539 no_cache=1
9540 fi
9541
9542 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9543
9544fi;
9545
9546 eval "$ac_cv_use_tipdlg"
9547 if test "$no_cache" != 1; then
9548 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9549 fi
9550
9551 if test "$wxUSE_STARTUP_TIPS" = yes; then
9552 echo "$as_me:$LINENO: result: yes" >&5
9553echo "${ECHO_T}yes" >&6
9554 else
9555 echo "$as_me:$LINENO: result: no" >&5
9556echo "${ECHO_T}no" >&6
9557 fi
9558
9559
9560 enablestring=
9561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9562echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9563 no_cache=0
9564 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9565if test "${enable_progressdlg+set}" = set; then
9566 enableval="$enable_progressdlg"
9567
9568 if test "$enableval" = yes; then
9569 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9570 else
9571 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9572 fi
9573
9574else
9575
9576 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9577 if test "x$LINE" != x ; then
9578 eval "DEFAULT_$LINE"
9579 else
9580 no_cache=1
9581 fi
9582
9583 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9584
9585fi;
9586
9587 eval "$ac_cv_use_progressdlg"
9588 if test "$no_cache" != 1; then
9589 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9590 fi
9591
9592 if test "$wxUSE_PROGRESSDLG" = yes; then
9593 echo "$as_me:$LINENO: result: yes" >&5
9594echo "${ECHO_T}yes" >&6
9595 else
9596 echo "$as_me:$LINENO: result: no" >&5
9597echo "${ECHO_T}no" >&6
9598 fi
9599
9600
9601 enablestring=
9602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9603echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9604 no_cache=0
9605 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9606if test "${enable_wizarddlg+set}" = set; then
9607 enableval="$enable_wizarddlg"
9608
9609 if test "$enableval" = yes; then
9610 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9611 else
9612 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9613 fi
9614
9615else
9616
9617 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9618 if test "x$LINE" != x ; then
9619 eval "DEFAULT_$LINE"
9620 else
9621 no_cache=1
9622 fi
9623
9624 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9625
9626fi;
9627
9628 eval "$ac_cv_use_wizarddlg"
9629 if test "$no_cache" != 1; then
9630 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9631 fi
9632
9633 if test "$wxUSE_WIZARDDLG" = yes; then
9634 echo "$as_me:$LINENO: result: yes" >&5
9635echo "${ECHO_T}yes" >&6
9636 else
9637 echo "$as_me:$LINENO: result: no" >&5
9638echo "${ECHO_T}no" >&6
9639 fi
9640
9641
9642
9643
9644 enablestring=
9645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9646echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9647 no_cache=0
9648 # Check whether --enable-menus or --disable-menus was given.
9649if test "${enable_menus+set}" = set; then
9650 enableval="$enable_menus"
9651
9652 if test "$enableval" = yes; then
9653 ac_cv_use_menus='wxUSE_MENUS=yes'
9654 else
9655 ac_cv_use_menus='wxUSE_MENUS=no'
9656 fi
9657
9658else
9659
9660 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9661 if test "x$LINE" != x ; then
9662 eval "DEFAULT_$LINE"
9663 else
9664 no_cache=1
9665 fi
9666
9667 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9668
9669fi;
9670
9671 eval "$ac_cv_use_menus"
9672 if test "$no_cache" != 1; then
9673 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9674 fi
9675
9676 if test "$wxUSE_MENUS" = yes; then
9677 echo "$as_me:$LINENO: result: yes" >&5
9678echo "${ECHO_T}yes" >&6
9679 else
9680 echo "$as_me:$LINENO: result: no" >&5
9681echo "${ECHO_T}no" >&6
9682 fi
9683
9684
9685 enablestring=
9686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9687echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9688 no_cache=0
9689 # Check whether --enable-miniframe or --disable-miniframe was given.
9690if test "${enable_miniframe+set}" = set; then
9691 enableval="$enable_miniframe"
9692
9693 if test "$enableval" = yes; then
9694 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9695 else
9696 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9697 fi
9698
9699else
9700
9701 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9702 if test "x$LINE" != x ; then
9703 eval "DEFAULT_$LINE"
9704 else
9705 no_cache=1
9706 fi
9707
9708 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9709
9710fi;
9711
9712 eval "$ac_cv_use_miniframe"
9713 if test "$no_cache" != 1; then
9714 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9715 fi
9716
9717 if test "$wxUSE_MINIFRAME" = yes; then
9718 echo "$as_me:$LINENO: result: yes" >&5
9719echo "${ECHO_T}yes" >&6
9720 else
9721 echo "$as_me:$LINENO: result: no" >&5
9722echo "${ECHO_T}no" >&6
9723 fi
9724
9725
9726 enablestring=
9727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9728echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9729 no_cache=0
9730 # Check whether --enable-tooltips or --disable-tooltips was given.
9731if test "${enable_tooltips+set}" = set; then
9732 enableval="$enable_tooltips"
9733
9734 if test "$enableval" = yes; then
9735 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9736 else
9737 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9738 fi
9739
9740else
9741
9742 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9743 if test "x$LINE" != x ; then
9744 eval "DEFAULT_$LINE"
9745 else
9746 no_cache=1
9747 fi
9748
9749 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9750
9751fi;
9752
9753 eval "$ac_cv_use_tooltips"
9754 if test "$no_cache" != 1; then
9755 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9756 fi
9757
9758 if test "$wxUSE_TOOLTIPS" = yes; then
9759 echo "$as_me:$LINENO: result: yes" >&5
9760echo "${ECHO_T}yes" >&6
9761 else
9762 echo "$as_me:$LINENO: result: no" >&5
9763echo "${ECHO_T}no" >&6
9764 fi
9765
9766
9767 enablestring=
9768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9769echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9770 no_cache=0
9771 # Check whether --enable-splines or --disable-splines was given.
9772if test "${enable_splines+set}" = set; then
9773 enableval="$enable_splines"
9774
9775 if test "$enableval" = yes; then
9776 ac_cv_use_splines='wxUSE_SPLINES=yes'
9777 else
9778 ac_cv_use_splines='wxUSE_SPLINES=no'
9779 fi
9780
9781else
9782
9783 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9784 if test "x$LINE" != x ; then
9785 eval "DEFAULT_$LINE"
9786 else
9787 no_cache=1
9788 fi
9789
9790 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9791
9792fi;
9793
9794 eval "$ac_cv_use_splines"
9795 if test "$no_cache" != 1; then
9796 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9797 fi
9798
9799 if test "$wxUSE_SPLINES" = yes; then
9800 echo "$as_me:$LINENO: result: yes" >&5
9801echo "${ECHO_T}yes" >&6
9802 else
9803 echo "$as_me:$LINENO: result: no" >&5
9804echo "${ECHO_T}no" >&6
9805 fi
9806
9807
fbe2ca43
SN
9808 enablestring=
9809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9810echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9811 no_cache=0
9812 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9813if test "${enable_mousewheel+set}" = set; then
9814 enableval="$enable_mousewheel"
9815
9816 if test "$enableval" = yes; then
9817 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9818 else
9819 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9820 fi
9821
9822else
9823
9824 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9825 if test "x$LINE" != x ; then
9826 eval "DEFAULT_$LINE"
9827 else
9828 no_cache=1
9829 fi
9830
9831 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9832
9833fi;
9834
9835 eval "$ac_cv_use_mousewheel"
9836 if test "$no_cache" != 1; then
9837 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9838 fi
9839
9840 if test "$wxUSE_MOUSEWHEEL" = yes; then
9841 echo "$as_me:$LINENO: result: yes" >&5
9842echo "${ECHO_T}yes" >&6
9843 else
9844 echo "$as_me:$LINENO: result: no" >&5
9845echo "${ECHO_T}no" >&6
9846 fi
9847
9848
a848cd7e
SC
9849 enablestring=
9850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9851echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9852 no_cache=0
9853 # Check whether --enable-validators or --disable-validators was given.
9854if test "${enable_validators+set}" = set; then
9855 enableval="$enable_validators"
9856
9857 if test "$enableval" = yes; then
9858 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9859 else
9860 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9861 fi
9862
9863else
9864
9865 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9866 if test "x$LINE" != x ; then
9867 eval "DEFAULT_$LINE"
9868 else
9869 no_cache=1
9870 fi
9871
9872 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9873
9874fi;
9875
9876 eval "$ac_cv_use_validators"
9877 if test "$no_cache" != 1; then
9878 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9879 fi
9880
9881 if test "$wxUSE_VALIDATORS" = yes; then
9882 echo "$as_me:$LINENO: result: yes" >&5
9883echo "${ECHO_T}yes" >&6
9884 else
9885 echo "$as_me:$LINENO: result: no" >&5
9886echo "${ECHO_T}no" >&6
9887 fi
9888
9889
9890 enablestring=
9891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9892echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9893 no_cache=0
9894 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9895if test "${enable_busyinfo+set}" = set; then
9896 enableval="$enable_busyinfo"
9897
9898 if test "$enableval" = yes; then
9899 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9900 else
9901 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9902 fi
9903
9904else
9905
9906 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9907 if test "x$LINE" != x ; then
9908 eval "DEFAULT_$LINE"
9909 else
9910 no_cache=1
9911 fi
9912
9913 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9914
9915fi;
9916
9917 eval "$ac_cv_use_busyinfo"
9918 if test "$no_cache" != 1; then
9919 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9920 fi
9921
9922 if test "$wxUSE_BUSYINFO" = yes; then
9923 echo "$as_me:$LINENO: result: yes" >&5
9924echo "${ECHO_T}yes" >&6
9925 else
9926 echo "$as_me:$LINENO: result: no" >&5
9927echo "${ECHO_T}no" >&6
9928 fi
9929
9930
9931 enablestring=
9932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9933echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9934 no_cache=0
9935 # Check whether --enable-joystick or --disable-joystick was given.
9936if test "${enable_joystick+set}" = set; then
9937 enableval="$enable_joystick"
9938
9939 if test "$enableval" = yes; then
9940 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9941 else
9942 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9943 fi
9944
9945else
9946
9947 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9948 if test "x$LINE" != x ; then
9949 eval "DEFAULT_$LINE"
9950 else
9951 no_cache=1
9952 fi
9953
9954 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9955
9956fi;
9957
9958 eval "$ac_cv_use_joystick"
9959 if test "$no_cache" != 1; then
9960 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9961 fi
9962
9963 if test "$wxUSE_JOYSTICK" = yes; then
9964 echo "$as_me:$LINENO: result: yes" >&5
9965echo "${ECHO_T}yes" >&6
9966 else
9967 echo "$as_me:$LINENO: result: no" >&5
9968echo "${ECHO_T}no" >&6
9969 fi
9970
9971
9972 enablestring=
9973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9974echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9975 no_cache=0
9976 # Check whether --enable-metafile or --disable-metafile was given.
9977if test "${enable_metafile+set}" = set; then
9978 enableval="$enable_metafile"
9979
9980 if test "$enableval" = yes; then
9981 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9982 else
9983 ac_cv_use_metafile='wxUSE_METAFILE=no'
9984 fi
9985
9986else
9987
9988 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9989 if test "x$LINE" != x ; then
9990 eval "DEFAULT_$LINE"
9991 else
9992 no_cache=1
9993 fi
9994
9995 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9996
9997fi;
9998
9999 eval "$ac_cv_use_metafile"
10000 if test "$no_cache" != 1; then
10001 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10002 fi
10003
10004 if test "$wxUSE_METAFILE" = yes; then
10005 echo "$as_me:$LINENO: result: yes" >&5
10006echo "${ECHO_T}yes" >&6
10007 else
10008 echo "$as_me:$LINENO: result: no" >&5
10009echo "${ECHO_T}no" >&6
10010 fi
10011
10012
10013 enablestring=
10014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10015echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10016 no_cache=0
10017 # Check whether --enable-dragimage or --disable-dragimage was given.
10018if test "${enable_dragimage+set}" = set; then
10019 enableval="$enable_dragimage"
10020
10021 if test "$enableval" = yes; then
10022 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10023 else
10024 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10025 fi
10026
10027else
10028
10029 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10030 if test "x$LINE" != x ; then
10031 eval "DEFAULT_$LINE"
10032 else
10033 no_cache=1
10034 fi
10035
10036 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10037
10038fi;
10039
10040 eval "$ac_cv_use_dragimage"
10041 if test "$no_cache" != 1; then
10042 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10043 fi
10044
10045 if test "$wxUSE_DRAGIMAGE" = yes; then
10046 echo "$as_me:$LINENO: result: yes" >&5
10047echo "${ECHO_T}yes" >&6
10048 else
10049 echo "$as_me:$LINENO: result: no" >&5
10050echo "${ECHO_T}no" >&6
10051 fi
10052
10053
10054 enablestring=
10055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10056echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10057 no_cache=0
10058 # Check whether --enable-accessibility or --disable-accessibility was given.
10059if test "${enable_accessibility+set}" = set; then
10060 enableval="$enable_accessibility"
10061
10062 if test "$enableval" = yes; then
10063 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10064 else
10065 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10066 fi
10067
10068else
10069
10070 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10071 if test "x$LINE" != x ; then
10072 eval "DEFAULT_$LINE"
10073 else
10074 no_cache=1
10075 fi
10076
10077 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10078
10079fi;
10080
10081 eval "$ac_cv_use_accessibility"
10082 if test "$no_cache" != 1; then
10083 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10084 fi
10085
10086 if test "$wxUSE_ACCESSIBILITY" = yes; then
10087 echo "$as_me:$LINENO: result: yes" >&5
10088echo "${ECHO_T}yes" >&6
10089 else
10090 echo "$as_me:$LINENO: result: no" >&5
10091echo "${ECHO_T}no" >&6
10092 fi
10093
10094
38b4a946
VZ
10095if test "$wxUSE_MSW" = "1"; then
10096
10097 enablestring=
10098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10099echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10100 no_cache=0
10101 # Check whether --enable-dccache or --disable-dccache was given.
10102if test "${enable_dccache+set}" = set; then
10103 enableval="$enable_dccache"
10104
10105 if test "$enableval" = yes; then
10106 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10107 else
10108 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10109 fi
10110
10111else
10112
10113 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10114 if test "x$LINE" != x ; then
10115 eval "DEFAULT_$LINE"
10116 else
10117 no_cache=1
10118 fi
10119
10120 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10121
10122fi;
10123
10124 eval "$ac_cv_use_dccache"
10125 if test "$no_cache" != 1; then
10126 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10127 fi
10128
10129 if test "$wxUSE_DC_CACHEING" = yes; then
10130 echo "$as_me:$LINENO: result: yes" >&5
10131echo "${ECHO_T}yes" >&6
10132 else
10133 echo "$as_me:$LINENO: result: no" >&5
10134echo "${ECHO_T}no" >&6
10135 fi
10136
10137fi
10138
a848cd7e
SC
10139
10140
10141 enablestring=
10142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10143echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10144 no_cache=0
10145 # Check whether --enable-palette or --disable-palette was given.
10146if test "${enable_palette+set}" = set; then
10147 enableval="$enable_palette"
10148
10149 if test "$enableval" = yes; then
10150 ac_cv_use_palette='wxUSE_PALETTE=yes'
10151 else
10152 ac_cv_use_palette='wxUSE_PALETTE=no'
10153 fi
10154
10155else
10156
10157 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10158 if test "x$LINE" != x ; then
10159 eval "DEFAULT_$LINE"
10160 else
10161 no_cache=1
10162 fi
10163
10164 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10165
10166fi;
10167
10168 eval "$ac_cv_use_palette"
10169 if test "$no_cache" != 1; then
10170 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10171 fi
10172
10173 if test "$wxUSE_PALETTE" = yes; then
10174 echo "$as_me:$LINENO: result: yes" >&5
10175echo "${ECHO_T}yes" >&6
10176 else
10177 echo "$as_me:$LINENO: result: no" >&5
10178echo "${ECHO_T}no" >&6
10179 fi
10180
10181
10182 enablestring=
10183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10184echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10185 no_cache=0
10186 # Check whether --enable-image or --disable-image was given.
10187if test "${enable_image+set}" = set; then
10188 enableval="$enable_image"
10189
10190 if test "$enableval" = yes; then
10191 ac_cv_use_image='wxUSE_IMAGE=yes'
10192 else
10193 ac_cv_use_image='wxUSE_IMAGE=no'
10194 fi
10195
10196else
10197
10198 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10199 if test "x$LINE" != x ; then
10200 eval "DEFAULT_$LINE"
10201 else
10202 no_cache=1
10203 fi
10204
10205 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10206
10207fi;
10208
10209 eval "$ac_cv_use_image"
10210 if test "$no_cache" != 1; then
10211 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10212 fi
10213
10214 if test "$wxUSE_IMAGE" = yes; then
10215 echo "$as_me:$LINENO: result: yes" >&5
10216echo "${ECHO_T}yes" >&6
10217 else
10218 echo "$as_me:$LINENO: result: no" >&5
10219echo "${ECHO_T}no" >&6
10220 fi
10221
10222
10223 enablestring=
10224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10225echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10226 no_cache=0
10227 # Check whether --enable-gif or --disable-gif was given.
10228if test "${enable_gif+set}" = set; then
10229 enableval="$enable_gif"
10230
10231 if test "$enableval" = yes; then
10232 ac_cv_use_gif='wxUSE_GIF=yes'
10233 else
10234 ac_cv_use_gif='wxUSE_GIF=no'
10235 fi
10236
10237else
10238
10239 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10240 if test "x$LINE" != x ; then
10241 eval "DEFAULT_$LINE"
10242 else
10243 no_cache=1
10244 fi
10245
10246 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10247
10248fi;
10249
10250 eval "$ac_cv_use_gif"
10251 if test "$no_cache" != 1; then
10252 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10253 fi
10254
10255 if test "$wxUSE_GIF" = yes; then
10256 echo "$as_me:$LINENO: result: yes" >&5
10257echo "${ECHO_T}yes" >&6
10258 else
10259 echo "$as_me:$LINENO: result: no" >&5
10260echo "${ECHO_T}no" >&6
10261 fi
10262
10263
10264 enablestring=
10265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10266echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10267 no_cache=0
10268 # Check whether --enable-pcx or --disable-pcx was given.
10269if test "${enable_pcx+set}" = set; then
10270 enableval="$enable_pcx"
10271
10272 if test "$enableval" = yes; then
10273 ac_cv_use_pcx='wxUSE_PCX=yes'
10274 else
10275 ac_cv_use_pcx='wxUSE_PCX=no'
10276 fi
10277
10278else
10279
10280 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10281 if test "x$LINE" != x ; then
10282 eval "DEFAULT_$LINE"
10283 else
10284 no_cache=1
10285 fi
10286
10287 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10288
10289fi;
10290
10291 eval "$ac_cv_use_pcx"
10292 if test "$no_cache" != 1; then
10293 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10294 fi
10295
10296 if test "$wxUSE_PCX" = yes; then
10297 echo "$as_me:$LINENO: result: yes" >&5
10298echo "${ECHO_T}yes" >&6
10299 else
10300 echo "$as_me:$LINENO: result: no" >&5
10301echo "${ECHO_T}no" >&6
10302 fi
10303
10304
10305 enablestring=
10306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10307echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10308 no_cache=0
10309 # Check whether --enable-iff or --disable-iff was given.
10310if test "${enable_iff+set}" = set; then
10311 enableval="$enable_iff"
10312
10313 if test "$enableval" = yes; then
10314 ac_cv_use_iff='wxUSE_IFF=yes'
10315 else
10316 ac_cv_use_iff='wxUSE_IFF=no'
10317 fi
10318
10319else
10320
10321 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10322 if test "x$LINE" != x ; then
10323 eval "DEFAULT_$LINE"
10324 else
10325 no_cache=1
10326 fi
10327
10328 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10329
10330fi;
10331
10332 eval "$ac_cv_use_iff"
10333 if test "$no_cache" != 1; then
10334 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10335 fi
10336
10337 if test "$wxUSE_IFF" = yes; then
10338 echo "$as_me:$LINENO: result: yes" >&5
10339echo "${ECHO_T}yes" >&6
10340 else
10341 echo "$as_me:$LINENO: result: no" >&5
10342echo "${ECHO_T}no" >&6
10343 fi
10344
10345
10346 enablestring=
10347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10348echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10349 no_cache=0
10350 # Check whether --enable-pnm or --disable-pnm was given.
10351if test "${enable_pnm+set}" = set; then
10352 enableval="$enable_pnm"
10353
10354 if test "$enableval" = yes; then
10355 ac_cv_use_pnm='wxUSE_PNM=yes'
10356 else
10357 ac_cv_use_pnm='wxUSE_PNM=no'
10358 fi
10359
10360else
10361
10362 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10363 if test "x$LINE" != x ; then
10364 eval "DEFAULT_$LINE"
10365 else
10366 no_cache=1
10367 fi
10368
10369 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10370
10371fi;
10372
10373 eval "$ac_cv_use_pnm"
10374 if test "$no_cache" != 1; then
10375 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10376 fi
10377
10378 if test "$wxUSE_PNM" = yes; then
10379 echo "$as_me:$LINENO: result: yes" >&5
10380echo "${ECHO_T}yes" >&6
10381 else
10382 echo "$as_me:$LINENO: result: no" >&5
10383echo "${ECHO_T}no" >&6
10384 fi
10385
10386
10387 enablestring=
10388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10389echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10390 no_cache=0
10391 # Check whether --enable-xpm or --disable-xpm was given.
10392if test "${enable_xpm+set}" = set; then
10393 enableval="$enable_xpm"
10394
10395 if test "$enableval" = yes; then
10396 ac_cv_use_xpm='wxUSE_XPM=yes'
10397 else
10398 ac_cv_use_xpm='wxUSE_XPM=no'
10399 fi
10400
10401else
10402
10403 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10404 if test "x$LINE" != x ; then
10405 eval "DEFAULT_$LINE"
10406 else
10407 no_cache=1
10408 fi
10409
10410 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10411
10412fi;
10413
10414 eval "$ac_cv_use_xpm"
10415 if test "$no_cache" != 1; then
10416 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10417 fi
10418
10419 if test "$wxUSE_XPM" = yes; then
10420 echo "$as_me:$LINENO: result: yes" >&5
10421echo "${ECHO_T}yes" >&6
10422 else
10423 echo "$as_me:$LINENO: result: no" >&5
10424echo "${ECHO_T}no" >&6
10425 fi
10426
10427
10428 enablestring=
10429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10430echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10431 no_cache=0
10432 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10433if test "${enable_ico_cur+set}" = set; then
10434 enableval="$enable_ico_cur"
10435
10436 if test "$enableval" = yes; then
10437 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10438 else
10439 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10440 fi
10441
10442else
10443
10444 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10445 if test "x$LINE" != x ; then
10446 eval "DEFAULT_$LINE"
10447 else
10448 no_cache=1
10449 fi
10450
10451 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10452
10453fi;
10454
10455 eval "$ac_cv_use_ico_cur"
10456 if test "$no_cache" != 1; then
10457 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10458 fi
10459
10460 if test "$wxUSE_ICO_CUR" = yes; then
10461 echo "$as_me:$LINENO: result: yes" >&5
10462echo "${ECHO_T}yes" >&6
10463 else
10464 echo "$as_me:$LINENO: result: no" >&5
10465echo "${ECHO_T}no" >&6
10466 fi
10467
10468
10469fi
10470
10471
10472
ceec2216
RL
10473# Check whether --with-flavour or --without-flavour was given.
10474if test "${with_flavour+set}" = set; then
10475 withval="$with_flavour"
10476 WX_FLAVOUR="$withval"
10477fi;
10478
10479
10480
a848cd7e
SC
10481 enablestring=
10482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10483echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10484 no_cache=0
10485 # Check whether --enable-official_build or --disable-official_build was given.
10486if test "${enable_official_build+set}" = set; then
10487 enableval="$enable_official_build"
10488
10489 if test "$enableval" = yes; then
10490 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10491 else
10492 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10493 fi
10494
10495else
10496
10497 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10498 if test "x$LINE" != x ; then
10499 eval "DEFAULT_$LINE"
10500 else
10501 no_cache=1
10502 fi
10503
10504 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10505
10506fi;
10507
10508 eval "$ac_cv_use_official_build"
10509 if test "$no_cache" != 1; then
10510 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10511 fi
10512
10513 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10514 echo "$as_me:$LINENO: result: yes" >&5
10515echo "${ECHO_T}yes" >&6
10516 else
10517 echo "$as_me:$LINENO: result: no" >&5
10518echo "${ECHO_T}no" >&6
10519 fi
10520
10521# Check whether --enable-vendor or --disable-vendor was given.
10522if test "${enable_vendor+set}" = set; then
10523 enableval="$enable_vendor"
10524 VENDOR="$enableval"
10525fi;
10526if test "x$VENDOR" = "x"; then
10527 VENDOR="custom"
10528fi
10529
a848cd7e
SC
10530
10531
10532
10533 echo "saving argument cache $wx_arg_cache_file"
10534 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10535
10536
10537
10538echo "$as_me:$LINENO: checking for toolkit" >&5
10539echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10540
10541# In Wine, we need to default to MSW, not GTK or MOTIF
10542if test "$wxUSE_WINE" = "yes"; then
10543 DEFAULT_DEFAULT_wxUSE_GTK=0
10544 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10545 DEFAULT_DEFAULT_wxUSE_MSW=1
10546 wxUSE_SHARED=no
10547fi
10548
f597b41c 10549
a848cd7e
SC
10550if test "$wxUSE_GUI" = "yes"; then
10551
10552 if test "$USE_BEOS" = 1; then
10553 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10554echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10555 { (exit 1); exit 1; }; }
10556 fi
10557
10558 if test "$TOOLKIT_GIVEN" = 1; then
10559 for toolkit in `echo $ALL_TOOLKITS`; do
10560 var=wxUSE_$toolkit
10561 eval "value=\$${var}"
f34ca037
MW
10562 if test "x$value" = "xno"; then
10563 eval "$var=0"
10564 elif test "x$value" != "x"; then
10565 eval "$var=1"
10566 fi
10567
10568 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10569 eval "wx${toolkit}_VERSION=$value"
10570 fi
a848cd7e
SC
10571 done
10572 else
10573 for toolkit in `echo $ALL_TOOLKITS`; do
10574 if test "$has_toolkit_in_cache" != 1; then
10575 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10576 else
10577 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10578
10579 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10580 if test "x$version" != "x"; then
10581 eval "wx${toolkit}_VERSION=$version"
10582 fi
a848cd7e
SC
10583 fi
10584 eval "wxUSE_$toolkit=\$${var}"
10585 done
10586 fi
10587
10588 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10589 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10590 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10591
10592 case "${host}" in
10593 *-pc-os2_emx | *-pc-os2-emx )
10594 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10595 esac
10596
10597 case "$NUM_TOOLKITS" in
10598 1)
10599 ;;
10600 0)
10601 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10602echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10603 { (exit 1); exit 1; }; }
10604 ;;
10605 *)
10606 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10607echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10608 { (exit 1); exit 1; }; }
10609 esac
10610
f34ca037
MW
10611 # to be removed when --disable-gtk2 isn't needed
10612 if test "x$wxUSE_GTK2" = "xyes"; then
10613 wxGTK_VERSION=2
10614 elif test "x$wxUSE_GTK2" = "xno"; then
10615 wxGTK_VERSION=1
10616 fi
10617
a848cd7e
SC
10618 for toolkit in `echo $ALL_TOOLKITS`; do
10619 var=wxUSE_$toolkit
10620 eval "value=\$${var}"
10621 if test "x$value" != x; then
10622 cache_var=CACHE_$toolkit
10623 eval "cache=\$${cache_var}"
10624 if test "$cache" = 1; then
10625 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10626 eval "version=\$wx${toolkit}_VERSION"
10627 if test "x$version" != "x"; then
10628 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10629 fi
a848cd7e
SC
10630 fi
10631 if test "$value" = 1; then
10632 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10633 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10634echo "${ECHO_T}$toolkit_echo" >&6
10635 fi
10636 fi
10637 done
10638else
10639 if test "x$host_alias" != "x"; then
10640 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10641echo "${ECHO_T}base ($host_alias hosted) only" >&6
10642 else
10643 echo "$as_me:$LINENO: result: base only" >&5
10644echo "${ECHO_T}base only" >&6
10645 fi
10646fi
10647
10648wants_win32=0
10649doesnt_want_win32=0
10650case "${host}" in
10651 *-*-cygwin*)
10652 if test "$wxUSE_MSW" = 1 ; then
10653 wants_win32=1
7275146d 10654 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10655 else
10656 doesnt_want_win32=1
10657 fi
10658 ;;
10659 *-*-mingw*)
10660 wants_win32=1
10661 ;;
10662esac
10663
10664if test "$wxUSE_WINE" = "yes"; then
10665 wants_win32=1
10666 CC=winegcc
10667 CXX=wineg++
a848cd7e
SC
10668 LDFLAGS_GUI="-mwindows"
10669fi
10670
10671if test "$wants_win32" = 1 ; then
10672 USE_UNIX=0
10673 USE_WIN32=1
10674 cat >>confdefs.h <<\_ACEOF
10675#define __WIN32__ 1
10676_ACEOF
10677
10678 cat >>confdefs.h <<\_ACEOF
10679#define __WIN95__ 1
10680_ACEOF
10681
10682 cat >>confdefs.h <<\_ACEOF
10683#define __WINDOWS__ 1
10684_ACEOF
10685
10686 cat >>confdefs.h <<\_ACEOF
10687#define __GNUWIN32__ 1
10688_ACEOF
10689
10690 cat >>confdefs.h <<\_ACEOF
10691#define STRICT 1
10692_ACEOF
10693
10694 cat >>confdefs.h <<\_ACEOF
10695#define WINVER 0x0400
10696_ACEOF
10697
10698fi
10699if test "$doesnt_want_win32" = 1 ; then
10700 USE_UNIX=1
10701 USE_WIN32=0
10702fi
10703
10704if test "$USE_UNIX" = 1 ; then
10705 wxUSE_UNIX=yes
10706 cat >>confdefs.h <<\_ACEOF
10707#define __UNIX__ 1
10708_ACEOF
10709
10710fi
10711
10712
10713cat >confcache <<\_ACEOF
10714# This file is a shell script that caches the results of configure
10715# tests run on this system so they can be shared between configure
10716# scripts and configure runs, see configure's option --config-cache.
10717# It is not useful on other systems. If it contains results you don't
10718# want to keep, you may remove or edit it.
10719#
10720# config.status only pays attention to the cache file if you give it
10721# the --recheck option to rerun configure.
10722#
10723# `ac_cv_env_foo' variables (set or unset) will be overridden when
10724# loading this file, other *unset* `ac_cv_foo' will be assigned the
10725# following values.
10726
10727_ACEOF
10728
10729# The following way of writing the cache mishandles newlines in values,
10730# but we know of no workaround that is simple, portable, and efficient.
10731# So, don't put newlines in cache variables' values.
10732# Ultrix sh set writes to stderr and can't be redirected directly,
10733# and sets the high bit in the cache file unless we assign to the vars.
10734{
10735 (set) 2>&1 |
10736 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10737 *ac_space=\ *)
10738 # `set' does not quote correctly, so add quotes (double-quote
10739 # substitution turns \\\\ into \\, and sed turns \\ into \).
10740 sed -n \
ac1cb8d3
VS
10741 "s/'/'\\\\''/g;
10742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10743 ;;
10744 *)
10745 # `set' quotes correctly as required by POSIX, so do not add quotes.
10746 sed -n \
ac1cb8d3 10747 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10748 ;;
10749 esac;
10750} |
10751 sed '
10752 t clear
10753 : clear
10754 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10755 t end
10756 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10757 : end' >>confcache
10758if diff $cache_file confcache >/dev/null 2>&1; then :; else
10759 if test -w $cache_file; then
10760 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10761 cat confcache >$cache_file
10762 else
10763 echo "not updating unwritable cache $cache_file"
10764 fi
10765fi
10766rm -f confcache
10767
a848cd7e 10768CFLAGS=${CFLAGS:=}
6dcfc289
DE
10769
10770
3006edc0 10771
6dcfc289 10772 ac_ext=c
a848cd7e
SC
10773ac_cpp='$CPP $CPPFLAGS'
10774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10776ac_compiler_gnu=$ac_cv_c_compiler_gnu
10777if test -n "$ac_tool_prefix"; then
10778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10779set dummy ${ac_tool_prefix}gcc; ac_word=$2
10780echo "$as_me:$LINENO: checking for $ac_word" >&5
10781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10782if test "${ac_cv_prog_CC+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10784else
10785 if test -n "$CC"; then
10786 ac_cv_prog_CC="$CC" # Let the user override the test.
10787else
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10797 break 2
10798 fi
10799done
10800done
10801
10802fi
10803fi
10804CC=$ac_cv_prog_CC
10805if test -n "$CC"; then
10806 echo "$as_me:$LINENO: result: $CC" >&5
10807echo "${ECHO_T}$CC" >&6
10808else
10809 echo "$as_me:$LINENO: result: no" >&5
10810echo "${ECHO_T}no" >&6
10811fi
10812
10813fi
10814if test -z "$ac_cv_prog_CC"; then
10815 ac_ct_CC=$CC
10816 # Extract the first word of "gcc", so it can be a program name with args.
10817set dummy gcc; ac_word=$2
10818echo "$as_me:$LINENO: checking for $ac_word" >&5
10819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10820if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822else
10823 if test -n "$ac_ct_CC"; then
10824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10825else
10826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $PATH
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10833 ac_cv_prog_ac_ct_CC="gcc"
10834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 break 2
10836 fi
10837done
10838done
10839
10840fi
10841fi
10842ac_ct_CC=$ac_cv_prog_ac_ct_CC
10843if test -n "$ac_ct_CC"; then
10844 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10845echo "${ECHO_T}$ac_ct_CC" >&6
10846else
10847 echo "$as_me:$LINENO: result: no" >&5
10848echo "${ECHO_T}no" >&6
10849fi
10850
10851 CC=$ac_ct_CC
10852else
10853 CC="$ac_cv_prog_CC"
10854fi
10855
10856if test -z "$CC"; then
10857 if test -n "$ac_tool_prefix"; then
10858 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10859set dummy ${ac_tool_prefix}cc; ac_word=$2
10860echo "$as_me:$LINENO: checking for $ac_word" >&5
10861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10862if test "${ac_cv_prog_CC+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10864else
10865 if test -n "$CC"; then
10866 ac_cv_prog_CC="$CC" # Let the user override the test.
10867else
10868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869for as_dir in $PATH
10870do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10875 ac_cv_prog_CC="${ac_tool_prefix}cc"
10876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 break 2
10878 fi
10879done
10880done
10881
10882fi
10883fi
10884CC=$ac_cv_prog_CC
10885if test -n "$CC"; then
10886 echo "$as_me:$LINENO: result: $CC" >&5
10887echo "${ECHO_T}$CC" >&6
10888else
10889 echo "$as_me:$LINENO: result: no" >&5
10890echo "${ECHO_T}no" >&6
10891fi
10892
10893fi
10894if test -z "$ac_cv_prog_CC"; then
10895 ac_ct_CC=$CC
10896 # Extract the first word of "cc", so it can be a program name with args.
10897set dummy cc; ac_word=$2
10898echo "$as_me:$LINENO: checking for $ac_word" >&5
10899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10900if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10902else
10903 if test -n "$ac_ct_CC"; then
10904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10905else
10906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907for as_dir in $PATH
10908do
10909 IFS=$as_save_IFS
10910 test -z "$as_dir" && as_dir=.
10911 for ac_exec_ext in '' $ac_executable_extensions; do
10912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10913 ac_cv_prog_ac_ct_CC="cc"
10914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10915 break 2
10916 fi
10917done
10918done
10919
10920fi
10921fi
10922ac_ct_CC=$ac_cv_prog_ac_ct_CC
10923if test -n "$ac_ct_CC"; then
10924 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10925echo "${ECHO_T}$ac_ct_CC" >&6
10926else
10927 echo "$as_me:$LINENO: result: no" >&5
10928echo "${ECHO_T}no" >&6
10929fi
10930
10931 CC=$ac_ct_CC
10932else
10933 CC="$ac_cv_prog_CC"
10934fi
10935
10936fi
10937if test -z "$CC"; then
10938 # Extract the first word of "cc", so it can be a program name with args.
10939set dummy cc; ac_word=$2
10940echo "$as_me:$LINENO: checking for $ac_word" >&5
10941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10942if test "${ac_cv_prog_CC+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10944else
10945 if test -n "$CC"; then
10946 ac_cv_prog_CC="$CC" # Let the user override the test.
10947else
10948 ac_prog_rejected=no
10949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950for as_dir in $PATH
10951do
10952 IFS=$as_save_IFS
10953 test -z "$as_dir" && as_dir=.
10954 for ac_exec_ext in '' $ac_executable_extensions; do
10955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10957 ac_prog_rejected=yes
10958 continue
10959 fi
10960 ac_cv_prog_CC="cc"
10961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10962 break 2
10963 fi
10964done
10965done
10966
10967if test $ac_prog_rejected = yes; then
10968 # We found a bogon in the path, so make sure we never use it.
10969 set dummy $ac_cv_prog_CC
10970 shift
10971 if test $# != 0; then
10972 # We chose a different compiler from the bogus one.
10973 # However, it has the same basename, so the bogon will be chosen
10974 # first if we set CC to just the basename; use the full file name.
10975 shift
10976 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10977 fi
10978fi
10979fi
10980fi
10981CC=$ac_cv_prog_CC
10982if test -n "$CC"; then
10983 echo "$as_me:$LINENO: result: $CC" >&5
10984echo "${ECHO_T}$CC" >&6
10985else
10986 echo "$as_me:$LINENO: result: no" >&5
10987echo "${ECHO_T}no" >&6
10988fi
10989
10990fi
10991if test -z "$CC"; then
10992 if test -n "$ac_tool_prefix"; then
10993 for ac_prog in cl
10994 do
10995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10996set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10997echo "$as_me:$LINENO: checking for $ac_word" >&5
10998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10999if test "${ac_cv_prog_CC+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11001else
11002 if test -n "$CC"; then
11003 ac_cv_prog_CC="$CC" # Let the user override the test.
11004else
11005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006for as_dir in $PATH
11007do
11008 IFS=$as_save_IFS
11009 test -z "$as_dir" && as_dir=.
11010 for ac_exec_ext in '' $ac_executable_extensions; do
11011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11014 break 2
11015 fi
11016done
11017done
11018
11019fi
11020fi
11021CC=$ac_cv_prog_CC
11022if test -n "$CC"; then
11023 echo "$as_me:$LINENO: result: $CC" >&5
11024echo "${ECHO_T}$CC" >&6
11025else
11026 echo "$as_me:$LINENO: result: no" >&5
11027echo "${ECHO_T}no" >&6
11028fi
11029
11030 test -n "$CC" && break
11031 done
11032fi
11033if test -z "$CC"; then
11034 ac_ct_CC=$CC
11035 for ac_prog in cl
11036do
11037 # Extract the first word of "$ac_prog", so it can be a program name with args.
11038set dummy $ac_prog; ac_word=$2
11039echo "$as_me:$LINENO: checking for $ac_word" >&5
11040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11041if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043else
11044 if test -n "$ac_ct_CC"; then
11045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11046else
11047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11048for as_dir in $PATH
11049do
11050 IFS=$as_save_IFS
11051 test -z "$as_dir" && as_dir=.
11052 for ac_exec_ext in '' $ac_executable_extensions; do
11053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11054 ac_cv_prog_ac_ct_CC="$ac_prog"
11055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11056 break 2
11057 fi
11058done
11059done
11060
11061fi
11062fi
11063ac_ct_CC=$ac_cv_prog_ac_ct_CC
11064if test -n "$ac_ct_CC"; then
11065 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11066echo "${ECHO_T}$ac_ct_CC" >&6
11067else
11068 echo "$as_me:$LINENO: result: no" >&5
11069echo "${ECHO_T}no" >&6
11070fi
11071
11072 test -n "$ac_ct_CC" && break
11073done
11074
11075 CC=$ac_ct_CC
11076fi
11077
11078fi
11079
11080
11081test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11082See \`config.log' for more details." >&5
11083echo "$as_me: error: no acceptable C compiler found in \$PATH
11084See \`config.log' for more details." >&2;}
11085 { (exit 1); exit 1; }; }
11086
11087# Provide some information about the compiler.
11088echo "$as_me:$LINENO:" \
11089 "checking for C compiler version" >&5
11090ac_compiler=`set X $ac_compile; echo $2`
11091{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11092 (eval $ac_compiler --version </dev/null >&5) 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }
11096{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11097 (eval $ac_compiler -v </dev/null >&5) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }
11101{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11102 (eval $ac_compiler -V </dev/null >&5) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }
11106
11107cat >conftest.$ac_ext <<_ACEOF
11108/* confdefs.h. */
11109_ACEOF
11110cat confdefs.h >>conftest.$ac_ext
11111cat >>conftest.$ac_ext <<_ACEOF
11112/* end confdefs.h. */
11113
11114int
11115main ()
11116{
11117
11118 ;
11119 return 0;
11120}
11121_ACEOF
11122ac_clean_files_save=$ac_clean_files
11123ac_clean_files="$ac_clean_files a.out a.exe b.out"
11124# Try to create an executable without -o first, disregard a.out.
11125# It will help us diagnose broken compilers, and finding out an intuition
11126# of exeext.
ac1cb8d3
VS
11127echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11128echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11129ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11130if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11131 (eval $ac_link_default) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; then
11135 # Find the output, starting from the most likely. This scheme is
11136# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11137# resort.
11138
11139# Be careful to initialize this variable, since it used to be cached.
11140# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11141ac_cv_exeext=
11142# b.out is created by i960 compilers.
11143for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11144do
11145 test -f "$ac_file" || continue
11146 case $ac_file in
11147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11148 ;;
a848cd7e 11149 conftest.$ac_ext )
ac1cb8d3
VS
11150 # This is the source file.
11151 ;;
a848cd7e 11152 [ab].out )
ac1cb8d3
VS
11153 # We found the default executable, but exeext='' is most
11154 # certainly right.
11155 break;;
a848cd7e 11156 *.* )
ac1cb8d3
VS
11157 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11158 # FIXME: I believe we export ac_cv_exeext for Libtool,
11159 # but it would be cool to find out if it's true. Does anybody
11160 # maintain Libtool? --akim.
11161 export ac_cv_exeext
11162 break;;
a848cd7e 11163 * )
ac1cb8d3 11164 break;;
a848cd7e
SC
11165 esac
11166done
11167else
11168 echo "$as_me: failed program was:" >&5
11169sed 's/^/| /' conftest.$ac_ext >&5
11170
11171{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11172See \`config.log' for more details." >&5
11173echo "$as_me: error: C compiler cannot create executables
11174See \`config.log' for more details." >&2;}
11175 { (exit 77); exit 77; }; }
11176fi
11177
11178ac_exeext=$ac_cv_exeext
11179echo "$as_me:$LINENO: result: $ac_file" >&5
11180echo "${ECHO_T}$ac_file" >&6
11181
11182# Check the compiler produces executables we can run. If not, either
11183# the compiler is broken, or we cross compile.
11184echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11185echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11186# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11187# If not cross compiling, check that we can run a simple program.
11188if test "$cross_compiling" != yes; then
11189 if { ac_try='./$ac_file'
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 cross_compiling=no
11196 else
11197 if test "$cross_compiling" = maybe; then
11198 cross_compiling=yes
11199 else
11200 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11201If you meant to cross compile, use \`--host'.
11202See \`config.log' for more details." >&5
11203echo "$as_me: error: cannot run C compiled programs.
11204If you meant to cross compile, use \`--host'.
11205See \`config.log' for more details." >&2;}
11206 { (exit 1); exit 1; }; }
11207 fi
11208 fi
11209fi
11210echo "$as_me:$LINENO: result: yes" >&5
11211echo "${ECHO_T}yes" >&6
11212
11213rm -f a.out a.exe conftest$ac_cv_exeext b.out
11214ac_clean_files=$ac_clean_files_save
11215# Check the compiler produces executables we can run. If not, either
11216# the compiler is broken, or we cross compile.
11217echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11218echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11219echo "$as_me:$LINENO: result: $cross_compiling" >&5
11220echo "${ECHO_T}$cross_compiling" >&6
11221
11222echo "$as_me:$LINENO: checking for suffix of executables" >&5
11223echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; then
11229 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11230# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11231# work properly (i.e., refer to `conftest.exe'), while it won't with
11232# `rm'.
11233for ac_file in conftest.exe conftest conftest.*; do
11234 test -f "$ac_file" || continue
11235 case $ac_file in
11236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11238 export ac_cv_exeext
11239 break;;
a848cd7e
SC
11240 * ) break;;
11241 esac
11242done
11243else
11244 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11245See \`config.log' for more details." >&5
11246echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11247See \`config.log' for more details." >&2;}
11248 { (exit 1); exit 1; }; }
11249fi
11250
11251rm -f conftest$ac_cv_exeext
11252echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11253echo "${ECHO_T}$ac_cv_exeext" >&6
11254
11255rm -f conftest.$ac_ext
11256EXEEXT=$ac_cv_exeext
11257ac_exeext=$EXEEXT
11258echo "$as_me:$LINENO: checking for suffix of object files" >&5
11259echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11260if test "${ac_cv_objext+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262else
11263 cat >conftest.$ac_ext <<_ACEOF
11264/* confdefs.h. */
11265_ACEOF
11266cat confdefs.h >>conftest.$ac_ext
11267cat >>conftest.$ac_ext <<_ACEOF
11268/* end confdefs.h. */
11269
11270int
11271main ()
11272{
11273
11274 ;
11275 return 0;
11276}
11277_ACEOF
11278rm -f conftest.o conftest.obj
11279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11280 (eval $ac_compile) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; then
11284 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11285 case $ac_file in
11286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11287 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11288 break;;
11289 esac
11290done
11291else
11292 echo "$as_me: failed program was:" >&5
11293sed 's/^/| /' conftest.$ac_ext >&5
11294
11295{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11296See \`config.log' for more details." >&5
11297echo "$as_me: error: cannot compute suffix of object files: cannot compile
11298See \`config.log' for more details." >&2;}
11299 { (exit 1); exit 1; }; }
11300fi
11301
11302rm -f conftest.$ac_cv_objext conftest.$ac_ext
11303fi
11304echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11305echo "${ECHO_T}$ac_cv_objext" >&6
11306OBJEXT=$ac_cv_objext
11307ac_objext=$OBJEXT
11308echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11309echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11310if test "${ac_cv_c_compiler_gnu+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312else
11313 cat >conftest.$ac_ext <<_ACEOF
11314/* confdefs.h. */
11315_ACEOF
11316cat confdefs.h >>conftest.$ac_ext
11317cat >>conftest.$ac_ext <<_ACEOF
11318/* end confdefs.h. */
11319
11320int
11321main ()
11322{
11323#ifndef __GNUC__
11324 choke me
11325#endif
11326
11327 ;
11328 return 0;
11329}
11330_ACEOF
11331rm -f conftest.$ac_objext
11332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11333 (eval $ac_compile) 2>conftest.er1
a848cd7e 11334 ac_status=$?
ac1cb8d3
VS
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
a848cd7e
SC
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
6ebeb4c7 11340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 ac_compiler_gnu=yes
11353else
11354 echo "$as_me: failed program was:" >&5
11355sed 's/^/| /' conftest.$ac_ext >&5
11356
11357ac_compiler_gnu=no
11358fi
ac1cb8d3 11359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11360ac_cv_c_compiler_gnu=$ac_compiler_gnu
11361
11362fi
11363echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11364echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11365GCC=`test $ac_compiler_gnu = yes && echo yes`
11366ac_test_CFLAGS=${CFLAGS+set}
11367ac_save_CFLAGS=$CFLAGS
1c14217d 11368CFLAGS="-g"
a848cd7e
SC
11369echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11370echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11371if test "${ac_cv_prog_cc_g+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373else
11374 cat >conftest.$ac_ext <<_ACEOF
11375/* confdefs.h. */
11376_ACEOF
11377cat confdefs.h >>conftest.$ac_ext
11378cat >>conftest.$ac_ext <<_ACEOF
11379/* end confdefs.h. */
11380
11381int
11382main ()
11383{
11384
11385 ;
11386 return 0;
11387}
11388_ACEOF
11389rm -f conftest.$ac_objext
11390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11391 (eval $ac_compile) 2>conftest.er1
a848cd7e 11392 ac_status=$?
ac1cb8d3
VS
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
a848cd7e
SC
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
6ebeb4c7 11398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_cv_prog_cc_g=yes
11411else
11412 echo "$as_me: failed program was:" >&5
11413sed 's/^/| /' conftest.$ac_ext >&5
11414
11415ac_cv_prog_cc_g=no
11416fi
ac1cb8d3 11417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11418fi
11419echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11420echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11421if test "$ac_test_CFLAGS" = set; then
11422 CFLAGS=$ac_save_CFLAGS
11423elif test $ac_cv_prog_cc_g = yes; then
11424 if test "$GCC" = yes; then
11425 CFLAGS="-g -O2"
11426 else
11427 CFLAGS="-g"
11428 fi
11429else
11430 if test "$GCC" = yes; then
11431 CFLAGS="-O2"
11432 else
11433 CFLAGS=
11434 fi
11435fi
11436echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11437echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11438if test "${ac_cv_prog_cc_stdc+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440else
11441 ac_cv_prog_cc_stdc=no
11442ac_save_CC=$CC
11443cat >conftest.$ac_ext <<_ACEOF
11444/* confdefs.h. */
11445_ACEOF
11446cat confdefs.h >>conftest.$ac_ext
11447cat >>conftest.$ac_ext <<_ACEOF
11448/* end confdefs.h. */
11449#include <stdarg.h>
11450#include <stdio.h>
11451#include <sys/types.h>
11452#include <sys/stat.h>
11453/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11454struct buf { int x; };
11455FILE * (*rcsopen) (struct buf *, struct stat *, int);
11456static char *e (p, i)
11457 char **p;
11458 int i;
11459{
11460 return p[i];
11461}
11462static char *f (char * (*g) (char **, int), char **p, ...)
11463{
11464 char *s;
11465 va_list v;
11466 va_start (v,p);
11467 s = g (p, va_arg (v,int));
11468 va_end (v);
11469 return s;
11470}
ac1cb8d3
VS
11471
11472/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11473 function prototypes and stuff, but not '\xHH' hex character constants.
11474 These don't provoke an error unfortunately, instead are silently treated
11475 as 'x'. The following induces an error, until -std1 is added to get
11476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11477 array size at least. It's necessary to write '\x00'==0 to get something
11478 that's true only with -std1. */
11479int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11480
a848cd7e
SC
11481int test (int i, double x);
11482struct s1 {int (*f) (int a);};
11483struct s2 {int (*f) (double a);};
11484int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11485int argc;
11486char **argv;
11487int
11488main ()
11489{
11490return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11491 ;
11492 return 0;
11493}
11494_ACEOF
11495# Don't try gcc -ansi; that turns off useful extensions and
11496# breaks some systems' header files.
11497# AIX -qlanglvl=ansi
11498# Ultrix and OSF/1 -std1
11499# HP-UX 10.20 and later -Ae
11500# HP-UX older versions -Aa -D_HPUX_SOURCE
11501# SVR4 -Xc -D__EXTENSIONS__
11502for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11503do
11504 CC="$ac_save_CC $ac_arg"
11505 rm -f conftest.$ac_objext
11506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11507 (eval $ac_compile) 2>conftest.er1
a848cd7e 11508 ac_status=$?
ac1cb8d3
VS
11509 grep -v '^ *+' conftest.er1 >conftest.err
11510 rm -f conftest.er1
11511 cat conftest.err >&5
a848cd7e
SC
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
6ebeb4c7 11514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 ac_cv_prog_cc_stdc=$ac_arg
11527break
11528else
11529 echo "$as_me: failed program was:" >&5
11530sed 's/^/| /' conftest.$ac_ext >&5
11531
11532fi
ac1cb8d3 11533rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11534done
11535rm -f conftest.$ac_ext conftest.$ac_objext
11536CC=$ac_save_CC
11537
11538fi
11539
11540case "x$ac_cv_prog_cc_stdc" in
11541 x|xno)
11542 echo "$as_me:$LINENO: result: none needed" >&5
11543echo "${ECHO_T}none needed" >&6 ;;
11544 *)
11545 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11546echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11547 CC="$CC $ac_cv_prog_cc_stdc" ;;
11548esac
11549
11550# Some people use a C++ compiler to compile C. Since we use `exit',
11551# in C++ we need to declare it. In case someone uses the same compiler
11552# for both compiling C and C++ we need to have the C++ compiler decide
11553# the declaration of exit, since it's the most demanding environment.
11554cat >conftest.$ac_ext <<_ACEOF
11555#ifndef __cplusplus
11556 choke me
11557#endif
11558_ACEOF
11559rm -f conftest.$ac_objext
11560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11561 (eval $ac_compile) 2>conftest.er1
a848cd7e 11562 ac_status=$?
ac1cb8d3
VS
11563 grep -v '^ *+' conftest.er1 >conftest.err
11564 rm -f conftest.er1
11565 cat conftest.err >&5
a848cd7e
SC
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
6ebeb4c7 11568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 for ac_declaration in \
ac1cb8d3 11581 '' \
a848cd7e
SC
11582 'extern "C" void std::exit (int) throw (); using std::exit;' \
11583 'extern "C" void std::exit (int); using std::exit;' \
11584 'extern "C" void exit (int) throw ();' \
11585 'extern "C" void exit (int);' \
11586 'void exit (int);'
11587do
11588 cat >conftest.$ac_ext <<_ACEOF
11589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
de59c161 11594$ac_declaration
ac1cb8d3 11595#include <stdlib.h>
a848cd7e
SC
11596int
11597main ()
11598{
11599exit (42);
11600 ;
11601 return 0;
11602}
11603_ACEOF
11604rm -f conftest.$ac_objext
11605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11606 (eval $ac_compile) 2>conftest.er1
a848cd7e 11607 ac_status=$?
ac1cb8d3
VS
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
a848cd7e
SC
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
6ebeb4c7 11613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 :
11626else
11627 echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
11630continue
11631fi
ac1cb8d3 11632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11633 cat >conftest.$ac_ext <<_ACEOF
11634/* confdefs.h. */
11635_ACEOF
11636cat confdefs.h >>conftest.$ac_ext
11637cat >>conftest.$ac_ext <<_ACEOF
11638/* end confdefs.h. */
11639$ac_declaration
11640int
11641main ()
11642{
11643exit (42);
11644 ;
11645 return 0;
11646}
11647_ACEOF
11648rm -f conftest.$ac_objext
11649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11650 (eval $ac_compile) 2>conftest.er1
a848cd7e 11651 ac_status=$?
ac1cb8d3
VS
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
a848cd7e
SC
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
6ebeb4c7 11657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; } &&
11663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 break
11670else
11671 echo "$as_me: failed program was:" >&5
11672sed 's/^/| /' conftest.$ac_ext >&5
11673
11674fi
ac1cb8d3 11675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11676done
11677rm -f conftest*
11678if test -n "$ac_declaration"; then
11679 echo '#ifdef __cplusplus' >>confdefs.h
11680 echo $ac_declaration >>confdefs.h
11681 echo '#endif' >>confdefs.h
11682fi
11683
11684else
11685 echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
11687
11688fi
ac1cb8d3 11689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11690ac_ext=c
11691ac_cpp='$CPP $CPPFLAGS'
11692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11694ac_compiler_gnu=$ac_cv_c_compiler_gnu
11695
ab0ad5f1
VZ
11696
11697
11698 ac_ext=c
11699ac_cpp='$CPP $CPPFLAGS'
11700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11702ac_compiler_gnu=$ac_cv_c_compiler_gnu
11703
11704 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11705echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11706if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708else
11709 cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715
11716int
11717main ()
11718{
11719
11720 #ifndef __INTEL_COMPILER
11721 choke me
11722 #endif
11723
11724 ;
11725 return 0;
11726}
11727_ACEOF
11728rm -f conftest.$ac_objext
11729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730 (eval $ac_compile) 2>conftest.er1
11731 ac_status=$?
11732 grep -v '^ *+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try='test -s conftest.$ac_objext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11750else
11751 echo "$as_me: failed program was:" >&5
11752sed 's/^/| /' conftest.$ac_ext >&5
11753
11754bakefile_cv_c_compiler___INTEL_COMPILER=no
11755
11756fi
11757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11758
11759
11760fi
11761echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11762echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11763 ac_ext=c
11764ac_cpp='$CPP $CPPFLAGS'
11765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11767ac_compiler_gnu=$ac_cv_c_compiler_gnu
11768
11769 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11770 :; INTELCC=yes
11771 else
11772 :;
11773 fi
11774
11775
11776 if test "x$GCC" != "xyes"; then
3006edc0
VZ
11777 if test "xCC" = "xC"; then
11778 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11779echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11780if test "${wx_cv_c_exto+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782else
11783 cat >conftest.$ac_ext <<_ACEOF
11784/* confdefs.h. */
11785_ACEOF
11786cat confdefs.h >>conftest.$ac_ext
11787cat >>conftest.$ac_ext <<_ACEOF
11788/* end confdefs.h. */
11789
11790int
11791main ()
11792{
11793
11794 ;
11795 return 0;
11796}
11797_ACEOF
11798rm -f conftest.$ac_objext conftest.$ac_ext.o
11799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11800 (eval $ac_compile) 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; then
11804 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11805 case $ac_file in
11806 conftest.$ac_ext.o)
11807 wx_cv_c_exto="-ext o"
11808 ;;
11809 *)
11810 ;;
11811 esac
11812done
11813else
11814 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11815See \`config.log' for more details." >&5
11816echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11817See \`config.log' for more details." >&2;}
11818 { (exit 1); exit 1; }; }
11819
11820fi
11821
11822rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11823
11824fi
11825echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11826echo "${ECHO_T}$wx_cv_c_exto" >&6
11827if test "x$wx_cv_c_exto" '!=' "x"; then
11828 if test "c" = "c"; then
11829 CFLAGS="$wx_cv_c_exto $CFLAGS"
11830 fi
11831 if test "c" = "cxx"; then
11832 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11833 fi
11834fi
11835
3006edc0
VZ
11836 if test "x$wx_cv_c_exto" '!=' "x"; then
11837 unset ac_cv_prog_cc_g
11838 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11839ac_save_CFLAGS=$CFLAGS
1c14217d 11840CFLAGS="-g"
480ccd21
DE
11841echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11842echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11843if test "${ac_cv_prog_cc_g+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11845else
11846 cat >conftest.$ac_ext <<_ACEOF
11847/* confdefs.h. */
11848_ACEOF
11849cat confdefs.h >>conftest.$ac_ext
11850cat >>conftest.$ac_ext <<_ACEOF
11851/* end confdefs.h. */
11852
11853int
11854main ()
11855{
11856
11857 ;
11858 return 0;
11859}
11860_ACEOF
11861rm -f conftest.$ac_objext
11862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863 (eval $ac_compile) 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
6ebeb4c7 11870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest.$ac_objext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_cv_prog_cc_g=yes
11883else
11884 echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
11887ac_cv_prog_cc_g=no
11888fi
11889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11890fi
11891echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11892echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11893if test "$ac_test_CFLAGS" = set; then
11894 CFLAGS=$ac_save_CFLAGS
11895elif test $ac_cv_prog_cc_g = yes; then
11896 if test "$GCC" = yes; then
11897 CFLAGS="-g -O2"
11898 else
11899 CFLAGS="-g"
11900 fi
11901else
11902 if test "$GCC" = yes; then
11903 CFLAGS="-O2"
11904 else
11905 CFLAGS=
11906 fi
11907fi
3006edc0 11908 fi
ab0ad5f1 11909 fi
3006edc0
VZ
11910
11911 case `uname -s` in
11912 AIX*)
11913 ac_ext=c
11914ac_cpp='$CPP $CPPFLAGS'
11915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11917ac_compiler_gnu=$ac_cv_c_compiler_gnu
11918
11919echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11920echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11921if test "${wx_cv_c_compiler_xlc+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923else
11924 cat >conftest.$ac_ext <<_ACEOF
11925/* confdefs.h. */
11926_ACEOF
11927cat confdefs.h >>conftest.$ac_ext
11928cat >>conftest.$ac_ext <<_ACEOF
11929/* end confdefs.h. */
11930
11931int
11932main ()
11933{
11934#ifndef __xlC__
11935 choke me
11936#endif
11937
11938 ;
11939 return 0;
11940}
11941_ACEOF
11942rm -f conftest.$ac_objext
11943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11944 (eval $ac_compile) 2>conftest.er1
11945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
11951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } &&
11957 { ac_try='test -s conftest.$ac_objext'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 wx_compiler_xlc=yes
11964else
11965 echo "$as_me: failed program was:" >&5
11966sed 's/^/| /' conftest.$ac_ext >&5
11967
11968wx_compiler_xlc=no
11969fi
11970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11971 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11972
11973fi
11974echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11975echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11976
11977XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
11978ac_ext=c
11979ac_cpp='$CPP $CPPFLAGS'
11980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11982ac_compiler_gnu=$ac_cv_c_compiler_gnu
11983
11984
11985 ;;
11986
11987 Darwin)
11988 ac_ext=c
95986553
DE
11989ac_cpp='$CPP $CPPFLAGS'
11990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11992ac_compiler_gnu=$ac_cv_c_compiler_gnu
11993
11994echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11995echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11996if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11998else
11999 cat >conftest.$ac_ext <<_ACEOF
12000/* confdefs.h. */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h. */
12005
12006int
12007main ()
12008{
12009#ifndef __MWERKS__
12010 choke me
12011#endif
12012
12013 ;
12014 return 0;
12015}
12016_ACEOF
12017rm -f conftest.$ac_objext
12018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019 (eval $ac_compile) 2>conftest.er1
12020 ac_status=$?
12021 grep -v '^ *+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
6ebeb4c7 12026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try='test -s conftest.$ac_objext'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
12038 bakefile_compiler_mwerks=yes
12039else
12040 echo "$as_me: failed program was:" >&5
12041sed 's/^/| /' conftest.$ac_ext >&5
12042
12043bakefile_compiler_mwerks=no
12044fi
12045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12046 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12047
12048fi
12049echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12050echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12051
0e6fa1d9 12052MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12053ac_ext=c
12054ac_cpp='$CPP $CPPFLAGS'
12055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12057ac_compiler_gnu=$ac_cv_c_compiler_gnu
12058
12059
3006edc0 12060 ac_ext=c
9273ffba
DE
12061ac_cpp='$CPP $CPPFLAGS'
12062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12064ac_compiler_gnu=$ac_cv_c_compiler_gnu
12065
12066echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12067echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12068if test "${wx_cv_c_compiler_xlc+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12070else
12071 cat >conftest.$ac_ext <<_ACEOF
12072/* confdefs.h. */
12073_ACEOF
12074cat confdefs.h >>conftest.$ac_ext
12075cat >>conftest.$ac_ext <<_ACEOF
12076/* end confdefs.h. */
12077
12078int
12079main ()
12080{
12081#ifndef __xlC__
12082 choke me
12083#endif
12084
12085 ;
12086 return 0;
12087}
12088_ACEOF
12089rm -f conftest.$ac_objext
12090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12091 (eval $ac_compile) 2>conftest.er1
12092 ac_status=$?
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
6ebeb4c7 12098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest.$ac_objext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 wx_compiler_xlc=yes
12111else
12112 echo "$as_me: failed program was:" >&5
12113sed 's/^/| /' conftest.$ac_ext >&5
12114
12115wx_compiler_xlc=no
12116fi
12117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12118 wx_cv_c_compiler_xlc=$wx_compiler_xlc
12119
12120fi
12121echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
12122echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
12123
0e6fa1d9 12124XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12125ac_ext=c
12126ac_cpp='$CPP $CPPFLAGS'
12127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12129ac_compiler_gnu=$ac_cv_c_compiler_gnu
12130
12131
3006edc0
VZ
12132 ;;
12133
12134 IRIX*)
a848cd7e 12135
6dcfc289 12136
0ad5d837
VZ
12137 ac_ext=c
12138ac_cpp='$CPP $CPPFLAGS'
12139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12141ac_compiler_gnu=$ac_cv_c_compiler_gnu
12142
12143 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12144echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12145if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12147else
12148 cat >conftest.$ac_ext <<_ACEOF
12149/* confdefs.h. */
12150_ACEOF
12151cat confdefs.h >>conftest.$ac_ext
12152cat >>conftest.$ac_ext <<_ACEOF
12153/* end confdefs.h. */
12154
12155int
12156main ()
12157{
12158
12159 #ifndef _SGI_COMPILER_VERSION
12160 choke me
12161 #endif
12162
12163 ;
12164 return 0;
12165}
12166_ACEOF
12167rm -f conftest.$ac_objext
12168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12169 (eval $ac_compile) 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
12176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try='test -s conftest.$ac_objext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12189else
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
12193bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12194
12195fi
12196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12197
12198
12199fi
12200echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12201echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12202 ac_ext=c
12203ac_cpp='$CPP $CPPFLAGS'
12204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12206ac_compiler_gnu=$ac_cv_c_compiler_gnu
12207
12208 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12209 :; SGICC=yes
12210 else
12211 :;
12212 fi
12213
12214
3006edc0
VZ
12215 ;;
12216
12217 SunOS)
0ad5d837
VZ
12218
12219
a9e5b1f0
MW
12220 ac_ext=c
12221ac_cpp='$CPP $CPPFLAGS'
12222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12224ac_compiler_gnu=$ac_cv_c_compiler_gnu
12225
12226 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12227echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12228if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230else
12231 cat >conftest.$ac_ext <<_ACEOF
12232/* confdefs.h. */
12233_ACEOF
12234cat confdefs.h >>conftest.$ac_ext
12235cat >>conftest.$ac_ext <<_ACEOF
12236/* end confdefs.h. */
12237
12238int
12239main ()
12240{
12241
12242 #ifndef __SUNPRO_C
12243 choke me
12244 #endif
12245
12246 ;
12247 return 0;
12248}
12249_ACEOF
12250rm -f conftest.$ac_objext
12251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12252 (eval $ac_compile) 2>conftest.er1
12253 ac_status=$?
12254 grep -v '^ *+' conftest.er1 >conftest.err
12255 rm -f conftest.er1
12256 cat conftest.err >&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } &&
6ebeb4c7 12259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; } &&
12265 { ac_try='test -s conftest.$ac_objext'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; }; then
12271 bakefile_cv_c_compiler___SUNPRO_C=yes
12272else
12273 echo "$as_me: failed program was:" >&5
12274sed 's/^/| /' conftest.$ac_ext >&5
12275
12276bakefile_cv_c_compiler___SUNPRO_C=no
12277
12278fi
12279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12280
12281
12282fi
12283echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12284echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12285 ac_ext=c
12286ac_cpp='$CPP $CPPFLAGS'
12287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12289ac_compiler_gnu=$ac_cv_c_compiler_gnu
12290
12291 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12292 :; SUNCC=yes
12293 else
12294 :;
12295 fi
12296
12297
3006edc0
VZ
12298 ;;
12299
12300 HP-UX*)
12301
12302
12303 ac_ext=c
12304ac_cpp='$CPP $CPPFLAGS'
12305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12307ac_compiler_gnu=$ac_cv_c_compiler_gnu
12308
12309 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12310echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12311if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313else
12314 cat >conftest.$ac_ext <<_ACEOF
12315/* confdefs.h. */
12316_ACEOF
12317cat confdefs.h >>conftest.$ac_ext
12318cat >>conftest.$ac_ext <<_ACEOF
12319/* end confdefs.h. */
12320
12321int
12322main ()
12323{
12324
12325 #ifndef __HP_cc
12326 choke me
12327 #endif
12328
12329 ;
12330 return 0;
12331}
12332_ACEOF
12333rm -f conftest.$ac_objext
12334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12335 (eval $ac_compile) 2>conftest.er1
12336 ac_status=$?
12337 grep -v '^ *+' conftest.er1 >conftest.err
12338 rm -f conftest.er1
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } &&
12342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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'
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 bakefile_cv_c_compiler___HP_cc=yes
12355else
12356 echo "$as_me: failed program was:" >&5
12357sed 's/^/| /' conftest.$ac_ext >&5
12358
12359bakefile_cv_c_compiler___HP_cc=no
12360
12361fi
12362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12363
12364
12365fi
12366echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12367echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
12368 ac_ext=c
12369ac_cpp='$CPP $CPPFLAGS'
12370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12372ac_compiler_gnu=$ac_cv_c_compiler_gnu
12373
12374 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12375 :; HPCC=yes
12376 else
12377 :;
12378 fi
12379
12380
12381 ;;
12382 esac
ab0ad5f1 12383 fi
a9e5b1f0
MW
12384
12385
3006edc0 12386
a848cd7e
SC
12387ac_ext=c
12388ac_cpp='$CPP $CPPFLAGS'
12389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12391ac_compiler_gnu=$ac_cv_c_compiler_gnu
12392echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12393echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12394# On Suns, sometimes $CPP names a directory.
12395if test -n "$CPP" && test -d "$CPP"; then
12396 CPP=
12397fi
12398if test -z "$CPP"; then
12399 if test "${ac_cv_prog_CPP+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401else
12402 # Double quotes because CPP needs to be expanded
12403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12404 do
12405 ac_preproc_ok=false
12406for ac_c_preproc_warn_flag in '' yes
12407do
12408 # Use a header file that comes with gcc, so configuring glibc
12409 # with a fresh cross-compiler works.
12410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12411 # <limits.h> exists even on freestanding compilers.
12412 # On the NeXT, cc -E runs the code through the compiler's parser,
12413 # not just through cpp. "Syntax error" is here to catch this case.
12414 cat >conftest.$ac_ext <<_ACEOF
12415/* confdefs.h. */
12416_ACEOF
12417cat confdefs.h >>conftest.$ac_ext
12418cat >>conftest.$ac_ext <<_ACEOF
12419/* end confdefs.h. */
12420#ifdef __STDC__
12421# include <limits.h>
12422#else
12423# include <assert.h>
12424#endif
ac1cb8d3 12425 Syntax error
a848cd7e
SC
12426_ACEOF
12427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } >/dev/null; then
12435 if test -s conftest.err; then
12436 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12438 else
12439 ac_cpp_err=
12440 fi
12441else
12442 ac_cpp_err=yes
12443fi
12444if test -z "$ac_cpp_err"; then
12445 :
12446else
12447 echo "$as_me: failed program was:" >&5
12448sed 's/^/| /' conftest.$ac_ext >&5
12449
12450 # Broken: fails on valid input.
12451continue
12452fi
12453rm -f conftest.err conftest.$ac_ext
12454
12455 # OK, works on sane cases. Now check whether non-existent headers
12456 # can be detected and how.
12457 cat >conftest.$ac_ext <<_ACEOF
12458/* confdefs.h. */
12459_ACEOF
12460cat confdefs.h >>conftest.$ac_ext
12461cat >>conftest.$ac_ext <<_ACEOF
12462/* end confdefs.h. */
12463#include <ac_nonexistent.h>
12464_ACEOF
12465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } >/dev/null; then
12473 if test -s conftest.err; then
12474 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12476 else
12477 ac_cpp_err=
12478 fi
12479else
12480 ac_cpp_err=yes
12481fi
12482if test -z "$ac_cpp_err"; then
12483 # Broken: success on invalid input.
12484continue
12485else
12486 echo "$as_me: failed program was:" >&5
12487sed 's/^/| /' conftest.$ac_ext >&5
12488
12489 # Passes both tests.
12490ac_preproc_ok=:
12491break
12492fi
12493rm -f conftest.err conftest.$ac_ext
12494
12495done
12496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12497rm -f conftest.err conftest.$ac_ext
12498if $ac_preproc_ok; then
12499 break
12500fi
12501
12502 done
12503 ac_cv_prog_CPP=$CPP
12504
12505fi
12506 CPP=$ac_cv_prog_CPP
12507else
12508 ac_cv_prog_CPP=$CPP
12509fi
12510echo "$as_me:$LINENO: result: $CPP" >&5
12511echo "${ECHO_T}$CPP" >&6
12512ac_preproc_ok=false
12513for ac_c_preproc_warn_flag in '' yes
12514do
12515 # Use a header file that comes with gcc, so configuring glibc
12516 # with a fresh cross-compiler works.
12517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12518 # <limits.h> exists even on freestanding compilers.
12519 # On the NeXT, cc -E runs the code through the compiler's parser,
12520 # not just through cpp. "Syntax error" is here to catch this case.
12521 cat >conftest.$ac_ext <<_ACEOF
12522/* confdefs.h. */
12523_ACEOF
12524cat confdefs.h >>conftest.$ac_ext
12525cat >>conftest.$ac_ext <<_ACEOF
12526/* end confdefs.h. */
12527#ifdef __STDC__
12528# include <limits.h>
12529#else
12530# include <assert.h>
12531#endif
ac1cb8d3 12532 Syntax error
a848cd7e
SC
12533_ACEOF
12534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12536 ac_status=$?
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } >/dev/null; then
12542 if test -s conftest.err; then
12543 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12545 else
12546 ac_cpp_err=
12547 fi
12548else
12549 ac_cpp_err=yes
12550fi
12551if test -z "$ac_cpp_err"; then
12552 :
12553else
12554 echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557 # Broken: fails on valid input.
12558continue
12559fi
12560rm -f conftest.err conftest.$ac_ext
12561
12562 # OK, works on sane cases. Now check whether non-existent headers
12563 # can be detected and how.
12564 cat >conftest.$ac_ext <<_ACEOF
12565/* confdefs.h. */
12566_ACEOF
12567cat confdefs.h >>conftest.$ac_ext
12568cat >>conftest.$ac_ext <<_ACEOF
12569/* end confdefs.h. */
12570#include <ac_nonexistent.h>
12571_ACEOF
12572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12574 ac_status=$?
12575 grep -v '^ *+' conftest.er1 >conftest.err
12576 rm -f conftest.er1
12577 cat conftest.err >&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } >/dev/null; then
12580 if test -s conftest.err; then
12581 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12583 else
12584 ac_cpp_err=
12585 fi
12586else
12587 ac_cpp_err=yes
12588fi
12589if test -z "$ac_cpp_err"; then
12590 # Broken: success on invalid input.
12591continue
12592else
12593 echo "$as_me: failed program was:" >&5
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 # Passes both tests.
12597ac_preproc_ok=:
12598break
12599fi
12600rm -f conftest.err conftest.$ac_ext
12601
12602done
12603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12604rm -f conftest.err conftest.$ac_ext
12605if $ac_preproc_ok; then
12606 :
12607else
12608 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12609See \`config.log' for more details." >&5
12610echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12611See \`config.log' for more details." >&2;}
12612 { (exit 1); exit 1; }; }
12613fi
12614
12615ac_ext=c
12616ac_cpp='$CPP $CPPFLAGS'
12617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12619ac_compiler_gnu=$ac_cv_c_compiler_gnu
12620
12621
12622echo "$as_me:$LINENO: checking for egrep" >&5
12623echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12624if test "${ac_cv_prog_egrep+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12626else
12627 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12628 then ac_cv_prog_egrep='grep -E'
12629 else ac_cv_prog_egrep='egrep'
12630 fi
12631fi
12632echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12633echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12634 EGREP=$ac_cv_prog_egrep
12635
12636
12637if test $ac_cv_c_compiler_gnu = yes; then
12638 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12639echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12640if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643 ac_pattern="Autoconf.*'x'"
12644 cat >conftest.$ac_ext <<_ACEOF
12645/* confdefs.h. */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h. */
12650#include <sgtty.h>
12651Autoconf TIOCGETP
12652_ACEOF
12653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12654 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12655 ac_cv_prog_gcc_traditional=yes
12656else
12657 ac_cv_prog_gcc_traditional=no
12658fi
12659rm -f conftest*
12660
12661
12662 if test $ac_cv_prog_gcc_traditional = no; then
12663 cat >conftest.$ac_ext <<_ACEOF
12664/* confdefs.h. */
12665_ACEOF
12666cat confdefs.h >>conftest.$ac_ext
12667cat >>conftest.$ac_ext <<_ACEOF
12668/* end confdefs.h. */
12669#include <termio.h>
12670Autoconf TCGETA
12671_ACEOF
12672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12673 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12674 ac_cv_prog_gcc_traditional=yes
12675fi
12676rm -f conftest*
12677
12678 fi
12679fi
12680echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12681echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12682 if test $ac_cv_prog_gcc_traditional = yes; then
12683 CC="$CC -traditional"
12684 fi
12685fi
12686
12687
12688
12689
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
12697CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12698
12699
3006edc0 12700
6dcfc289 12701 ac_ext=cc
a848cd7e
SC
12702ac_cpp='$CXXCPP $CPPFLAGS'
12703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12706if test -n "$ac_tool_prefix"; then
12707 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12708 do
12709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12710set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12711echo "$as_me:$LINENO: checking for $ac_word" >&5
12712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12713if test "${ac_cv_prog_CXX+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715else
12716 if test -n "$CXX"; then
12717 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12718else
12719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720for as_dir in $PATH
12721do
12722 IFS=$as_save_IFS
12723 test -z "$as_dir" && as_dir=.
12724 for ac_exec_ext in '' $ac_executable_extensions; do
12725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12726 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12728 break 2
12729 fi
12730done
12731done
12732
12733fi
12734fi
12735CXX=$ac_cv_prog_CXX
12736if test -n "$CXX"; then
12737 echo "$as_me:$LINENO: result: $CXX" >&5
12738echo "${ECHO_T}$CXX" >&6
12739else
12740 echo "$as_me:$LINENO: result: no" >&5
12741echo "${ECHO_T}no" >&6
12742fi
12743
12744 test -n "$CXX" && break
12745 done
12746fi
12747if test -z "$CXX"; then
12748 ac_ct_CXX=$CXX
12749 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12750do
12751 # Extract the first word of "$ac_prog", so it can be a program name with args.
12752set dummy $ac_prog; ac_word=$2
12753echo "$as_me:$LINENO: checking for $ac_word" >&5
12754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12755if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12757else
12758 if test -n "$ac_ct_CXX"; then
12759 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12760else
12761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762for as_dir in $PATH
12763do
12764 IFS=$as_save_IFS
12765 test -z "$as_dir" && as_dir=.
12766 for ac_exec_ext in '' $ac_executable_extensions; do
12767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12768 ac_cv_prog_ac_ct_CXX="$ac_prog"
12769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12770 break 2
12771 fi
12772done
12773done
12774
12775fi
12776fi
12777ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12778if test -n "$ac_ct_CXX"; then
12779 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12780echo "${ECHO_T}$ac_ct_CXX" >&6
12781else
12782 echo "$as_me:$LINENO: result: no" >&5
12783echo "${ECHO_T}no" >&6
12784fi
12785
12786 test -n "$ac_ct_CXX" && break
12787done
12788test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12789
12790 CXX=$ac_ct_CXX
12791fi
12792
12793
12794# Provide some information about the compiler.
12795echo "$as_me:$LINENO:" \
12796 "checking for C++ compiler version" >&5
12797ac_compiler=`set X $ac_compile; echo $2`
12798{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12799 (eval $ac_compiler --version </dev/null >&5) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }
12803{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12804 (eval $ac_compiler -v </dev/null >&5) 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }
12808{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12809 (eval $ac_compiler -V </dev/null >&5) 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }
12813
12814echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12815echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12816if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12818else
12819 cat >conftest.$ac_ext <<_ACEOF
12820/* confdefs.h. */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
12824/* end confdefs.h. */
12825
12826int
12827main ()
12828{
12829#ifndef __GNUC__
12830 choke me
12831#endif
12832
12833 ;
12834 return 0;
12835}
12836_ACEOF
12837rm -f conftest.$ac_objext
12838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12839 (eval $ac_compile) 2>conftest.er1
a848cd7e 12840 ac_status=$?
ac1cb8d3
VS
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
a848cd7e
SC
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
6ebeb4c7 12846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_compiler_gnu=yes
12859else
12860 echo "$as_me: failed program was:" >&5
12861sed 's/^/| /' conftest.$ac_ext >&5
12862
12863ac_compiler_gnu=no
12864fi
ac1cb8d3 12865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12866ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12867
12868fi
12869echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12870echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12871GXX=`test $ac_compiler_gnu = yes && echo yes`
12872ac_test_CXXFLAGS=${CXXFLAGS+set}
12873ac_save_CXXFLAGS=$CXXFLAGS
12874CXXFLAGS="-g"
12875echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12876echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12877if test "${ac_cv_prog_cxx_g+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879else
12880 cat >conftest.$ac_ext <<_ACEOF
12881/* confdefs.h. */
12882_ACEOF
12883cat confdefs.h >>conftest.$ac_ext
12884cat >>conftest.$ac_ext <<_ACEOF
12885/* end confdefs.h. */
12886
12887int
12888main ()
12889{
12890
12891 ;
12892 return 0;
12893}
12894_ACEOF
12895rm -f conftest.$ac_objext
12896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12897 (eval $ac_compile) 2>conftest.er1
a848cd7e 12898 ac_status=$?
ac1cb8d3
VS
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
a848cd7e
SC
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
6ebeb4c7 12904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_cv_prog_cxx_g=yes
12917else
12918 echo "$as_me: failed program was:" >&5
12919sed 's/^/| /' conftest.$ac_ext >&5
12920
12921ac_cv_prog_cxx_g=no
12922fi
ac1cb8d3 12923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12924fi
12925echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12926echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12927if test "$ac_test_CXXFLAGS" = set; then
12928 CXXFLAGS=$ac_save_CXXFLAGS
12929elif test $ac_cv_prog_cxx_g = yes; then
12930 if test "$GXX" = yes; then
1c14217d 12931 CXXFLAGS="-g -O2"
a848cd7e 12932 else
1c14217d 12933 CXXFLAGS="-g"
a848cd7e
SC
12934 fi
12935else
12936 if test "$GXX" = yes; then
12937 CXXFLAGS="-O2"
12938 else
12939 CXXFLAGS=
12940 fi
12941fi
12942for ac_declaration in \
ac1cb8d3 12943 '' \
a848cd7e
SC
12944 'extern "C" void std::exit (int) throw (); using std::exit;' \
12945 'extern "C" void std::exit (int); using std::exit;' \
12946 'extern "C" void exit (int) throw ();' \
12947 'extern "C" void exit (int);' \
12948 'void exit (int);'
12949do
12950 cat >conftest.$ac_ext <<_ACEOF
12951/* confdefs.h. */
12952_ACEOF
12953cat confdefs.h >>conftest.$ac_ext
12954cat >>conftest.$ac_ext <<_ACEOF
12955/* end confdefs.h. */
de59c161 12956$ac_declaration
ac1cb8d3 12957#include <stdlib.h>
a848cd7e
SC
12958int
12959main ()
12960{
12961exit (42);
12962 ;
12963 return 0;
12964}
12965_ACEOF
12966rm -f conftest.$ac_objext
12967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12968 (eval $ac_compile) 2>conftest.er1
a848cd7e 12969 ac_status=$?
ac1cb8d3
VS
12970 grep -v '^ *+' conftest.er1 >conftest.err
12971 rm -f conftest.er1
12972 cat conftest.err >&5
a848cd7e
SC
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
6ebeb4c7 12975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
12981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 :
12988else
12989 echo "$as_me: failed program was:" >&5
12990sed 's/^/| /' conftest.$ac_ext >&5
12991
12992continue
12993fi
ac1cb8d3 12994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12995 cat >conftest.$ac_ext <<_ACEOF
12996/* confdefs.h. */
12997_ACEOF
12998cat confdefs.h >>conftest.$ac_ext
12999cat >>conftest.$ac_ext <<_ACEOF
13000/* end confdefs.h. */
13001$ac_declaration
13002int
13003main ()
13004{
13005exit (42);
13006 ;
13007 return 0;
13008}
13009_ACEOF
13010rm -f conftest.$ac_objext
13011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13012 (eval $ac_compile) 2>conftest.er1
a848cd7e 13013 ac_status=$?
ac1cb8d3
VS
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
a848cd7e
SC
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
6ebeb4c7 13019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } &&
13025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 break
13032else
13033 echo "$as_me: failed program was:" >&5
13034sed 's/^/| /' conftest.$ac_ext >&5
13035
13036fi
ac1cb8d3 13037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13038done
13039rm -f conftest*
13040if test -n "$ac_declaration"; then
13041 echo '#ifdef __cplusplus' >>confdefs.h
13042 echo $ac_declaration >>confdefs.h
13043 echo '#endif' >>confdefs.h
13044fi
13045
13046ac_ext=cc
13047ac_cpp='$CXXCPP $CPPFLAGS'
13048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13051
ab0ad5f1
VZ
13052
13053
13054 ac_ext=cc
13055ac_cpp='$CXXCPP $CPPFLAGS'
13056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13059
13060 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13061echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13062if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064else
13065 cat >conftest.$ac_ext <<_ACEOF
13066/* confdefs.h. */
13067_ACEOF
13068cat confdefs.h >>conftest.$ac_ext
13069cat >>conftest.$ac_ext <<_ACEOF
13070/* end confdefs.h. */
13071
13072int
13073main ()
13074{
13075
13076 #ifndef __INTEL_COMPILER
13077 choke me
13078 #endif
13079
13080 ;
13081 return 0;
13082}
13083_ACEOF
13084rm -f conftest.$ac_objext
13085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086 (eval $ac_compile) 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; } &&
13099 { ac_try='test -s conftest.$ac_objext'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13106else
13107 echo "$as_me: failed program was:" >&5
13108sed 's/^/| /' conftest.$ac_ext >&5
13109
13110bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13111
13112fi
13113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13114
13115
13116fi
13117echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13118echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13119 ac_ext=cc
13120ac_cpp='$CXXCPP $CPPFLAGS'
13121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13124
13125 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13126 :; INTELCXX=yes
13127 else
13128 :;
13129 fi
13130
13131
3006edc0
VZ
13132 if test "x$GCXX" != "xyes"; then
13133 if test "xCXX" = "xC"; then
13134 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
13135echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
13136if test "${wx_cv_cxx_exto+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13138else
13139 cat >conftest.$ac_ext <<_ACEOF
13140/* confdefs.h. */
13141_ACEOF
13142cat confdefs.h >>conftest.$ac_ext
13143cat >>conftest.$ac_ext <<_ACEOF
13144/* end confdefs.h. */
13145
13146int
13147main ()
13148{
13149
13150 ;
13151 return 0;
13152}
13153_ACEOF
13154rm -f conftest.$ac_objext conftest.$ac_ext.o
13155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13156 (eval $ac_compile) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; then
13160 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13161 case $ac_file in
13162 conftest.$ac_ext.o)
13163 wx_cv_cxx_exto="-ext o"
13164 ;;
13165 *)
13166 ;;
13167 esac
13168done
13169else
13170 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13171See \`config.log' for more details." >&5
13172echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13173See \`config.log' for more details." >&2;}
13174 { (exit 1); exit 1; }; }
13175
13176fi
13177
13178rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13179
13180fi
13181echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
13182echo "${ECHO_T}$wx_cv_cxx_exto" >&6
13183if test "x$wx_cv_cxx_exto" '!=' "x"; then
13184 if test "cxx" = "c"; then
13185 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
13186 fi
13187 if test "cxx" = "cxx"; then
13188 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
13189 fi
13190fi
13191
3006edc0
VZ
13192 if test "x$wx_cv_c_exto" '!=' "x"; then
13193 unset ac_cv_prog_cc_g
13194 ac_test_CFLAGS=${CFLAGS+set}
13195ac_save_CFLAGS=$CFLAGS
13196CFLAGS="-g"
13197echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13198echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13199if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201else
13202 cat >conftest.$ac_ext <<_ACEOF
13203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
13207/* end confdefs.h. */
13208
13209int
13210main ()
13211{
13212
13213 ;
13214 return 0;
13215}
13216_ACEOF
13217rm -f conftest.$ac_objext
13218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219 (eval $ac_compile) 2>conftest.er1
13220 ac_status=$?
13221 grep -v '^ *+' conftest.er1 >conftest.err
13222 rm -f conftest.er1
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } &&
6ebeb4c7 13226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; } &&
13232 { ac_try='test -s conftest.$ac_objext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13235 ac_status=$?
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
3006edc0 13238 ac_cv_prog_cc_g=yes
480ccd21
DE
13239else
13240 echo "$as_me: failed program was:" >&5
13241sed 's/^/| /' conftest.$ac_ext >&5
13242
3006edc0 13243ac_cv_prog_cc_g=no
480ccd21
DE
13244fi
13245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13246fi
3006edc0
VZ
13247echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13248echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13249if test "$ac_test_CFLAGS" = set; then
13250 CFLAGS=$ac_save_CFLAGS
13251elif test $ac_cv_prog_cc_g = yes; then
13252 if test "$GCC" = yes; then
13253 CFLAGS="-g -O2"
480ccd21 13254 else
3006edc0 13255 CFLAGS="-g"
480ccd21
DE
13256 fi
13257else
3006edc0
VZ
13258 if test "$GCC" = yes; then
13259 CFLAGS="-O2"
480ccd21 13260 else
3006edc0 13261 CFLAGS=
480ccd21
DE
13262 fi
13263fi
3006edc0 13264 fi
ab0ad5f1 13265 fi
3006edc0
VZ
13266
13267 case `uname -s` in
13268 AIX*)
13269 ac_ext=cc
13270ac_cpp='$CXXCPP $CPPFLAGS'
13271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13274
13275echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13276echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
13277if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13279else
13280 cat >conftest.$ac_ext <<_ACEOF
13281/* confdefs.h. */
13282_ACEOF
13283cat confdefs.h >>conftest.$ac_ext
13284cat >>conftest.$ac_ext <<_ACEOF
13285/* end confdefs.h. */
13286
13287int
13288main ()
13289{
13290#ifndef __xlC__
13291 choke me
13292#endif
13293
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298rm -f conftest.$ac_objext
13299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13300 (eval $ac_compile) 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
13307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest.$ac_objext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 wx_compiler_xlc=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324wx_compiler_xlc=no
13325fi
13326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13327 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
13328
13329fi
13330echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
13331echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
13332
13333XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
13334ac_ext=cc
13335ac_cpp='$CXXCPP $CPPFLAGS'
13336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13339
13340
13341 ;;
13342
13343 Darwin)
13344 ac_ext=cc
95986553
DE
13345ac_cpp='$CXXCPP $CPPFLAGS'
13346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13349
13350echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13351echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13352if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13354else
13355 cat >conftest.$ac_ext <<_ACEOF
13356/* confdefs.h. */
13357_ACEOF
13358cat confdefs.h >>conftest.$ac_ext
13359cat >>conftest.$ac_ext <<_ACEOF
13360/* end confdefs.h. */
13361
13362int
13363main ()
13364{
13365#ifndef __MWERKS__
13366 choke me
13367#endif
13368
13369 ;
13370 return 0;
13371}
13372_ACEOF
13373rm -f conftest.$ac_objext
13374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13375 (eval $ac_compile) 2>conftest.er1
13376 ac_status=$?
13377 grep -v '^ *+' conftest.er1 >conftest.err
13378 rm -f conftest.er1
13379 cat conftest.err >&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } &&
6ebeb4c7 13382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; } &&
13388 { ac_try='test -s conftest.$ac_objext'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13391 ac_status=$?
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; }; then
13394 bakefile_compiler_mwerks=yes
13395else
13396 echo "$as_me: failed program was:" >&5
13397sed 's/^/| /' conftest.$ac_ext >&5
13398
13399bakefile_compiler_mwerks=no
13400fi
13401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13402 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13403
13404fi
13405echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13406echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13407
0e6fa1d9 13408MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13409ac_ext=cc
13410ac_cpp='$CXXCPP $CPPFLAGS'
13411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13414
13415
3006edc0 13416 ac_ext=cc
9273ffba
DE
13417ac_cpp='$CXXCPP $CPPFLAGS'
13418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13421
13422echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13423echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
13424if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13426else
13427 cat >conftest.$ac_ext <<_ACEOF
13428/* confdefs.h. */
13429_ACEOF
13430cat confdefs.h >>conftest.$ac_ext
13431cat >>conftest.$ac_ext <<_ACEOF
13432/* end confdefs.h. */
13433
13434int
13435main ()
13436{
13437#ifndef __xlC__
13438 choke me
13439#endif
13440
13441 ;
13442 return 0;
13443}
13444_ACEOF
13445rm -f conftest.$ac_objext
13446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13447 (eval $ac_compile) 2>conftest.er1
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
6ebeb4c7 13454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest.$ac_objext'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 wx_compiler_xlc=yes
13467else
13468 echo "$as_me: failed program was:" >&5
13469sed 's/^/| /' conftest.$ac_ext >&5
13470
13471wx_compiler_xlc=no
13472fi
13473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13474 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
13475
13476fi
13477echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
13478echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
13479
0e6fa1d9 13480XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13481ac_ext=cc
13482ac_cpp='$CXXCPP $CPPFLAGS'
13483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13486
13487
3006edc0
VZ
13488 ;;
13489
13490 IRIX*)
95986553 13491
6dcfc289 13492
0ad5d837
VZ
13493 ac_ext=cc
13494ac_cpp='$CXXCPP $CPPFLAGS'
13495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13498
13499 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13500echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13501if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13503else
13504 cat >conftest.$ac_ext <<_ACEOF
13505/* confdefs.h. */
13506_ACEOF
13507cat confdefs.h >>conftest.$ac_ext
13508cat >>conftest.$ac_ext <<_ACEOF
13509/* end confdefs.h. */
13510
13511int
13512main ()
13513{
13514
13515 #ifndef _SGI_COMPILER_VERSION
13516 choke me
13517 #endif
13518
13519 ;
13520 return 0;
13521}
13522_ACEOF
13523rm -f conftest.$ac_objext
13524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525 (eval $ac_compile) 2>conftest.er1
13526 ac_status=$?
13527 grep -v '^ *+' conftest.er1 >conftest.err
13528 rm -f conftest.er1
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
13532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest.$ac_objext'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13541 ac_status=$?
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13544 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13545else
13546 echo "$as_me: failed program was:" >&5
13547sed 's/^/| /' conftest.$ac_ext >&5
13548
13549bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13550
13551fi
13552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13553
13554
13555fi
13556echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13557echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13558 ac_ext=cc
13559ac_cpp='$CXXCPP $CPPFLAGS'
13560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13563
13564 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13565 :; SGICXX=yes
13566 else
13567 :;
13568 fi
13569
13570
3006edc0
VZ
13571 ;;
13572
13573 SunOS)
0ad5d837
VZ
13574
13575
a9e5b1f0
MW
13576 ac_ext=cc
13577ac_cpp='$CXXCPP $CPPFLAGS'
13578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13581
13582 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13583echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13584if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586else
13587 cat >conftest.$ac_ext <<_ACEOF
13588/* confdefs.h. */
13589_ACEOF
13590cat confdefs.h >>conftest.$ac_ext
13591cat >>conftest.$ac_ext <<_ACEOF
13592/* end confdefs.h. */
13593
13594int
13595main ()
13596{
13597
13598 #ifndef __SUNPRO_CC
13599 choke me
13600 #endif
13601
13602 ;
13603 return 0;
13604}
13605_ACEOF
13606rm -f conftest.$ac_objext
13607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13608 (eval $ac_compile) 2>conftest.er1
13609 ac_status=$?
13610 grep -v '^ *+' conftest.er1 >conftest.err
13611 rm -f conftest.er1
13612 cat conftest.err >&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } &&
6ebeb4c7 13615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest.$ac_objext'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13628else
13629 echo "$as_me: failed program was:" >&5
13630sed 's/^/| /' conftest.$ac_ext >&5
13631
13632bakefile_cv_cxx_compiler___SUNPRO_CC=no
13633
13634fi
13635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13636
13637
13638fi
13639echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13640echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13641 ac_ext=cc
13642ac_cpp='$CXXCPP $CPPFLAGS'
13643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13646
13647 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13648 :; SUNCXX=yes
13649 else
13650 :;
13651 fi
13652
13653
3006edc0
VZ
13654 ;;
13655
13656 HP-UX*)
13657
13658
13659 ac_ext=cc
13660ac_cpp='$CXXCPP $CPPFLAGS'
13661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13664
13665 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13666echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13667if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669else
13670 cat >conftest.$ac_ext <<_ACEOF
13671/* confdefs.h. */
13672_ACEOF
13673cat confdefs.h >>conftest.$ac_ext
13674cat >>conftest.$ac_ext <<_ACEOF
13675/* end confdefs.h. */
13676
13677int
13678main ()
13679{
13680
13681 #ifndef __HP_aCC
13682 choke me
13683 #endif
13684
13685 ;
13686 return 0;
13687}
13688_ACEOF
13689rm -f conftest.$ac_objext
13690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13691 (eval $ac_compile) 2>conftest.er1
13692 ac_status=$?
13693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } &&
13704 { ac_try='test -s conftest.$ac_objext'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 bakefile_cv_cxx_compiler___HP_aCC=yes
13711else
13712 echo "$as_me: failed program was:" >&5
13713sed 's/^/| /' conftest.$ac_ext >&5
13714
13715bakefile_cv_cxx_compiler___HP_aCC=no
13716
13717fi
13718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13719
13720
13721fi
13722echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13723echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
13724 ac_ext=cc
13725ac_cpp='$CXXCPP $CPPFLAGS'
13726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13729
13730 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13731 :; HPCXX=yes
13732 else
13733 :;
ab0ad5f1 13734 fi
a9e5b1f0
MW
13735
13736
3006edc0
VZ
13737 ;;
13738 esac
13739 fi
13740
13741
13742
a848cd7e
SC
13743ac_ext=c
13744ac_cpp='$CPP $CPPFLAGS'
13745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13747ac_compiler_gnu=$ac_cv_c_compiler_gnu
13748
13749
a848cd7e
SC
13750if test -n "$ac_tool_prefix"; then
13751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13752set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13753echo "$as_me:$LINENO: checking for $ac_word" >&5
13754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13755if test "${ac_cv_prog_RANLIB+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13757else
13758 if test -n "$RANLIB"; then
13759 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13760else
13761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762for as_dir in $PATH
13763do
13764 IFS=$as_save_IFS
13765 test -z "$as_dir" && as_dir=.
13766 for ac_exec_ext in '' $ac_executable_extensions; do
13767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13768 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13770 break 2
13771 fi
13772done
13773done
13774
13775fi
13776fi
13777RANLIB=$ac_cv_prog_RANLIB
13778if test -n "$RANLIB"; then
13779 echo "$as_me:$LINENO: result: $RANLIB" >&5
13780echo "${ECHO_T}$RANLIB" >&6
13781else
13782 echo "$as_me:$LINENO: result: no" >&5
13783echo "${ECHO_T}no" >&6
13784fi
13785
13786fi
13787if test -z "$ac_cv_prog_RANLIB"; then
13788 ac_ct_RANLIB=$RANLIB
13789 # Extract the first word of "ranlib", so it can be a program name with args.
13790set dummy ranlib; ac_word=$2
13791echo "$as_me:$LINENO: checking for $ac_word" >&5
13792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13793if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13795else
13796 if test -n "$ac_ct_RANLIB"; then
13797 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13798else
13799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800for as_dir in $PATH
13801do
13802 IFS=$as_save_IFS
13803 test -z "$as_dir" && as_dir=.
13804 for ac_exec_ext in '' $ac_executable_extensions; do
13805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13806 ac_cv_prog_ac_ct_RANLIB="ranlib"
13807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13808 break 2
13809 fi
13810done
13811done
13812
13813 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13814fi
13815fi
13816ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13817if test -n "$ac_ct_RANLIB"; then
13818 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13819echo "${ECHO_T}$ac_ct_RANLIB" >&6
13820else
13821 echo "$as_me:$LINENO: result: no" >&5
13822echo "${ECHO_T}no" >&6
13823fi
13824
13825 RANLIB=$ac_ct_RANLIB
13826else
13827 RANLIB="$ac_cv_prog_RANLIB"
13828fi
13829
13830
8c80d384
DE
13831if test -n "$ac_tool_prefix"; then
13832 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13833set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
13834echo "$as_me:$LINENO: checking for $ac_word" >&5
13835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13836if test "${ac_cv_prog_AR+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838else
13839 if test -n "$AR"; then
13840 ac_cv_prog_AR="$AR" # Let the user override the test.
13841else
13842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13843for as_dir in $PATH
13844do
13845 IFS=$as_save_IFS
13846 test -z "$as_dir" && as_dir=.
13847 for ac_exec_ext in '' $ac_executable_extensions; do
13848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13849 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
13850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13851 break 2
13852 fi
13853done
13854done
13855
13856fi
13857fi
13858AR=$ac_cv_prog_AR
13859if test -n "$AR"; then
13860 echo "$as_me:$LINENO: result: $AR" >&5
13861echo "${ECHO_T}$AR" >&6
13862else
13863 echo "$as_me:$LINENO: result: no" >&5
13864echo "${ECHO_T}no" >&6
13865fi
13866
8c80d384
DE
13867fi
13868if test -z "$ac_cv_prog_AR"; then
13869 ac_ct_AR=$AR
13870 # Extract the first word of "ar", so it can be a program name with args.
13871set dummy ar; ac_word=$2
13872echo "$as_me:$LINENO: checking for $ac_word" >&5
13873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13874if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877 if test -n "$ac_ct_AR"; then
13878 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13879else
13880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881for as_dir in $PATH
13882do
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13887 ac_cv_prog_ac_ct_AR="ar"
13888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 break 2
13890 fi
13891done
13892done
13893
13894fi
13895fi
13896ac_ct_AR=$ac_cv_prog_ac_ct_AR
13897if test -n "$ac_ct_AR"; then
13898 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13899echo "${ECHO_T}$ac_ct_AR" >&6
13900else
13901 echo "$as_me:$LINENO: result: no" >&5
13902echo "${ECHO_T}no" >&6
13903fi
13904
13905 AR=$ac_ct_AR
13906else
13907 AR="$ac_cv_prog_AR"
13908fi
13909
a848cd7e 13910if test "x$AR" = "x" ; then
77ffb593
JS
13911 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13912echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13913 { (exit 1); exit 1; }; }
13914fi
13915
13916# Find a good install program. We prefer a C program (faster),
13917# so one script is as good as another. But avoid the broken or
13918# incompatible versions:
13919# SysV /etc/install, /usr/sbin/install
13920# SunOS /usr/etc/install
13921# IRIX /sbin/install
13922# AIX /bin/install
13923# AmigaOS /C/install, which installs bootblocks on floppy discs
13924# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13925# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13926# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13927# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13928# ./install, which can be erroneously created by make from ./install.sh.
13929echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13930echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13931if test -z "$INSTALL"; then
13932if test "${ac_cv_path_install+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934else
13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936for as_dir in $PATH
13937do
13938 IFS=$as_save_IFS
13939 test -z "$as_dir" && as_dir=.
13940 # Account for people who put trailing slashes in PATH elements.
13941case $as_dir/ in
13942 ./ | .// | /cC/* | \
13943 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13944 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13945 /usr/ucb/* ) ;;
13946 *)
13947 # OSF1 and SCO ODT 3.0 have their own names for install.
13948 # Don't use installbsd from OSF since it installs stuff as root
13949 # by default.
13950 for ac_prog in ginstall scoinst install; do
13951 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13952 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13953 if test $ac_prog = install &&
13954 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13955 # AIX install. It has an incompatible calling convention.
13956 :
13957 elif test $ac_prog = install &&
13958 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13959 # program-specific install script used by HP pwplus--don't use.
13960 :
13961 else
13962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13963 break 3
13964 fi
13965 fi
a848cd7e
SC
13966 done
13967 done
13968 ;;
13969esac
13970done
13971
13972
13973fi
13974 if test "${ac_cv_path_install+set}" = set; then
13975 INSTALL=$ac_cv_path_install
13976 else
13977 # As a last resort, use the slow shell script. We don't cache a
13978 # path for INSTALL within a source directory, because that will
13979 # break other packages using the cache if that directory is
13980 # removed, or if the path is relative.
13981 INSTALL=$ac_install_sh
13982 fi
13983fi
13984echo "$as_me:$LINENO: result: $INSTALL" >&5
13985echo "${ECHO_T}$INSTALL" >&6
13986
13987# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13988# It thinks the first close brace ends the variable substitution.
13989test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13990
13991test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13992
13993test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13994
13995
13996case ${INSTALL} in
13997 /* ) # Absolute
13998 ;;
13999 ?:* ) # Drive letter, considered as absolute.
14000 ;;
14001 *)
14002 INSTALL=`pwd`/${INSTALL} ;;
14003esac
14004
a848cd7e
SC
14005
14006case "${host}" in
14007
cfda0ea8 14008 *-*-darwin* )
a848cd7e
SC
14009 INSTALL_PROGRAM="cp -fp"
14010 INSTALL_DATA="cp -fp"
14011 ;;
14012 *)
14013 ;;
14014esac
14015
8c80d384
DE
14016if test -n "$ac_tool_prefix"; then
14017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14018set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14019echo "$as_me:$LINENO: checking for $ac_word" >&5
14020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14021if test "${ac_cv_prog_STRIP+set}" = set; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14023else
14024 if test -n "$STRIP"; then
14025 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14026else
14027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14028for as_dir in $PATH
14029do
14030 IFS=$as_save_IFS
14031 test -z "$as_dir" && as_dir=.
14032 for ac_exec_ext in '' $ac_executable_extensions; do
14033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14034 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14036 break 2
14037 fi
14038done
14039done
14040
a848cd7e
SC
14041fi
14042fi
14043STRIP=$ac_cv_prog_STRIP
14044if test -n "$STRIP"; then
14045 echo "$as_me:$LINENO: result: $STRIP" >&5
14046echo "${ECHO_T}$STRIP" >&6
14047else
14048 echo "$as_me:$LINENO: result: no" >&5
14049echo "${ECHO_T}no" >&6
14050fi
14051
8c80d384
DE
14052fi
14053if test -z "$ac_cv_prog_STRIP"; then
14054 ac_ct_STRIP=$STRIP
14055 # Extract the first word of "strip", so it can be a program name with args.
14056set dummy strip; ac_word=$2
14057echo "$as_me:$LINENO: checking for $ac_word" >&5
14058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14059if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14061else
14062 if test -n "$ac_ct_STRIP"; then
14063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14064else
14065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14066for as_dir in $PATH
14067do
14068 IFS=$as_save_IFS
14069 test -z "$as_dir" && as_dir=.
14070 for ac_exec_ext in '' $ac_executable_extensions; do
14071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14072 ac_cv_prog_ac_ct_STRIP="strip"
14073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14074 break 2
14075 fi
14076done
14077done
14078
14079 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14080fi
14081fi
14082ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14083if test -n "$ac_ct_STRIP"; then
14084 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14085echo "${ECHO_T}$ac_ct_STRIP" >&6
14086else
14087 echo "$as_me:$LINENO: result: no" >&5
14088echo "${ECHO_T}no" >&6
14089fi
14090
14091 STRIP=$ac_ct_STRIP
14092else
14093 STRIP="$ac_cv_prog_STRIP"
14094fi
14095
14096
14097if test "$wxUSE_WINE" = "yes"; then
14098 if test -n "$ac_tool_prefix"; then
14099 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14100set dummy ${ac_tool_prefix}wrc; ac_word=$2
14101echo "$as_me:$LINENO: checking for $ac_word" >&5
14102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14103if test "${ac_cv_prog_RESCOMP+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14105else
14106 if test -n "$RESCOMP"; then
14107 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14108else
14109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110for as_dir in $PATH
14111do
14112 IFS=$as_save_IFS
14113 test -z "$as_dir" && as_dir=.
14114 for ac_exec_ext in '' $ac_executable_extensions; do
14115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14116 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
14117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14118 break 2
14119 fi
14120done
14121done
14122
14123fi
14124fi
14125RESCOMP=$ac_cv_prog_RESCOMP
14126if test -n "$RESCOMP"; then
14127 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14128echo "${ECHO_T}$RESCOMP" >&6
14129else
14130 echo "$as_me:$LINENO: result: no" >&5
14131echo "${ECHO_T}no" >&6
14132fi
14133
14134fi
14135if test -z "$ac_cv_prog_RESCOMP"; then
14136 ac_ct_RESCOMP=$RESCOMP
14137 # Extract the first word of "wrc", so it can be a program name with args.
14138set dummy wrc; ac_word=$2
14139echo "$as_me:$LINENO: checking for $ac_word" >&5
14140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14141if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143else
14144 if test -n "$ac_ct_RESCOMP"; then
14145 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14146else
14147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14148for as_dir in $PATH
14149do
14150 IFS=$as_save_IFS
14151 test -z "$as_dir" && as_dir=.
14152 for ac_exec_ext in '' $ac_executable_extensions; do
14153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14154 ac_cv_prog_ac_ct_RESCOMP="wrc"
14155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14156 break 2
14157 fi
14158done
14159done
14160
14161fi
14162fi
14163ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14164if test -n "$ac_ct_RESCOMP"; then
14165 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14166echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14167else
14168 echo "$as_me:$LINENO: result: no" >&5
14169echo "${ECHO_T}no" >&6
14170fi
14171
14172 RESCOMP=$ac_ct_RESCOMP
14173else
14174 RESCOMP="$ac_cv_prog_RESCOMP"
14175fi
14176
14177else
14178 case "${host}" in
14179 *-*-cygwin* | *-*-mingw32* )
14180 if test -n "$ac_tool_prefix"; then
14181 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14182set dummy ${ac_tool_prefix}windres; ac_word=$2
14183echo "$as_me:$LINENO: checking for $ac_word" >&5
14184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14185if test "${ac_cv_prog_RESCOMP+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14187else
14188 if test -n "$RESCOMP"; then
14189 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14190else
14191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14192for as_dir in $PATH
14193do
14194 IFS=$as_save_IFS
14195 test -z "$as_dir" && as_dir=.
14196 for ac_exec_ext in '' $ac_executable_extensions; do
14197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14198 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
14199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14200 break 2
14201 fi
14202done
14203done
14204
14205fi
14206fi
14207RESCOMP=$ac_cv_prog_RESCOMP
14208if test -n "$RESCOMP"; then
14209 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14210echo "${ECHO_T}$RESCOMP" >&6
14211else
14212 echo "$as_me:$LINENO: result: no" >&5
14213echo "${ECHO_T}no" >&6
14214fi
14215
14216fi
14217if test -z "$ac_cv_prog_RESCOMP"; then
14218 ac_ct_RESCOMP=$RESCOMP
14219 # Extract the first word of "windres", so it can be a program name with args.
14220set dummy windres; ac_word=$2
14221echo "$as_me:$LINENO: checking for $ac_word" >&5
14222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14223if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225else
14226 if test -n "$ac_ct_RESCOMP"; then
14227 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14228else
14229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14230for as_dir in $PATH
14231do
14232 IFS=$as_save_IFS
14233 test -z "$as_dir" && as_dir=.
14234 for ac_exec_ext in '' $ac_executable_extensions; do
14235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14236 ac_cv_prog_ac_ct_RESCOMP="windres"
14237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14238 break 2
14239 fi
14240done
14241done
14242
14243fi
14244fi
14245ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14246if test -n "$ac_ct_RESCOMP"; then
14247 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14248echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14249else
14250 echo "$as_me:$LINENO: result: no" >&5
14251echo "${ECHO_T}no" >&6
14252fi
14253
14254 RESCOMP=$ac_ct_RESCOMP
14255else
14256 RESCOMP="$ac_cv_prog_RESCOMP"
14257fi
14258
14259 if test -n "$ac_tool_prefix"; then
14260 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14261set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14262echo "$as_me:$LINENO: checking for $ac_word" >&5
14263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14264if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266else
14267 if test -n "$DLLTOOL"; then
14268 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14269else
14270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14271for as_dir in $PATH
14272do
14273 IFS=$as_save_IFS
14274 test -z "$as_dir" && as_dir=.
14275 for ac_exec_ext in '' $ac_executable_extensions; do
14276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14277 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14279 break 2
14280 fi
14281done
14282done
14283
14284fi
14285fi
14286DLLTOOL=$ac_cv_prog_DLLTOOL
14287if test -n "$DLLTOOL"; then
14288 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14289echo "${ECHO_T}$DLLTOOL" >&6
14290else
14291 echo "$as_me:$LINENO: result: no" >&5
14292echo "${ECHO_T}no" >&6
14293fi
14294
14295fi
14296if test -z "$ac_cv_prog_DLLTOOL"; then
14297 ac_ct_DLLTOOL=$DLLTOOL
14298 # Extract the first word of "dlltool", so it can be a program name with args.
14299set dummy dlltool; ac_word=$2
14300echo "$as_me:$LINENO: checking for $ac_word" >&5
14301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14302if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14304else
14305 if test -n "$ac_ct_DLLTOOL"; then
14306 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14307else
14308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309for as_dir in $PATH
14310do
14311 IFS=$as_save_IFS
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14315 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14317 break 2
14318 fi
14319done
14320done
14321
14322fi
14323fi
14324ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14325if test -n "$ac_ct_DLLTOOL"; then
14326 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14327echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14328else
14329 echo "$as_me:$LINENO: result: no" >&5
14330echo "${ECHO_T}no" >&6
14331fi
14332
14333 DLLTOOL=$ac_ct_DLLTOOL
14334else
14335 DLLTOOL="$ac_cv_prog_DLLTOOL"
14336fi
14337
14338 ;;
14339 esac
14340fi
a848cd7e
SC
14341
14342echo "$as_me:$LINENO: checking if make is GNU make" >&5
14343echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14344if test "${wx_cv_prog_makeisgnu+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346else
14347
14348 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14349 egrep -s GNU > /dev/null); then
14350 wx_cv_prog_makeisgnu="yes"
14351 else
14352 wx_cv_prog_makeisgnu="no"
14353 fi
14354
14355fi
14356echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14357echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14358
14359if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14360 IF_GNU_MAKE=""
14361else
14362 IF_GNU_MAKE="#"
14363fi
14364
14365
14366
14367if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14368echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14369echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14370if test "${wx_cv_prog_makevpath+set}" = set; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14372else
14373
14374cat - << EOF > confMake
14375check : file
14376 cp \$? \$@
14377 cp \$? final_file
14378EOF
14379
14380if test ! -d sub ; then
14381 mkdir sub
14382fi
14383echo dummy > sub/file
14384${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14385RESULT=$?
14386rm -f sub/file check final_file confMake
14387rmdir sub
14388if test "$RESULT" = 0; then
14389 wx_cv_prog_makevpath="yes"
14390else
14391 wx_cv_prog_makevpath="no"
14392fi
14393
14394fi
14395echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14396echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14397
14398if test "x$wx_cv_prog_makevpath" != "xyes"; then
14399{ { echo "$as_me:$LINENO: error:
14400You need a make-utility that is able to use the variable
14401VPATH correctly.
14402If your version of make does not support VPATH correctly,
14403please install GNU-make (possibly as gmake), and start
14404configure with the following command:
14405export MAKE=gmake; ./configure for sh-type shells
14406setenv MAKE gmake; ./configure for csh-type shells
14407Also please do remember to use gmake in this case every time
14408you are trying to compile.
14409" >&5
14410echo "$as_me: error:
14411You need a make-utility that is able to use the variable
14412VPATH correctly.
14413If your version of make does not support VPATH correctly,
14414please install GNU-make (possibly as gmake), and start
14415configure with the following command:
14416export MAKE=gmake; ./configure for sh-type shells
14417setenv MAKE gmake; ./configure for csh-type shells
14418Also please do remember to use gmake in this case every time
14419you are trying to compile.
14420" >&2;}
14421 { (exit 1); exit 1; }; }
14422fi fi
14423echo "$as_me:$LINENO: checking whether ln -s works" >&5
14424echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14425LN_S=$as_ln_s
14426if test "$LN_S" = "ln -s"; then
14427 echo "$as_me:$LINENO: result: yes" >&5
14428echo "${ECHO_T}yes" >&6
14429else
14430 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14431echo "${ECHO_T}no, using $LN_S" >&6
14432fi
14433
14434
14435
2113bc77 14436if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
14437 CXXFLAGS="$CXXFLAGS -qunique"
14438fi
14439
4d7ec9f1
DE
14440case "${host}" in
14441 powerpc-*-darwin* )
14442 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14443echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14444 cat >conftest.$ac_ext <<_ACEOF
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450
14451int
14452main ()
14453{
14454#ifndef __POWERPC__
14455 choke me for lack of PowerPC
14456#endif
14457
14458 ;
14459 return 0;
14460}
14461_ACEOF
14462rm -f conftest.$ac_objext
14463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14464 (eval $ac_compile) 2>conftest.er1
14465 ac_status=$?
14466 grep -v '^ *+' conftest.er1 >conftest.err
14467 rm -f conftest.er1
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
6ebeb4c7 14471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14474 ac_status=$?
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; } &&
14477 { ac_try='test -s conftest.$ac_objext'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14480 ac_status=$?
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
14483 echo "$as_me:$LINENO: result: yes" >&5
14484echo "${ECHO_T}yes" >&6
14485else
14486 echo "$as_me: failed program was:" >&5
14487sed 's/^/| /' conftest.$ac_ext >&5
14488
14489echo "$as_me:$LINENO: result: no" >&5
14490echo "${ECHO_T}no" >&6
14491 cat >>confdefs.h <<\_ACEOF
14492#define __POWERPC__ 1
14493_ACEOF
14494
14495
14496fi
14497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14498 ;;
14499esac
14500
14501case "${host}" in
14502 *-*-darwin* )
4d7ec9f1
DE
14503 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14504echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14505 cat >conftest.$ac_ext <<_ACEOF
14506/* confdefs.h. */
14507_ACEOF
14508cat confdefs.h >>conftest.$ac_ext
14509cat >>conftest.$ac_ext <<_ACEOF
14510/* end confdefs.h. */
14511#include <CoreFoundation/CFBase.h>
14512
14513int
14514main ()
14515{
14516
14517 ;
14518 return 0;
14519}
14520_ACEOF
14521rm -f conftest.$ac_objext
14522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14523 (eval $ac_compile) 2>conftest.er1
14524 ac_status=$?
14525 grep -v '^ *+' conftest.er1 >conftest.err
14526 rm -f conftest.er1
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
6ebeb4c7 14530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14533 ac_status=$?
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; } &&
14536 { ac_try='test -s conftest.$ac_objext'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 echo "$as_me:$LINENO: result: yes" >&5
14543echo "${ECHO_T}yes" >&6
14544else
14545 echo "$as_me: failed program was:" >&5
14546sed 's/^/| /' conftest.$ac_ext >&5
14547
14548echo "$as_me:$LINENO: result: no" >&5
14549echo "${ECHO_T}no" >&6
14550 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14551echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14552 cat >conftest.$ac_ext <<_ACEOF
14553/* confdefs.h. */
14554_ACEOF
14555cat confdefs.h >>conftest.$ac_ext
14556cat >>conftest.$ac_ext <<_ACEOF
14557/* end confdefs.h. */
14558#define __CF_USE_FRAMEWORK_INCLUDES__
14559#include <CoreFoundation/CFBase.h>
14560
14561int
14562main ()
14563{
14564
14565 ;
14566 return 0;
14567}
14568_ACEOF
14569rm -f conftest.$ac_objext
14570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571 (eval $ac_compile) 2>conftest.er1
14572 ac_status=$?
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
6ebeb4c7 14578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } &&
14584 { ac_try='test -s conftest.$ac_objext'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 echo "$as_me:$LINENO: result: yes" >&5
14591echo "${ECHO_T}yes" >&6
14592 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14593else
14594 echo "$as_me: failed program was:" >&5
14595sed 's/^/| /' conftest.$ac_ext >&5
14596
14597{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14598See \`config.log' for more details." >&5
14599echo "$as_me: error: no. CoreFoundation not available.
14600See \`config.log' for more details." >&2;}
14601 { (exit 1); exit 1; }; }
14602
14603fi
14604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14605
14606
14607fi
14608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14609 ;;
14610esac
14611
a848cd7e
SC
14612case "${host}" in
14613 *-pc-os2_emx | *-pc-os2-emx )
14614 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14615 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14616echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14617if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14619else
14620 ac_check_lib_save_LIBS=$LIBS
14621LIBS="-lcExt $LIBS"
14622cat >conftest.$ac_ext <<_ACEOF
14623/* confdefs.h. */
14624_ACEOF
14625cat confdefs.h >>conftest.$ac_ext
14626cat >>conftest.$ac_ext <<_ACEOF
14627/* end confdefs.h. */
14628
14629/* Override any gcc2 internal prototype to avoid an error. */
14630#ifdef __cplusplus
14631extern "C"
14632#endif
14633/* We use char because int might match the return type of a gcc2
14634 builtin and then its argument prototype would still apply. */
14635char drand48 ();
14636int
14637main ()
14638{
14639drand48 ();
14640 ;
14641 return 0;
14642}
14643_ACEOF
14644rm -f conftest.$ac_objext conftest$ac_exeext
14645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14646 (eval $ac_link) 2>conftest.er1
a848cd7e 14647 ac_status=$?
ac1cb8d3
VS
14648 grep -v '^ *+' conftest.er1 >conftest.err
14649 rm -f conftest.er1
14650 cat conftest.err >&5
a848cd7e
SC
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
6ebeb4c7 14653 { ac_try='test -z "$ac_c_werror_flag" || 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_exeext'
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_cv_lib_cExt_drand48=yes
14666else
14667 echo "$as_me: failed program was:" >&5
14668sed 's/^/| /' conftest.$ac_ext >&5
14669
14670ac_cv_lib_cExt_drand48=no
14671fi
ac1cb8d3
VS
14672rm -f conftest.err conftest.$ac_objext \
14673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14674LIBS=$ac_check_lib_save_LIBS
14675fi
14676echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14677echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14678if test $ac_cv_lib_cExt_drand48 = yes; then
14679 LIBS="$LIBS -lcExt"
14680fi
14681
14682 else
14683 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14684 fi
69120ee4
VZ
14685 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14686echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14687if test "${wx_cv_gccversion+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14689else
14690
391a765e
VS
14691 if test "$cross_compiling" = yes; then
14692 wx_cv_gccversion="EMX2"
14693
14694else
14695 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14696/* confdefs.h. */
14697_ACEOF
14698cat confdefs.h >>conftest.$ac_ext
14699cat >>conftest.$ac_ext <<_ACEOF
14700/* end confdefs.h. */
14701
391a765e 14702 #include <stdio.h>
a848cd7e 14703
391a765e
VS
14704 int main()
14705 {
14706 FILE *f=fopen("conftestval", "w");
14707 if (!f) exit(1);
14708 fprintf(f,
a848cd7e 14709 #if (__GNUC__ < 3)
391a765e
VS
14710 "EMX2"
14711 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14712 "EMX3"
14713 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14714 "Innotek5"
14715 #else
14716 "Innotek6"
a848cd7e 14717 #endif
391a765e
VS
14718 );
14719 exit(0);
14720 }
a848cd7e 14721
a848cd7e 14722_ACEOF
391a765e
VS
14723rm -f conftest$ac_exeext
14724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14725 (eval $ac_link) 2>&5
ac1cb8d3
VS
14726 ac_status=$?
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 14728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14731 ac_status=$?
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
391a765e 14734 wx_cv_gccversion=`cat conftestval`
a848cd7e 14735else
391a765e
VS
14736 echo "$as_me: program exited with status $ac_status" >&5
14737echo "$as_me: failed program was:" >&5
a848cd7e
SC
14738sed 's/^/| /' conftest.$ac_ext >&5
14739
391a765e
VS
14740( exit $ac_status )
14741wx_cv_gccversion="EMX2"
a848cd7e 14742fi
391a765e 14743rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 14744fi
a848cd7e
SC
14745
14746fi
14747echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
14748echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 14749 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
14750 LIBS="$LIBS -lstdcpp"
14751 LDFLAGS="$LDFLAGS -Zsysv-signals"
14752 else
391a765e 14753 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 14754 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
14755 LDFLAGS="$LDFLAGS -Zsysv-signals"
14756 else
14757 LIBS="$LIBS -lstdc++"
14758 fi
14759 fi
94acd38e
DE
14760 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
14761 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
14762echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
14763 wxUSE_OMF=yes
2da0c077 14764 enable_omf=yes
a848cd7e
SC
14765 fi
14766 ;;
14767 *)
14768
14769
14770
14771 ac_ext=cc
14772ac_cpp='$CXXCPP $CPPFLAGS'
14773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14776
14777
95986553 14778 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
14779echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
14780if test "${ac_cv_string_strcasecmp+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782else
14783
14784 cat >conftest.$ac_ext <<_ACEOF
14785/* confdefs.h. */
14786_ACEOF
14787cat confdefs.h >>conftest.$ac_ext
14788cat >>conftest.$ac_ext <<_ACEOF
14789/* end confdefs.h. */
14790
14791 #include <string.h>
14792
14793int
14794main ()
14795{
14796
14797 strcasecmp("foo", "bar");
14798
14799 ;
14800 return 0;
14801}
14802_ACEOF
14803rm -f conftest.$ac_objext conftest$ac_exeext
14804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14805 (eval $ac_link) 2>conftest.er1
a848cd7e 14806 ac_status=$?
ac1cb8d3
VS
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
a848cd7e
SC
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
6ebeb4c7 14812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14815 ac_status=$?
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; } &&
14818 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 ac_cv_string_strcasecmp=yes
14825else
14826 echo "$as_me: failed program was:" >&5
14827sed 's/^/| /' conftest.$ac_ext >&5
14828
14829ac_cv_string_strcasecmp=no
14830
14831fi
ac1cb8d3
VS
14832rm -f conftest.err conftest.$ac_objext \
14833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14834
14835fi
14836echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
14837echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
14838
14839 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
14840 cat >>confdefs.h <<\_ACEOF
14841#define HAVE_STRCASECMP_IN_STRING_H 1
14842_ACEOF
14843
14844 else
14845 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
14846echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
14847if test "${ac_cv_strings_strcasecmp+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14849else
14850
14851 cat >conftest.$ac_ext <<_ACEOF
14852/* confdefs.h. */
14853_ACEOF
14854cat confdefs.h >>conftest.$ac_ext
14855cat >>conftest.$ac_ext <<_ACEOF
14856/* end confdefs.h. */
14857
14858 #include <strings.h>
14859
14860int
14861main ()
14862{
14863
14864 strcasecmp("foo", "bar");
14865
14866 ;
14867 return 0;
14868}
14869_ACEOF
14870rm -f conftest.$ac_objext conftest$ac_exeext
14871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14872 (eval $ac_link) 2>conftest.er1
a848cd7e 14873 ac_status=$?
ac1cb8d3
VS
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
a848cd7e
SC
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
6ebeb4c7 14879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; } &&
14885 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 ac_cv_strings_strcasecmp=yes
14892else
14893 echo "$as_me: failed program was:" >&5
14894sed 's/^/| /' conftest.$ac_ext >&5
14895
14896ac_cv_strings_strcasecmp=no
14897
14898fi
ac1cb8d3
VS
14899rm -f conftest.err conftest.$ac_objext \
14900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14901
14902fi
14903echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
14904echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
14905
0c3c69fc 14906 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
14907 cat >>confdefs.h <<\_ACEOF
14908#define HAVE_STRCASECMP_IN_STRINGS_H 1
14909_ACEOF
14910
14911 else
14912 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
14913echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
14914 { (exit 1); exit 1; }; }
14915 fi
14916 fi
14917
14918 ac_ext=c
14919ac_cpp='$CPP $CPPFLAGS'
14920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14922ac_compiler_gnu=$ac_cv_c_compiler_gnu
14923
14924 ;;
14925esac
14926
14927
14928echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14929echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14930if test "${ac_cv_header_stdc+set}" = set; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
14932else
14933 cat >conftest.$ac_ext <<_ACEOF
14934/* confdefs.h. */
14935_ACEOF
14936cat confdefs.h >>conftest.$ac_ext
14937cat >>conftest.$ac_ext <<_ACEOF
14938/* end confdefs.h. */
14939#include <stdlib.h>
14940#include <stdarg.h>
14941#include <string.h>
14942#include <float.h>
14943
14944int
14945main ()
14946{
14947
14948 ;
14949 return 0;
14950}
14951_ACEOF
14952rm -f conftest.$ac_objext
14953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14954 (eval $ac_compile) 2>conftest.er1
a848cd7e 14955 ac_status=$?
ac1cb8d3
VS
14956 grep -v '^ *+' conftest.er1 >conftest.err
14957 rm -f conftest.er1
14958 cat conftest.err >&5
a848cd7e
SC
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
6ebeb4c7 14961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_cv_header_stdc=yes
14974else
14975 echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
14978ac_cv_header_stdc=no
14979fi
ac1cb8d3 14980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14981
14982if test $ac_cv_header_stdc = yes; then
14983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14984 cat >conftest.$ac_ext <<_ACEOF
14985/* confdefs.h. */
14986_ACEOF
14987cat confdefs.h >>conftest.$ac_ext
14988cat >>conftest.$ac_ext <<_ACEOF
14989/* end confdefs.h. */
14990#include <string.h>
14991
14992_ACEOF
14993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14994 $EGREP "memchr" >/dev/null 2>&1; then
14995 :
14996else
14997 ac_cv_header_stdc=no
14998fi
14999rm -f conftest*
15000
15001fi
15002
15003if test $ac_cv_header_stdc = yes; then
15004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15005 cat >conftest.$ac_ext <<_ACEOF
15006/* confdefs.h. */
15007_ACEOF
15008cat confdefs.h >>conftest.$ac_ext
15009cat >>conftest.$ac_ext <<_ACEOF
15010/* end confdefs.h. */
15011#include <stdlib.h>
15012
15013_ACEOF
15014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15015 $EGREP "free" >/dev/null 2>&1; then
15016 :
15017else
15018 ac_cv_header_stdc=no
15019fi
15020rm -f conftest*
15021
15022fi
15023
15024if test $ac_cv_header_stdc = yes; then
15025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15026 if test "$cross_compiling" = yes; then
15027 :
15028else
15029 cat >conftest.$ac_ext <<_ACEOF
15030/* confdefs.h. */
15031_ACEOF
15032cat confdefs.h >>conftest.$ac_ext
15033cat >>conftest.$ac_ext <<_ACEOF
15034/* end confdefs.h. */
15035#include <ctype.h>
15036#if ((' ' & 0x0FF) == 0x020)
15037# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15038# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15039#else
15040# define ISLOWER(c) \
ac1cb8d3
VS
15041 (('a' <= (c) && (c) <= 'i') \
15042 || ('j' <= (c) && (c) <= 'r') \
15043 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15044# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15045#endif
15046
15047#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15048int
15049main ()
15050{
15051 int i;
15052 for (i = 0; i < 256; i++)
15053 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15054 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15055 exit(2);
15056 exit (0);
15057}
15058_ACEOF
15059rm -f conftest$ac_exeext
15060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15061 (eval $ac_link) 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 :
15071else
15072 echo "$as_me: program exited with status $ac_status" >&5
15073echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076( exit $ac_status )
15077ac_cv_header_stdc=no
15078fi
ac1cb8d3 15079rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15080fi
15081fi
15082fi
15083echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15084echo "${ECHO_T}$ac_cv_header_stdc" >&6
15085if test $ac_cv_header_stdc = yes; then
15086
15087cat >>confdefs.h <<\_ACEOF
15088#define STDC_HEADERS 1
15089_ACEOF
15090
15091fi
15092
15093# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15104 inttypes.h stdint.h unistd.h
a848cd7e
SC
15105do
15106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15107echo "$as_me:$LINENO: checking for $ac_header" >&5
15108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15109if eval "test \"\${$as_ac_Header+set}\" = set"; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15111else
15112 cat >conftest.$ac_ext <<_ACEOF
15113/* confdefs.h. */
15114_ACEOF
15115cat confdefs.h >>conftest.$ac_ext
15116cat >>conftest.$ac_ext <<_ACEOF
15117/* end confdefs.h. */
15118$ac_includes_default
15119
15120#include <$ac_header>
15121_ACEOF
15122rm -f conftest.$ac_objext
15123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15124 (eval $ac_compile) 2>conftest.er1
a848cd7e 15125 ac_status=$?
ac1cb8d3
VS
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
a848cd7e
SC
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
6ebeb4c7 15131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 eval "$as_ac_Header=yes"
15144else
15145 echo "$as_me: failed program was:" >&5
15146sed 's/^/| /' conftest.$ac_ext >&5
15147
15148eval "$as_ac_Header=no"
15149fi
ac1cb8d3 15150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15151fi
15152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15154if test `eval echo '${'$as_ac_Header'}'` = yes; then
15155 cat >>confdefs.h <<_ACEOF
15156#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15157_ACEOF
15158
15159fi
15160
15161done
15162
15163
15164
15165for ac_header in stdlib.h
15166do
15167as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15168if eval "test \"\${$as_ac_Header+set}\" = set"; then
15169 echo "$as_me:$LINENO: checking for $ac_header" >&5
15170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15171if eval "test \"\${$as_ac_Header+set}\" = set"; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15173fi
15174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15176else
15177 # Is the header compilable?
15178echo "$as_me:$LINENO: checking $ac_header usability" >&5
15179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15180cat >conftest.$ac_ext <<_ACEOF
15181/* confdefs.h. */
15182_ACEOF
15183cat confdefs.h >>conftest.$ac_ext
15184cat >>conftest.$ac_ext <<_ACEOF
15185/* end confdefs.h. */
15186$ac_includes_default
15187#include <$ac_header>
15188_ACEOF
15189rm -f conftest.$ac_objext
15190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15191 (eval $ac_compile) 2>conftest.er1
a848cd7e 15192 ac_status=$?
ac1cb8d3
VS
15193 grep -v '^ *+' conftest.er1 >conftest.err
15194 rm -f conftest.er1
15195 cat conftest.err >&5
a848cd7e
SC
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } &&
6ebeb4c7 15198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; } &&
15204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
15210 ac_header_compiler=yes
15211else
15212 echo "$as_me: failed program was:" >&5
15213sed 's/^/| /' conftest.$ac_ext >&5
15214
15215ac_header_compiler=no
15216fi
ac1cb8d3 15217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15219echo "${ECHO_T}$ac_header_compiler" >&6
15220
15221# Is the header present?
15222echo "$as_me:$LINENO: checking $ac_header presence" >&5
15223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15224cat >conftest.$ac_ext <<_ACEOF
15225/* confdefs.h. */
15226_ACEOF
15227cat confdefs.h >>conftest.$ac_ext
15228cat >>conftest.$ac_ext <<_ACEOF
15229/* end confdefs.h. */
15230#include <$ac_header>
15231_ACEOF
15232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15234 ac_status=$?
15235 grep -v '^ *+' conftest.er1 >conftest.err
15236 rm -f conftest.er1
15237 cat conftest.err >&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } >/dev/null; then
15240 if test -s conftest.err; then
15241 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15243 else
15244 ac_cpp_err=
15245 fi
15246else
15247 ac_cpp_err=yes
15248fi
15249if test -z "$ac_cpp_err"; then
15250 ac_header_preproc=yes
15251else
15252 echo "$as_me: failed program was:" >&5
15253sed 's/^/| /' conftest.$ac_ext >&5
15254
15255 ac_header_preproc=no
15256fi
15257rm -f conftest.err conftest.$ac_ext
15258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15259echo "${ECHO_T}$ac_header_preproc" >&6
15260
15261# So? What about this header?
ac1cb8d3
VS
15262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15263 yes:no: )
a848cd7e
SC
15264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15268 ac_header_preproc=yes
a848cd7e 15269 ;;
ac1cb8d3 15270 no:yes:* )
a848cd7e
SC
15271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15283 (
15284 cat <<\_ASBOX
ac1cb8d3
VS
15285## ----------------------------------------- ##
15286## Report this to wx-dev@lists.wxwidgets.org ##
15287## ----------------------------------------- ##
a848cd7e
SC
15288_ASBOX
15289 ) |
15290 sed "s/^/$as_me: WARNING: /" >&2
15291 ;;
15292esac
15293echo "$as_me:$LINENO: checking for $ac_header" >&5
15294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15295if eval "test \"\${$as_ac_Header+set}\" = set"; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15297else
ac1cb8d3 15298 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15299fi
15300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15302
15303fi
15304if test `eval echo '${'$as_ac_Header'}'` = yes; then
15305 cat >>confdefs.h <<_ACEOF
15306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15307_ACEOF
15308
15309fi
15310
15311done
15312
15313
15314for ac_header in malloc.h
15315do
15316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15317if eval "test \"\${$as_ac_Header+set}\" = set"; then
15318 echo "$as_me:$LINENO: checking for $ac_header" >&5
15319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15320if eval "test \"\${$as_ac_Header+set}\" = set"; then
15321 echo $ECHO_N "(cached) $ECHO_C" >&6
15322fi
15323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15325else
15326 # Is the header compilable?
15327echo "$as_me:$LINENO: checking $ac_header usability" >&5
15328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15329cat >conftest.$ac_ext <<_ACEOF
15330/* confdefs.h. */
15331_ACEOF
15332cat confdefs.h >>conftest.$ac_ext
15333cat >>conftest.$ac_ext <<_ACEOF
15334/* end confdefs.h. */
15335$ac_includes_default
15336#include <$ac_header>
15337_ACEOF
15338rm -f conftest.$ac_objext
15339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15340 (eval $ac_compile) 2>conftest.er1
a848cd7e 15341 ac_status=$?
ac1cb8d3
VS
15342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
a848cd7e
SC
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
6ebeb4c7 15347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; } &&
15353 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359 ac_header_compiler=yes
15360else
15361 echo "$as_me: failed program was:" >&5
15362sed 's/^/| /' conftest.$ac_ext >&5
15363
15364ac_header_compiler=no
15365fi
ac1cb8d3 15366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15367echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15368echo "${ECHO_T}$ac_header_compiler" >&6
15369
15370# Is the header present?
15371echo "$as_me:$LINENO: checking $ac_header presence" >&5
15372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15373cat >conftest.$ac_ext <<_ACEOF
15374/* confdefs.h. */
15375_ACEOF
15376cat confdefs.h >>conftest.$ac_ext
15377cat >>conftest.$ac_ext <<_ACEOF
15378/* end confdefs.h. */
15379#include <$ac_header>
15380_ACEOF
15381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15383 ac_status=$?
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } >/dev/null; then
15389 if test -s conftest.err; then
15390 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15392 else
15393 ac_cpp_err=
15394 fi
15395else
15396 ac_cpp_err=yes
15397fi
15398if test -z "$ac_cpp_err"; then
15399 ac_header_preproc=yes
15400else
15401 echo "$as_me: failed program was:" >&5
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
15404 ac_header_preproc=no
15405fi
15406rm -f conftest.err conftest.$ac_ext
15407echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15408echo "${ECHO_T}$ac_header_preproc" >&6
15409
15410# So? What about this header?
ac1cb8d3
VS
15411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15412 yes:no: )
a848cd7e
SC
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15414echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15416echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15417 ac_header_preproc=yes
a848cd7e 15418 ;;
ac1cb8d3 15419 no:yes:* )
a848cd7e
SC
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15425echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15427echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15431echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15432 (
15433 cat <<\_ASBOX
ac1cb8d3
VS
15434## ----------------------------------------- ##
15435## Report this to wx-dev@lists.wxwidgets.org ##
15436## ----------------------------------------- ##
a848cd7e
SC
15437_ASBOX
15438 ) |
15439 sed "s/^/$as_me: WARNING: /" >&2
15440 ;;
15441esac
15442echo "$as_me:$LINENO: checking for $ac_header" >&5
15443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15444if eval "test \"\${$as_ac_Header+set}\" = set"; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
15446else
ac1cb8d3 15447 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15448fi
15449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15451
15452fi
15453if test `eval echo '${'$as_ac_Header'}'` = yes; then
15454 cat >>confdefs.h <<_ACEOF
15455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15456_ACEOF
15457
15458fi
15459
15460done
15461
15462
15463for ac_header in unistd.h
15464do
15465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466if eval "test \"\${$as_ac_Header+set}\" = set"; then
15467 echo "$as_me:$LINENO: checking for $ac_header" >&5
15468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15469if eval "test \"\${$as_ac_Header+set}\" = set"; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15471fi
15472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15473echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15474else
15475 # Is the header compilable?
15476echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15478cat >conftest.$ac_ext <<_ACEOF
15479/* confdefs.h. */
15480_ACEOF
15481cat confdefs.h >>conftest.$ac_ext
15482cat >>conftest.$ac_ext <<_ACEOF
15483/* end confdefs.h. */
15484$ac_includes_default
15485#include <$ac_header>
15486_ACEOF
15487rm -f conftest.$ac_objext
15488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15489 (eval $ac_compile) 2>conftest.er1
a848cd7e 15490 ac_status=$?
ac1cb8d3
VS
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
a848cd7e
SC
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
6ebeb4c7 15496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; } &&
15502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 ac_header_compiler=yes
15509else
15510 echo "$as_me: failed program was:" >&5
15511sed 's/^/| /' conftest.$ac_ext >&5
15512
15513ac_header_compiler=no
15514fi
ac1cb8d3 15515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15517echo "${ECHO_T}$ac_header_compiler" >&6
15518
15519# Is the header present?
15520echo "$as_me:$LINENO: checking $ac_header presence" >&5
15521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15522cat >conftest.$ac_ext <<_ACEOF
15523/* confdefs.h. */
15524_ACEOF
15525cat confdefs.h >>conftest.$ac_ext
15526cat >>conftest.$ac_ext <<_ACEOF
15527/* end confdefs.h. */
15528#include <$ac_header>
15529_ACEOF
15530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15532 ac_status=$?
15533 grep -v '^ *+' conftest.er1 >conftest.err
15534 rm -f conftest.er1
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } >/dev/null; then
15538 if test -s conftest.err; then
15539 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15541 else
15542 ac_cpp_err=
15543 fi
15544else
15545 ac_cpp_err=yes
15546fi
15547if test -z "$ac_cpp_err"; then
15548 ac_header_preproc=yes
15549else
15550 echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553 ac_header_preproc=no
15554fi
15555rm -f conftest.err conftest.$ac_ext
15556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15557echo "${ECHO_T}$ac_header_preproc" >&6
15558
15559# So? What about this header?
ac1cb8d3
VS
15560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15561 yes:no: )
a848cd7e
SC
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15566 ac_header_preproc=yes
a848cd7e 15567 ;;
ac1cb8d3 15568 no:yes:* )
a848cd7e
SC
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15576echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15581 (
15582 cat <<\_ASBOX
ac1cb8d3
VS
15583## ----------------------------------------- ##
15584## Report this to wx-dev@lists.wxwidgets.org ##
15585## ----------------------------------------- ##
a848cd7e
SC
15586_ASBOX
15587 ) |
15588 sed "s/^/$as_me: WARNING: /" >&2
15589 ;;
15590esac
15591echo "$as_me:$LINENO: checking for $ac_header" >&5
15592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15593if eval "test \"\${$as_ac_Header+set}\" = set"; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15595else
ac1cb8d3 15596 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15597fi
15598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15600
15601fi
15602if test `eval echo '${'$as_ac_Header'}'` = yes; then
15603 cat >>confdefs.h <<_ACEOF
15604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15605_ACEOF
15606
15607fi
15608
15609done
15610
15611
15612for ac_header in wchar.h
15613do
15614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15615if eval "test \"\${$as_ac_Header+set}\" = set"; then
15616 echo "$as_me:$LINENO: checking for $ac_header" >&5
15617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15618if eval "test \"\${$as_ac_Header+set}\" = set"; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15620fi
15621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15623else
15624 # Is the header compilable?
15625echo "$as_me:$LINENO: checking $ac_header usability" >&5
15626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15627cat >conftest.$ac_ext <<_ACEOF
15628/* confdefs.h. */
15629_ACEOF
15630cat confdefs.h >>conftest.$ac_ext
15631cat >>conftest.$ac_ext <<_ACEOF
15632/* end confdefs.h. */
15633$ac_includes_default
15634#include <$ac_header>
15635_ACEOF
15636rm -f conftest.$ac_objext
15637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15638 (eval $ac_compile) 2>conftest.er1
a848cd7e 15639 ac_status=$?
ac1cb8d3
VS
15640 grep -v '^ *+' conftest.er1 >conftest.err
15641 rm -f conftest.er1
15642 cat conftest.err >&5
a848cd7e
SC
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } &&
6ebeb4c7 15645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; } &&
15651 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_header_compiler=yes
15658else
15659 echo "$as_me: failed program was:" >&5
15660sed 's/^/| /' conftest.$ac_ext >&5
15661
15662ac_header_compiler=no
15663fi
ac1cb8d3 15664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15665echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15666echo "${ECHO_T}$ac_header_compiler" >&6
15667
15668# Is the header present?
15669echo "$as_me:$LINENO: checking $ac_header presence" >&5
15670echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15671cat >conftest.$ac_ext <<_ACEOF
15672/* confdefs.h. */
15673_ACEOF
15674cat confdefs.h >>conftest.$ac_ext
15675cat >>conftest.$ac_ext <<_ACEOF
15676/* end confdefs.h. */
15677#include <$ac_header>
15678_ACEOF
15679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15681 ac_status=$?
15682 grep -v '^ *+' conftest.er1 >conftest.err
15683 rm -f conftest.er1
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } >/dev/null; then
15687 if test -s conftest.err; then
15688 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15690 else
15691 ac_cpp_err=
15692 fi
15693else
15694 ac_cpp_err=yes
15695fi
15696if test -z "$ac_cpp_err"; then
15697 ac_header_preproc=yes
15698else
15699 echo "$as_me: failed program was:" >&5
15700sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 ac_header_preproc=no
15703fi
15704rm -f conftest.err conftest.$ac_ext
15705echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15706echo "${ECHO_T}$ac_header_preproc" >&6
15707
15708# So? What about this header?
ac1cb8d3
VS
15709case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15710 yes:no: )
a848cd7e
SC
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15712echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15714echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15715 ac_header_preproc=yes
a848cd7e 15716 ;;
ac1cb8d3 15717 no:yes:* )
a848cd7e
SC
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15719echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15721echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15723echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15725echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15727echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15729echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15730 (
15731 cat <<\_ASBOX
ac1cb8d3
VS
15732## ----------------------------------------- ##
15733## Report this to wx-dev@lists.wxwidgets.org ##
15734## ----------------------------------------- ##
a848cd7e
SC
15735_ASBOX
15736 ) |
15737 sed "s/^/$as_me: WARNING: /" >&2
15738 ;;
15739esac
15740echo "$as_me:$LINENO: checking for $ac_header" >&5
15741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15742if eval "test \"\${$as_ac_Header+set}\" = set"; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744else
ac1cb8d3 15745 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15746fi
15747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15749
15750fi
15751if test `eval echo '${'$as_ac_Header'}'` = yes; then
15752 cat >>confdefs.h <<_ACEOF
15753#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15754_ACEOF
15755
15756fi
15757
15758done
15759
15760
15761if test "$ac_cv_header_wchar_h" != "yes"; then
15762
15763for ac_header in wcstr.h
15764do
15765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15766if eval "test \"\${$as_ac_Header+set}\" = set"; then
15767 echo "$as_me:$LINENO: checking for $ac_header" >&5
15768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15769if eval "test \"\${$as_ac_Header+set}\" = set"; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15771fi
15772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15774else
15775 # Is the header compilable?
15776echo "$as_me:$LINENO: checking $ac_header usability" >&5
15777echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15778cat >conftest.$ac_ext <<_ACEOF
15779/* confdefs.h. */
15780_ACEOF
15781cat confdefs.h >>conftest.$ac_ext
15782cat >>conftest.$ac_ext <<_ACEOF
15783/* end confdefs.h. */
15784$ac_includes_default
15785#include <$ac_header>
15786_ACEOF
15787rm -f conftest.$ac_objext
15788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15789 (eval $ac_compile) 2>conftest.er1
a848cd7e 15790 ac_status=$?
ac1cb8d3
VS
15791 grep -v '^ *+' conftest.er1 >conftest.err
15792 rm -f conftest.er1
15793 cat conftest.err >&5
a848cd7e
SC
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
6ebeb4c7 15796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_header_compiler=yes
15809else
15810 echo "$as_me: failed program was:" >&5
15811sed 's/^/| /' conftest.$ac_ext >&5
15812
15813ac_header_compiler=no
15814fi
ac1cb8d3 15815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15817echo "${ECHO_T}$ac_header_compiler" >&6
15818
15819# Is the header present?
15820echo "$as_me:$LINENO: checking $ac_header presence" >&5
15821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15822cat >conftest.$ac_ext <<_ACEOF
15823/* confdefs.h. */
15824_ACEOF
15825cat confdefs.h >>conftest.$ac_ext
15826cat >>conftest.$ac_ext <<_ACEOF
15827/* end confdefs.h. */
15828#include <$ac_header>
15829_ACEOF
15830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15832 ac_status=$?
15833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } >/dev/null; then
15838 if test -s conftest.err; then
15839 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15841 else
15842 ac_cpp_err=
15843 fi
15844else
15845 ac_cpp_err=yes
15846fi
15847if test -z "$ac_cpp_err"; then
15848 ac_header_preproc=yes
15849else
15850 echo "$as_me: failed program was:" >&5
15851sed 's/^/| /' conftest.$ac_ext >&5
15852
15853 ac_header_preproc=no
15854fi
15855rm -f conftest.err conftest.$ac_ext
15856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15857echo "${ECHO_T}$ac_header_preproc" >&6
15858
15859# So? What about this header?
ac1cb8d3
VS
15860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15861 yes:no: )
a848cd7e
SC
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15866 ac_header_preproc=yes
a848cd7e 15867 ;;
ac1cb8d3 15868 no:yes:* )
a848cd7e
SC
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15881 (
15882 cat <<\_ASBOX
ac1cb8d3
VS
15883## ----------------------------------------- ##
15884## Report this to wx-dev@lists.wxwidgets.org ##
15885## ----------------------------------------- ##
a848cd7e
SC
15886_ASBOX
15887 ) |
15888 sed "s/^/$as_me: WARNING: /" >&2
15889 ;;
15890esac
15891echo "$as_me:$LINENO: checking for $ac_header" >&5
15892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15893if eval "test \"\${$as_ac_Header+set}\" = set"; then
15894 echo $ECHO_N "(cached) $ECHO_C" >&6
15895else
ac1cb8d3 15896 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15897fi
15898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15900
15901fi
15902if test `eval echo '${'$as_ac_Header'}'` = yes; then
15903 cat >>confdefs.h <<_ACEOF
15904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15905_ACEOF
15906
15907fi
15908
15909done
15910
15911fi
15912
15913
15914for ac_header in fnmatch.h
15915do
15916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15917if eval "test \"\${$as_ac_Header+set}\" = set"; then
15918 echo "$as_me:$LINENO: checking for $ac_header" >&5
15919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15920if eval "test \"\${$as_ac_Header+set}\" = set"; then
15921 echo $ECHO_N "(cached) $ECHO_C" >&6
15922fi
15923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15925else
15926 # Is the header compilable?
15927echo "$as_me:$LINENO: checking $ac_header usability" >&5
15928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15929cat >conftest.$ac_ext <<_ACEOF
15930/* confdefs.h. */
15931_ACEOF
15932cat confdefs.h >>conftest.$ac_ext
15933cat >>conftest.$ac_ext <<_ACEOF
15934/* end confdefs.h. */
15935$ac_includes_default
15936#include <$ac_header>
15937_ACEOF
15938rm -f conftest.$ac_objext
15939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15940 (eval $ac_compile) 2>conftest.er1
a848cd7e 15941 ac_status=$?
ac1cb8d3
VS
15942 grep -v '^ *+' conftest.er1 >conftest.err
15943 rm -f conftest.er1
15944 cat conftest.err >&5
a848cd7e
SC
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } &&
6ebeb4c7 15947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } &&
15953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 ac_header_compiler=yes
15960else
15961 echo "$as_me: failed program was:" >&5
15962sed 's/^/| /' conftest.$ac_ext >&5
15963
15964ac_header_compiler=no
15965fi
ac1cb8d3 15966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15967echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15968echo "${ECHO_T}$ac_header_compiler" >&6
15969
15970# Is the header present?
15971echo "$as_me:$LINENO: checking $ac_header presence" >&5
15972echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15973cat >conftest.$ac_ext <<_ACEOF
15974/* confdefs.h. */
15975_ACEOF
15976cat confdefs.h >>conftest.$ac_ext
15977cat >>conftest.$ac_ext <<_ACEOF
15978/* end confdefs.h. */
15979#include <$ac_header>
15980_ACEOF
15981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15983 ac_status=$?
15984 grep -v '^ *+' conftest.er1 >conftest.err
15985 rm -f conftest.er1
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } >/dev/null; then
15989 if test -s conftest.err; then
15990 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15992 else
15993 ac_cpp_err=
15994 fi
15995else
15996 ac_cpp_err=yes
15997fi
15998if test -z "$ac_cpp_err"; then
15999 ac_header_preproc=yes
16000else
16001 echo "$as_me: failed program was:" >&5
16002sed 's/^/| /' conftest.$ac_ext >&5
16003
16004 ac_header_preproc=no
16005fi
16006rm -f conftest.err conftest.$ac_ext
16007echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16008echo "${ECHO_T}$ac_header_preproc" >&6
16009
16010# So? What about this header?
ac1cb8d3
VS
16011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16012 yes:no: )
a848cd7e
SC
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16014echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16016echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16017 ac_header_preproc=yes
a848cd7e 16018 ;;
ac1cb8d3 16019 no:yes:* )
a848cd7e
SC
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16021echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16023echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16025echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16027echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16029echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16031echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16032 (
16033 cat <<\_ASBOX
ac1cb8d3
VS
16034## ----------------------------------------- ##
16035## Report this to wx-dev@lists.wxwidgets.org ##
16036## ----------------------------------------- ##
a848cd7e
SC
16037_ASBOX
16038 ) |
16039 sed "s/^/$as_me: WARNING: /" >&2
16040 ;;
16041esac
16042echo "$as_me:$LINENO: checking for $ac_header" >&5
16043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16044if eval "test \"\${$as_ac_Header+set}\" = set"; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16046else
ac1cb8d3 16047 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16048fi
16049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16051
16052fi
16053if test `eval echo '${'$as_ac_Header'}'` = yes; then
16054 cat >>confdefs.h <<_ACEOF
16055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16056_ACEOF
16057
16058fi
16059
16060done
16061
16062
a848cd7e
SC
16063
16064for ac_header in langinfo.h
16065do
16066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16067if eval "test \"\${$as_ac_Header+set}\" = set"; then
16068 echo "$as_me:$LINENO: checking for $ac_header" >&5
16069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16070if eval "test \"\${$as_ac_Header+set}\" = set"; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16072fi
16073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16075else
16076 # Is the header compilable?
16077echo "$as_me:$LINENO: checking $ac_header usability" >&5
16078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16079cat >conftest.$ac_ext <<_ACEOF
16080/* confdefs.h. */
16081_ACEOF
16082cat confdefs.h >>conftest.$ac_ext
16083cat >>conftest.$ac_ext <<_ACEOF
16084/* end confdefs.h. */
16085$ac_includes_default
16086#include <$ac_header>
16087_ACEOF
16088rm -f conftest.$ac_objext
16089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16090 (eval $ac_compile) 2>conftest.er1
a848cd7e 16091 ac_status=$?
ac1cb8d3
VS
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
a848cd7e
SC
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
6ebeb4c7 16097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_header_compiler=yes
16110else
16111 echo "$as_me: failed program was:" >&5
16112sed 's/^/| /' conftest.$ac_ext >&5
16113
16114ac_header_compiler=no
16115fi
ac1cb8d3 16116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16118echo "${ECHO_T}$ac_header_compiler" >&6
16119
16120# Is the header present?
16121echo "$as_me:$LINENO: checking $ac_header presence" >&5
16122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16123cat >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#include <$ac_header>
16130_ACEOF
16131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16133 ac_status=$?
16134 grep -v '^ *+' conftest.er1 >conftest.err
16135 rm -f conftest.er1
16136 cat conftest.err >&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } >/dev/null; then
16139 if test -s conftest.err; then
16140 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16142 else
16143 ac_cpp_err=
16144 fi
16145else
16146 ac_cpp_err=yes
16147fi
16148if test -z "$ac_cpp_err"; then
16149 ac_header_preproc=yes
16150else
16151 echo "$as_me: failed program was:" >&5
16152sed 's/^/| /' conftest.$ac_ext >&5
16153
16154 ac_header_preproc=no
16155fi
16156rm -f conftest.err conftest.$ac_ext
16157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16158echo "${ECHO_T}$ac_header_preproc" >&6
16159
16160# So? What about this header?
ac1cb8d3
VS
16161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16162 yes:no: )
a848cd7e
SC
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16167 ac_header_preproc=yes
a848cd7e 16168 ;;
ac1cb8d3 16169 no:yes:* )
a848cd7e
SC
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16182 (
16183 cat <<\_ASBOX
ac1cb8d3
VS
16184## ----------------------------------------- ##
16185## Report this to wx-dev@lists.wxwidgets.org ##
16186## ----------------------------------------- ##
a848cd7e
SC
16187_ASBOX
16188 ) |
16189 sed "s/^/$as_me: WARNING: /" >&2
16190 ;;
16191esac
16192echo "$as_me:$LINENO: checking for $ac_header" >&5
16193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16194if eval "test \"\${$as_ac_Header+set}\" = set"; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16196else
ac1cb8d3 16197 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16198fi
16199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16201
16202fi
16203if test `eval echo '${'$as_ac_Header'}'` = yes; then
16204 cat >>confdefs.h <<_ACEOF
16205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16206_ACEOF
16207
16208fi
16209
16210done
16211
16212
16213case "${host}" in
16214 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16215 if test $ac_cv_header_langinfo_h = "yes" \
16216 -a \( "$wx_cv_gccversion" = "EMX2" \
16217 -o "$wx_cv_gccversion" = "EMX3" \
16218 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16219 LIBS="$LIBS -lintl"
16220 fi
16221 ;;
16222esac
16223
a848cd7e
SC
16224
16225echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16226echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16227if test "${ac_cv_c_const+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16229else
16230 cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236
16237int
16238main ()
16239{
16240/* FIXME: Include the comments suggested by Paul. */
16241#ifndef __cplusplus
16242 /* Ultrix mips cc rejects this. */
16243 typedef int charset[2];
16244 const charset x;
16245 /* SunOS 4.1.1 cc rejects this. */
16246 char const *const *ccp;
16247 char **p;
16248 /* NEC SVR4.0.2 mips cc rejects this. */
16249 struct point {int x, y;};
16250 static struct point const zero = {0,0};
16251 /* AIX XL C 1.02.0.0 rejects this.
16252 It does not let you subtract one const X* pointer from another in
16253 an arm of an if-expression whose if-part is not a constant
16254 expression */
16255 const char *g = "string";
16256 ccp = &g + (g ? g-g : 0);
16257 /* HPUX 7.0 cc rejects these. */
16258 ++ccp;
16259 p = (char**) ccp;
16260 ccp = (char const *const *) p;
16261 { /* SCO 3.2v4 cc rejects this. */
16262 char *t;
16263 char const *s = 0 ? (char *) 0 : (char const *) 0;
16264
16265 *t++ = 0;
16266 }
16267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16268 int x[] = {25, 17};
16269 const int *foo = &x[0];
16270 ++foo;
16271 }
16272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16273 typedef const int *iptr;
16274 iptr p = 0;
16275 ++p;
16276 }
16277 { /* AIX XL C 1.02.0.0 rejects this saying
16278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16279 struct s { int j; const int *ap[3]; };
16280 struct s *b; b->j = 5;
16281 }
16282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16283 const int foo = 10;
16284 }
16285#endif
16286
16287 ;
16288 return 0;
16289}
16290_ACEOF
16291rm -f conftest.$ac_objext
16292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16293 (eval $ac_compile) 2>conftest.er1
a848cd7e 16294 ac_status=$?
ac1cb8d3
VS
16295 grep -v '^ *+' conftest.er1 >conftest.err
16296 rm -f conftest.er1
16297 cat conftest.err >&5
a848cd7e
SC
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } &&
6ebeb4c7 16300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16303 ac_status=$?
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; } &&
16306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16312 ac_cv_c_const=yes
16313else
16314 echo "$as_me: failed program was:" >&5
16315sed 's/^/| /' conftest.$ac_ext >&5
16316
16317ac_cv_c_const=no
16318fi
ac1cb8d3 16319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16320fi
16321echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16322echo "${ECHO_T}$ac_cv_c_const" >&6
16323if test $ac_cv_c_const = no; then
16324
16325cat >>confdefs.h <<\_ACEOF
16326#define const
16327_ACEOF
16328
16329fi
16330
16331echo "$as_me:$LINENO: checking for inline" >&5
16332echo $ECHO_N "checking for inline... $ECHO_C" >&6
16333if test "${ac_cv_c_inline+set}" = set; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16335else
16336 ac_cv_c_inline=no
16337for ac_kw in inline __inline__ __inline; do
16338 cat >conftest.$ac_ext <<_ACEOF
16339/* confdefs.h. */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h. */
16344#ifndef __cplusplus
16345typedef int foo_t;
16346static $ac_kw foo_t static_foo () {return 0; }
16347$ac_kw foo_t foo () {return 0; }
16348#endif
16349
16350_ACEOF
16351rm -f conftest.$ac_objext
16352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16353 (eval $ac_compile) 2>conftest.er1
a848cd7e 16354 ac_status=$?
ac1cb8d3
VS
16355 grep -v '^ *+' conftest.er1 >conftest.err
16356 rm -f conftest.er1
16357 cat conftest.err >&5
a848cd7e
SC
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } &&
6ebeb4c7 16360 { ac_try='test -z "$ac_c_werror_flag" || 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_cv_c_inline=$ac_kw; break
16373else
16374 echo "$as_me: failed program was:" >&5
16375sed 's/^/| /' conftest.$ac_ext >&5
16376
16377fi
ac1cb8d3 16378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16379done
16380
16381fi
16382echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16383echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16384
16385
a848cd7e
SC
16386case $ac_cv_c_inline in
16387 inline | yes) ;;
ac1cb8d3
VS
16388 *)
16389 case $ac_cv_c_inline in
16390 no) ac_val=;;
16391 *) ac_val=$ac_cv_c_inline;;
16392 esac
16393 cat >>confdefs.h <<_ACEOF
16394#ifndef __cplusplus
16395#define inline $ac_val
16396#endif
de59c161 16397_ACEOF
ac1cb8d3 16398 ;;
a848cd7e
SC
16399esac
16400
16401
16402echo "$as_me:$LINENO: checking for char" >&5
16403echo $ECHO_N "checking for char... $ECHO_C" >&6
16404if test "${ac_cv_type_char+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16406else
16407 cat >conftest.$ac_ext <<_ACEOF
16408/* confdefs.h. */
16409_ACEOF
16410cat confdefs.h >>conftest.$ac_ext
16411cat >>conftest.$ac_ext <<_ACEOF
16412/* end confdefs.h. */
16413$ac_includes_default
16414int
16415main ()
16416{
16417if ((char *) 0)
16418 return 0;
16419if (sizeof (char))
16420 return 0;
16421 ;
16422 return 0;
16423}
16424_ACEOF
16425rm -f conftest.$ac_objext
16426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16427 (eval $ac_compile) 2>conftest.er1
a848cd7e 16428 ac_status=$?
ac1cb8d3
VS
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
a848cd7e
SC
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
6ebeb4c7 16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_type_char=yes
16447else
16448 echo "$as_me: failed program was:" >&5
16449sed 's/^/| /' conftest.$ac_ext >&5
16450
16451ac_cv_type_char=no
16452fi
ac1cb8d3 16453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16454fi
16455echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16456echo "${ECHO_T}$ac_cv_type_char" >&6
16457
16458echo "$as_me:$LINENO: checking size of char" >&5
16459echo $ECHO_N "checking size of char... $ECHO_C" >&6
16460if test "${ac_cv_sizeof_char+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16462else
16463 if test "$ac_cv_type_char" = yes; then
16464 # The cast to unsigned long works around a bug in the HP C Compiler
16465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16467 # This bug is HP SR number 8606223364.
16468 if test "$cross_compiling" = yes; then
16469 # Depending upon the size, compute the lo and hi bounds.
16470cat >conftest.$ac_ext <<_ACEOF
16471/* confdefs.h. */
16472_ACEOF
16473cat confdefs.h >>conftest.$ac_ext
16474cat >>conftest.$ac_ext <<_ACEOF
16475/* end confdefs.h. */
16476$ac_includes_default
16477int
16478main ()
16479{
16480static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16481test_array [0] = 0
16482
16483 ;
16484 return 0;
16485}
16486_ACEOF
16487rm -f conftest.$ac_objext
16488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16489 (eval $ac_compile) 2>conftest.er1
a848cd7e 16490 ac_status=$?
ac1cb8d3
VS
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
a848cd7e
SC
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
6ebeb4c7 16496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_lo=0 ac_mid=0
16509 while :; do
16510 cat >conftest.$ac_ext <<_ACEOF
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
16516$ac_includes_default
16517int
16518main ()
16519{
16520static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16521test_array [0] = 0
16522
16523 ;
16524 return 0;
16525}
16526_ACEOF
16527rm -f conftest.$ac_objext
16528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16529 (eval $ac_compile) 2>conftest.er1
a848cd7e 16530 ac_status=$?
ac1cb8d3
VS
16531 grep -v '^ *+' conftest.er1 >conftest.err
16532 rm -f conftest.er1
16533 cat conftest.err >&5
a848cd7e
SC
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
6ebeb4c7 16536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_hi=$ac_mid; break
16549else
16550 echo "$as_me: failed program was:" >&5
16551sed 's/^/| /' conftest.$ac_ext >&5
16552
16553ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16554 if test $ac_lo -le $ac_mid; then
16555 ac_lo= ac_hi=
16556 break
16557 fi
16558 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16559fi
ac1cb8d3 16560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16561 done
16562else
16563 echo "$as_me: failed program was:" >&5
16564sed 's/^/| /' conftest.$ac_ext >&5
16565
16566cat >conftest.$ac_ext <<_ACEOF
16567/* confdefs.h. */
16568_ACEOF
16569cat confdefs.h >>conftest.$ac_ext
16570cat >>conftest.$ac_ext <<_ACEOF
16571/* end confdefs.h. */
16572$ac_includes_default
16573int
16574main ()
16575{
16576static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16577test_array [0] = 0
16578
16579 ;
16580 return 0;
16581}
16582_ACEOF
16583rm -f conftest.$ac_objext
16584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16585 (eval $ac_compile) 2>conftest.er1
a848cd7e 16586 ac_status=$?
ac1cb8d3
VS
16587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
a848cd7e
SC
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
6ebeb4c7 16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 ac_hi=-1 ac_mid=-1
16605 while :; do
16606 cat >conftest.$ac_ext <<_ACEOF
16607/* confdefs.h. */
16608_ACEOF
16609cat confdefs.h >>conftest.$ac_ext
16610cat >>conftest.$ac_ext <<_ACEOF
16611/* end confdefs.h. */
16612$ac_includes_default
16613int
16614main ()
16615{
16616static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16617test_array [0] = 0
16618
16619 ;
16620 return 0;
16621}
16622_ACEOF
16623rm -f conftest.$ac_objext
16624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16625 (eval $ac_compile) 2>conftest.er1
a848cd7e 16626 ac_status=$?
ac1cb8d3
VS
16627 grep -v '^ *+' conftest.er1 >conftest.err
16628 rm -f conftest.er1
16629 cat conftest.err >&5
a848cd7e
SC
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
6ebeb4c7 16632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_lo=$ac_mid; break
16645else
16646 echo "$as_me: failed program was:" >&5
16647sed 's/^/| /' conftest.$ac_ext >&5
16648
16649ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16650 if test $ac_mid -le $ac_hi; then
16651 ac_lo= ac_hi=
16652 break
16653 fi
16654 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16655fi
ac1cb8d3 16656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16657 done
16658else
16659 echo "$as_me: failed program was:" >&5
16660sed 's/^/| /' conftest.$ac_ext >&5
16661
16662ac_lo= ac_hi=
16663fi
ac1cb8d3 16664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16665fi
ac1cb8d3 16666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16667# Binary search between lo and hi bounds.
16668while test "x$ac_lo" != "x$ac_hi"; do
16669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16670 cat >conftest.$ac_ext <<_ACEOF
16671/* confdefs.h. */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h. */
16676$ac_includes_default
16677int
16678main ()
16679{
16680static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16681test_array [0] = 0
16682
16683 ;
16684 return 0;
16685}
16686_ACEOF
16687rm -f conftest.$ac_objext
16688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16689 (eval $ac_compile) 2>conftest.er1
a848cd7e 16690 ac_status=$?
ac1cb8d3
VS
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
a848cd7e
SC
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
6ebeb4c7 16696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 ac_hi=$ac_mid
16709else
16710 echo "$as_me: failed program was:" >&5
16711sed 's/^/| /' conftest.$ac_ext >&5
16712
16713ac_lo=`expr '(' $ac_mid ')' + 1`
16714fi
ac1cb8d3 16715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16716done
16717case $ac_lo in
16718?*) ac_cv_sizeof_char=$ac_lo;;
16719'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16720See \`config.log' for more details." >&5
16721echo "$as_me: error: cannot compute sizeof (char), 77
16722See \`config.log' for more details." >&2;}
16723 { (exit 1); exit 1; }; } ;;
16724esac
16725else
16726 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16727 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16728echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16729 { (exit 1); exit 1; }; }
16730else
16731 cat >conftest.$ac_ext <<_ACEOF
16732/* confdefs.h. */
16733_ACEOF
16734cat confdefs.h >>conftest.$ac_ext
16735cat >>conftest.$ac_ext <<_ACEOF
16736/* end confdefs.h. */
16737$ac_includes_default
16738long longval () { return (long) (sizeof (char)); }
16739unsigned long ulongval () { return (long) (sizeof (char)); }
16740#include <stdio.h>
16741#include <stdlib.h>
16742int
16743main ()
16744{
16745
16746 FILE *f = fopen ("conftest.val", "w");
16747 if (! f)
16748 exit (1);
16749 if (((long) (sizeof (char))) < 0)
16750 {
16751 long i = longval ();
16752 if (i != ((long) (sizeof (char))))
16753 exit (1);
16754 fprintf (f, "%ld\n", i);
16755 }
16756 else
16757 {
16758 unsigned long i = ulongval ();
16759 if (i != ((long) (sizeof (char))))
16760 exit (1);
16761 fprintf (f, "%lu\n", i);
16762 }
16763 exit (ferror (f) || fclose (f) != 0);
16764
16765 ;
16766 return 0;
16767}
16768_ACEOF
16769rm -f conftest$ac_exeext
16770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16771 (eval $ac_link) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
16780 ac_cv_sizeof_char=`cat conftest.val`
16781else
16782 echo "$as_me: program exited with status $ac_status" >&5
16783echo "$as_me: failed program was:" >&5
16784sed 's/^/| /' conftest.$ac_ext >&5
16785
16786( exit $ac_status )
16787{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16788See \`config.log' for more details." >&5
16789echo "$as_me: error: cannot compute sizeof (char), 77
16790See \`config.log' for more details." >&2;}
16791 { (exit 1); exit 1; }; }
16792fi
ac1cb8d3 16793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16794fi
16795fi
16796rm -f conftest.val
16797else
16798 ac_cv_sizeof_char=0
16799fi
16800fi
16801echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16802echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16803cat >>confdefs.h <<_ACEOF
16804#define SIZEOF_CHAR $ac_cv_sizeof_char
16805_ACEOF
16806
16807
16808echo "$as_me:$LINENO: checking for short" >&5
16809echo $ECHO_N "checking for short... $ECHO_C" >&6
16810if test "${ac_cv_type_short+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812else
16813 cat >conftest.$ac_ext <<_ACEOF
16814/* confdefs.h. */
16815_ACEOF
16816cat confdefs.h >>conftest.$ac_ext
16817cat >>conftest.$ac_ext <<_ACEOF
16818/* end confdefs.h. */
16819$ac_includes_default
16820int
16821main ()
16822{
16823if ((short *) 0)
16824 return 0;
16825if (sizeof (short))
16826 return 0;
16827 ;
16828 return 0;
16829}
16830_ACEOF
16831rm -f conftest.$ac_objext
16832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16833 (eval $ac_compile) 2>conftest.er1
a848cd7e 16834 ac_status=$?
ac1cb8d3
VS
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
a848cd7e
SC
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
6ebeb4c7 16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 ac_cv_type_short=yes
16853else
16854 echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
16857ac_cv_type_short=no
16858fi
ac1cb8d3 16859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16860fi
16861echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16862echo "${ECHO_T}$ac_cv_type_short" >&6
16863
16864echo "$as_me:$LINENO: checking size of short" >&5
16865echo $ECHO_N "checking size of short... $ECHO_C" >&6
16866if test "${ac_cv_sizeof_short+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868else
16869 if test "$ac_cv_type_short" = yes; then
16870 # The cast to unsigned long works around a bug in the HP C Compiler
16871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16873 # This bug is HP SR number 8606223364.
16874 if test "$cross_compiling" = yes; then
16875 # Depending upon the size, compute the lo and hi bounds.
16876cat >conftest.$ac_ext <<_ACEOF
16877/* confdefs.h. */
16878_ACEOF
16879cat confdefs.h >>conftest.$ac_ext
16880cat >>conftest.$ac_ext <<_ACEOF
16881/* end confdefs.h. */
16882$ac_includes_default
16883int
16884main ()
16885{
16886static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16887test_array [0] = 0
16888
16889 ;
16890 return 0;
16891}
16892_ACEOF
16893rm -f conftest.$ac_objext
16894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16895 (eval $ac_compile) 2>conftest.er1
a848cd7e 16896 ac_status=$?
ac1cb8d3
VS
16897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
a848cd7e
SC
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
6ebeb4c7 16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 ac_lo=0 ac_mid=0
16915 while :; do
16916 cat >conftest.$ac_ext <<_ACEOF
16917/* confdefs.h. */
16918_ACEOF
16919cat confdefs.h >>conftest.$ac_ext
16920cat >>conftest.$ac_ext <<_ACEOF
16921/* end confdefs.h. */
16922$ac_includes_default
16923int
16924main ()
16925{
16926static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16927test_array [0] = 0
16928
16929 ;
16930 return 0;
16931}
16932_ACEOF
16933rm -f conftest.$ac_objext
16934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16935 (eval $ac_compile) 2>conftest.er1
a848cd7e 16936 ac_status=$?
ac1cb8d3
VS
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
a848cd7e
SC
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
6ebeb4c7 16942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_hi=$ac_mid; break
16955else
16956 echo "$as_me: failed program was:" >&5
16957sed 's/^/| /' conftest.$ac_ext >&5
16958
16959ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16960 if test $ac_lo -le $ac_mid; then
16961 ac_lo= ac_hi=
16962 break
16963 fi
16964 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16965fi
ac1cb8d3 16966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16967 done
16968else
16969 echo "$as_me: failed program was:" >&5
16970sed 's/^/| /' conftest.$ac_ext >&5
16971
16972cat >conftest.$ac_ext <<_ACEOF
16973/* confdefs.h. */
16974_ACEOF
16975cat confdefs.h >>conftest.$ac_ext
16976cat >>conftest.$ac_ext <<_ACEOF
16977/* end confdefs.h. */
16978$ac_includes_default
16979int
16980main ()
16981{
16982static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16983test_array [0] = 0
16984
16985 ;
16986 return 0;
16987}
16988_ACEOF
16989rm -f conftest.$ac_objext
16990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16991 (eval $ac_compile) 2>conftest.er1
a848cd7e 16992 ac_status=$?
ac1cb8d3
VS
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
a848cd7e
SC
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
6ebeb4c7 16998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000 (eval $ac_try) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 ac_hi=-1 ac_mid=-1
17011 while :; do
17012 cat >conftest.$ac_ext <<_ACEOF
17013/* confdefs.h. */
17014_ACEOF
17015cat confdefs.h >>conftest.$ac_ext
17016cat >>conftest.$ac_ext <<_ACEOF
17017/* end confdefs.h. */
17018$ac_includes_default
17019int
17020main ()
17021{
17022static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17023test_array [0] = 0
17024
17025 ;
17026 return 0;
17027}
17028_ACEOF
17029rm -f conftest.$ac_objext
17030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17031 (eval $ac_compile) 2>conftest.er1
a848cd7e 17032 ac_status=$?
ac1cb8d3
VS
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
a848cd7e
SC
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
6ebeb4c7 17038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_lo=$ac_mid; break
17051else
17052 echo "$as_me: failed program was:" >&5
17053sed 's/^/| /' conftest.$ac_ext >&5
17054
17055ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17056 if test $ac_mid -le $ac_hi; then
17057 ac_lo= ac_hi=
17058 break
17059 fi
17060 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17061fi
ac1cb8d3 17062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17063 done
17064else
17065 echo "$as_me: failed program was:" >&5
17066sed 's/^/| /' conftest.$ac_ext >&5
17067
17068ac_lo= ac_hi=
17069fi
ac1cb8d3 17070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17071fi
ac1cb8d3 17072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17073# Binary search between lo and hi bounds.
17074while test "x$ac_lo" != "x$ac_hi"; do
17075 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17076 cat >conftest.$ac_ext <<_ACEOF
17077/* confdefs.h. */
17078_ACEOF
17079cat confdefs.h >>conftest.$ac_ext
17080cat >>conftest.$ac_ext <<_ACEOF
17081/* end confdefs.h. */
17082$ac_includes_default
17083int
17084main ()
17085{
17086static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17087test_array [0] = 0
17088
17089 ;
17090 return 0;
17091}
17092_ACEOF
17093rm -f conftest.$ac_objext
17094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17095 (eval $ac_compile) 2>conftest.er1
a848cd7e 17096 ac_status=$?
ac1cb8d3
VS
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
a848cd7e
SC
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
6ebeb4c7 17102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; } &&
17108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_hi=$ac_mid
17115else
17116 echo "$as_me: failed program was:" >&5
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
17119ac_lo=`expr '(' $ac_mid ')' + 1`
17120fi
ac1cb8d3 17121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17122done
17123case $ac_lo in
17124?*) ac_cv_sizeof_short=$ac_lo;;
17125'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17126See \`config.log' for more details." >&5
17127echo "$as_me: error: cannot compute sizeof (short), 77
17128See \`config.log' for more details." >&2;}
17129 { (exit 1); exit 1; }; } ;;
17130esac
17131else
17132 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17133 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17134echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17135 { (exit 1); exit 1; }; }
17136else
17137 cat >conftest.$ac_ext <<_ACEOF
17138/* confdefs.h. */
17139_ACEOF
17140cat confdefs.h >>conftest.$ac_ext
17141cat >>conftest.$ac_ext <<_ACEOF
17142/* end confdefs.h. */
17143$ac_includes_default
17144long longval () { return (long) (sizeof (short)); }
17145unsigned long ulongval () { return (long) (sizeof (short)); }
17146#include <stdio.h>
17147#include <stdlib.h>
17148int
17149main ()
17150{
17151
17152 FILE *f = fopen ("conftest.val", "w");
17153 if (! f)
17154 exit (1);
17155 if (((long) (sizeof (short))) < 0)
17156 {
17157 long i = longval ();
17158 if (i != ((long) (sizeof (short))))
17159 exit (1);
17160 fprintf (f, "%ld\n", i);
17161 }
17162 else
17163 {
17164 unsigned long i = ulongval ();
17165 if (i != ((long) (sizeof (short))))
17166 exit (1);
17167 fprintf (f, "%lu\n", i);
17168 }
17169 exit (ferror (f) || fclose (f) != 0);
17170
17171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest$ac_exeext
17176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_cv_sizeof_short=`cat conftest.val`
17187else
17188 echo "$as_me: program exited with status $ac_status" >&5
17189echo "$as_me: failed program was:" >&5
17190sed 's/^/| /' conftest.$ac_ext >&5
17191
17192( exit $ac_status )
17193{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17194See \`config.log' for more details." >&5
17195echo "$as_me: error: cannot compute sizeof (short), 77
17196See \`config.log' for more details." >&2;}
17197 { (exit 1); exit 1; }; }
17198fi
ac1cb8d3 17199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17200fi
17201fi
17202rm -f conftest.val
17203else
17204 ac_cv_sizeof_short=0
17205fi
17206fi
17207echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17208echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17209cat >>confdefs.h <<_ACEOF
17210#define SIZEOF_SHORT $ac_cv_sizeof_short
17211_ACEOF
17212
17213
17214echo "$as_me:$LINENO: checking for void *" >&5
17215echo $ECHO_N "checking for void *... $ECHO_C" >&6
17216if test "${ac_cv_type_void_p+set}" = set; then
17217 echo $ECHO_N "(cached) $ECHO_C" >&6
17218else
17219 cat >conftest.$ac_ext <<_ACEOF
17220/* confdefs.h. */
17221_ACEOF
17222cat confdefs.h >>conftest.$ac_ext
17223cat >>conftest.$ac_ext <<_ACEOF
17224/* end confdefs.h. */
17225$ac_includes_default
17226int
17227main ()
17228{
17229if ((void * *) 0)
17230 return 0;
17231if (sizeof (void *))
17232 return 0;
17233 ;
17234 return 0;
17235}
17236_ACEOF
17237rm -f conftest.$ac_objext
17238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17239 (eval $ac_compile) 2>conftest.er1
a848cd7e 17240 ac_status=$?
ac1cb8d3
VS
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
a848cd7e
SC
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
6ebeb4c7 17246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } &&
17252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_cv_type_void_p=yes
17259else
17260 echo "$as_me: failed program was:" >&5
17261sed 's/^/| /' conftest.$ac_ext >&5
17262
17263ac_cv_type_void_p=no
17264fi
ac1cb8d3 17265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17266fi
17267echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17268echo "${ECHO_T}$ac_cv_type_void_p" >&6
17269
17270echo "$as_me:$LINENO: checking size of void *" >&5
17271echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17272if test "${ac_cv_sizeof_void_p+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274else
17275 if test "$ac_cv_type_void_p" = yes; then
17276 # The cast to unsigned long works around a bug in the HP C Compiler
17277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17279 # This bug is HP SR number 8606223364.
17280 if test "$cross_compiling" = yes; then
17281 # Depending upon the size, compute the lo and hi bounds.
17282cat >conftest.$ac_ext <<_ACEOF
17283/* confdefs.h. */
17284_ACEOF
17285cat confdefs.h >>conftest.$ac_ext
17286cat >>conftest.$ac_ext <<_ACEOF
17287/* end confdefs.h. */
17288$ac_includes_default
17289int
17290main ()
17291{
17292static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17293test_array [0] = 0
17294
17295 ;
17296 return 0;
17297}
17298_ACEOF
17299rm -f conftest.$ac_objext
17300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17301 (eval $ac_compile) 2>conftest.er1
a848cd7e 17302 ac_status=$?
ac1cb8d3
VS
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
a848cd7e
SC
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
6ebeb4c7 17308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17320 ac_lo=0 ac_mid=0
17321 while :; do
17322 cat >conftest.$ac_ext <<_ACEOF
17323/* confdefs.h. */
17324_ACEOF
17325cat confdefs.h >>conftest.$ac_ext
17326cat >>conftest.$ac_ext <<_ACEOF
17327/* end confdefs.h. */
17328$ac_includes_default
17329int
17330main ()
17331{
17332static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17333test_array [0] = 0
17334
17335 ;
17336 return 0;
17337}
17338_ACEOF
17339rm -f conftest.$ac_objext
17340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17341 (eval $ac_compile) 2>conftest.er1
a848cd7e 17342 ac_status=$?
ac1cb8d3
VS
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
a848cd7e
SC
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
6ebeb4c7 17348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 ac_hi=$ac_mid; break
17361else
17362 echo "$as_me: failed program was:" >&5
17363sed 's/^/| /' conftest.$ac_ext >&5
17364
17365ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17366 if test $ac_lo -le $ac_mid; then
17367 ac_lo= ac_hi=
17368 break
17369 fi
17370 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17371fi
ac1cb8d3 17372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17373 done
17374else
17375 echo "$as_me: failed program was:" >&5
17376sed 's/^/| /' conftest.$ac_ext >&5
17377
17378cat >conftest.$ac_ext <<_ACEOF
17379/* confdefs.h. */
17380_ACEOF
17381cat confdefs.h >>conftest.$ac_ext
17382cat >>conftest.$ac_ext <<_ACEOF
17383/* end confdefs.h. */
17384$ac_includes_default
17385int
17386main ()
17387{
17388static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17389test_array [0] = 0
17390
17391 ;
17392 return 0;
17393}
17394_ACEOF
17395rm -f conftest.$ac_objext
17396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17397 (eval $ac_compile) 2>conftest.er1
a848cd7e 17398 ac_status=$?
ac1cb8d3
VS
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
a848cd7e
SC
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
6ebeb4c7 17404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 ac_hi=-1 ac_mid=-1
17417 while :; do
17418 cat >conftest.$ac_ext <<_ACEOF
17419/* confdefs.h. */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h. */
17424$ac_includes_default
17425int
17426main ()
17427{
17428static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17429test_array [0] = 0
17430
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest.$ac_objext
17436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17437 (eval $ac_compile) 2>conftest.er1
a848cd7e 17438 ac_status=$?
ac1cb8d3
VS
17439 grep -v '^ *+' conftest.er1 >conftest.err
17440 rm -f conftest.er1
17441 cat conftest.err >&5
a848cd7e
SC
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
6ebeb4c7 17444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17447 ac_status=$?
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; } &&
17450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 ac_lo=$ac_mid; break
17457else
17458 echo "$as_me: failed program was:" >&5
17459sed 's/^/| /' conftest.$ac_ext >&5
17460
17461ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17462 if test $ac_mid -le $ac_hi; then
17463 ac_lo= ac_hi=
17464 break
17465 fi
17466 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17467fi
ac1cb8d3 17468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17469 done
17470else
17471 echo "$as_me: failed program was:" >&5
17472sed 's/^/| /' conftest.$ac_ext >&5
17473
17474ac_lo= ac_hi=
17475fi
ac1cb8d3 17476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17477fi
ac1cb8d3 17478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17479# Binary search between lo and hi bounds.
17480while test "x$ac_lo" != "x$ac_hi"; do
17481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17482 cat >conftest.$ac_ext <<_ACEOF
17483/* confdefs.h. */
17484_ACEOF
17485cat confdefs.h >>conftest.$ac_ext
17486cat >>conftest.$ac_ext <<_ACEOF
17487/* end confdefs.h. */
17488$ac_includes_default
17489int
17490main ()
17491{
17492static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17493test_array [0] = 0
17494
17495 ;
17496 return 0;
17497}
17498_ACEOF
17499rm -f conftest.$ac_objext
17500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17501 (eval $ac_compile) 2>conftest.er1
a848cd7e 17502 ac_status=$?
ac1cb8d3
VS
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
a848cd7e
SC
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
6ebeb4c7 17508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 ac_hi=$ac_mid
17521else
17522 echo "$as_me: failed program was:" >&5
17523sed 's/^/| /' conftest.$ac_ext >&5
17524
17525ac_lo=`expr '(' $ac_mid ')' + 1`
17526fi
ac1cb8d3 17527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17528done
17529case $ac_lo in
17530?*) ac_cv_sizeof_void_p=$ac_lo;;
17531'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17532See \`config.log' for more details." >&5
17533echo "$as_me: error: cannot compute sizeof (void *), 77
17534See \`config.log' for more details." >&2;}
17535 { (exit 1); exit 1; }; } ;;
17536esac
17537else
17538 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17539 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17540echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17541 { (exit 1); exit 1; }; }
17542else
17543 cat >conftest.$ac_ext <<_ACEOF
17544/* confdefs.h. */
17545_ACEOF
17546cat confdefs.h >>conftest.$ac_ext
17547cat >>conftest.$ac_ext <<_ACEOF
17548/* end confdefs.h. */
17549$ac_includes_default
17550long longval () { return (long) (sizeof (void *)); }
17551unsigned long ulongval () { return (long) (sizeof (void *)); }
17552#include <stdio.h>
17553#include <stdlib.h>
17554int
17555main ()
17556{
17557
17558 FILE *f = fopen ("conftest.val", "w");
17559 if (! f)
17560 exit (1);
17561 if (((long) (sizeof (void *))) < 0)
17562 {
17563 long i = longval ();
17564 if (i != ((long) (sizeof (void *))))
17565 exit (1);
17566 fprintf (f, "%ld\n", i);
17567 }
17568 else
17569 {
17570 unsigned long i = ulongval ();
17571 if (i != ((long) (sizeof (void *))))
17572 exit (1);
17573 fprintf (f, "%lu\n", i);
17574 }
17575 exit (ferror (f) || fclose (f) != 0);
17576
17577 ;
17578 return 0;
17579}
17580_ACEOF
17581rm -f conftest$ac_exeext
17582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17583 (eval $ac_link) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_cv_sizeof_void_p=`cat conftest.val`
17593else
17594 echo "$as_me: program exited with status $ac_status" >&5
17595echo "$as_me: failed program was:" >&5
17596sed 's/^/| /' conftest.$ac_ext >&5
17597
17598( exit $ac_status )
17599{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17600See \`config.log' for more details." >&5
17601echo "$as_me: error: cannot compute sizeof (void *), 77
17602See \`config.log' for more details." >&2;}
17603 { (exit 1); exit 1; }; }
17604fi
ac1cb8d3 17605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17606fi
17607fi
17608rm -f conftest.val
17609else
17610 ac_cv_sizeof_void_p=0
17611fi
17612fi
17613echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17614echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17615cat >>confdefs.h <<_ACEOF
17616#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17617_ACEOF
17618
17619
17620echo "$as_me:$LINENO: checking for int" >&5
17621echo $ECHO_N "checking for int... $ECHO_C" >&6
17622if test "${ac_cv_type_int+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17624else
17625 cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
17631$ac_includes_default
17632int
17633main ()
17634{
17635if ((int *) 0)
17636 return 0;
17637if (sizeof (int))
17638 return 0;
17639 ;
17640 return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext
17644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17645 (eval $ac_compile) 2>conftest.er1
a848cd7e 17646 ac_status=$?
ac1cb8d3
VS
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
a848cd7e
SC
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
6ebeb4c7 17652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 ac_cv_type_int=yes
17665else
17666 echo "$as_me: failed program was:" >&5
17667sed 's/^/| /' conftest.$ac_ext >&5
17668
17669ac_cv_type_int=no
17670fi
ac1cb8d3 17671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17672fi
17673echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17674echo "${ECHO_T}$ac_cv_type_int" >&6
17675
17676echo "$as_me:$LINENO: checking size of int" >&5
17677echo $ECHO_N "checking size of int... $ECHO_C" >&6
17678if test "${ac_cv_sizeof_int+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17680else
17681 if test "$ac_cv_type_int" = yes; then
17682 # The cast to unsigned long works around a bug in the HP C Compiler
17683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17685 # This bug is HP SR number 8606223364.
17686 if test "$cross_compiling" = yes; then
17687 # Depending upon the size, compute the lo and hi bounds.
17688cat >conftest.$ac_ext <<_ACEOF
17689/* confdefs.h. */
17690_ACEOF
17691cat confdefs.h >>conftest.$ac_ext
17692cat >>conftest.$ac_ext <<_ACEOF
17693/* end confdefs.h. */
17694$ac_includes_default
17695int
17696main ()
17697{
17698static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17699test_array [0] = 0
17700
17701 ;
17702 return 0;
17703}
17704_ACEOF
17705rm -f conftest.$ac_objext
17706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17707 (eval $ac_compile) 2>conftest.er1
a848cd7e 17708 ac_status=$?
ac1cb8d3
VS
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
a848cd7e
SC
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
6ebeb4c7 17714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 ac_lo=0 ac_mid=0
17727 while :; do
17728 cat >conftest.$ac_ext <<_ACEOF
17729/* confdefs.h. */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h. */
17734$ac_includes_default
17735int
17736main ()
17737{
17738static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17739test_array [0] = 0
17740
17741 ;
17742 return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext
17746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17747 (eval $ac_compile) 2>conftest.er1
a848cd7e 17748 ac_status=$?
ac1cb8d3
VS
17749 grep -v '^ *+' conftest.er1 >conftest.err
17750 rm -f conftest.er1
17751 cat conftest.err >&5
a848cd7e
SC
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
6ebeb4c7 17754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ac_hi=$ac_mid; break
17767else
17768 echo "$as_me: failed program was:" >&5
17769sed 's/^/| /' conftest.$ac_ext >&5
17770
17771ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17772 if test $ac_lo -le $ac_mid; then
17773 ac_lo= ac_hi=
17774 break
17775 fi
17776 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17777fi
ac1cb8d3 17778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17779 done
17780else
17781 echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784cat >conftest.$ac_ext <<_ACEOF
17785/* confdefs.h. */
17786_ACEOF
17787cat confdefs.h >>conftest.$ac_ext
17788cat >>conftest.$ac_ext <<_ACEOF
17789/* end confdefs.h. */
17790$ac_includes_default
17791int
17792main ()
17793{
17794static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17795test_array [0] = 0
17796
17797 ;
17798 return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext
17802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17803 (eval $ac_compile) 2>conftest.er1
a848cd7e 17804 ac_status=$?
ac1cb8d3
VS
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
a848cd7e
SC
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
6ebeb4c7 17810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_hi=-1 ac_mid=-1
17823 while :; do
17824 cat >conftest.$ac_ext <<_ACEOF
17825/* confdefs.h. */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h. */
17830$ac_includes_default
17831int
17832main ()
17833{
17834static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17835test_array [0] = 0
17836
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17843 (eval $ac_compile) 2>conftest.er1
a848cd7e 17844 ac_status=$?
ac1cb8d3
VS
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
a848cd7e
SC
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
6ebeb4c7 17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 ac_lo=$ac_mid; break
17863else
17864 echo "$as_me: failed program was:" >&5
17865sed 's/^/| /' conftest.$ac_ext >&5
17866
17867ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17868 if test $ac_mid -le $ac_hi; then
17869 ac_lo= ac_hi=
17870 break
17871 fi
17872 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17873fi
ac1cb8d3 17874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17875 done
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880ac_lo= ac_hi=
17881fi
ac1cb8d3 17882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17883fi
ac1cb8d3 17884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17885# Binary search between lo and hi bounds.
17886while test "x$ac_lo" != "x$ac_hi"; do
17887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17888 cat >conftest.$ac_ext <<_ACEOF
17889/* confdefs.h. */
17890_ACEOF
17891cat confdefs.h >>conftest.$ac_ext
17892cat >>conftest.$ac_ext <<_ACEOF
17893/* end confdefs.h. */
17894$ac_includes_default
17895int
17896main ()
17897{
17898static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17899test_array [0] = 0
17900
17901 ;
17902 return 0;
17903}
17904_ACEOF
17905rm -f conftest.$ac_objext
17906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17907 (eval $ac_compile) 2>conftest.er1
a848cd7e 17908 ac_status=$?
ac1cb8d3
VS
17909 grep -v '^ *+' conftest.er1 >conftest.err
17910 rm -f conftest.er1
17911 cat conftest.err >&5
a848cd7e
SC
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
6ebeb4c7 17914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; } &&
17920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 ac_hi=$ac_mid
17927else
17928 echo "$as_me: failed program was:" >&5
17929sed 's/^/| /' conftest.$ac_ext >&5
17930
17931ac_lo=`expr '(' $ac_mid ')' + 1`
17932fi
ac1cb8d3 17933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17934done
17935case $ac_lo in
17936?*) ac_cv_sizeof_int=$ac_lo;;
17937'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17938See \`config.log' for more details." >&5
17939echo "$as_me: error: cannot compute sizeof (int), 77
17940See \`config.log' for more details." >&2;}
17941 { (exit 1); exit 1; }; } ;;
17942esac
17943else
17944 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17945 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17946echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17947 { (exit 1); exit 1; }; }
17948else
17949 cat >conftest.$ac_ext <<_ACEOF
17950/* confdefs.h. */
17951_ACEOF
17952cat confdefs.h >>conftest.$ac_ext
17953cat >>conftest.$ac_ext <<_ACEOF
17954/* end confdefs.h. */
17955$ac_includes_default
17956long longval () { return (long) (sizeof (int)); }
17957unsigned long ulongval () { return (long) (sizeof (int)); }
17958#include <stdio.h>
17959#include <stdlib.h>
17960int
17961main ()
17962{
17963
17964 FILE *f = fopen ("conftest.val", "w");
17965 if (! f)
17966 exit (1);
17967 if (((long) (sizeof (int))) < 0)
17968 {
17969 long i = longval ();
17970 if (i != ((long) (sizeof (int))))
17971 exit (1);
17972 fprintf (f, "%ld\n", i);
17973 }
17974 else
17975 {
17976 unsigned long i = ulongval ();
17977 if (i != ((long) (sizeof (int))))
17978 exit (1);
17979 fprintf (f, "%lu\n", i);
17980 }
17981 exit (ferror (f) || fclose (f) != 0);
17982
17983 ;
17984 return 0;
17985}
17986_ACEOF
17987rm -f conftest$ac_exeext
17988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17989 (eval $ac_link) 2>&5
17990 ac_status=$?
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 ac_cv_sizeof_int=`cat conftest.val`
17999else
18000 echo "$as_me: program exited with status $ac_status" >&5
18001echo "$as_me: failed program was:" >&5
18002sed 's/^/| /' conftest.$ac_ext >&5
18003
18004( exit $ac_status )
18005{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18006See \`config.log' for more details." >&5
18007echo "$as_me: error: cannot compute sizeof (int), 77
18008See \`config.log' for more details." >&2;}
18009 { (exit 1); exit 1; }; }
18010fi
ac1cb8d3 18011rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18012fi
18013fi
18014rm -f conftest.val
18015else
18016 ac_cv_sizeof_int=0
18017fi
18018fi
18019echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18020echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18021cat >>confdefs.h <<_ACEOF
18022#define SIZEOF_INT $ac_cv_sizeof_int
18023_ACEOF
18024
18025
18026echo "$as_me:$LINENO: checking for long" >&5
18027echo $ECHO_N "checking for long... $ECHO_C" >&6
18028if test "${ac_cv_type_long+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18030else
18031 cat >conftest.$ac_ext <<_ACEOF
18032/* confdefs.h. */
18033_ACEOF
18034cat confdefs.h >>conftest.$ac_ext
18035cat >>conftest.$ac_ext <<_ACEOF
18036/* end confdefs.h. */
18037$ac_includes_default
18038int
18039main ()
18040{
18041if ((long *) 0)
18042 return 0;
18043if (sizeof (long))
18044 return 0;
18045 ;
18046 return 0;
18047}
18048_ACEOF
18049rm -f conftest.$ac_objext
18050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18051 (eval $ac_compile) 2>conftest.er1
a848cd7e 18052 ac_status=$?
ac1cb8d3
VS
18053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
a848cd7e
SC
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
6ebeb4c7 18058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } &&
18064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_type_long=yes
18071else
18072 echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
18075ac_cv_type_long=no
18076fi
ac1cb8d3 18077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18078fi
18079echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18080echo "${ECHO_T}$ac_cv_type_long" >&6
18081
18082echo "$as_me:$LINENO: checking size of long" >&5
18083echo $ECHO_N "checking size of long... $ECHO_C" >&6
18084if test "${ac_cv_sizeof_long+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18086else
18087 if test "$ac_cv_type_long" = yes; then
18088 # The cast to unsigned long works around a bug in the HP C Compiler
18089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18091 # This bug is HP SR number 8606223364.
18092 if test "$cross_compiling" = yes; then
18093 # Depending upon the size, compute the lo and hi bounds.
18094cat >conftest.$ac_ext <<_ACEOF
18095/* confdefs.h. */
18096_ACEOF
18097cat confdefs.h >>conftest.$ac_ext
18098cat >>conftest.$ac_ext <<_ACEOF
18099/* end confdefs.h. */
18100$ac_includes_default
18101int
18102main ()
18103{
18104static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18105test_array [0] = 0
18106
18107 ;
18108 return 0;
18109}
18110_ACEOF
18111rm -f conftest.$ac_objext
18112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18113 (eval $ac_compile) 2>conftest.er1
a848cd7e 18114 ac_status=$?
ac1cb8d3
VS
18115 grep -v '^ *+' conftest.er1 >conftest.err
18116 rm -f conftest.er1
18117 cat conftest.err >&5
a848cd7e
SC
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } &&
6ebeb4c7 18120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; } &&
18126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; }; then
18132 ac_lo=0 ac_mid=0
18133 while :; do
18134 cat >conftest.$ac_ext <<_ACEOF
18135/* confdefs.h. */
18136_ACEOF
18137cat confdefs.h >>conftest.$ac_ext
18138cat >>conftest.$ac_ext <<_ACEOF
18139/* end confdefs.h. */
18140$ac_includes_default
18141int
18142main ()
18143{
18144static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18145test_array [0] = 0
18146
18147 ;
18148 return 0;
18149}
18150_ACEOF
18151rm -f conftest.$ac_objext
18152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18153 (eval $ac_compile) 2>conftest.er1
a848cd7e 18154 ac_status=$?
ac1cb8d3
VS
18155 grep -v '^ *+' conftest.er1 >conftest.err
18156 rm -f conftest.er1
18157 cat conftest.err >&5
a848cd7e
SC
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
6ebeb4c7 18160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; } &&
18166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168 (eval $ac_try) 2>&5
18169 ac_status=$?
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; }; then
18172 ac_hi=$ac_mid; break
18173else
18174 echo "$as_me: failed program was:" >&5
18175sed 's/^/| /' conftest.$ac_ext >&5
18176
18177ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18178 if test $ac_lo -le $ac_mid; then
18179 ac_lo= ac_hi=
18180 break
18181 fi
18182 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18183fi
ac1cb8d3 18184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18185 done
18186else
18187 echo "$as_me: failed program was:" >&5
18188sed 's/^/| /' conftest.$ac_ext >&5
18189
18190cat >conftest.$ac_ext <<_ACEOF
18191/* confdefs.h. */
18192_ACEOF
18193cat confdefs.h >>conftest.$ac_ext
18194cat >>conftest.$ac_ext <<_ACEOF
18195/* end confdefs.h. */
18196$ac_includes_default
18197int
18198main ()
18199{
18200static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18201test_array [0] = 0
18202
18203 ;
18204 return 0;
18205}
18206_ACEOF
18207rm -f conftest.$ac_objext
18208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18209 (eval $ac_compile) 2>conftest.er1
a848cd7e 18210 ac_status=$?
ac1cb8d3
VS
18211 grep -v '^ *+' conftest.er1 >conftest.err
18212 rm -f conftest.er1
18213 cat conftest.err >&5
a848cd7e
SC
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
6ebeb4c7 18216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 ac_hi=-1 ac_mid=-1
18229 while :; do
18230 cat >conftest.$ac_ext <<_ACEOF
18231/* confdefs.h. */
18232_ACEOF
18233cat confdefs.h >>conftest.$ac_ext
18234cat >>conftest.$ac_ext <<_ACEOF
18235/* end confdefs.h. */
18236$ac_includes_default
18237int
18238main ()
18239{
18240static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18241test_array [0] = 0
18242
18243 ;
18244 return 0;
18245}
18246_ACEOF
18247rm -f conftest.$ac_objext
18248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18249 (eval $ac_compile) 2>conftest.er1
a848cd7e 18250 ac_status=$?
ac1cb8d3
VS
18251 grep -v '^ *+' conftest.er1 >conftest.err
18252 rm -f conftest.er1
18253 cat conftest.err >&5
a848cd7e
SC
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } &&
6ebeb4c7 18256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 ac_lo=$ac_mid; break
18269else
18270 echo "$as_me: failed program was:" >&5
18271sed 's/^/| /' conftest.$ac_ext >&5
18272
18273ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18274 if test $ac_mid -le $ac_hi; then
18275 ac_lo= ac_hi=
18276 break
18277 fi
18278 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18279fi
ac1cb8d3 18280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18281 done
18282else
18283 echo "$as_me: failed program was:" >&5
18284sed 's/^/| /' conftest.$ac_ext >&5
18285
18286ac_lo= ac_hi=
18287fi
ac1cb8d3 18288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18289fi
ac1cb8d3 18290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18291# Binary search between lo and hi bounds.
18292while test "x$ac_lo" != "x$ac_hi"; do
18293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18294 cat >conftest.$ac_ext <<_ACEOF
18295/* confdefs.h. */
18296_ACEOF
18297cat confdefs.h >>conftest.$ac_ext
18298cat >>conftest.$ac_ext <<_ACEOF
18299/* end confdefs.h. */
18300$ac_includes_default
18301int
18302main ()
18303{
18304static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18305test_array [0] = 0
18306
18307 ;
18308 return 0;
18309}
18310_ACEOF
18311rm -f conftest.$ac_objext
18312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18313 (eval $ac_compile) 2>conftest.er1
a848cd7e 18314 ac_status=$?
ac1cb8d3
VS
18315 grep -v '^ *+' conftest.er1 >conftest.err
18316 rm -f conftest.er1
18317 cat conftest.err >&5
a848cd7e
SC
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
6ebeb4c7 18320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; } &&
18326 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328 (eval $ac_try) 2>&5
18329 ac_status=$?
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; }; then
18332 ac_hi=$ac_mid
18333else
18334 echo "$as_me: failed program was:" >&5
18335sed 's/^/| /' conftest.$ac_ext >&5
18336
18337ac_lo=`expr '(' $ac_mid ')' + 1`
18338fi
ac1cb8d3 18339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18340done
18341case $ac_lo in
18342?*) ac_cv_sizeof_long=$ac_lo;;
18343'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18344See \`config.log' for more details." >&5
18345echo "$as_me: error: cannot compute sizeof (long), 77
18346See \`config.log' for more details." >&2;}
18347 { (exit 1); exit 1; }; } ;;
18348esac
18349else
18350 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18351 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18352echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18353 { (exit 1); exit 1; }; }
18354else
18355 cat >conftest.$ac_ext <<_ACEOF
18356/* confdefs.h. */
18357_ACEOF
18358cat confdefs.h >>conftest.$ac_ext
18359cat >>conftest.$ac_ext <<_ACEOF
18360/* end confdefs.h. */
18361$ac_includes_default
18362long longval () { return (long) (sizeof (long)); }
18363unsigned long ulongval () { return (long) (sizeof (long)); }
18364#include <stdio.h>
18365#include <stdlib.h>
18366int
18367main ()
18368{
18369
18370 FILE *f = fopen ("conftest.val", "w");
18371 if (! f)
18372 exit (1);
18373 if (((long) (sizeof (long))) < 0)
18374 {
18375 long i = longval ();
18376 if (i != ((long) (sizeof (long))))
18377 exit (1);
18378 fprintf (f, "%ld\n", i);
18379 }
18380 else
18381 {
18382 unsigned long i = ulongval ();
18383 if (i != ((long) (sizeof (long))))
18384 exit (1);
18385 fprintf (f, "%lu\n", i);
18386 }
18387 exit (ferror (f) || fclose (f) != 0);
18388
18389 ;
18390 return 0;
18391}
18392_ACEOF
18393rm -f conftest$ac_exeext
18394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18395 (eval $ac_link) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
18404 ac_cv_sizeof_long=`cat conftest.val`
18405else
18406 echo "$as_me: program exited with status $ac_status" >&5
18407echo "$as_me: failed program was:" >&5
18408sed 's/^/| /' conftest.$ac_ext >&5
18409
18410( exit $ac_status )
18411{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18412See \`config.log' for more details." >&5
18413echo "$as_me: error: cannot compute sizeof (long), 77
18414See \`config.log' for more details." >&2;}
18415 { (exit 1); exit 1; }; }
18416fi
ac1cb8d3 18417rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18418fi
18419fi
18420rm -f conftest.val
18421else
18422 ac_cv_sizeof_long=0
18423fi
18424fi
18425echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18426echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18427cat >>confdefs.h <<_ACEOF
18428#define SIZEOF_LONG $ac_cv_sizeof_long
18429_ACEOF
18430
18431
18432echo "$as_me:$LINENO: checking for size_t" >&5
18433echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18434if test "${ac_cv_type_size_t+set}" = set; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18436else
18437 cat >conftest.$ac_ext <<_ACEOF
18438/* confdefs.h. */
18439_ACEOF
18440cat confdefs.h >>conftest.$ac_ext
18441cat >>conftest.$ac_ext <<_ACEOF
18442/* end confdefs.h. */
18443$ac_includes_default
18444int
18445main ()
18446{
18447if ((size_t *) 0)
18448 return 0;
18449if (sizeof (size_t))
18450 return 0;
18451 ;
18452 return 0;
18453}
18454_ACEOF
18455rm -f conftest.$ac_objext
18456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18457 (eval $ac_compile) 2>conftest.er1
a848cd7e 18458 ac_status=$?
ac1cb8d3
VS
18459 grep -v '^ *+' conftest.er1 >conftest.err
18460 rm -f conftest.er1
18461 cat conftest.err >&5
a848cd7e
SC
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } &&
6ebeb4c7 18464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 ac_cv_type_size_t=yes
18477else
18478 echo "$as_me: failed program was:" >&5
18479sed 's/^/| /' conftest.$ac_ext >&5
18480
18481ac_cv_type_size_t=no
18482fi
ac1cb8d3 18483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18484fi
18485echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18486echo "${ECHO_T}$ac_cv_type_size_t" >&6
18487
18488echo "$as_me:$LINENO: checking size of size_t" >&5
18489echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18490if test "${ac_cv_sizeof_size_t+set}" = set; then
18491 echo $ECHO_N "(cached) $ECHO_C" >&6
18492else
18493 if test "$ac_cv_type_size_t" = yes; then
18494 # The cast to unsigned long works around a bug in the HP C Compiler
18495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18497 # This bug is HP SR number 8606223364.
18498 if test "$cross_compiling" = yes; then
18499 # Depending upon the size, compute the lo and hi bounds.
18500cat >conftest.$ac_ext <<_ACEOF
18501/* confdefs.h. */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h. */
18506$ac_includes_default
18507int
18508main ()
18509{
18510static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18511test_array [0] = 0
18512
18513 ;
18514 return 0;
18515}
18516_ACEOF
18517rm -f conftest.$ac_objext
18518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18519 (eval $ac_compile) 2>conftest.er1
a848cd7e 18520 ac_status=$?
ac1cb8d3
VS
18521 grep -v '^ *+' conftest.er1 >conftest.err
18522 rm -f conftest.er1
18523 cat conftest.err >&5
a848cd7e
SC
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
6ebeb4c7 18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_lo=0 ac_mid=0
18539 while :; do
18540 cat >conftest.$ac_ext <<_ACEOF
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
18546$ac_includes_default
18547int
18548main ()
18549{
18550static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18551test_array [0] = 0
18552
18553 ;
18554 return 0;
18555}
18556_ACEOF
18557rm -f conftest.$ac_objext
18558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18559 (eval $ac_compile) 2>conftest.er1
a848cd7e 18560 ac_status=$?
ac1cb8d3
VS
18561 grep -v '^ *+' conftest.er1 >conftest.err
18562 rm -f conftest.er1
18563 cat conftest.err >&5
a848cd7e
SC
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
6ebeb4c7 18566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_hi=$ac_mid; break
18579else
18580 echo "$as_me: failed program was:" >&5
18581sed 's/^/| /' conftest.$ac_ext >&5
18582
18583ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18584 if test $ac_lo -le $ac_mid; then
18585 ac_lo= ac_hi=
18586 break
18587 fi
18588 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18589fi
ac1cb8d3 18590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18591 done
18592else
18593 echo "$as_me: failed program was:" >&5
18594sed 's/^/| /' conftest.$ac_ext >&5
18595
18596cat >conftest.$ac_ext <<_ACEOF
18597/* confdefs.h. */
18598_ACEOF
18599cat confdefs.h >>conftest.$ac_ext
18600cat >>conftest.$ac_ext <<_ACEOF
18601/* end confdefs.h. */
18602$ac_includes_default
18603int
18604main ()
18605{
18606static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18607test_array [0] = 0
18608
18609 ;
18610 return 0;
18611}
18612_ACEOF
18613rm -f conftest.$ac_objext
18614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18615 (eval $ac_compile) 2>conftest.er1
a848cd7e 18616 ac_status=$?
ac1cb8d3
VS
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
a848cd7e
SC
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
6ebeb4c7 18622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18625 ac_status=$?
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; } &&
18628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 ac_hi=-1 ac_mid=-1
18635 while :; do
18636 cat >conftest.$ac_ext <<_ACEOF
18637/* confdefs.h. */
18638_ACEOF
18639cat confdefs.h >>conftest.$ac_ext
18640cat >>conftest.$ac_ext <<_ACEOF
18641/* end confdefs.h. */
18642$ac_includes_default
18643int
18644main ()
18645{
18646static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18647test_array [0] = 0
18648
18649 ;
18650 return 0;
18651}
18652_ACEOF
18653rm -f conftest.$ac_objext
18654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18655 (eval $ac_compile) 2>conftest.er1
a848cd7e 18656 ac_status=$?
ac1cb8d3
VS
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
a848cd7e
SC
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } &&
6ebeb4c7 18662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; } &&
18668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 ac_lo=$ac_mid; break
18675else
18676 echo "$as_me: failed program was:" >&5
18677sed 's/^/| /' conftest.$ac_ext >&5
18678
18679ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18680 if test $ac_mid -le $ac_hi; then
18681 ac_lo= ac_hi=
18682 break
18683 fi
18684 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18685fi
ac1cb8d3 18686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18687 done
18688else
18689 echo "$as_me: failed program was:" >&5
18690sed 's/^/| /' conftest.$ac_ext >&5
18691
18692ac_lo= ac_hi=
18693fi
ac1cb8d3 18694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18695fi
ac1cb8d3 18696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18697# Binary search between lo and hi bounds.
18698while test "x$ac_lo" != "x$ac_hi"; do
18699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18700 cat >conftest.$ac_ext <<_ACEOF
18701/* confdefs.h. */
18702_ACEOF
18703cat confdefs.h >>conftest.$ac_ext
18704cat >>conftest.$ac_ext <<_ACEOF
18705/* end confdefs.h. */
18706$ac_includes_default
18707int
18708main ()
18709{
18710static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18711test_array [0] = 0
18712
18713 ;
18714 return 0;
18715}
18716_ACEOF
18717rm -f conftest.$ac_objext
18718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18719 (eval $ac_compile) 2>conftest.er1
a848cd7e 18720 ac_status=$?
ac1cb8d3
VS
18721 grep -v '^ *+' conftest.er1 >conftest.err
18722 rm -f conftest.er1
18723 cat conftest.err >&5
a848cd7e
SC
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
6ebeb4c7 18726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; } &&
18732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 ac_hi=$ac_mid
18739else
18740 echo "$as_me: failed program was:" >&5
18741sed 's/^/| /' conftest.$ac_ext >&5
18742
18743ac_lo=`expr '(' $ac_mid ')' + 1`
18744fi
ac1cb8d3 18745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18746done
18747case $ac_lo in
18748?*) ac_cv_sizeof_size_t=$ac_lo;;
18749'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18750See \`config.log' for more details." >&5
18751echo "$as_me: error: cannot compute sizeof (size_t), 77
18752See \`config.log' for more details." >&2;}
18753 { (exit 1); exit 1; }; } ;;
18754esac
18755else
18756 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18757 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18758echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18759 { (exit 1); exit 1; }; }
18760else
18761 cat >conftest.$ac_ext <<_ACEOF
18762/* confdefs.h. */
18763_ACEOF
18764cat confdefs.h >>conftest.$ac_ext
18765cat >>conftest.$ac_ext <<_ACEOF
18766/* end confdefs.h. */
18767$ac_includes_default
18768long longval () { return (long) (sizeof (size_t)); }
18769unsigned long ulongval () { return (long) (sizeof (size_t)); }
18770#include <stdio.h>
18771#include <stdlib.h>
18772int
18773main ()
18774{
18775
18776 FILE *f = fopen ("conftest.val", "w");
18777 if (! f)
18778 exit (1);
18779 if (((long) (sizeof (size_t))) < 0)
18780 {
18781 long i = longval ();
18782 if (i != ((long) (sizeof (size_t))))
18783 exit (1);
18784 fprintf (f, "%ld\n", i);
18785 }
18786 else
18787 {
18788 unsigned long i = ulongval ();
18789 if (i != ((long) (sizeof (size_t))))
18790 exit (1);
18791 fprintf (f, "%lu\n", i);
18792 }
18793 exit (ferror (f) || fclose (f) != 0);
18794
18795 ;
18796 return 0;
18797}
18798_ACEOF
18799rm -f conftest$ac_exeext
18800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18801 (eval $ac_link) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 ac_cv_sizeof_size_t=`cat conftest.val`
18811else
18812 echo "$as_me: program exited with status $ac_status" >&5
18813echo "$as_me: failed program was:" >&5
18814sed 's/^/| /' conftest.$ac_ext >&5
18815
18816( exit $ac_status )
18817{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18818See \`config.log' for more details." >&5
18819echo "$as_me: error: cannot compute sizeof (size_t), 77
18820See \`config.log' for more details." >&2;}
18821 { (exit 1); exit 1; }; }
18822fi
ac1cb8d3 18823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18824fi
18825fi
18826rm -f conftest.val
18827else
18828 ac_cv_sizeof_size_t=0
18829fi
18830fi
18831echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18832echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18833cat >>confdefs.h <<_ACEOF
18834#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18835_ACEOF
18836
18837
18838
18839case "${host}" in
18840 arm-*-linux* )
18841 echo "$as_me:$LINENO: checking for long long" >&5
18842echo $ECHO_N "checking for long long... $ECHO_C" >&6
18843if test "${ac_cv_type_long_long+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845else
18846 cat >conftest.$ac_ext <<_ACEOF
18847/* confdefs.h. */
18848_ACEOF
18849cat confdefs.h >>conftest.$ac_ext
18850cat >>conftest.$ac_ext <<_ACEOF
18851/* end confdefs.h. */
18852$ac_includes_default
18853int
18854main ()
18855{
18856if ((long long *) 0)
18857 return 0;
18858if (sizeof (long long))
18859 return 0;
18860 ;
18861 return 0;
18862}
18863_ACEOF
18864rm -f conftest.$ac_objext
18865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18866 (eval $ac_compile) 2>conftest.er1
a848cd7e 18867 ac_status=$?
ac1cb8d3
VS
18868 grep -v '^ *+' conftest.er1 >conftest.err
18869 rm -f conftest.er1
18870 cat conftest.err >&5
a848cd7e
SC
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } &&
6ebeb4c7 18873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; } &&
18879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18885 ac_cv_type_long_long=yes
18886else
18887 echo "$as_me: failed program was:" >&5
18888sed 's/^/| /' conftest.$ac_ext >&5
18889
18890ac_cv_type_long_long=no
18891fi
ac1cb8d3 18892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18893fi
18894echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18895echo "${ECHO_T}$ac_cv_type_long_long" >&6
18896
18897echo "$as_me:$LINENO: checking size of long long" >&5
18898echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18899if test "${ac_cv_sizeof_long_long+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18901else
18902 if test "$ac_cv_type_long_long" = yes; then
18903 # The cast to unsigned long works around a bug in the HP C Compiler
18904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18906 # This bug is HP SR number 8606223364.
18907 if test "$cross_compiling" = yes; then
18908 # Depending upon the size, compute the lo and hi bounds.
18909cat >conftest.$ac_ext <<_ACEOF
18910/* confdefs.h. */
18911_ACEOF
18912cat confdefs.h >>conftest.$ac_ext
18913cat >>conftest.$ac_ext <<_ACEOF
18914/* end confdefs.h. */
18915$ac_includes_default
18916int
18917main ()
18918{
18919static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18920test_array [0] = 0
18921
18922 ;
18923 return 0;
18924}
18925_ACEOF
18926rm -f conftest.$ac_objext
18927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18928 (eval $ac_compile) 2>conftest.er1
a848cd7e 18929 ac_status=$?
ac1cb8d3
VS
18930 grep -v '^ *+' conftest.er1 >conftest.err
18931 rm -f conftest.er1
18932 cat conftest.err >&5
a848cd7e
SC
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
6ebeb4c7 18935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 ac_lo=0 ac_mid=0
18948 while :; do
18949 cat >conftest.$ac_ext <<_ACEOF
18950/* confdefs.h. */
18951_ACEOF
18952cat confdefs.h >>conftest.$ac_ext
18953cat >>conftest.$ac_ext <<_ACEOF
18954/* end confdefs.h. */
18955$ac_includes_default
18956int
18957main ()
18958{
18959static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18960test_array [0] = 0
18961
18962 ;
18963 return 0;
18964}
18965_ACEOF
18966rm -f conftest.$ac_objext
18967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18968 (eval $ac_compile) 2>conftest.er1
a848cd7e 18969 ac_status=$?
ac1cb8d3
VS
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
a848cd7e
SC
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
6ebeb4c7 18975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18978 ac_status=$?
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; } &&
18981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ac_hi=$ac_mid; break
18988else
18989 echo "$as_me: failed program was:" >&5
18990sed 's/^/| /' conftest.$ac_ext >&5
18991
18992ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18993 if test $ac_lo -le $ac_mid; then
18994 ac_lo= ac_hi=
18995 break
18996 fi
18997 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18998fi
ac1cb8d3 18999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19000 done
19001else
19002 echo "$as_me: failed program was:" >&5
19003sed 's/^/| /' conftest.$ac_ext >&5
19004
19005cat >conftest.$ac_ext <<_ACEOF
19006/* confdefs.h. */
19007_ACEOF
19008cat confdefs.h >>conftest.$ac_ext
19009cat >>conftest.$ac_ext <<_ACEOF
19010/* end confdefs.h. */
19011$ac_includes_default
19012int
19013main ()
19014{
19015static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19016test_array [0] = 0
19017
19018 ;
19019 return 0;
19020}
19021_ACEOF
19022rm -f conftest.$ac_objext
19023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19024 (eval $ac_compile) 2>conftest.er1
a848cd7e 19025 ac_status=$?
ac1cb8d3
VS
19026 grep -v '^ *+' conftest.er1 >conftest.err
19027 rm -f conftest.er1
19028 cat conftest.err >&5
a848cd7e
SC
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } &&
6ebeb4c7 19031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19040 ac_status=$?
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 ac_hi=-1 ac_mid=-1
19044 while :; do
19045 cat >conftest.$ac_ext <<_ACEOF
19046/* confdefs.h. */
19047_ACEOF
19048cat confdefs.h >>conftest.$ac_ext
19049cat >>conftest.$ac_ext <<_ACEOF
19050/* end confdefs.h. */
19051$ac_includes_default
19052int
19053main ()
19054{
19055static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19056test_array [0] = 0
19057
19058 ;
19059 return 0;
19060}
19061_ACEOF
19062rm -f conftest.$ac_objext
19063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19064 (eval $ac_compile) 2>conftest.er1
a848cd7e 19065 ac_status=$?
ac1cb8d3
VS
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
a848cd7e
SC
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } &&
6ebeb4c7 19071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_lo=$ac_mid; break
19084else
19085 echo "$as_me: failed program was:" >&5
19086sed 's/^/| /' conftest.$ac_ext >&5
19087
19088ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19089 if test $ac_mid -le $ac_hi; then
19090 ac_lo= ac_hi=
19091 break
19092 fi
19093 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19094fi
ac1cb8d3 19095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19096 done
19097else
19098 echo "$as_me: failed program was:" >&5
19099sed 's/^/| /' conftest.$ac_ext >&5
19100
19101ac_lo= ac_hi=
19102fi
ac1cb8d3 19103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19104fi
ac1cb8d3 19105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19106# Binary search between lo and hi bounds.
19107while test "x$ac_lo" != "x$ac_hi"; do
19108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19109 cat >conftest.$ac_ext <<_ACEOF
19110/* confdefs.h. */
19111_ACEOF
19112cat confdefs.h >>conftest.$ac_ext
19113cat >>conftest.$ac_ext <<_ACEOF
19114/* end confdefs.h. */
19115$ac_includes_default
19116int
19117main ()
19118{
19119static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19120test_array [0] = 0
19121
19122 ;
19123 return 0;
19124}
19125_ACEOF
19126rm -f conftest.$ac_objext
19127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19128 (eval $ac_compile) 2>conftest.er1
a848cd7e 19129 ac_status=$?
ac1cb8d3
VS
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
a848cd7e
SC
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
6ebeb4c7 19135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; } &&
19141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 ac_hi=$ac_mid
19148else
19149 echo "$as_me: failed program was:" >&5
19150sed 's/^/| /' conftest.$ac_ext >&5
19151
19152ac_lo=`expr '(' $ac_mid ')' + 1`
19153fi
ac1cb8d3 19154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19155done
19156case $ac_lo in
19157?*) ac_cv_sizeof_long_long=$ac_lo;;
19158'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19159See \`config.log' for more details." >&5
19160echo "$as_me: error: cannot compute sizeof (long long), 77
19161See \`config.log' for more details." >&2;}
19162 { (exit 1); exit 1; }; } ;;
19163esac
19164else
19165 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19166 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19167echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19168 { (exit 1); exit 1; }; }
19169else
19170 cat >conftest.$ac_ext <<_ACEOF
19171/* confdefs.h. */
19172_ACEOF
19173cat confdefs.h >>conftest.$ac_ext
19174cat >>conftest.$ac_ext <<_ACEOF
19175/* end confdefs.h. */
19176$ac_includes_default
19177long longval () { return (long) (sizeof (long long)); }
19178unsigned long ulongval () { return (long) (sizeof (long long)); }
19179#include <stdio.h>
19180#include <stdlib.h>
19181int
19182main ()
19183{
19184
19185 FILE *f = fopen ("conftest.val", "w");
19186 if (! f)
19187 exit (1);
19188 if (((long) (sizeof (long long))) < 0)
19189 {
19190 long i = longval ();
19191 if (i != ((long) (sizeof (long long))))
19192 exit (1);
19193 fprintf (f, "%ld\n", i);
19194 }
19195 else
19196 {
19197 unsigned long i = ulongval ();
19198 if (i != ((long) (sizeof (long long))))
19199 exit (1);
19200 fprintf (f, "%lu\n", i);
19201 }
19202 exit (ferror (f) || fclose (f) != 0);
19203
19204 ;
19205 return 0;
19206}
19207_ACEOF
19208rm -f conftest$ac_exeext
19209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19210 (eval $ac_link) 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19216 ac_status=$?
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; }; then
19219 ac_cv_sizeof_long_long=`cat conftest.val`
19220else
19221 echo "$as_me: program exited with status $ac_status" >&5
19222echo "$as_me: failed program was:" >&5
19223sed 's/^/| /' conftest.$ac_ext >&5
19224
19225( exit $ac_status )
19226{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19227See \`config.log' for more details." >&5
19228echo "$as_me: error: cannot compute sizeof (long long), 77
19229See \`config.log' for more details." >&2;}
19230 { (exit 1); exit 1; }; }
19231fi
ac1cb8d3 19232rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19233fi
19234fi
19235rm -f conftest.val
19236else
19237 ac_cv_sizeof_long_long=0
19238fi
19239fi
19240echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19241echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19242cat >>confdefs.h <<_ACEOF
19243#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19244_ACEOF
19245
19246
19247 ;;
19248 *-hp-hpux* )
19249 echo "$as_me:$LINENO: checking for long long" >&5
19250echo $ECHO_N "checking for long long... $ECHO_C" >&6
19251if test "${ac_cv_type_long_long+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19253else
19254 cat >conftest.$ac_ext <<_ACEOF
19255/* confdefs.h. */
19256_ACEOF
19257cat confdefs.h >>conftest.$ac_ext
19258cat >>conftest.$ac_ext <<_ACEOF
19259/* end confdefs.h. */
19260$ac_includes_default
19261int
19262main ()
19263{
19264if ((long long *) 0)
19265 return 0;
19266if (sizeof (long long))
19267 return 0;
19268 ;
19269 return 0;
19270}
19271_ACEOF
19272rm -f conftest.$ac_objext
19273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19274 (eval $ac_compile) 2>conftest.er1
a848cd7e 19275 ac_status=$?
ac1cb8d3
VS
19276 grep -v '^ *+' conftest.er1 >conftest.err
19277 rm -f conftest.er1
19278 cat conftest.err >&5
a848cd7e
SC
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } &&
6ebeb4c7 19281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; } &&
19287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19290 ac_status=$?
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; }; then
19293 ac_cv_type_long_long=yes
19294else
19295 echo "$as_me: failed program was:" >&5
19296sed 's/^/| /' conftest.$ac_ext >&5
19297
19298ac_cv_type_long_long=no
19299fi
ac1cb8d3 19300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19301fi
19302echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19303echo "${ECHO_T}$ac_cv_type_long_long" >&6
19304
19305echo "$as_me:$LINENO: checking size of long long" >&5
19306echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19307if test "${ac_cv_sizeof_long_long+set}" = set; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19309else
19310 if test "$ac_cv_type_long_long" = yes; then
19311 # The cast to unsigned long works around a bug in the HP C Compiler
19312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19314 # This bug is HP SR number 8606223364.
19315 if test "$cross_compiling" = yes; then
19316 # Depending upon the size, compute the lo and hi bounds.
19317cat >conftest.$ac_ext <<_ACEOF
19318/* confdefs.h. */
19319_ACEOF
19320cat confdefs.h >>conftest.$ac_ext
19321cat >>conftest.$ac_ext <<_ACEOF
19322/* end confdefs.h. */
19323$ac_includes_default
19324int
19325main ()
19326{
19327static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19328test_array [0] = 0
19329
19330 ;
19331 return 0;
19332}
19333_ACEOF
19334rm -f conftest.$ac_objext
19335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19336 (eval $ac_compile) 2>conftest.er1
a848cd7e 19337 ac_status=$?
ac1cb8d3
VS
19338 grep -v '^ *+' conftest.er1 >conftest.err
19339 rm -f conftest.er1
19340 cat conftest.err >&5
a848cd7e
SC
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } &&
6ebeb4c7 19343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; } &&
19349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
19355 ac_lo=0 ac_mid=0
19356 while :; do
19357 cat >conftest.$ac_ext <<_ACEOF
19358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
19363$ac_includes_default
19364int
19365main ()
19366{
19367static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19368test_array [0] = 0
19369
19370 ;
19371 return 0;
19372}
19373_ACEOF
19374rm -f conftest.$ac_objext
19375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19376 (eval $ac_compile) 2>conftest.er1
a848cd7e 19377 ac_status=$?
ac1cb8d3
VS
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
a848cd7e
SC
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
6ebeb4c7 19383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_hi=$ac_mid; break
19396else
19397 echo "$as_me: failed program was:" >&5
19398sed 's/^/| /' conftest.$ac_ext >&5
19399
19400ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19401 if test $ac_lo -le $ac_mid; then
19402 ac_lo= ac_hi=
19403 break
19404 fi
19405 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19406fi
ac1cb8d3 19407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19408 done
19409else
19410 echo "$as_me: failed program was:" >&5
19411sed 's/^/| /' conftest.$ac_ext >&5
19412
19413cat >conftest.$ac_ext <<_ACEOF
19414/* confdefs.h. */
19415_ACEOF
19416cat confdefs.h >>conftest.$ac_ext
19417cat >>conftest.$ac_ext <<_ACEOF
19418/* end confdefs.h. */
19419$ac_includes_default
19420int
19421main ()
19422{
19423static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19424test_array [0] = 0
19425
19426 ;
19427 return 0;
19428}
19429_ACEOF
19430rm -f conftest.$ac_objext
19431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19432 (eval $ac_compile) 2>conftest.er1
a848cd7e 19433 ac_status=$?
ac1cb8d3
VS
19434 grep -v '^ *+' conftest.er1 >conftest.err
19435 rm -f conftest.er1
19436 cat conftest.err >&5
a848cd7e
SC
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
6ebeb4c7 19439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; } &&
19445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447 (eval $ac_try) 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; }; then
19451 ac_hi=-1 ac_mid=-1
19452 while :; do
19453 cat >conftest.$ac_ext <<_ACEOF
19454/* confdefs.h. */
19455_ACEOF
19456cat confdefs.h >>conftest.$ac_ext
19457cat >>conftest.$ac_ext <<_ACEOF
19458/* end confdefs.h. */
19459$ac_includes_default
19460int
19461main ()
19462{
19463static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19464test_array [0] = 0
19465
19466 ;
19467 return 0;
19468}
19469_ACEOF
19470rm -f conftest.$ac_objext
19471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19472 (eval $ac_compile) 2>conftest.er1
a848cd7e 19473 ac_status=$?
ac1cb8d3
VS
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
a848cd7e
SC
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
6ebeb4c7 19479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } &&
19485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19488 ac_status=$?
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19491 ac_lo=$ac_mid; break
19492else
19493 echo "$as_me: failed program was:" >&5
19494sed 's/^/| /' conftest.$ac_ext >&5
19495
19496ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19497 if test $ac_mid -le $ac_hi; then
19498 ac_lo= ac_hi=
19499 break
19500 fi
19501 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19502fi
ac1cb8d3 19503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19504 done
19505else
19506 echo "$as_me: failed program was:" >&5
19507sed 's/^/| /' conftest.$ac_ext >&5
19508
19509ac_lo= ac_hi=
19510fi
ac1cb8d3 19511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19512fi
ac1cb8d3 19513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19514# Binary search between lo and hi bounds.
19515while test "x$ac_lo" != "x$ac_hi"; do
19516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19517 cat >conftest.$ac_ext <<_ACEOF
19518/* confdefs.h. */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h. */
19523$ac_includes_default
19524int
19525main ()
19526{
19527static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19528test_array [0] = 0
19529
19530 ;
19531 return 0;
19532}
19533_ACEOF
19534rm -f conftest.$ac_objext
19535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19536 (eval $ac_compile) 2>conftest.er1
a848cd7e 19537 ac_status=$?
ac1cb8d3
VS
19538 grep -v '^ *+' conftest.er1 >conftest.err
19539 rm -f conftest.er1
19540 cat conftest.err >&5
a848cd7e
SC
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } &&
6ebeb4c7 19543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; } &&
19549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; }; then
19555 ac_hi=$ac_mid
19556else
19557 echo "$as_me: failed program was:" >&5
19558sed 's/^/| /' conftest.$ac_ext >&5
19559
19560ac_lo=`expr '(' $ac_mid ')' + 1`
19561fi
ac1cb8d3 19562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19563done
19564case $ac_lo in
19565?*) ac_cv_sizeof_long_long=$ac_lo;;
19566'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19567See \`config.log' for more details." >&5
19568echo "$as_me: error: cannot compute sizeof (long long), 77
19569See \`config.log' for more details." >&2;}
19570 { (exit 1); exit 1; }; } ;;
19571esac
19572else
19573 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19574 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19575echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19576 { (exit 1); exit 1; }; }
19577else
19578 cat >conftest.$ac_ext <<_ACEOF
19579/* confdefs.h. */
19580_ACEOF
19581cat confdefs.h >>conftest.$ac_ext
19582cat >>conftest.$ac_ext <<_ACEOF
19583/* end confdefs.h. */
19584$ac_includes_default
19585long longval () { return (long) (sizeof (long long)); }
19586unsigned long ulongval () { return (long) (sizeof (long long)); }
19587#include <stdio.h>
19588#include <stdlib.h>
19589int
19590main ()
19591{
19592
19593 FILE *f = fopen ("conftest.val", "w");
19594 if (! f)
19595 exit (1);
19596 if (((long) (sizeof (long long))) < 0)
19597 {
19598 long i = longval ();
19599 if (i != ((long) (sizeof (long long))))
19600 exit (1);
19601 fprintf (f, "%ld\n", i);
19602 }
19603 else
19604 {
19605 unsigned long i = ulongval ();
19606 if (i != ((long) (sizeof (long long))))
19607 exit (1);
19608 fprintf (f, "%lu\n", i);
19609 }
19610 exit (ferror (f) || fclose (f) != 0);
19611
19612 ;
19613 return 0;
19614}
19615_ACEOF
19616rm -f conftest$ac_exeext
19617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19618 (eval $ac_link) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; }; then
19627 ac_cv_sizeof_long_long=`cat conftest.val`
19628else
19629 echo "$as_me: program exited with status $ac_status" >&5
19630echo "$as_me: failed program was:" >&5
19631sed 's/^/| /' conftest.$ac_ext >&5
19632
19633( exit $ac_status )
19634{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19635See \`config.log' for more details." >&5
19636echo "$as_me: error: cannot compute sizeof (long long), 77
19637See \`config.log' for more details." >&2;}
19638 { (exit 1); exit 1; }; }
19639fi
ac1cb8d3 19640rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19641fi
19642fi
19643rm -f conftest.val
19644else
19645 ac_cv_sizeof_long_long=0
19646fi
19647fi
19648echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19649echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19650cat >>confdefs.h <<_ACEOF
19651#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19652_ACEOF
19653
19654
19655 if test "$ac_cv_sizeof_long_long" != "0"; then
19656 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19657 fi
19658 ;;
19659 * )
19660 echo "$as_me:$LINENO: checking for long long" >&5
19661echo $ECHO_N "checking for long long... $ECHO_C" >&6
19662if test "${ac_cv_type_long_long+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19664else
19665 cat >conftest.$ac_ext <<_ACEOF
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
19671$ac_includes_default
19672int
19673main ()
19674{
19675if ((long long *) 0)
19676 return 0;
19677if (sizeof (long long))
19678 return 0;
19679 ;
19680 return 0;
19681}
19682_ACEOF
19683rm -f conftest.$ac_objext
19684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19685 (eval $ac_compile) 2>conftest.er1
a848cd7e 19686 ac_status=$?
ac1cb8d3
VS
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
a848cd7e
SC
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
6ebeb4c7 19692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; } &&
19698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19701 ac_status=$?
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; }; then
19704 ac_cv_type_long_long=yes
19705else
19706 echo "$as_me: failed program was:" >&5
19707sed 's/^/| /' conftest.$ac_ext >&5
19708
19709ac_cv_type_long_long=no
19710fi
ac1cb8d3 19711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19712fi
19713echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19714echo "${ECHO_T}$ac_cv_type_long_long" >&6
19715
19716echo "$as_me:$LINENO: checking size of long long" >&5
19717echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19718if test "${ac_cv_sizeof_long_long+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19720else
19721 if test "$ac_cv_type_long_long" = yes; then
19722 # The cast to unsigned long works around a bug in the HP C Compiler
19723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19725 # This bug is HP SR number 8606223364.
19726 if test "$cross_compiling" = yes; then
19727 # Depending upon the size, compute the lo and hi bounds.
19728cat >conftest.$ac_ext <<_ACEOF
19729/* confdefs.h. */
19730_ACEOF
19731cat confdefs.h >>conftest.$ac_ext
19732cat >>conftest.$ac_ext <<_ACEOF
19733/* end confdefs.h. */
19734$ac_includes_default
19735int
19736main ()
19737{
19738static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19739test_array [0] = 0
19740
19741 ;
19742 return 0;
19743}
19744_ACEOF
19745rm -f conftest.$ac_objext
19746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19747 (eval $ac_compile) 2>conftest.er1
a848cd7e 19748 ac_status=$?
ac1cb8d3
VS
19749 grep -v '^ *+' conftest.er1 >conftest.err
19750 rm -f conftest.er1
19751 cat conftest.err >&5
a848cd7e
SC
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } &&
6ebeb4c7 19754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; } &&
19760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762 (eval $ac_try) 2>&5
19763 ac_status=$?
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; }; then
19766 ac_lo=0 ac_mid=0
19767 while :; do
19768 cat >conftest.$ac_ext <<_ACEOF
19769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
19773/* end confdefs.h. */
19774$ac_includes_default
19775int
19776main ()
19777{
19778static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19779test_array [0] = 0
19780
19781 ;
19782 return 0;
19783}
19784_ACEOF
19785rm -f conftest.$ac_objext
19786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19787 (eval $ac_compile) 2>conftest.er1
a848cd7e 19788 ac_status=$?
ac1cb8d3
VS
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
a848cd7e
SC
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
6ebeb4c7 19794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; } &&
19800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
19806 ac_hi=$ac_mid; break
19807else
19808 echo "$as_me: failed program was:" >&5
19809sed 's/^/| /' conftest.$ac_ext >&5
19810
19811ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19812 if test $ac_lo -le $ac_mid; then
19813 ac_lo= ac_hi=
19814 break
19815 fi
19816 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19817fi
ac1cb8d3 19818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19819 done
19820else
19821 echo "$as_me: failed program was:" >&5
19822sed 's/^/| /' conftest.$ac_ext >&5
19823
19824cat >conftest.$ac_ext <<_ACEOF
19825/* confdefs.h. */
19826_ACEOF
19827cat confdefs.h >>conftest.$ac_ext
19828cat >>conftest.$ac_ext <<_ACEOF
19829/* end confdefs.h. */
19830$ac_includes_default
19831int
19832main ()
19833{
19834static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19835test_array [0] = 0
19836
19837 ;
19838 return 0;
19839}
19840_ACEOF
19841rm -f conftest.$ac_objext
19842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19843 (eval $ac_compile) 2>conftest.er1
a848cd7e 19844 ac_status=$?
ac1cb8d3
VS
19845 grep -v '^ *+' conftest.er1 >conftest.err
19846 rm -f conftest.er1
19847 cat conftest.err >&5
a848cd7e
SC
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } &&
6ebeb4c7 19850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; } &&
19856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19859 ac_status=$?
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862 ac_hi=-1 ac_mid=-1
19863 while :; do
19864 cat >conftest.$ac_ext <<_ACEOF
19865/* confdefs.h. */
19866_ACEOF
19867cat confdefs.h >>conftest.$ac_ext
19868cat >>conftest.$ac_ext <<_ACEOF
19869/* end confdefs.h. */
19870$ac_includes_default
19871int
19872main ()
19873{
19874static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19875test_array [0] = 0
19876
19877 ;
19878 return 0;
19879}
19880_ACEOF
19881rm -f conftest.$ac_objext
19882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19883 (eval $ac_compile) 2>conftest.er1
a848cd7e 19884 ac_status=$?
ac1cb8d3
VS
19885 grep -v '^ *+' conftest.er1 >conftest.err
19886 rm -f conftest.er1
19887 cat conftest.err >&5
a848cd7e
SC
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } &&
6ebeb4c7 19890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; } &&
19896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 ac_lo=$ac_mid; break
19903else
19904 echo "$as_me: failed program was:" >&5
19905sed 's/^/| /' conftest.$ac_ext >&5
19906
19907ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19908 if test $ac_mid -le $ac_hi; then
19909 ac_lo= ac_hi=
19910 break
19911 fi
19912 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19913fi
ac1cb8d3 19914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19915 done
19916else
19917 echo "$as_me: failed program was:" >&5
19918sed 's/^/| /' conftest.$ac_ext >&5
19919
19920ac_lo= ac_hi=
19921fi
ac1cb8d3 19922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19923fi
ac1cb8d3 19924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19925# Binary search between lo and hi bounds.
19926while test "x$ac_lo" != "x$ac_hi"; do
19927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19928 cat >conftest.$ac_ext <<_ACEOF
19929/* confdefs.h. */
19930_ACEOF
19931cat confdefs.h >>conftest.$ac_ext
19932cat >>conftest.$ac_ext <<_ACEOF
19933/* end confdefs.h. */
19934$ac_includes_default
19935int
19936main ()
19937{
19938static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19939test_array [0] = 0
19940
19941 ;
19942 return 0;
19943}
19944_ACEOF
19945rm -f conftest.$ac_objext
19946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19947 (eval $ac_compile) 2>conftest.er1
a848cd7e 19948 ac_status=$?
ac1cb8d3
VS
19949 grep -v '^ *+' conftest.er1 >conftest.err
19950 rm -f conftest.er1
19951 cat conftest.err >&5
a848cd7e
SC
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } &&
6ebeb4c7 19954 { ac_try='test -z "$ac_c_werror_flag" || 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_hi=$ac_mid
19967else
19968 echo "$as_me: failed program was:" >&5
19969sed 's/^/| /' conftest.$ac_ext >&5
19970
19971ac_lo=`expr '(' $ac_mid ')' + 1`
19972fi
ac1cb8d3 19973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19974done
19975case $ac_lo in
19976?*) ac_cv_sizeof_long_long=$ac_lo;;
19977'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19978See \`config.log' for more details." >&5
19979echo "$as_me: error: cannot compute sizeof (long long), 77
19980See \`config.log' for more details." >&2;}
19981 { (exit 1); exit 1; }; } ;;
19982esac
19983else
19984 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19985 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19986echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19987 { (exit 1); exit 1; }; }
19988else
19989 cat >conftest.$ac_ext <<_ACEOF
19990/* confdefs.h. */
19991_ACEOF
19992cat confdefs.h >>conftest.$ac_ext
19993cat >>conftest.$ac_ext <<_ACEOF
19994/* end confdefs.h. */
19995$ac_includes_default
19996long longval () { return (long) (sizeof (long long)); }
19997unsigned long ulongval () { return (long) (sizeof (long long)); }
19998#include <stdio.h>
19999#include <stdlib.h>
20000int
20001main ()
20002{
20003
20004 FILE *f = fopen ("conftest.val", "w");
20005 if (! f)
20006 exit (1);
20007 if (((long) (sizeof (long long))) < 0)
20008 {
20009 long i = longval ();
20010 if (i != ((long) (sizeof (long long))))
20011 exit (1);
20012 fprintf (f, "%ld\n", i);
20013 }
20014 else
20015 {
20016 unsigned long i = ulongval ();
20017 if (i != ((long) (sizeof (long long))))
20018 exit (1);
20019 fprintf (f, "%lu\n", i);
20020 }
20021 exit (ferror (f) || fclose (f) != 0);
20022
20023 ;
20024 return 0;
20025}
20026_ACEOF
20027rm -f conftest$ac_exeext
20028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20029 (eval $ac_link) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034 (eval $ac_try) 2>&5
20035 ac_status=$?
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; }; then
20038 ac_cv_sizeof_long_long=`cat conftest.val`
20039else
20040 echo "$as_me: program exited with status $ac_status" >&5
20041echo "$as_me: failed program was:" >&5
20042sed 's/^/| /' conftest.$ac_ext >&5
20043
20044( exit $ac_status )
20045{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20046See \`config.log' for more details." >&5
20047echo "$as_me: error: cannot compute sizeof (long long), 77
20048See \`config.log' for more details." >&2;}
20049 { (exit 1); exit 1; }; }
20050fi
ac1cb8d3 20051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20052fi
20053fi
20054rm -f conftest.val
20055else
20056 ac_cv_sizeof_long_long=0
20057fi
20058fi
20059echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20060echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20061cat >>confdefs.h <<_ACEOF
20062#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20063_ACEOF
20064
20065
20066esac
20067
238ecede
MW
20068echo "$as_me:$LINENO: checking for wchar_t" >&5
20069echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20070if test "${ac_cv_type_wchar_t+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20072else
20073 cat >conftest.$ac_ext <<_ACEOF
20074/* confdefs.h. */
20075_ACEOF
20076cat confdefs.h >>conftest.$ac_ext
20077cat >>conftest.$ac_ext <<_ACEOF
20078/* end confdefs.h. */
20079
83d8eb47
MW
20080 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20081 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20082 # error "fake wchar_t"
20083 #endif
20084 #ifdef HAVE_WCHAR_H
20085 # ifdef __CYGWIN__
20086 # include <stddef.h>
20087 # endif
20088 # include <wchar.h>
20089 #endif
20090 #ifdef HAVE_STDLIB_H
20091 # include <stdlib.h>
20092 #endif
20093 #include <stdio.h>
20094
20095
20096
20097int
20098main ()
20099{
20100if ((wchar_t *) 0)
20101 return 0;
20102if (sizeof (wchar_t))
20103 return 0;
20104 ;
20105 return 0;
20106}
20107_ACEOF
20108rm -f conftest.$ac_objext
20109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20110 (eval $ac_compile) 2>conftest.er1
20111 ac_status=$?
20112 grep -v '^ *+' conftest.er1 >conftest.err
20113 rm -f conftest.er1
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } &&
6ebeb4c7 20117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; } &&
20123 { ac_try='test -s conftest.$ac_objext'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; }; then
20129 ac_cv_type_wchar_t=yes
20130else
20131 echo "$as_me: failed program was:" >&5
20132sed 's/^/| /' conftest.$ac_ext >&5
20133
20134ac_cv_type_wchar_t=no
20135fi
20136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20137fi
20138echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20139echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20140
a848cd7e
SC
20141echo "$as_me:$LINENO: checking size of wchar_t" >&5
20142echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20143if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20145else
238ecede
MW
20146 if test "$ac_cv_type_wchar_t" = yes; then
20147 # The cast to unsigned long works around a bug in the HP C Compiler
20148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20150 # This bug is HP SR number 8606223364.
20151 if test "$cross_compiling" = yes; then
20152 # Depending upon the size, compute the lo and hi bounds.
20153cat >conftest.$ac_ext <<_ACEOF
20154/* confdefs.h. */
20155_ACEOF
20156cat confdefs.h >>conftest.$ac_ext
20157cat >>conftest.$ac_ext <<_ACEOF
20158/* end confdefs.h. */
20159
83d8eb47
MW
20160 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20161 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20162 # error "fake wchar_t"
20163 #endif
20164 #ifdef HAVE_WCHAR_H
20165 # ifdef __CYGWIN__
20166 # include <stddef.h>
20167 # endif
20168 # include <wchar.h>
20169 #endif
20170 #ifdef HAVE_STDLIB_H
20171 # include <stdlib.h>
20172 #endif
20173 #include <stdio.h>
20174
20175
20176
20177int
20178main ()
20179{
20180static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20181test_array [0] = 0
20182
20183 ;
20184 return 0;
20185}
20186_ACEOF
20187rm -f conftest.$ac_objext
20188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20189 (eval $ac_compile) 2>conftest.er1
20190 ac_status=$?
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
6ebeb4c7 20196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 ac_lo=0 ac_mid=0
20209 while :; do
20210 cat >conftest.$ac_ext <<_ACEOF
20211/* confdefs.h. */
20212_ACEOF
20213cat confdefs.h >>conftest.$ac_ext
20214cat >>conftest.$ac_ext <<_ACEOF
20215/* end confdefs.h. */
20216
83d8eb47
MW
20217 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20218 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20219 # error "fake wchar_t"
20220 #endif
20221 #ifdef HAVE_WCHAR_H
20222 # ifdef __CYGWIN__
20223 # include <stddef.h>
20224 # endif
20225 # include <wchar.h>
20226 #endif
20227 #ifdef HAVE_STDLIB_H
20228 # include <stdlib.h>
20229 #endif
20230 #include <stdio.h>
20231
20232
20233
20234int
20235main ()
20236{
20237static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20238test_array [0] = 0
20239
20240 ;
20241 return 0;
20242}
20243_ACEOF
20244rm -f conftest.$ac_objext
20245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20246 (eval $ac_compile) 2>conftest.er1
20247 ac_status=$?
20248 grep -v '^ *+' conftest.er1 >conftest.err
20249 rm -f conftest.er1
20250 cat conftest.err >&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } &&
6ebeb4c7 20253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; } &&
20259 { ac_try='test -s conftest.$ac_objext'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_hi=$ac_mid; break
20266else
20267 echo "$as_me: failed program was:" >&5
20268sed 's/^/| /' conftest.$ac_ext >&5
20269
20270ac_lo=`expr $ac_mid + 1`
20271 if test $ac_lo -le $ac_mid; then
20272 ac_lo= ac_hi=
20273 break
20274 fi
20275 ac_mid=`expr 2 '*' $ac_mid + 1`
20276fi
20277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20278 done
20279else
20280 echo "$as_me: failed program was:" >&5
20281sed 's/^/| /' conftest.$ac_ext >&5
20282
20283cat >conftest.$ac_ext <<_ACEOF
20284/* confdefs.h. */
20285_ACEOF
20286cat confdefs.h >>conftest.$ac_ext
20287cat >>conftest.$ac_ext <<_ACEOF
20288/* end confdefs.h. */
20289
83d8eb47
MW
20290 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20291 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20292 # error "fake wchar_t"
20293 #endif
20294 #ifdef HAVE_WCHAR_H
20295 # ifdef __CYGWIN__
20296 # include <stddef.h>
20297 # endif
20298 # include <wchar.h>
20299 #endif
20300 #ifdef HAVE_STDLIB_H
20301 # include <stdlib.h>
20302 #endif
20303 #include <stdio.h>
20304
20305
20306
20307int
20308main ()
20309{
20310static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20311test_array [0] = 0
20312
20313 ;
20314 return 0;
20315}
20316_ACEOF
20317rm -f conftest.$ac_objext
20318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319 (eval $ac_compile) 2>conftest.er1
20320 ac_status=$?
20321 grep -v '^ *+' conftest.er1 >conftest.err
20322 rm -f conftest.er1
20323 cat conftest.err >&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } &&
6ebeb4c7 20326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328 (eval $ac_try) 2>&5
20329 ac_status=$?
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); }; } &&
20332 { ac_try='test -s conftest.$ac_objext'
20333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334 (eval $ac_try) 2>&5
20335 ac_status=$?
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; }; then
20338 ac_hi=-1 ac_mid=-1
20339 while :; do
20340 cat >conftest.$ac_ext <<_ACEOF
20341/* confdefs.h. */
20342_ACEOF
20343cat confdefs.h >>conftest.$ac_ext
20344cat >>conftest.$ac_ext <<_ACEOF
20345/* end confdefs.h. */
20346
83d8eb47
MW
20347 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20348 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20349 # error "fake wchar_t"
20350 #endif
20351 #ifdef HAVE_WCHAR_H
20352 # ifdef __CYGWIN__
20353 # include <stddef.h>
20354 # endif
20355 # include <wchar.h>
20356 #endif
20357 #ifdef HAVE_STDLIB_H
20358 # include <stdlib.h>
20359 #endif
20360 #include <stdio.h>
20361
20362
20363
20364int
20365main ()
20366{
20367static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20368test_array [0] = 0
20369
20370 ;
20371 return 0;
20372}
20373_ACEOF
20374rm -f conftest.$ac_objext
20375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20376 (eval $ac_compile) 2>conftest.er1
20377 ac_status=$?
20378 grep -v '^ *+' conftest.er1 >conftest.err
20379 rm -f conftest.er1
20380 cat conftest.err >&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } &&
6ebeb4c7 20383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20386 ac_status=$?
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; } &&
20389 { ac_try='test -s conftest.$ac_objext'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 ac_lo=$ac_mid; break
20396else
20397 echo "$as_me: failed program was:" >&5
20398sed 's/^/| /' conftest.$ac_ext >&5
20399
20400ac_hi=`expr '(' $ac_mid ')' - 1`
20401 if test $ac_mid -le $ac_hi; then
20402 ac_lo= ac_hi=
20403 break
20404 fi
20405 ac_mid=`expr 2 '*' $ac_mid`
20406fi
20407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20408 done
20409else
20410 echo "$as_me: failed program was:" >&5
20411sed 's/^/| /' conftest.$ac_ext >&5
20412
20413ac_lo= ac_hi=
20414fi
20415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20416fi
20417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20418# Binary search between lo and hi bounds.
20419while test "x$ac_lo" != "x$ac_hi"; do
20420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20421 cat >conftest.$ac_ext <<_ACEOF
20422/* confdefs.h. */
20423_ACEOF
20424cat confdefs.h >>conftest.$ac_ext
20425cat >>conftest.$ac_ext <<_ACEOF
20426/* end confdefs.h. */
20427
83d8eb47
MW
20428 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20429 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20430 # error "fake wchar_t"
20431 #endif
20432 #ifdef HAVE_WCHAR_H
20433 # ifdef __CYGWIN__
20434 # include <stddef.h>
20435 # endif
20436 # include <wchar.h>
20437 #endif
20438 #ifdef HAVE_STDLIB_H
20439 # include <stdlib.h>
20440 #endif
20441 #include <stdio.h>
a848cd7e 20442
a848cd7e 20443
a848cd7e 20444
238ecede
MW
20445int
20446main ()
20447{
20448static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20449test_array [0] = 0
a848cd7e 20450
238ecede
MW
20451 ;
20452 return 0;
20453}
20454_ACEOF
20455rm -f conftest.$ac_objext
20456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457 (eval $ac_compile) 2>conftest.er1
20458 ac_status=$?
20459 grep -v '^ *+' conftest.er1 >conftest.err
20460 rm -f conftest.er1
20461 cat conftest.err >&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } &&
6ebeb4c7 20464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; } &&
20470 { ac_try='test -s conftest.$ac_objext'
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; }; then
20476 ac_hi=$ac_mid
20477else
20478 echo "$as_me: failed program was:" >&5
20479sed 's/^/| /' conftest.$ac_ext >&5
20480
20481ac_lo=`expr '(' $ac_mid ')' + 1`
20482fi
20483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20484done
20485case $ac_lo in
20486?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20487'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20488See \`config.log' for more details." >&5
20489echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20490See \`config.log' for more details." >&2;}
20491 { (exit 1); exit 1; }; } ;;
20492esac
20493else
20494 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
20495 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20496echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 20497 { (exit 1); exit 1; }; }
a848cd7e
SC
20498else
20499 cat >conftest.$ac_ext <<_ACEOF
20500/* confdefs.h. */
20501_ACEOF
20502cat confdefs.h >>conftest.$ac_ext
20503cat >>conftest.$ac_ext <<_ACEOF
20504/* end confdefs.h. */
20505
83d8eb47
MW
20506 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20507 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20508 # error "fake wchar_t"
20509 #endif
20510 #ifdef HAVE_WCHAR_H
20511 # ifdef __CYGWIN__
20512 # include <stddef.h>
20513 # endif
20514 # include <wchar.h>
20515 #endif
20516 #ifdef HAVE_STDLIB_H
20517 # include <stdlib.h>
20518 #endif
20519 #include <stdio.h>
20520
20521
20522
20523long longval () { return (long) (sizeof (wchar_t)); }
20524unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20525#include <stdio.h>
20526#include <stdlib.h>
20527int
20528main ()
20529{
a848cd7e 20530
238ecede
MW
20531 FILE *f = fopen ("conftest.val", "w");
20532 if (! f)
20533 exit (1);
20534 if (((long) (sizeof (wchar_t))) < 0)
20535 {
20536 long i = longval ();
20537 if (i != ((long) (sizeof (wchar_t))))
20538 exit (1);
20539 fprintf (f, "%ld\n", i);
20540 }
20541 else
20542 {
20543 unsigned long i = ulongval ();
20544 if (i != ((long) (sizeof (wchar_t))))
20545 exit (1);
20546 fprintf (f, "%lu\n", i);
20547 }
20548 exit (ferror (f) || fclose (f) != 0);
20549
20550 ;
20551 return 0;
20552}
a848cd7e
SC
20553_ACEOF
20554rm -f conftest$ac_exeext
20555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20556 (eval $ac_link) 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561 (eval $ac_try) 2>&5
20562 ac_status=$?
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); }; }; then
238ecede 20565 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20566else
20567 echo "$as_me: program exited with status $ac_status" >&5
20568echo "$as_me: failed program was:" >&5
20569sed 's/^/| /' conftest.$ac_ext >&5
20570
20571( exit $ac_status )
238ecede
MW
20572{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20573See \`config.log' for more details." >&5
20574echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20575See \`config.log' for more details." >&2;}
20576 { (exit 1); exit 1; }; }
a848cd7e 20577fi
ac1cb8d3 20578rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20579fi
a848cd7e 20580fi
238ecede
MW
20581rm -f conftest.val
20582else
20583 ac_cv_sizeof_wchar_t=0
20584fi
20585fi
20586echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20587echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20588cat >>confdefs.h <<_ACEOF
238ecede 20589#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20590_ACEOF
20591
20592
47a7e797
MW
20593if test "$ac_cv_sizeof_wchar_t" != "0"; then
20594 wxUSE_WCHAR_T=yes
20595else
20596 wxUSE_WCHAR_T=no
20597fi
238ecede 20598
ba3d13e1
VZ
20599echo "$as_me:$LINENO: checking for va_copy" >&5
20600echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20601if test "${wx_cv_func_va_copy+set}" = set; then
20602 echo $ECHO_N "(cached) $ECHO_C" >&6
20603else
20604
20605 cat >conftest.$ac_ext <<_ACEOF
20606
20607 #include <stdarg.h>
20608 void foo(char *f, ...)
20609 {
20610 va_list ap1, ap2;
20611 va_start(ap1, f);
20612 va_copy(ap2, ap1);
20613 va_end(ap2);
20614 va_end(ap1);
20615 }
5886b072
VZ
20616 int main()
20617 {
b902e639
VZ
20618 foo("hi", 17);
20619 return 0;
5886b072 20620 }
ba3d13e1
VZ
20621_ACEOF
20622rm -f conftest.$ac_objext conftest$ac_exeext
20623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20624 (eval $ac_link) 2>conftest.er1
20625 ac_status=$?
20626 grep -v '^ *+' conftest.er1 >conftest.err
20627 rm -f conftest.er1
20628 cat conftest.err >&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } &&
6ebeb4c7 20631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; } &&
20637 { ac_try='test -s conftest$ac_exeext'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 wx_cv_func_va_copy=yes
20644else
20645 echo "$as_me: failed program was:" >&5
20646sed 's/^/| /' conftest.$ac_ext >&5
20647
20648wx_cv_func_va_copy=no
20649
20650fi
20651rm -f conftest.err conftest.$ac_objext \
20652 conftest$ac_exeext conftest.$ac_ext
20653
20654
20655fi
20656echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20657echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20658
20659if test $wx_cv_func_va_copy = "yes"; then
20660 cat >>confdefs.h <<\_ACEOF
20661#define HAVE_VA_COPY 1
20662_ACEOF
20663
20664else
20665 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20666echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20667if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20669else
20670
20671 if test "$cross_compiling" = yes; then
20672 wx_cv_type_va_list_lvalue=yes
20673
20674else
20675 cat >conftest.$ac_ext <<_ACEOF
20676
20677 #include <stdarg.h>
20678 int foo(char *f, ...)
20679 {
20680 va_list ap1, ap2;
20681 va_start(ap1, f);
20682 ap2 = ap1;
20683 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20684 return 1;
20685 va_end(ap2);
20686 va_end(ap1);
20687 return 0;
20688 }
20689 int main()
20690 {
20691 return foo("hi", 17);
20692 }
20693_ACEOF
20694rm -f conftest$ac_exeext
20695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20696 (eval $ac_link) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; }; then
20705 wx_cv_type_va_list_lvalue=yes
20706else
20707 echo "$as_me: program exited with status $ac_status" >&5
20708echo "$as_me: failed program was:" >&5
20709sed 's/^/| /' conftest.$ac_ext >&5
20710
20711( exit $ac_status )
20712wx_cv_type_va_list_lvalue=no
20713fi
20714rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20715fi
20716
20717
20718fi
20719echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20720echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20721
20722 if test $wx_cv_type_va_list_lvalue != "yes"; then
20723 cat >>confdefs.h <<\_ACEOF
20724#define VA_LIST_IS_ARRAY 1
20725_ACEOF
20726
20727 fi
20728fi
20729
a848cd7e
SC
20730# Check whether --enable-largefile or --disable-largefile was given.
20731if test "${enable_largefile+set}" = set; then
20732 enableval="$enable_largefile"
20733
20734fi;
20735if test "$enable_largefile" != no; then
20736 wx_largefile=no
20737
20738 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20739echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20740if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20742else
20743
20744 cat >conftest.$ac_ext <<_ACEOF
20745/* confdefs.h. */
20746_ACEOF
20747cat confdefs.h >>conftest.$ac_ext
20748cat >>conftest.$ac_ext <<_ACEOF
20749/* end confdefs.h. */
20750#define _FILE_OFFSET_BITS 64
20751 #include <sys/types.h>
20752int
20753main ()
20754{
20755typedef struct {
20756 unsigned int field: sizeof(off_t) == 8;
20757} wxlf;
20758
20759 ;
20760 return 0;
20761}
20762_ACEOF
20763rm -f conftest.$ac_objext
20764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20765 (eval $ac_compile) 2>conftest.er1
a848cd7e 20766 ac_status=$?
ac1cb8d3
VS
20767 grep -v '^ *+' conftest.er1 >conftest.err
20768 rm -f conftest.er1
20769 cat conftest.err >&5
a848cd7e
SC
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } &&
6ebeb4c7 20772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20775 ac_status=$?
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; } &&
20778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 ac_cv_sys_file_offset_bits=64
20785else
20786 echo "$as_me: failed program was:" >&5
20787sed 's/^/| /' conftest.$ac_ext >&5
20788
20789ac_cv_sys_file_offset_bits=no
20790fi
ac1cb8d3 20791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20792
20793
20794fi
20795echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20796echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20797
20798 if test "$ac_cv_sys_file_offset_bits" != no; then
20799 wx_largefile=yes
20800 cat >>confdefs.h <<_ACEOF
20801#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20802_ACEOF
20803
20804 fi
20805
20806 if test "x$wx_largefile" != "xyes"; then
20807
20808 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20809echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20810if test "${ac_cv_sys_large_files+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20812else
20813
20814 cat >conftest.$ac_ext <<_ACEOF
20815/* confdefs.h. */
20816_ACEOF
20817cat confdefs.h >>conftest.$ac_ext
20818cat >>conftest.$ac_ext <<_ACEOF
20819/* end confdefs.h. */
20820#define _LARGE_FILES 1
20821 #include <sys/types.h>
20822int
20823main ()
20824{
20825typedef struct {
20826 unsigned int field: sizeof(off_t) == 8;
20827} wxlf;
20828
20829 ;
20830 return 0;
20831}
20832_ACEOF
20833rm -f conftest.$ac_objext
20834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20835 (eval $ac_compile) 2>conftest.er1
a848cd7e 20836 ac_status=$?
ac1cb8d3
VS
20837 grep -v '^ *+' conftest.er1 >conftest.err
20838 rm -f conftest.er1
20839 cat conftest.err >&5
a848cd7e
SC
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } &&
6ebeb4c7 20842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20845 ac_status=$?
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; } &&
20848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850 (eval $ac_try) 2>&5
20851 ac_status=$?
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; }; then
20854 ac_cv_sys_large_files=1
20855else
20856 echo "$as_me: failed program was:" >&5
20857sed 's/^/| /' conftest.$ac_ext >&5
20858
20859ac_cv_sys_large_files=no
20860fi
ac1cb8d3 20861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20862
20863
20864fi
20865echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20866echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20867
20868 if test "$ac_cv_sys_large_files" != no; then
20869 wx_largefile=yes
20870 cat >>confdefs.h <<_ACEOF
20871#define _LARGE_FILES $ac_cv_sys_large_files
20872_ACEOF
20873
20874 fi
20875
20876 fi
20877
20878 echo "$as_me:$LINENO: checking if large file support is available" >&5
20879echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20880 if test "x$wx_largefile" = "xyes"; then
20881 cat >>confdefs.h <<\_ACEOF
20882#define HAVE_LARGEFILE_SUPPORT 1
20883_ACEOF
20884
20885 fi
20886 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20887echo "${ECHO_T}$wx_largefile" >&6
20888fi
20889
5b674b9d
DE
20890
20891if test "x$wx_largefile" = "xyes"; then
20892 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20893 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
20894
20895 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
20896 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
20897echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
20898if test "${wx_cv_STDC_EXT_required+set}" = set; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
20900else
20901
20902
20903
20904 ac_ext=cc
20905ac_cpp='$CXXCPP $CPPFLAGS'
20906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20909
20910 cat >conftest.$ac_ext <<_ACEOF
20911/* confdefs.h. */
20912_ACEOF
20913cat confdefs.h >>conftest.$ac_ext
20914cat >>conftest.$ac_ext <<_ACEOF
20915/* end confdefs.h. */
20916
20917int
20918main ()
20919{
20920
20921 #ifndef __STDC_EXT__
20922 choke me
20923 #endif
20924
20925 ;
20926 return 0;
20927}
20928_ACEOF
20929rm -f conftest.$ac_objext
20930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20931 (eval $ac_compile) 2>conftest.er1
20932 ac_status=$?
20933 grep -v '^ *+' conftest.er1 >conftest.err
20934 rm -f conftest.er1
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; } &&
20944 { ac_try='test -s conftest.$ac_objext'
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 wx_cv_STDC_EXT_required=no
20951else
20952 echo "$as_me: failed program was:" >&5
20953sed 's/^/| /' conftest.$ac_ext >&5
20954
20955wx_cv_STDC_EXT_required=yes
20956
20957fi
20958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20959 ac_ext=c
20960ac_cpp='$CPP $CPPFLAGS'
20961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20963ac_compiler_gnu=$ac_cv_c_compiler_gnu
20964
20965
20966
20967fi
20968echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
20969echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
20970 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
20971 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
20972 fi
20973 fi
5b674b9d
DE
20974 else
20975 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20976 fi
20977 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20978echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20979if test "${ac_cv_sys_largefile_source+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981else
20982 while :; do
20983 ac_cv_sys_largefile_source=no
20984 cat >conftest.$ac_ext <<_ACEOF
20985/* confdefs.h. */
20986_ACEOF
20987cat confdefs.h >>conftest.$ac_ext
20988cat >>conftest.$ac_ext <<_ACEOF
20989/* end confdefs.h. */
20990#include <stdio.h>
20991int
20992main ()
20993{
20994return !fseeko;
20995 ;
20996 return 0;
20997}
20998_ACEOF
20999rm -f conftest.$ac_objext
21000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21001 (eval $ac_compile) 2>conftest.er1
21002 ac_status=$?
21003 grep -v '^ *+' conftest.er1 >conftest.err
21004 rm -f conftest.er1
21005 cat conftest.err >&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
6ebeb4c7 21008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; } &&
21014 { ac_try='test -s conftest.$ac_objext'
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21017 ac_status=$?
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; }; then
21020 break
21021else
21022 echo "$as_me: failed program was:" >&5
21023sed 's/^/| /' conftest.$ac_ext >&5
21024
21025fi
21026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21027 cat >conftest.$ac_ext <<_ACEOF
21028/* confdefs.h. */
21029_ACEOF
21030cat confdefs.h >>conftest.$ac_ext
21031cat >>conftest.$ac_ext <<_ACEOF
21032/* end confdefs.h. */
21033#define _LARGEFILE_SOURCE 1
21034#include <stdio.h>
21035int
21036main ()
21037{
21038return !fseeko;
21039 ;
21040 return 0;
21041}
21042_ACEOF
21043rm -f conftest.$ac_objext
21044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21045 (eval $ac_compile) 2>conftest.er1
21046 ac_status=$?
21047 grep -v '^ *+' conftest.er1 >conftest.err
21048 rm -f conftest.er1
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } &&
6ebeb4c7 21052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21055 ac_status=$?
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; } &&
21058 { ac_try='test -s conftest.$ac_objext'
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; }; then
21064 ac_cv_sys_largefile_source=1; break
21065else
21066 echo "$as_me: failed program was:" >&5
21067sed 's/^/| /' conftest.$ac_ext >&5
21068
21069fi
21070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21071 break
21072done
21073fi
21074echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21075echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21076if test "$ac_cv_sys_largefile_source" != no; then
21077
21078cat >>confdefs.h <<_ACEOF
21079#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21080_ACEOF
21081
21082fi
21083rm -f conftest*
21084
21085# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21086# in glibc 2.1.3, but that breaks too many other things.
21087# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21088echo "$as_me:$LINENO: checking for fseeko" >&5
21089echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21090if test "${ac_cv_func_fseeko+set}" = set; then
21091 echo $ECHO_N "(cached) $ECHO_C" >&6
21092else
21093 cat >conftest.$ac_ext <<_ACEOF
21094/* confdefs.h. */
21095_ACEOF
21096cat confdefs.h >>conftest.$ac_ext
21097cat >>conftest.$ac_ext <<_ACEOF
21098/* end confdefs.h. */
21099#include <stdio.h>
21100int
21101main ()
21102{
21103return fseeko && fseeko (stdin, 0, 0);
21104 ;
21105 return 0;
21106}
21107_ACEOF
21108rm -f conftest.$ac_objext conftest$ac_exeext
21109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21110 (eval $ac_link) 2>conftest.er1
21111 ac_status=$?
21112 grep -v '^ *+' conftest.er1 >conftest.err
21113 rm -f conftest.er1
21114 cat conftest.err >&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } &&
6ebeb4c7 21117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
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); }; } &&
21123 { ac_try='test -s conftest$ac_exeext'
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 ac_cv_func_fseeko=yes
21130else
21131 echo "$as_me: failed program was:" >&5
21132sed 's/^/| /' conftest.$ac_ext >&5
21133
21134ac_cv_func_fseeko=no
21135fi
21136rm -f conftest.err conftest.$ac_objext \
21137 conftest$ac_exeext conftest.$ac_ext
21138fi
21139echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21140echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21141if test $ac_cv_func_fseeko = yes; then
21142
21143cat >>confdefs.h <<\_ACEOF
21144#define HAVE_FSEEKO 1
21145_ACEOF
21146
21147fi
21148
5b674b9d
DE
21149 if test "$ac_cv_sys_largefile_source" != no; then
21150 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
21151 fi
21152 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
21153fi
21154
21155echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21156echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21157if test "${ac_cv_c_bigendian+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21159else
21160 ac_cv_c_bigendian=unknown
21161# See if sys/param.h defines the BYTE_ORDER macro.
21162cat >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 <sys/types.h>
21169#include <sys/param.h>
21170int
21171main ()
21172{
21173
21174#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21175 bogus endian macros
21176#endif
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); } &&
6ebeb4c7 21190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; } &&
21196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21199 ac_status=$?
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 # It does; now see whether it defined to BIG_ENDIAN or not.
21203cat >conftest.$ac_ext <<_ACEOF
21204/* confdefs.h. */
21205_ACEOF
21206cat confdefs.h >>conftest.$ac_ext
21207cat >>conftest.$ac_ext <<_ACEOF
21208/* end confdefs.h. */
21209#include <sys/types.h>
21210#include <sys/param.h>
21211int
21212main ()
21213{
21214
21215#if BYTE_ORDER != BIG_ENDIAN
21216 not big endian
21217#endif
21218 ;
21219 return 0;
21220}
21221_ACEOF
21222rm -f conftest.$ac_objext
21223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21224 (eval $ac_compile) 2>conftest.er1
a848cd7e 21225 ac_status=$?
ac1cb8d3
VS
21226 grep -v '^ *+' conftest.er1 >conftest.err
21227 rm -f conftest.er1
21228 cat conftest.err >&5
a848cd7e
SC
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } &&
6ebeb4c7 21231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21234 ac_status=$?
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; } &&
21237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21243 ac_cv_c_bigendian=yes
21244else
21245 echo "$as_me: failed program was:" >&5
21246sed 's/^/| /' conftest.$ac_ext >&5
21247
21248ac_cv_c_bigendian=no
21249fi
ac1cb8d3 21250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21251else
21252 echo "$as_me: failed program was:" >&5
21253sed 's/^/| /' conftest.$ac_ext >&5
21254
21255fi
ac1cb8d3 21256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21257if test $ac_cv_c_bigendian = unknown; then
21258if test "$cross_compiling" = yes; then
21259 ac_cv_c_bigendian=unknown
21260else
21261 cat >conftest.$ac_ext <<_ACEOF
21262/* confdefs.h. */
21263_ACEOF
21264cat confdefs.h >>conftest.$ac_ext
21265cat >>conftest.$ac_ext <<_ACEOF
21266/* end confdefs.h. */
21267main () {
21268 /* Are we little or big endian? From Harbison&Steele. */
21269 union
21270 {
21271 long l;
21272 char c[sizeof (long)];
21273 } u;
21274 u.l = 1;
21275 exit (u.c[sizeof (long) - 1] == 1);
21276}
21277_ACEOF
21278rm -f conftest$ac_exeext
21279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21280 (eval $ac_link) 2>&5
21281 ac_status=$?
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_cv_c_bigendian=no
21290else
21291 echo "$as_me: program exited with status $ac_status" >&5
21292echo "$as_me: failed program was:" >&5
21293sed 's/^/| /' conftest.$ac_ext >&5
21294
21295( exit $ac_status )
21296ac_cv_c_bigendian=yes
21297fi
ac1cb8d3 21298rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21299fi
21300fi
21301fi
21302echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21303echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21304if test $ac_cv_c_bigendian = unknown; then
21305 { 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
21306echo "$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;}
21307fi
21308if test $ac_cv_c_bigendian = yes; then
21309 cat >>confdefs.h <<\_ACEOF
21310#define WORDS_BIGENDIAN 1
21311_ACEOF
21312
21313fi
21314
21315
21316ac_ext=cc
21317ac_cpp='$CXXCPP $CPPFLAGS'
21318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21321echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21322echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21323if test -z "$CXXCPP"; then
21324 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21326else
21327 # Double quotes because CXXCPP needs to be expanded
21328 for CXXCPP in "$CXX -E" "/lib/cpp"
21329 do
21330 ac_preproc_ok=false
21331for ac_cxx_preproc_warn_flag in '' yes
21332do
21333 # Use a header file that comes with gcc, so configuring glibc
21334 # with a fresh cross-compiler works.
21335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21336 # <limits.h> exists even on freestanding compilers.
21337 # On the NeXT, cc -E runs the code through the compiler's parser,
21338 # not just through cpp. "Syntax error" is here to catch this case.
21339 cat >conftest.$ac_ext <<_ACEOF
21340/* confdefs.h. */
21341_ACEOF
21342cat confdefs.h >>conftest.$ac_ext
21343cat >>conftest.$ac_ext <<_ACEOF
21344/* end confdefs.h. */
21345#ifdef __STDC__
21346# include <limits.h>
21347#else
21348# include <assert.h>
21349#endif
ac1cb8d3 21350 Syntax error
a848cd7e
SC
21351_ACEOF
21352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21354 ac_status=$?
21355 grep -v '^ *+' conftest.er1 >conftest.err
21356 rm -f conftest.er1
21357 cat conftest.err >&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } >/dev/null; then
21360 if test -s conftest.err; then
21361 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21362 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21363 else
21364 ac_cpp_err=
21365 fi
21366else
21367 ac_cpp_err=yes
21368fi
21369if test -z "$ac_cpp_err"; then
21370 :
21371else
21372 echo "$as_me: failed program was:" >&5
21373sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 # Broken: fails on valid input.
21376continue
21377fi
21378rm -f conftest.err conftest.$ac_ext
21379
21380 # OK, works on sane cases. Now check whether non-existent headers
21381 # can be detected and how.
21382 cat >conftest.$ac_ext <<_ACEOF
21383/* confdefs.h. */
21384_ACEOF
21385cat confdefs.h >>conftest.$ac_ext
21386cat >>conftest.$ac_ext <<_ACEOF
21387/* end confdefs.h. */
21388#include <ac_nonexistent.h>
21389_ACEOF
21390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21392 ac_status=$?
21393 grep -v '^ *+' conftest.er1 >conftest.err
21394 rm -f conftest.er1
21395 cat conftest.err >&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } >/dev/null; then
21398 if test -s conftest.err; then
21399 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21400 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21401 else
21402 ac_cpp_err=
21403 fi
21404else
21405 ac_cpp_err=yes
21406fi
21407if test -z "$ac_cpp_err"; then
21408 # Broken: success on invalid input.
21409continue
21410else
21411 echo "$as_me: failed program was:" >&5
21412sed 's/^/| /' conftest.$ac_ext >&5
21413
21414 # Passes both tests.
21415ac_preproc_ok=:
21416break
21417fi
21418rm -f conftest.err conftest.$ac_ext
21419
21420done
21421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21422rm -f conftest.err conftest.$ac_ext
21423if $ac_preproc_ok; then
21424 break
21425fi
21426
21427 done
21428 ac_cv_prog_CXXCPP=$CXXCPP
21429
21430fi
21431 CXXCPP=$ac_cv_prog_CXXCPP
21432else
21433 ac_cv_prog_CXXCPP=$CXXCPP
21434fi
21435echo "$as_me:$LINENO: result: $CXXCPP" >&5
21436echo "${ECHO_T}$CXXCPP" >&6
21437ac_preproc_ok=false
21438for ac_cxx_preproc_warn_flag in '' yes
21439do
21440 # Use a header file that comes with gcc, so configuring glibc
21441 # with a fresh cross-compiler works.
21442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21443 # <limits.h> exists even on freestanding compilers.
21444 # On the NeXT, cc -E runs the code through the compiler's parser,
21445 # not just through cpp. "Syntax error" is here to catch this case.
21446 cat >conftest.$ac_ext <<_ACEOF
21447/* confdefs.h. */
21448_ACEOF
21449cat confdefs.h >>conftest.$ac_ext
21450cat >>conftest.$ac_ext <<_ACEOF
21451/* end confdefs.h. */
21452#ifdef __STDC__
21453# include <limits.h>
21454#else
21455# include <assert.h>
21456#endif
ac1cb8d3 21457 Syntax error
a848cd7e
SC
21458_ACEOF
21459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21461 ac_status=$?
21462 grep -v '^ *+' conftest.er1 >conftest.err
21463 rm -f conftest.er1
21464 cat conftest.err >&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } >/dev/null; then
21467 if test -s conftest.err; then
21468 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21469 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21470 else
21471 ac_cpp_err=
21472 fi
21473else
21474 ac_cpp_err=yes
21475fi
21476if test -z "$ac_cpp_err"; then
21477 :
21478else
21479 echo "$as_me: failed program was:" >&5
21480sed 's/^/| /' conftest.$ac_ext >&5
21481
21482 # Broken: fails on valid input.
21483continue
21484fi
21485rm -f conftest.err conftest.$ac_ext
21486
21487 # OK, works on sane cases. Now check whether non-existent headers
21488 # can be detected and how.
21489 cat >conftest.$ac_ext <<_ACEOF
21490/* confdefs.h. */
21491_ACEOF
21492cat confdefs.h >>conftest.$ac_ext
21493cat >>conftest.$ac_ext <<_ACEOF
21494/* end confdefs.h. */
21495#include <ac_nonexistent.h>
21496_ACEOF
21497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21499 ac_status=$?
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } >/dev/null; then
21505 if test -s conftest.err; then
21506 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21507 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21508 else
21509 ac_cpp_err=
21510 fi
21511else
21512 ac_cpp_err=yes
21513fi
21514if test -z "$ac_cpp_err"; then
21515 # Broken: success on invalid input.
21516continue
21517else
21518 echo "$as_me: failed program was:" >&5
21519sed 's/^/| /' conftest.$ac_ext >&5
21520
21521 # Passes both tests.
21522ac_preproc_ok=:
21523break
21524fi
21525rm -f conftest.err conftest.$ac_ext
21526
21527done
21528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21529rm -f conftest.err conftest.$ac_ext
21530if $ac_preproc_ok; then
21531 :
21532else
21533 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21534See \`config.log' for more details." >&5
21535echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21536See \`config.log' for more details." >&2;}
21537 { (exit 1); exit 1; }; }
21538fi
21539
21540ac_ext=cc
21541ac_cpp='$CXXCPP $CPPFLAGS'
21542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21545
21546
21547
21548
21549
21550 ac_ext=cc
21551ac_cpp='$CXXCPP $CPPFLAGS'
21552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21555
21556
21557
21558for ac_header in iostream
21559do
21560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21561if eval "test \"\${$as_ac_Header+set}\" = set"; then
21562 echo "$as_me:$LINENO: checking for $ac_header" >&5
21563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21564if eval "test \"\${$as_ac_Header+set}\" = set"; then
21565 echo $ECHO_N "(cached) $ECHO_C" >&6
21566fi
21567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21569else
21570 # Is the header compilable?
21571echo "$as_me:$LINENO: checking $ac_header usability" >&5
21572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21573cat >conftest.$ac_ext <<_ACEOF
21574/* confdefs.h. */
21575_ACEOF
21576cat confdefs.h >>conftest.$ac_ext
21577cat >>conftest.$ac_ext <<_ACEOF
21578/* end confdefs.h. */
21579$ac_includes_default
21580#include <$ac_header>
21581_ACEOF
21582rm -f conftest.$ac_objext
21583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21584 (eval $ac_compile) 2>conftest.er1
a848cd7e 21585 ac_status=$?
ac1cb8d3
VS
21586 grep -v '^ *+' conftest.er1 >conftest.err
21587 rm -f conftest.er1
21588 cat conftest.err >&5
a848cd7e
SC
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } &&
6ebeb4c7 21591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593 (eval $ac_try) 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); }; } &&
21597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
21603 ac_header_compiler=yes
21604else
21605 echo "$as_me: failed program was:" >&5
21606sed 's/^/| /' conftest.$ac_ext >&5
21607
21608ac_header_compiler=no
21609fi
ac1cb8d3 21610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21611echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21612echo "${ECHO_T}$ac_header_compiler" >&6
21613
21614# Is the header present?
21615echo "$as_me:$LINENO: checking $ac_header presence" >&5
21616echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21617cat >conftest.$ac_ext <<_ACEOF
21618/* confdefs.h. */
21619_ACEOF
21620cat confdefs.h >>conftest.$ac_ext
21621cat >>conftest.$ac_ext <<_ACEOF
21622/* end confdefs.h. */
21623#include <$ac_header>
21624_ACEOF
21625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21627 ac_status=$?
21628 grep -v '^ *+' conftest.er1 >conftest.err
21629 rm -f conftest.er1
21630 cat conftest.err >&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } >/dev/null; then
21633 if test -s conftest.err; then
21634 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21635 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21636 else
21637 ac_cpp_err=
21638 fi
21639else
21640 ac_cpp_err=yes
21641fi
21642if test -z "$ac_cpp_err"; then
21643 ac_header_preproc=yes
21644else
21645 echo "$as_me: failed program was:" >&5
21646sed 's/^/| /' conftest.$ac_ext >&5
21647
21648 ac_header_preproc=no
21649fi
21650rm -f conftest.err conftest.$ac_ext
21651echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21652echo "${ECHO_T}$ac_header_preproc" >&6
21653
21654# So? What about this header?
ac1cb8d3
VS
21655case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21656 yes:no: )
a848cd7e
SC
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21658echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21660echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21661 ac_header_preproc=yes
a848cd7e 21662 ;;
ac1cb8d3 21663 no:yes:* )
a848cd7e
SC
21664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21665echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21667echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21669echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21671echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21675echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21676 (
21677 cat <<\_ASBOX
ac1cb8d3
VS
21678## ----------------------------------------- ##
21679## Report this to wx-dev@lists.wxwidgets.org ##
21680## ----------------------------------------- ##
a848cd7e
SC
21681_ASBOX
21682 ) |
21683 sed "s/^/$as_me: WARNING: /" >&2
21684 ;;
21685esac
21686echo "$as_me:$LINENO: checking for $ac_header" >&5
21687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21688if eval "test \"\${$as_ac_Header+set}\" = set"; then
21689 echo $ECHO_N "(cached) $ECHO_C" >&6
21690else
ac1cb8d3 21691 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21692fi
21693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21695
21696fi
21697if test `eval echo '${'$as_ac_Header'}'` = yes; then
21698 cat >>confdefs.h <<_ACEOF
21699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21700_ACEOF
21701
21702fi
21703
21704done
21705
21706
21707 if test "$ac_cv_header_iostream" = "yes" ; then
21708 :
21709 else
21710 cat >>confdefs.h <<\_ACEOF
21711#define wxUSE_IOSTREAMH 1
21712_ACEOF
21713
21714 fi
21715
21716 ac_ext=c
21717ac_cpp='$CPP $CPPFLAGS'
21718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21720ac_compiler_gnu=$ac_cv_c_compiler_gnu
21721
21722
21723
21724
21725 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21726echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21727if test "${wx_cv_cpp_bool+set}" = set; then
21728 echo $ECHO_N "(cached) $ECHO_C" >&6
21729else
21730
21731
21732
21733 ac_ext=cc
21734ac_cpp='$CXXCPP $CPPFLAGS'
21735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21738
21739
21740 cat >conftest.$ac_ext <<_ACEOF
21741/* confdefs.h. */
21742_ACEOF
21743cat confdefs.h >>conftest.$ac_ext
21744cat >>conftest.$ac_ext <<_ACEOF
21745/* end confdefs.h. */
21746
21747
21748int
21749main ()
21750{
21751
21752 bool b = true;
21753
21754 return 0;
21755
21756 ;
21757 return 0;
21758}
21759_ACEOF
21760rm -f conftest.$ac_objext
21761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21762 (eval $ac_compile) 2>conftest.er1
a848cd7e 21763 ac_status=$?
ac1cb8d3
VS
21764 grep -v '^ *+' conftest.er1 >conftest.err
21765 rm -f conftest.er1
21766 cat conftest.err >&5
a848cd7e
SC
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } &&
6ebeb4c7 21769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771 (eval $ac_try) 2>&5
21772 ac_status=$?
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); }; } &&
21775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777 (eval $ac_try) 2>&5
21778 ac_status=$?
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; }; then
21781
21782 wx_cv_cpp_bool=yes
21783
21784else
21785 echo "$as_me: failed program was:" >&5
21786sed 's/^/| /' conftest.$ac_ext >&5
21787
21788
21789 wx_cv_cpp_bool=no
21790
21791
21792fi
ac1cb8d3 21793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21794
21795 ac_ext=c
21796ac_cpp='$CPP $CPPFLAGS'
21797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21799ac_compiler_gnu=$ac_cv_c_compiler_gnu
21800
21801
21802fi
21803echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
21804echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21805
21806 if test "$wx_cv_cpp_bool" = "yes"; then
21807 cat >>confdefs.h <<\_ACEOF
21808#define HAVE_BOOL 1
21809_ACEOF
21810
21811 fi
21812
21813
21814
21815 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
21816echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
21817if test "${wx_cv_explicit+set}" = set; then
21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21819else
21820
21821
21822
21823 ac_ext=cc
21824ac_cpp='$CXXCPP $CPPFLAGS'
21825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21828
21829
21830 cat >conftest.$ac_ext <<_ACEOF
21831/* confdefs.h. */
21832_ACEOF
21833cat confdefs.h >>conftest.$ac_ext
21834cat >>conftest.$ac_ext <<_ACEOF
21835/* end confdefs.h. */
21836
21837 class Foo { public: explicit Foo(int) {} };
21838
21839int
21840main ()
21841{
21842
21843 return 0;
21844
21845 ;
21846 return 0;
21847}
21848_ACEOF
21849rm -f conftest.$ac_objext
21850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21851 (eval $ac_compile) 2>conftest.er1
a848cd7e 21852 ac_status=$?
ac1cb8d3
VS
21853 grep -v '^ *+' conftest.er1 >conftest.err
21854 rm -f conftest.er1
21855 cat conftest.err >&5
a848cd7e
SC
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } &&
6ebeb4c7 21858 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21860 (eval $ac_try) 2>&5
21861 ac_status=$?
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); }; } &&
21864 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866 (eval $ac_try) 2>&5
21867 ac_status=$?
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; }; then
21870
21871 cat >conftest.$ac_ext <<_ACEOF
21872/* confdefs.h. */
21873_ACEOF
21874cat confdefs.h >>conftest.$ac_ext
21875cat >>conftest.$ac_ext <<_ACEOF
21876/* end confdefs.h. */
21877
21878 class Foo { public: explicit Foo(int) {} };
21879 static void TakeFoo(const Foo& foo) { }
21880
21881int
21882main ()
21883{
21884
21885 TakeFoo(17);
21886 return 0;
21887
21888 ;
21889 return 0;
21890}
21891_ACEOF
21892rm -f conftest.$ac_objext
21893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21894 (eval $ac_compile) 2>conftest.er1
a848cd7e 21895 ac_status=$?
ac1cb8d3
VS
21896 grep -v '^ *+' conftest.er1 >conftest.err
21897 rm -f conftest.er1
21898 cat conftest.err >&5
a848cd7e
SC
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } &&
6ebeb4c7 21901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21904 ac_status=$?
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; } &&
21907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 wx_cv_explicit=no
21914else
21915 echo "$as_me: failed program was:" >&5
21916sed 's/^/| /' conftest.$ac_ext >&5
21917
21918wx_cv_explicit=yes
21919
21920fi
ac1cb8d3 21921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21922
21923else
21924 echo "$as_me: failed program was:" >&5
21925sed 's/^/| /' conftest.$ac_ext >&5
21926
21927wx_cv_explicit=no
21928
21929fi
ac1cb8d3 21930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21931
21932 ac_ext=c
21933ac_cpp='$CPP $CPPFLAGS'
21934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21936ac_compiler_gnu=$ac_cv_c_compiler_gnu
21937
21938
21939fi
21940echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21941echo "${ECHO_T}$wx_cv_explicit" >&6
21942
21943 if test "$wx_cv_explicit" = "yes"; then
21944 cat >>confdefs.h <<\_ACEOF
21945#define HAVE_EXPLICIT 1
21946_ACEOF
21947
21948 fi
21949
21950
21951echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21952echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21953if test "${ac_cv_cxx_const_cast+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21955else
21956
21957
21958 ac_ext=cc
21959ac_cpp='$CXXCPP $CPPFLAGS'
21960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21963
21964 cat >conftest.$ac_ext <<_ACEOF
21965/* confdefs.h. */
21966_ACEOF
21967cat confdefs.h >>conftest.$ac_ext
21968cat >>conftest.$ac_ext <<_ACEOF
21969/* end confdefs.h. */
21970
21971int
21972main ()
21973{
21974int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21975 ;
21976 return 0;
21977}
21978_ACEOF
21979rm -f conftest.$ac_objext
21980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21981 (eval $ac_compile) 2>conftest.er1
a848cd7e 21982 ac_status=$?
ac1cb8d3
VS
21983 grep -v '^ *+' conftest.er1 >conftest.err
21984 rm -f conftest.er1
21985 cat conftest.err >&5
a848cd7e
SC
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } &&
6ebeb4c7 21988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21990 (eval $ac_try) 2>&5
21991 ac_status=$?
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); }; } &&
21994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996 (eval $ac_try) 2>&5
21997 ac_status=$?
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; }; then
22000 ac_cv_cxx_const_cast=yes
22001else
22002 echo "$as_me: failed program was:" >&5
22003sed 's/^/| /' conftest.$ac_ext >&5
22004
22005ac_cv_cxx_const_cast=no
22006fi
ac1cb8d3 22007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22008 ac_ext=c
22009ac_cpp='$CPP $CPPFLAGS'
22010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22012ac_compiler_gnu=$ac_cv_c_compiler_gnu
22013
22014
22015fi
22016echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22017echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22018if test "$ac_cv_cxx_const_cast" = yes; then
22019
22020cat >>confdefs.h <<\_ACEOF
22021#define HAVE_CONST_CAST
22022_ACEOF
22023
22024fi
22025
7714864e
RL
22026echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22027echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22028if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22030else
22031
22032
22033 ac_ext=cc
22034ac_cpp='$CXXCPP $CPPFLAGS'
22035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22038
22039 cat >conftest.$ac_ext <<_ACEOF
22040/* confdefs.h. */
22041_ACEOF
22042cat confdefs.h >>conftest.$ac_ext
22043cat >>conftest.$ac_ext <<_ACEOF
22044/* end confdefs.h. */
22045#include <typeinfo>
22046class Base { public : Base () {} virtual void f () = 0;};
22047class Derived : public Base { public : Derived () {} virtual void f () {} };
22048class Unrelated { public : Unrelated () {} };
22049int g (Unrelated&) { return 0; }
22050int
22051main ()
22052{
22053
22054Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22055 ;
22056 return 0;
22057}
22058_ACEOF
22059rm -f conftest.$ac_objext
22060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22061 (eval $ac_compile) 2>conftest.er1
22062 ac_status=$?
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } &&
6ebeb4c7 22068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22071 ac_status=$?
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; } &&
22074 { ac_try='test -s conftest.$ac_objext'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080 ac_cv_cxx_reinterpret_cast=yes
22081else
22082 echo "$as_me: failed program was:" >&5
22083sed 's/^/| /' conftest.$ac_ext >&5
22084
22085ac_cv_cxx_reinterpret_cast=no
22086fi
22087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22088 ac_ext=c
22089ac_cpp='$CPP $CPPFLAGS'
22090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22092ac_compiler_gnu=$ac_cv_c_compiler_gnu
22093
22094
22095fi
22096echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22097echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22098if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22099
22100cat >>confdefs.h <<\_ACEOF
22101#define HAVE_REINTERPRET_CAST
22102_ACEOF
22103
22104fi
22105
a848cd7e
SC
22106echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22107echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22108if test "${ac_cv_cxx_static_cast+set}" = set; then
22109 echo $ECHO_N "(cached) $ECHO_C" >&6
22110else
22111
22112
22113 ac_ext=cc
22114ac_cpp='$CXXCPP $CPPFLAGS'
22115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22118
22119 cat >conftest.$ac_ext <<_ACEOF
22120/* confdefs.h. */
22121_ACEOF
22122cat confdefs.h >>conftest.$ac_ext
22123cat >>conftest.$ac_ext <<_ACEOF
22124/* end confdefs.h. */
22125#include <typeinfo>
22126class Base { public : Base () {} virtual void f () = 0; };
22127class Derived : public Base { public : Derived () {} virtual void f () {} };
22128int g (Derived&) { return 0; }
22129int
22130main ()
22131{
22132
22133Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22134 ;
22135 return 0;
22136}
22137_ACEOF
22138rm -f conftest.$ac_objext
22139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22140 (eval $ac_compile) 2>conftest.er1
a848cd7e 22141 ac_status=$?
ac1cb8d3
VS
22142 grep -v '^ *+' conftest.er1 >conftest.err
22143 rm -f conftest.er1
22144 cat conftest.err >&5
a848cd7e
SC
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } &&
6ebeb4c7 22147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; } &&
22153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; }; then
22159 ac_cv_cxx_static_cast=yes
22160else
22161 echo "$as_me: failed program was:" >&5
22162sed 's/^/| /' conftest.$ac_ext >&5
22163
22164ac_cv_cxx_static_cast=no
22165fi
ac1cb8d3 22166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22167 ac_ext=c
22168ac_cpp='$CPP $CPPFLAGS'
22169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22171ac_compiler_gnu=$ac_cv_c_compiler_gnu
22172
22173
22174fi
22175echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22176echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22177if test "$ac_cv_cxx_static_cast" = yes; then
22178
22179cat >>confdefs.h <<\_ACEOF
22180#define HAVE_STATIC_CAST
22181_ACEOF
22182
22183fi
22184
22185
3c28b7cb
MW
22186if test "x$SUNCXX" = xyes; then
22187 CXXFLAGS="$CXXFLAGS -features=tmplife"
22188fi
22189
9122d155
VZ
22190if test "x$SUNCC" = xyes; then
22191 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
22192fi
22193
0ad5d837
VZ
22194if test "x$SGICC" = "xyes"; then
22195 CFLAGS="$CFLAGS -woff 3970"
22196fi
22197if test "x$SGICXX" = "xyes"; then
22198 CXXFLAGS="$CXXFLAGS -woff 3970"
22199fi
22200
f56c22b4 22201if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22202 ac_ext=cc
22203ac_cpp='$CXXCPP $CPPFLAGS'
22204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22207
22208
f56c22b4
MW
22209 if test "$wxUSE_UNICODE" = "yes"; then
22210 std_string="std::wstring"
22211 char_type="wchar_t"
22212 else
22213 std_string="std::string"
22214 char_type="char"
22215 fi
22216
22217 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22218echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22219 cat >conftest.$ac_ext <<_ACEOF
22220/* confdefs.h. */
22221_ACEOF
22222cat confdefs.h >>conftest.$ac_ext
22223cat >>conftest.$ac_ext <<_ACEOF
22224/* end confdefs.h. */
22225#include <string>
a848cd7e
SC
22226int
22227main ()
22228{
f56c22b4 22229$std_string foo;
a848cd7e
SC
22230 ;
22231 return 0;
22232}
22233_ACEOF
22234rm -f conftest.$ac_objext
22235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22236 (eval $ac_compile) 2>conftest.er1
a848cd7e 22237 ac_status=$?
ac1cb8d3
VS
22238 grep -v '^ *+' conftest.er1 >conftest.err
22239 rm -f conftest.er1
22240 cat conftest.err >&5
a848cd7e
SC
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } &&
6ebeb4c7 22243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22246 ac_status=$?
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; } &&
22249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251 (eval $ac_try) 2>&5
22252 ac_status=$?
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); }; }; then
22255 echo "$as_me:$LINENO: result: yes" >&5
22256echo "${ECHO_T}yes" >&6
0a08f02a
MB
22257 cat >>confdefs.h <<\_ACEOF
22258#define HAVE_STD_WSTRING 1
22259_ACEOF
22260
a848cd7e
SC
22261else
22262 echo "$as_me: failed program was:" >&5
22263sed 's/^/| /' conftest.$ac_ext >&5
22264
22265echo "$as_me:$LINENO: result: no" >&5
22266echo "${ECHO_T}no" >&6
f56c22b4
MW
22267 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22268echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22269 cat >conftest.$ac_ext <<_ACEOF
22270/* confdefs.h. */
22271_ACEOF
22272cat confdefs.h >>conftest.$ac_ext
22273cat >>conftest.$ac_ext <<_ACEOF
22274/* end confdefs.h. */
22275
22276 #ifdef HAVE_WCHAR_H
22277 # ifdef __CYGWIN__
22278 # include <stddef.h>
22279 # endif
22280 # include <wchar.h>
22281 #endif
22282 #ifdef HAVE_STDLIB_H
22283 # include <stdlib.h>
22284 #endif
22285 #include <stdio.h>
22286 #include <string>
22287
22288int
22289main ()
22290{
f56c22b4
MW
22291std::basic_string<$char_type> foo;
22292 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22293 ;
22294 return 0;
22295}
22296_ACEOF
22297rm -f conftest.$ac_objext
22298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22299 (eval $ac_compile) 2>conftest.er1
22300 ac_status=$?
22301 grep -v '^ *+' conftest.er1 >conftest.err
22302 rm -f conftest.er1
22303 cat conftest.err >&5
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); } &&
6ebeb4c7 22306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest.$ac_objext'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22318 echo "$as_me:$LINENO: result: yes" >&5
22319echo "${ECHO_T}yes" >&6
22320else
22321 echo "$as_me: failed program was:" >&5
22322sed 's/^/| /' conftest.$ac_ext >&5
22323
22324echo "$as_me:$LINENO: result: no" >&5
22325echo "${ECHO_T}no" >&6
f56c22b4 22326 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22327 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22328echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22329 { (exit 1); exit 1; }; }
22330 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22331 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22332echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22333 { (exit 1); exit 1; }; }
f56c22b4
MW
22334 else
22335 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22336echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22337 wxUSE_STD_STRING=no
22338 fi
22339
0a08f02a 22340
a848cd7e 22341fi
ac1cb8d3 22342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22343
0a08f02a
MB
22344fi
22345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22346
22347 ac_ext=c
22348ac_cpp='$CPP $CPPFLAGS'
22349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22351ac_compiler_gnu=$ac_cv_c_compiler_gnu
22352
22353fi
22354
22355if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22356 ac_ext=cc
22357ac_cpp='$CXXCPP $CPPFLAGS'
22358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22361
22362
22363 echo "$as_me:$LINENO: checking for std::istream" >&5
22364echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22365if test "${ac_cv_type_std__istream+set}" = set; then
22366 echo $ECHO_N "(cached) $ECHO_C" >&6
22367else
22368 cat >conftest.$ac_ext <<_ACEOF
22369/* confdefs.h. */
22370_ACEOF
22371cat confdefs.h >>conftest.$ac_ext
22372cat >>conftest.$ac_ext <<_ACEOF
22373/* end confdefs.h. */
22374#include <iostream>
22375
22376int
22377main ()
22378{
22379if ((std::istream *) 0)
22380 return 0;
22381if (sizeof (std::istream))
22382 return 0;
22383 ;
22384 return 0;
22385}
22386_ACEOF
22387rm -f conftest.$ac_objext
22388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22389 (eval $ac_compile) 2>conftest.er1
22390 ac_status=$?
22391 grep -v '^ *+' conftest.er1 >conftest.err
22392 rm -f conftest.er1
22393 cat conftest.err >&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } &&
6ebeb4c7 22396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22399 ac_status=$?
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; } &&
22402 { ac_try='test -s conftest.$ac_objext'
22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22405 ac_status=$?
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; }; then
22408 ac_cv_type_std__istream=yes
22409else
22410 echo "$as_me: failed program was:" >&5
22411sed 's/^/| /' conftest.$ac_ext >&5
22412
22413ac_cv_type_std__istream=no
22414fi
22415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22416fi
22417echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22418echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22419if test $ac_cv_type_std__istream = yes; then
22420
22421cat >>confdefs.h <<_ACEOF
22422#define HAVE_STD__ISTREAM 1
22423_ACEOF
22424
22425
22426else
22427 wxUSE_STD_IOSTREAM=no
22428fi
22429echo "$as_me:$LINENO: checking for std::ostream" >&5
22430echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22431if test "${ac_cv_type_std__ostream+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22433else
22434 cat >conftest.$ac_ext <<_ACEOF
22435/* confdefs.h. */
22436_ACEOF
22437cat confdefs.h >>conftest.$ac_ext
22438cat >>conftest.$ac_ext <<_ACEOF
22439/* end confdefs.h. */
22440#include <iostream>
22441
22442int
22443main ()
22444{
22445if ((std::ostream *) 0)
22446 return 0;
22447if (sizeof (std::ostream))
22448 return 0;
22449 ;
22450 return 0;
22451}
22452_ACEOF
22453rm -f conftest.$ac_objext
22454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22455 (eval $ac_compile) 2>conftest.er1
22456 ac_status=$?
22457 grep -v '^ *+' conftest.er1 >conftest.err
22458 rm -f conftest.er1
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } &&
6ebeb4c7 22462 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; } &&
22468 { ac_try='test -s conftest.$ac_objext'
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; }; then
22474 ac_cv_type_std__ostream=yes
22475else
22476 echo "$as_me: failed program was:" >&5
22477sed 's/^/| /' conftest.$ac_ext >&5
22478
22479ac_cv_type_std__ostream=no
22480fi
22481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22482fi
22483echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22484echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22485if test $ac_cv_type_std__ostream = yes; then
22486
22487cat >>confdefs.h <<_ACEOF
22488#define HAVE_STD__OSTREAM 1
22489_ACEOF
22490
22491
22492else
22493 wxUSE_STD_IOSTREAM=no
22494fi
22495
22496
22497 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22498 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22499 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22500echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22501 { (exit 1); exit 1; }; }
22502 else
22503 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22504echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22505 fi
f56c22b4
MW
22506 fi
22507
22508 ac_ext=c
22509ac_cpp='$CPP $CPPFLAGS'
22510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22512ac_compiler_gnu=$ac_cv_c_compiler_gnu
22513
22514fi
22515
22516if test "$wxUSE_STL" = "yes"; then
22517 ac_ext=cc
22518ac_cpp='$CXXCPP $CPPFLAGS'
22519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22522
22523
22524 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22525echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22526 cat >conftest.$ac_ext <<_ACEOF
22527/* confdefs.h. */
22528_ACEOF
22529cat confdefs.h >>conftest.$ac_ext
22530cat >>conftest.$ac_ext <<_ACEOF
22531/* end confdefs.h. */
22532#include <string>
0a08f02a
MB
22533 #include <functional>
22534 #include <algorithm>
22535 #include <vector>
22536 #include <list>
a848cd7e
SC
22537int
22538main ()
22539{
0a08f02a
MB
22540std::vector<int> moo;
22541 std::list<int> foo;
22542 std::vector<int>::iterator it =
22543 std::find_if(moo.begin(), moo.end(),
22544 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
22545 ;
22546 return 0;
22547}
22548_ACEOF
22549rm -f conftest.$ac_objext
22550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22551 (eval $ac_compile) 2>conftest.er1
a848cd7e 22552 ac_status=$?
ac1cb8d3
VS
22553 grep -v '^ *+' conftest.er1 >conftest.err
22554 rm -f conftest.er1
22555 cat conftest.err >&5
a848cd7e
SC
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } &&
6ebeb4c7 22558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; } &&
22564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; }; then
22570 echo "$as_me:$LINENO: result: yes" >&5
22571echo "${ECHO_T}yes" >&6
a848cd7e
SC
22572else
22573 echo "$as_me: failed program was:" >&5
22574sed 's/^/| /' conftest.$ac_ext >&5
22575
22576echo "$as_me:$LINENO: result: no" >&5
22577echo "${ECHO_T}no" >&6
0a08f02a
MB
22578 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22579echo "$as_me: error: Basic STL functionality missing" >&2;}
22580 { (exit 1); exit 1; }; }
a848cd7e 22581fi
ac1cb8d3 22582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22583
22584 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22585echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22586 cat >conftest.$ac_ext <<_ACEOF
22587/* confdefs.h. */
22588_ACEOF
22589cat confdefs.h >>conftest.$ac_ext
22590cat >>conftest.$ac_ext <<_ACEOF
22591/* end confdefs.h. */
22592#include <string>
22593int
22594main ()
22595{
22596std::string foo, bar;
22597 foo.compare(bar);
22598 foo.compare(1, 1, bar);
22599 foo.compare(1, 1, bar, 1, 1);
22600 foo.compare("");
22601 foo.compare(1, 1, "");
22602 foo.compare(1, 1, "", 2);
22603 ;
22604 return 0;
22605}
22606_ACEOF
22607rm -f conftest.$ac_objext
22608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22609 (eval $ac_compile) 2>conftest.er1
a848cd7e 22610 ac_status=$?
ac1cb8d3
VS
22611 grep -v '^ *+' conftest.er1 >conftest.err
22612 rm -f conftest.er1
22613 cat conftest.err >&5
a848cd7e
SC
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } &&
6ebeb4c7 22616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22619 ac_status=$?
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; } &&
22622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22624 (eval $ac_try) 2>&5
22625 ac_status=$?
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); }; }; then
22628 echo "$as_me:$LINENO: result: yes" >&5
22629echo "${ECHO_T}yes" >&6
22630 cat >>confdefs.h <<\_ACEOF
22631#define HAVE_STD_STRING_COMPARE 1
22632_ACEOF
22633
22634else
22635 echo "$as_me: failed program was:" >&5
22636sed 's/^/| /' conftest.$ac_ext >&5
22637
22638echo "$as_me:$LINENO: result: no" >&5
22639echo "${ECHO_T}no" >&6
22640fi
ac1cb8d3 22641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22642
22643 if test "${ac_cv_header_hash_map+set}" = set; then
22644 echo "$as_me:$LINENO: checking for hash_map" >&5
22645echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22646if test "${ac_cv_header_hash_map+set}" = set; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22648fi
22649echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22650echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22651else
22652 # Is the header compilable?
22653echo "$as_me:$LINENO: checking hash_map usability" >&5
22654echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22655cat >conftest.$ac_ext <<_ACEOF
22656/* confdefs.h. */
22657_ACEOF
22658cat confdefs.h >>conftest.$ac_ext
22659cat >>conftest.$ac_ext <<_ACEOF
22660/* end confdefs.h. */
22661$ac_includes_default
22662#include <hash_map>
22663_ACEOF
22664rm -f conftest.$ac_objext
22665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22666 (eval $ac_compile) 2>conftest.er1
bdcade0a 22667 ac_status=$?
ac1cb8d3
VS
22668 grep -v '^ *+' conftest.er1 >conftest.err
22669 rm -f conftest.er1
22670 cat conftest.err >&5
bdcade0a
MB
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } &&
6ebeb4c7 22673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675 (eval $ac_try) 2>&5
22676 ac_status=$?
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); }; } &&
22679 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681 (eval $ac_try) 2>&5
22682 ac_status=$?
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); }; }; then
22685 ac_header_compiler=yes
22686else
22687 echo "$as_me: failed program was:" >&5
22688sed 's/^/| /' conftest.$ac_ext >&5
22689
22690ac_header_compiler=no
22691fi
ac1cb8d3 22692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22693echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22694echo "${ECHO_T}$ac_header_compiler" >&6
22695
22696# Is the header present?
22697echo "$as_me:$LINENO: checking hash_map presence" >&5
22698echo $ECHO_N "checking hash_map presence... $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#include <hash_map>
22706_ACEOF
22707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22709 ac_status=$?
22710 grep -v '^ *+' conftest.er1 >conftest.err
22711 rm -f conftest.er1
22712 cat conftest.err >&5
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); } >/dev/null; then
22715 if test -s conftest.err; then
22716 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22717 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22718 else
22719 ac_cpp_err=
22720 fi
22721else
22722 ac_cpp_err=yes
22723fi
22724if test -z "$ac_cpp_err"; then
22725 ac_header_preproc=yes
22726else
22727 echo "$as_me: failed program was:" >&5
22728sed 's/^/| /' conftest.$ac_ext >&5
22729
22730 ac_header_preproc=no
22731fi
22732rm -f conftest.err conftest.$ac_ext
22733echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22734echo "${ECHO_T}$ac_header_preproc" >&6
22735
22736# So? What about this header?
ac1cb8d3
VS
22737case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22738 yes:no: )
bdcade0a
MB
22739 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22740echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22741 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22742echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22743 ac_header_preproc=yes
bdcade0a 22744 ;;
ac1cb8d3 22745 no:yes:* )
bdcade0a
MB
22746 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22747echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22748 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22749echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22750 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22751echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22752 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22753echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22754 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22755echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22756 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22757echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22758 (
22759 cat <<\_ASBOX
ac1cb8d3
VS
22760## ----------------------------------------- ##
22761## Report this to wx-dev@lists.wxwidgets.org ##
22762## ----------------------------------------- ##
bdcade0a
MB
22763_ASBOX
22764 ) |
22765 sed "s/^/$as_me: WARNING: /" >&2
22766 ;;
22767esac
22768echo "$as_me:$LINENO: checking for hash_map" >&5
22769echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22770if test "${ac_cv_header_hash_map+set}" = set; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
22772else
22773 ac_cv_header_hash_map=$ac_header_preproc
22774fi
22775echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22776echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22777
22778fi
22779if test $ac_cv_header_hash_map = yes; then
22780 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22781echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22782 cat >conftest.$ac_ext <<_ACEOF
22783/* confdefs.h. */
22784_ACEOF
22785cat confdefs.h >>conftest.$ac_ext
22786cat >>conftest.$ac_ext <<_ACEOF
22787/* end confdefs.h. */
22788#include <hash_map>
22789 #include <hash_set>
22790int
22791main ()
22792{
22793std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
22794 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
22795 ;
22796 return 0;
22797}
22798_ACEOF
22799rm -f conftest.$ac_objext
22800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22801 (eval $ac_compile) 2>conftest.er1
bdcade0a 22802 ac_status=$?
ac1cb8d3
VS
22803 grep -v '^ *+' conftest.er1 >conftest.err
22804 rm -f conftest.er1
22805 cat conftest.err >&5
bdcade0a
MB
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); } &&
6ebeb4c7 22808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22811 ac_status=$?
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; } &&
22814 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; }; then
22820 echo "$as_me:$LINENO: result: yes" >&5
22821echo "${ECHO_T}yes" >&6
22822 cat >>confdefs.h <<\_ACEOF
22823#define HAVE_HASH_MAP 1
22824_ACEOF
22825
22826 cat >>confdefs.h <<\_ACEOF
22827#define HAVE_STD_HASH_MAP 1
22828_ACEOF
22829
22830else
22831 echo "$as_me: failed program was:" >&5
22832sed 's/^/| /' conftest.$ac_ext >&5
22833
22834echo "$as_me:$LINENO: result: no" >&5
22835echo "${ECHO_T}no" >&6
22836fi
ac1cb8d3 22837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22838
22839fi
22840
22841
22842
22843 if test "${ac_cv_header_ext_hash_map+set}" = set; then
22844 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22845echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22846if test "${ac_cv_header_ext_hash_map+set}" = set; then
22847 echo $ECHO_N "(cached) $ECHO_C" >&6
22848fi
22849echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22850echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22851else
22852 # Is the header compilable?
22853echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
22854echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
22855cat >conftest.$ac_ext <<_ACEOF
22856/* confdefs.h. */
22857_ACEOF
22858cat confdefs.h >>conftest.$ac_ext
22859cat >>conftest.$ac_ext <<_ACEOF
22860/* end confdefs.h. */
22861$ac_includes_default
22862#include <ext/hash_map>
22863_ACEOF
22864rm -f conftest.$ac_objext
22865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22866 (eval $ac_compile) 2>conftest.er1
bdcade0a 22867 ac_status=$?
ac1cb8d3
VS
22868 grep -v '^ *+' conftest.er1 >conftest.err
22869 rm -f conftest.er1
22870 cat conftest.err >&5
bdcade0a
MB
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); } &&
6ebeb4c7 22873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
22879 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881 (eval $ac_try) 2>&5
22882 ac_status=$?
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; }; then
22885 ac_header_compiler=yes
22886else
22887 echo "$as_me: failed program was:" >&5
22888sed 's/^/| /' conftest.$ac_ext >&5
22889
22890ac_header_compiler=no
22891fi
ac1cb8d3 22892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22894echo "${ECHO_T}$ac_header_compiler" >&6
22895
22896# Is the header present?
22897echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22898echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22899cat >conftest.$ac_ext <<_ACEOF
22900/* confdefs.h. */
22901_ACEOF
22902cat confdefs.h >>conftest.$ac_ext
22903cat >>conftest.$ac_ext <<_ACEOF
22904/* end confdefs.h. */
22905#include <ext/hash_map>
22906_ACEOF
22907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22909 ac_status=$?
22910 grep -v '^ *+' conftest.er1 >conftest.err
22911 rm -f conftest.er1
22912 cat conftest.err >&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); } >/dev/null; then
22915 if test -s conftest.err; then
22916 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22917 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22918 else
22919 ac_cpp_err=
22920 fi
22921else
22922 ac_cpp_err=yes
22923fi
22924if test -z "$ac_cpp_err"; then
22925 ac_header_preproc=yes
22926else
22927 echo "$as_me: failed program was:" >&5
22928sed 's/^/| /' conftest.$ac_ext >&5
22929
22930 ac_header_preproc=no
22931fi
22932rm -f conftest.err conftest.$ac_ext
22933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22934echo "${ECHO_T}$ac_header_preproc" >&6
22935
22936# So? What about this header?
ac1cb8d3
VS
22937case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22938 yes:no: )
bdcade0a
MB
22939 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22940echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22941 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22942echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22943 ac_header_preproc=yes
bdcade0a 22944 ;;
ac1cb8d3 22945 no:yes:* )
bdcade0a
MB
22946 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22947echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22948 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22949echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22950 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22951echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22952 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22953echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22954 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22955echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22956 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22957echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22958 (
22959 cat <<\_ASBOX
ac1cb8d3
VS
22960## ----------------------------------------- ##
22961## Report this to wx-dev@lists.wxwidgets.org ##
22962## ----------------------------------------- ##
bdcade0a
MB
22963_ASBOX
22964 ) |
22965 sed "s/^/$as_me: WARNING: /" >&2
22966 ;;
22967esac
22968echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22969echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22970if test "${ac_cv_header_ext_hash_map+set}" = set; then
22971 echo $ECHO_N "(cached) $ECHO_C" >&6
22972else
22973 ac_cv_header_ext_hash_map=$ac_header_preproc
22974fi
22975echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22976echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22977
22978fi
22979if test $ac_cv_header_ext_hash_map = yes; then
22980 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22981echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22982 cat >conftest.$ac_ext <<_ACEOF
22983/* confdefs.h. */
22984_ACEOF
22985cat confdefs.h >>conftest.$ac_ext
22986cat >>conftest.$ac_ext <<_ACEOF
22987/* end confdefs.h. */
22988#include <ext/hash_map>
22989 #include <ext/hash_set>
22990int
22991main ()
22992{
22993__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22994 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22995 ;
22996 return 0;
22997}
22998_ACEOF
22999rm -f conftest.$ac_objext
23000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23001 (eval $ac_compile) 2>conftest.er1
bdcade0a 23002 ac_status=$?
ac1cb8d3
VS
23003 grep -v '^ *+' conftest.er1 >conftest.err
23004 rm -f conftest.er1
23005 cat conftest.err >&5
bdcade0a
MB
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } &&
6ebeb4c7 23008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010 (eval $ac_try) 2>&5
23011 ac_status=$?
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); }; } &&
23014 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23017 ac_status=$?
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; }; then
23020 echo "$as_me:$LINENO: result: yes" >&5
23021echo "${ECHO_T}yes" >&6
23022 cat >>confdefs.h <<\_ACEOF
23023#define HAVE_EXT_HASH_MAP 1
23024_ACEOF
23025
23026 cat >>confdefs.h <<\_ACEOF
23027#define HAVE_GNU_CXX_HASH_MAP 1
23028_ACEOF
23029
23030else
23031 echo "$as_me: failed program was:" >&5
23032sed 's/^/| /' conftest.$ac_ext >&5
23033
23034echo "$as_me:$LINENO: result: no" >&5
23035echo "${ECHO_T}no" >&6
23036fi
ac1cb8d3 23037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23038
23039fi
23040
23041
a848cd7e
SC
23042
23043 ac_ext=c
23044ac_cpp='$CPP $CPPFLAGS'
23045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23047ac_compiler_gnu=$ac_cv_c_compiler_gnu
23048
23049fi
23050
23051
23052SEARCH_INCLUDE="\
23053 /usr/local/include \
23054 \
23055 /usr/Motif-2.1/include \
23056 /usr/Motif-1.2/include \
23057 /usr/include/Motif1.2 \
a848cd7e
SC
23058 \
23059 /usr/dt/include \
23060 /usr/openwin/include \
23061 \
23062 /usr/include/Xm \
23063 \
23064 /usr/X11R6/include \
23065 /usr/X11R6.4/include \
23066 /usr/X11R5/include \
23067 /usr/X11R4/include \
23068 \
23069 /usr/include/X11R6 \
23070 /usr/include/X11R5 \
23071 /usr/include/X11R4 \
23072 \
23073 /usr/local/X11R6/include \
23074 /usr/local/X11R5/include \
23075 /usr/local/X11R4/include \
23076 \
23077 /usr/local/include/X11R6 \
23078 /usr/local/include/X11R5 \
23079 /usr/local/include/X11R4 \
23080 \
23081 /usr/X11/include \
23082 /usr/include/X11 \
23083 /usr/local/X11/include \
23084 /usr/local/include/X11 \
23085 \
a848cd7e 23086 /usr/XFree86/include/X11 \
e051b34e
MW
23087 /usr/pkg/include \
23088 \
a848cd7e
SC
23089 /usr/openwin/share/include"
23090
6f9cf1e6 23091echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23092echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23093
23094case "${host}" in
23095 *-*-irix6* )
23096 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23097 echo $ECHO_N "(cached) $ECHO_C" >&6
23098else
23099
c687b303
VZ
23100 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23101 for e in a so sl dylib dll.a; do
23102 libc="$d/libc.$e"
23103 if test -f $libc; then
23104 save_LIBS="$LIBS"
23105 LIBS="$libc"
23106 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23107int main() { return 0; }
23108_ACEOF
23109rm -f conftest.$ac_objext conftest$ac_exeext
23110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23111 (eval $ac_link) 2>conftest.er1
23112 ac_status=$?
23113 grep -v '^ *+' conftest.er1 >conftest.err
23114 rm -f conftest.er1
23115 cat conftest.err >&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); } &&
23118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23121 ac_status=$?
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; } &&
23124 { ac_try='test -s conftest$ac_exeext'
23125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126 (eval $ac_try) 2>&5
23127 ac_status=$?
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); }; }; then
23130 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23131else
23132 echo "$as_me: failed program was:" >&5
23133sed 's/^/| /' conftest.$ac_ext >&5
23134
23135fi
23136rm -f conftest.err conftest.$ac_objext \
23137 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23138 LIBS="$save_LIBS"
23139 if test "x$wx_cv_std_libpath" != "x"; then
23140 break 2
23141 fi
23142 fi
23143 done
23144 done
23145 if test "x$wx_cv_std_libpath" = "x"; then
23146 wx_cv_std_libpath="lib"
0ad5d837 23147 fi
0ad5d837
VZ
23148
23149
23150fi
6f9cf1e6
MW
23151
23152 ;;
23153
23154 *-*-solaris2* )
23155 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23156 wx_cv_std_libpath="lib/64"
23157 else
23158 wx_cv_std_libpath="lib"
23159 fi
23160 ;;
23161
23162 *-*-linux* )
23163 if test "$ac_cv_sizeof_void_p" = 8 -a \
23164 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23165 wx_cv_std_libpath="lib64"
23166 else
23167 wx_cv_std_libpath="lib"
23168 fi
c687b303
VZ
23169 ;;
23170
23171 *)
23172 wx_cv_std_libpath="lib";
23173 ;;
23174esac
0ad5d837 23175
6f9cf1e6
MW
23176echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23177echo "${ECHO_T}$wx_cv_std_libpath" >&6
23178
23179SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23180
3eca31dc
MW
23181if test "$build" != "$host" -a "$GCC" = yes; then
23182 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23183 cross_root=`dirname $cross_root`
23184 cross_root=`dirname $cross_root`
23185
23186 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23187 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23188
23189 if test -z "$PKG_CONFIG_PATH"; then
23190 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23191 export PKG_CONFIG_PATH
23192 fi
23193
23194 if test -z "$x_includes" -o "$x_includes" = NONE; then
23195
23196ac_find_includes=
23197for ac_dir in $SEARCH_INCLUDE /usr/include;
23198 do
23199 if test -f "$ac_dir/X11/Intrinsic.h"; then
23200 ac_find_includes=$ac_dir
23201 break
23202 fi
23203 done
23204
23205 x_includes=$ac_find_includes
23206 fi
23207 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23208
0ad5d837
VZ
23209 ac_find_libraries=
23210 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23211 do
23212 for ac_extension in a so sl dylib dll.a; do
23213 if test -f "$ac_dir/libXt.$ac_extension"; then
23214 ac_find_libraries=$ac_dir
23215 break 2
23216 fi
23217 done
23218 done
23219
23220 x_libraries=$ac_find_libraries
23221 fi
23222 fi
23223fi
23224
a848cd7e
SC
23225
23226cat >confcache <<\_ACEOF
23227# This file is a shell script that caches the results of configure
23228# tests run on this system so they can be shared between configure
23229# scripts and configure runs, see configure's option --config-cache.
23230# It is not useful on other systems. If it contains results you don't
23231# want to keep, you may remove or edit it.
23232#
23233# config.status only pays attention to the cache file if you give it
23234# the --recheck option to rerun configure.
23235#
23236# `ac_cv_env_foo' variables (set or unset) will be overridden when
23237# loading this file, other *unset* `ac_cv_foo' will be assigned the
23238# following values.
23239
23240_ACEOF
23241
23242# The following way of writing the cache mishandles newlines in values,
23243# but we know of no workaround that is simple, portable, and efficient.
23244# So, don't put newlines in cache variables' values.
23245# Ultrix sh set writes to stderr and can't be redirected directly,
23246# and sets the high bit in the cache file unless we assign to the vars.
23247{
23248 (set) 2>&1 |
23249 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23250 *ac_space=\ *)
23251 # `set' does not quote correctly, so add quotes (double-quote
23252 # substitution turns \\\\ into \\, and sed turns \\ into \).
23253 sed -n \
ac1cb8d3
VS
23254 "s/'/'\\\\''/g;
23255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23256 ;;
23257 *)
23258 # `set' quotes correctly as required by POSIX, so do not add quotes.
23259 sed -n \
ac1cb8d3 23260 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23261 ;;
23262 esac;
23263} |
23264 sed '
23265 t clear
23266 : clear
23267 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23268 t end
23269 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23270 : end' >>confcache
23271if diff $cache_file confcache >/dev/null 2>&1; then :; else
23272 if test -w $cache_file; then
23273 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23274 cat confcache >$cache_file
23275 else
23276 echo "not updating unwritable cache $cache_file"
23277 fi
23278fi
23279rm -f confcache
23280
23281if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23282 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23283echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23284if test "${wx_cv_lib_glibc21+set}" = set; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23286else
23287
23288 cat >conftest.$ac_ext <<_ACEOF
23289/* confdefs.h. */
23290_ACEOF
23291cat confdefs.h >>conftest.$ac_ext
23292cat >>conftest.$ac_ext <<_ACEOF
23293/* end confdefs.h. */
23294#include <features.h>
23295int
23296main ()
23297{
23298
23299 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23300 not glibc 2.1
a848cd7e
SC
23301 #endif
23302
23303 ;
23304 return 0;
23305}
23306_ACEOF
23307rm -f conftest.$ac_objext
23308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23309 (eval $ac_compile) 2>conftest.er1
a848cd7e 23310 ac_status=$?
ac1cb8d3
VS
23311 grep -v '^ *+' conftest.er1 >conftest.err
23312 rm -f conftest.er1
23313 cat conftest.err >&5
a848cd7e
SC
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); } &&
6ebeb4c7 23316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318 (eval $ac_try) 2>&5
23319 ac_status=$?
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); }; } &&
23322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23325 ac_status=$?
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; }; then
23328
23329 wx_cv_lib_glibc21=yes
23330
23331else
23332 echo "$as_me: failed program was:" >&5
23333sed 's/^/| /' conftest.$ac_ext >&5
23334
23335
23336 wx_cv_lib_glibc21=no
23337
23338
23339fi
ac1cb8d3 23340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23341
23342fi
23343echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23344echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23345 if test "$wx_cv_lib_glibc21" = "yes"; then
23346 cat >>confdefs.h <<\_ACEOF
23347#define wxHAVE_GLIBC2 1
23348_ACEOF
23349
23350 fi
23351fi
23352
23353if test "x$wx_cv_lib_glibc21" = "xyes"; then
23354 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23355 cat >>confdefs.h <<\_ACEOF
23356#define _GNU_SOURCE 1
23357_ACEOF
23358
23359 fi
23360fi
23361
23362
23363
23364if test "$wxUSE_REGEX" != "no"; then
23365 cat >>confdefs.h <<\_ACEOF
23366#define wxUSE_REGEX 1
23367_ACEOF
23368
23369
23370 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23371 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23372echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23373 wxUSE_REGEX=builtin
23374 fi
23375
23376 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23377 if test "${ac_cv_header_regex_h+set}" = set; then
23378 echo "$as_me:$LINENO: checking for regex.h" >&5
23379echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23380if test "${ac_cv_header_regex_h+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23382fi
23383echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23384echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23385else
23386 # Is the header compilable?
23387echo "$as_me:$LINENO: checking regex.h usability" >&5
23388echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23389cat >conftest.$ac_ext <<_ACEOF
23390/* confdefs.h. */
23391_ACEOF
23392cat confdefs.h >>conftest.$ac_ext
23393cat >>conftest.$ac_ext <<_ACEOF
23394/* end confdefs.h. */
23395$ac_includes_default
23396#include <regex.h>
23397_ACEOF
23398rm -f conftest.$ac_objext
23399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23400 (eval $ac_compile) 2>conftest.er1
a848cd7e 23401 ac_status=$?
ac1cb8d3
VS
23402 grep -v '^ *+' conftest.er1 >conftest.err
23403 rm -f conftest.er1
23404 cat conftest.err >&5
a848cd7e
SC
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } &&
6ebeb4c7 23407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409 (eval $ac_try) 2>&5
23410 ac_status=$?
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); }; } &&
23413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23416 ac_status=$?
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; }; then
23419 ac_header_compiler=yes
23420else
23421 echo "$as_me: failed program was:" >&5
23422sed 's/^/| /' conftest.$ac_ext >&5
23423
23424ac_header_compiler=no
23425fi
ac1cb8d3 23426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23427echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23428echo "${ECHO_T}$ac_header_compiler" >&6
23429
23430# Is the header present?
23431echo "$as_me:$LINENO: checking regex.h presence" >&5
23432echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23433cat >conftest.$ac_ext <<_ACEOF
23434/* confdefs.h. */
23435_ACEOF
23436cat confdefs.h >>conftest.$ac_ext
23437cat >>conftest.$ac_ext <<_ACEOF
23438/* end confdefs.h. */
23439#include <regex.h>
23440_ACEOF
23441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23443 ac_status=$?
23444 grep -v '^ *+' conftest.er1 >conftest.err
23445 rm -f conftest.er1
23446 cat conftest.err >&5
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } >/dev/null; then
23449 if test -s conftest.err; then
23450 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23452 else
23453 ac_cpp_err=
23454 fi
23455else
23456 ac_cpp_err=yes
23457fi
23458if test -z "$ac_cpp_err"; then
23459 ac_header_preproc=yes
23460else
23461 echo "$as_me: failed program was:" >&5
23462sed 's/^/| /' conftest.$ac_ext >&5
23463
23464 ac_header_preproc=no
23465fi
23466rm -f conftest.err conftest.$ac_ext
23467echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23468echo "${ECHO_T}$ac_header_preproc" >&6
23469
23470# So? What about this header?
ac1cb8d3
VS
23471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23472 yes:no: )
a848cd7e
SC
23473 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23474echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23475 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23476echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23477 ac_header_preproc=yes
a848cd7e 23478 ;;
ac1cb8d3 23479 no:yes:* )
a848cd7e
SC
23480 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23481echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23482 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23483echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23484 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23485echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23486 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23487echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23488 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23489echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23490 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23491echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23492 (
23493 cat <<\_ASBOX
ac1cb8d3
VS
23494## ----------------------------------------- ##
23495## Report this to wx-dev@lists.wxwidgets.org ##
23496## ----------------------------------------- ##
a848cd7e
SC
23497_ASBOX
23498 ) |
23499 sed "s/^/$as_me: WARNING: /" >&2
23500 ;;
23501esac
23502echo "$as_me:$LINENO: checking for regex.h" >&5
23503echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23504if test "${ac_cv_header_regex_h+set}" = set; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23506else
23507 ac_cv_header_regex_h=$ac_header_preproc
23508fi
23509echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23510echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23511
23512fi
23513if test $ac_cv_header_regex_h = yes; then
23514
23515for ac_func in regcomp
23516do
23517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23518echo "$as_me:$LINENO: checking for $ac_func" >&5
23519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23520if eval "test \"\${$as_ac_var+set}\" = set"; then
23521 echo $ECHO_N "(cached) $ECHO_C" >&6
23522else
23523 cat >conftest.$ac_ext <<_ACEOF
23524/* confdefs.h. */
23525_ACEOF
23526cat confdefs.h >>conftest.$ac_ext
23527cat >>conftest.$ac_ext <<_ACEOF
23528/* end confdefs.h. */
ac1cb8d3
VS
23529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23531#define $ac_func innocuous_$ac_func
23532
a848cd7e
SC
23533/* System header to define __stub macros and hopefully few prototypes,
23534 which can conflict with char $ac_func (); below.
23535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23536 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23537
a848cd7e
SC
23538#ifdef __STDC__
23539# include <limits.h>
23540#else
23541# include <assert.h>
23542#endif
ac1cb8d3
VS
23543
23544#undef $ac_func
23545
a848cd7e
SC
23546/* Override any gcc2 internal prototype to avoid an error. */
23547#ifdef __cplusplus
23548extern "C"
23549{
23550#endif
23551/* We use char because int might match the return type of a gcc2
23552 builtin and then its argument prototype would still apply. */
23553char $ac_func ();
23554/* The GNU C library defines this for functions which it implements
23555 to always fail with ENOSYS. Some functions are actually named
23556 something starting with __ and the normal name is an alias. */
23557#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23558choke me
23559#else
23560char (*f) () = $ac_func;
23561#endif
23562#ifdef __cplusplus
23563}
23564#endif
23565
23566int
23567main ()
23568{
23569return f != $ac_func;
23570 ;
23571 return 0;
23572}
23573_ACEOF
23574rm -f conftest.$ac_objext conftest$ac_exeext
23575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23576 (eval $ac_link) 2>conftest.er1
a848cd7e 23577 ac_status=$?
ac1cb8d3
VS
23578 grep -v '^ *+' conftest.er1 >conftest.err
23579 rm -f conftest.er1
23580 cat conftest.err >&5
a848cd7e
SC
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } &&
6ebeb4c7 23583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23585 (eval $ac_try) 2>&5
23586 ac_status=$?
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); }; } &&
23589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23591 (eval $ac_try) 2>&5
23592 ac_status=$?
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); }; }; then
23595 eval "$as_ac_var=yes"
23596else
23597 echo "$as_me: failed program was:" >&5
23598sed 's/^/| /' conftest.$ac_ext >&5
23599
23600eval "$as_ac_var=no"
23601fi
ac1cb8d3
VS
23602rm -f conftest.err conftest.$ac_objext \
23603 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23604fi
23605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23606echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23607if test `eval echo '${'$as_ac_var'}'` = yes; then
23608 cat >>confdefs.h <<_ACEOF
23609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23610_ACEOF
23611
23612fi
23613done
23614
23615fi
23616
23617
23618
23619 if test "x$ac_cv_func_regcomp" != "xyes"; then
23620 if test "$wxUSE_REGEX" = "sys" ; then
23621 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23622echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23623 { (exit 1); exit 1; }; }
23624 else
23625 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23626echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23627 wxUSE_REGEX=builtin
23628 fi
23629 else
23630 wxUSE_REGEX=sys
23631 cat >>confdefs.h <<\_ACEOF
23632#define WX_NO_REGEX_ADVANCED 1
23633_ACEOF
23634
23635 fi
23636 fi
23637fi
23638
23639
23640ZLIB_LINK=
23641if test "$wxUSE_ZLIB" != "no" ; then
23642 cat >>confdefs.h <<\_ACEOF
23643#define wxUSE_ZLIB 1
23644_ACEOF
23645
23646
23647 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23648 if test "$USE_DARWIN" = 1; then
23649 system_zlib_h_ok="yes"
23650 else
23651 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23652echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23653if test "${ac_cv_header_zlib_h+set}" = set; then
23654 echo $ECHO_N "(cached) $ECHO_C" >&6
23655else
23656 if test "$cross_compiling" = yes; then
23657 unset ac_cv_header_zlib_h
23658
23659else
23660 cat >conftest.$ac_ext <<_ACEOF
23661/* confdefs.h. */
23662_ACEOF
23663cat confdefs.h >>conftest.$ac_ext
23664cat >>conftest.$ac_ext <<_ACEOF
23665/* end confdefs.h. */
23666
23667 #include <zlib.h>
23668 #include <stdio.h>
23669
23670 int main()
23671 {
23672 FILE *f=fopen("conftestval", "w");
23673 if (!f) exit(1);
23674 fprintf(f, "%s",
23675 ZLIB_VERSION[0] == '1' &&
23676 (ZLIB_VERSION[2] > '1' ||
23677 (ZLIB_VERSION[2] == '1' &&
23678 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23679 exit(0);
23680 }
23681
23682_ACEOF
23683rm -f conftest$ac_exeext
23684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23685 (eval $ac_link) 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_header_zlib_h=`cat conftestval`
23695else
23696 echo "$as_me: program exited with status $ac_status" >&5
23697echo "$as_me: failed program was:" >&5
23698sed 's/^/| /' conftest.$ac_ext >&5
23699
23700( exit $ac_status )
23701ac_cv_header_zlib_h=no
23702fi
ac1cb8d3 23703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23704fi
23705
23706fi
23707echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23708echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23709 if test "${ac_cv_header_zlib_h+set}" = set; then
23710 echo "$as_me:$LINENO: checking for zlib.h" >&5
23711echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23712if test "${ac_cv_header_zlib_h+set}" = set; then
23713 echo $ECHO_N "(cached) $ECHO_C" >&6
23714fi
23715echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23716echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23717else
23718 # Is the header compilable?
23719echo "$as_me:$LINENO: checking zlib.h usability" >&5
23720echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23721cat >conftest.$ac_ext <<_ACEOF
23722/* confdefs.h. */
23723_ACEOF
23724cat confdefs.h >>conftest.$ac_ext
23725cat >>conftest.$ac_ext <<_ACEOF
23726/* end confdefs.h. */
23727$ac_includes_default
23728#include <zlib.h>
23729_ACEOF
23730rm -f conftest.$ac_objext
23731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23732 (eval $ac_compile) 2>conftest.er1
a848cd7e 23733 ac_status=$?
ac1cb8d3
VS
23734 grep -v '^ *+' conftest.er1 >conftest.err
23735 rm -f conftest.er1
23736 cat conftest.err >&5
a848cd7e
SC
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } &&
6ebeb4c7 23739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741 (eval $ac_try) 2>&5
23742 ac_status=$?
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); }; } &&
23745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23747 (eval $ac_try) 2>&5
23748 ac_status=$?
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); }; }; then
23751 ac_header_compiler=yes
23752else
23753 echo "$as_me: failed program was:" >&5
23754sed 's/^/| /' conftest.$ac_ext >&5
23755
23756ac_header_compiler=no
23757fi
ac1cb8d3 23758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23760echo "${ECHO_T}$ac_header_compiler" >&6
23761
23762# Is the header present?
23763echo "$as_me:$LINENO: checking zlib.h presence" >&5
23764echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
23765cat >conftest.$ac_ext <<_ACEOF
23766/* confdefs.h. */
23767_ACEOF
23768cat confdefs.h >>conftest.$ac_ext
23769cat >>conftest.$ac_ext <<_ACEOF
23770/* end confdefs.h. */
23771#include <zlib.h>
23772_ACEOF
23773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23775 ac_status=$?
23776 grep -v '^ *+' conftest.er1 >conftest.err
23777 rm -f conftest.er1
23778 cat conftest.err >&5
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); } >/dev/null; then
23781 if test -s conftest.err; then
23782 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23784 else
23785 ac_cpp_err=
23786 fi
23787else
23788 ac_cpp_err=yes
23789fi
23790if test -z "$ac_cpp_err"; then
23791 ac_header_preproc=yes
23792else
23793 echo "$as_me: failed program was:" >&5
23794sed 's/^/| /' conftest.$ac_ext >&5
23795
23796 ac_header_preproc=no
23797fi
23798rm -f conftest.err conftest.$ac_ext
23799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23800echo "${ECHO_T}$ac_header_preproc" >&6
23801
23802# So? What about this header?
ac1cb8d3
VS
23803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23804 yes:no: )
a848cd7e
SC
23805 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23806echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23807 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23808echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23809 ac_header_preproc=yes
a848cd7e 23810 ;;
ac1cb8d3 23811 no:yes:* )
a848cd7e
SC
23812 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23813echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23814 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23815echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23816 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23817echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23818 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23819echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23820 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23821echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23822 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23823echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23824 (
23825 cat <<\_ASBOX
ac1cb8d3
VS
23826## ----------------------------------------- ##
23827## Report this to wx-dev@lists.wxwidgets.org ##
23828## ----------------------------------------- ##
a848cd7e
SC
23829_ASBOX
23830 ) |
23831 sed "s/^/$as_me: WARNING: /" >&2
23832 ;;
23833esac
23834echo "$as_me:$LINENO: checking for zlib.h" >&5
23835echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23836if test "${ac_cv_header_zlib_h+set}" = set; then
23837 echo $ECHO_N "(cached) $ECHO_C" >&6
23838else
23839 ac_cv_header_zlib_h=$ac_header_preproc
23840fi
23841echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23842echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23843
23844fi
23845
23846
23847
23848 system_zlib_h_ok=$ac_cv_header_zlib_h
23849 fi
23850
23851 if test "$system_zlib_h_ok" = "yes"; then
23852 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
23853echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
23854if test "${ac_cv_lib_z_deflate+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23856else
23857 ac_check_lib_save_LIBS=$LIBS
23858LIBS="-lz $LIBS"
23859cat >conftest.$ac_ext <<_ACEOF
23860/* confdefs.h. */
23861_ACEOF
23862cat confdefs.h >>conftest.$ac_ext
23863cat >>conftest.$ac_ext <<_ACEOF
23864/* end confdefs.h. */
23865
23866/* Override any gcc2 internal prototype to avoid an error. */
23867#ifdef __cplusplus
23868extern "C"
23869#endif
23870/* We use char because int might match the return type of a gcc2
23871 builtin and then its argument prototype would still apply. */
23872char deflate ();
23873int
23874main ()
23875{
23876deflate ();
23877 ;
23878 return 0;
23879}
23880_ACEOF
23881rm -f conftest.$ac_objext conftest$ac_exeext
23882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23883 (eval $ac_link) 2>conftest.er1
a848cd7e 23884 ac_status=$?
ac1cb8d3
VS
23885 grep -v '^ *+' conftest.er1 >conftest.err
23886 rm -f conftest.er1
23887 cat conftest.err >&5
a848cd7e
SC
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } &&
6ebeb4c7 23890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892 (eval $ac_try) 2>&5
23893 ac_status=$?
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); }; } &&
23896 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898 (eval $ac_try) 2>&5
23899 ac_status=$?
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; }; then
23902 ac_cv_lib_z_deflate=yes
23903else
23904 echo "$as_me: failed program was:" >&5
23905sed 's/^/| /' conftest.$ac_ext >&5
23906
23907ac_cv_lib_z_deflate=no
23908fi
ac1cb8d3
VS
23909rm -f conftest.err conftest.$ac_objext \
23910 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23911LIBS=$ac_check_lib_save_LIBS
23912fi
23913echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
23914echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
23915if test $ac_cv_lib_z_deflate = yes; then
23916 ZLIB_LINK=" -lz"
23917fi
23918
23919 fi
23920
23921 if test "x$ZLIB_LINK" = "x" ; then
23922 if test "$wxUSE_ZLIB" = "sys" ; then
23923 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
23924echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
23925 { (exit 1); exit 1; }; }
23926 else
23927 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
23928echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
23929 wxUSE_ZLIB=builtin
23930 fi
23931 else
23932 wxUSE_ZLIB=sys
23933 fi
23934 fi
23935fi
23936
23937
23938PNG_LINK=
23939if test "$wxUSE_LIBPNG" != "no" ; then
23940 cat >>confdefs.h <<\_ACEOF
23941#define wxUSE_LIBPNG 1
23942_ACEOF
23943
23944
23945 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
23946 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
23947echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
23948 wxUSE_LIBPNG=sys
23949 fi
23950
23951 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
23952 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
23953echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
23954 wxUSE_LIBPNG=builtin
23955 fi
23956
23957 if test "$wxUSE_MGL" != 1 ; then
23958 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
23959 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
23960echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23961if test "${ac_cv_header_png_h+set}" = set; then
23962 echo $ECHO_N "(cached) $ECHO_C" >&6
23963else
23964 if test "$cross_compiling" = yes; then
23965 unset ac_cv_header_png_h
23966
23967else
23968 cat >conftest.$ac_ext <<_ACEOF
23969/* confdefs.h. */
23970_ACEOF
23971cat confdefs.h >>conftest.$ac_ext
23972cat >>conftest.$ac_ext <<_ACEOF
23973/* end confdefs.h. */
23974
23975 #include <png.h>
23976 #include <stdio.h>
23977
23978 int main()
23979 {
23980 FILE *f=fopen("conftestval", "w");
23981 if (!f) exit(1);
23982 fprintf(f, "%s",
23983 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23984 exit(0);
23985 }
23986
23987_ACEOF
23988rm -f conftest$ac_exeext
23989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23990 (eval $ac_link) 2>&5
23991 ac_status=$?
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23995 (eval $ac_try) 2>&5
23996 ac_status=$?
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); }; }; then
23999 ac_cv_header_png_h=`cat conftestval`
24000else
24001 echo "$as_me: program exited with status $ac_status" >&5
24002echo "$as_me: failed program was:" >&5
24003sed 's/^/| /' conftest.$ac_ext >&5
24004
24005( exit $ac_status )
24006ac_cv_header_png_h=no
24007fi
ac1cb8d3 24008rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24009fi
24010
24011fi
24012echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24013echo "${ECHO_T}$ac_cv_header_png_h" >&6
24014 if test "${ac_cv_header_png_h+set}" = set; then
24015 echo "$as_me:$LINENO: checking for png.h" >&5
24016echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24017if test "${ac_cv_header_png_h+set}" = set; then
24018 echo $ECHO_N "(cached) $ECHO_C" >&6
24019fi
24020echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24021echo "${ECHO_T}$ac_cv_header_png_h" >&6
24022else
24023 # Is the header compilable?
24024echo "$as_me:$LINENO: checking png.h usability" >&5
24025echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24026cat >conftest.$ac_ext <<_ACEOF
24027/* confdefs.h. */
24028_ACEOF
24029cat confdefs.h >>conftest.$ac_ext
24030cat >>conftest.$ac_ext <<_ACEOF
24031/* end confdefs.h. */
24032$ac_includes_default
24033#include <png.h>
24034_ACEOF
24035rm -f conftest.$ac_objext
24036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24037 (eval $ac_compile) 2>conftest.er1
a848cd7e 24038 ac_status=$?
ac1cb8d3
VS
24039 grep -v '^ *+' conftest.er1 >conftest.err
24040 rm -f conftest.er1
24041 cat conftest.err >&5
a848cd7e
SC
24042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043 (exit $ac_status); } &&
6ebeb4c7 24044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24046 (eval $ac_try) 2>&5
24047 ac_status=$?
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); }; } &&
24050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24052 (eval $ac_try) 2>&5
24053 ac_status=$?
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); }; }; then
24056 ac_header_compiler=yes
24057else
24058 echo "$as_me: failed program was:" >&5
24059sed 's/^/| /' conftest.$ac_ext >&5
24060
24061ac_header_compiler=no
24062fi
ac1cb8d3 24063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24064echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24065echo "${ECHO_T}$ac_header_compiler" >&6
24066
24067# Is the header present?
24068echo "$as_me:$LINENO: checking png.h presence" >&5
24069echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24070cat >conftest.$ac_ext <<_ACEOF
24071/* confdefs.h. */
24072_ACEOF
24073cat confdefs.h >>conftest.$ac_ext
24074cat >>conftest.$ac_ext <<_ACEOF
24075/* end confdefs.h. */
24076#include <png.h>
24077_ACEOF
24078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24080 ac_status=$?
24081 grep -v '^ *+' conftest.er1 >conftest.err
24082 rm -f conftest.er1
24083 cat conftest.err >&5
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); } >/dev/null; then
24086 if test -s conftest.err; then
24087 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24089 else
24090 ac_cpp_err=
24091 fi
24092else
24093 ac_cpp_err=yes
24094fi
24095if test -z "$ac_cpp_err"; then
24096 ac_header_preproc=yes
24097else
24098 echo "$as_me: failed program was:" >&5
24099sed 's/^/| /' conftest.$ac_ext >&5
24100
24101 ac_header_preproc=no
24102fi
24103rm -f conftest.err conftest.$ac_ext
24104echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24105echo "${ECHO_T}$ac_header_preproc" >&6
24106
24107# So? What about this header?
ac1cb8d3
VS
24108case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24109 yes:no: )
a848cd7e
SC
24110 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24111echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24112 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24113echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24114 ac_header_preproc=yes
a848cd7e 24115 ;;
ac1cb8d3 24116 no:yes:* )
a848cd7e
SC
24117 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24118echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24119 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24120echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24121 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24122echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24123 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24124echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24125 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24126echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24127 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24128echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24129 (
24130 cat <<\_ASBOX
ac1cb8d3
VS
24131## ----------------------------------------- ##
24132## Report this to wx-dev@lists.wxwidgets.org ##
24133## ----------------------------------------- ##
a848cd7e
SC
24134_ASBOX
24135 ) |
24136 sed "s/^/$as_me: WARNING: /" >&2
24137 ;;
24138esac
24139echo "$as_me:$LINENO: checking for png.h" >&5
24140echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24141if test "${ac_cv_header_png_h+set}" = set; then
24142 echo $ECHO_N "(cached) $ECHO_C" >&6
24143else
24144 ac_cv_header_png_h=$ac_header_preproc
24145fi
24146echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24147echo "${ECHO_T}$ac_cv_header_png_h" >&6
24148
24149fi
24150
24151
24152
24153 if test "$ac_cv_header_png_h" = "yes"; then
24154 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24155echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24156if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24157 echo $ECHO_N "(cached) $ECHO_C" >&6
24158else
24159 ac_check_lib_save_LIBS=$LIBS
24160LIBS="-lpng -lz -lm $LIBS"
24161cat >conftest.$ac_ext <<_ACEOF
24162/* confdefs.h. */
24163_ACEOF
24164cat confdefs.h >>conftest.$ac_ext
24165cat >>conftest.$ac_ext <<_ACEOF
24166/* end confdefs.h. */
24167
24168/* Override any gcc2 internal prototype to avoid an error. */
24169#ifdef __cplusplus
24170extern "C"
24171#endif
24172/* We use char because int might match the return type of a gcc2
24173 builtin and then its argument prototype would still apply. */
24174char png_check_sig ();
24175int
24176main ()
24177{
24178png_check_sig ();
24179 ;
24180 return 0;
24181}
24182_ACEOF
24183rm -f conftest.$ac_objext conftest$ac_exeext
24184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24185 (eval $ac_link) 2>conftest.er1
a848cd7e 24186 ac_status=$?
ac1cb8d3
VS
24187 grep -v '^ *+' conftest.er1 >conftest.err
24188 rm -f conftest.er1
24189 cat conftest.err >&5
a848cd7e
SC
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); } &&
6ebeb4c7 24192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24195 ac_status=$?
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; } &&
24198 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24200 (eval $ac_try) 2>&5
24201 ac_status=$?
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); }; }; then
24204 ac_cv_lib_png_png_check_sig=yes
24205else
24206 echo "$as_me: failed program was:" >&5
24207sed 's/^/| /' conftest.$ac_ext >&5
24208
24209ac_cv_lib_png_png_check_sig=no
24210fi
ac1cb8d3
VS
24211rm -f conftest.err conftest.$ac_objext \
24212 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24213LIBS=$ac_check_lib_save_LIBS
24214fi
24215echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24216echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24217if test $ac_cv_lib_png_png_check_sig = yes; then
24218 PNG_LINK=" -lpng -lz"
24219fi
24220
24221 fi
24222
24223 if test "x$PNG_LINK" = "x" ; then
24224 if test "$wxUSE_LIBPNG" = "sys" ; then
24225 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24226echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24227 { (exit 1); exit 1; }; }
24228 else
24229 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24230echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24231 wxUSE_LIBPNG=builtin
24232 fi
24233 else
24234 wxUSE_LIBPNG=sys
24235 fi
24236 fi
24237 fi
24238
24239 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24240fi
24241
24242
24243JPEG_LINK=
24244if test "$wxUSE_LIBJPEG" != "no" ; then
24245 cat >>confdefs.h <<\_ACEOF
24246#define wxUSE_LIBJPEG 1
24247_ACEOF
24248
24249
24250 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24251 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24252echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24253 wxUSE_LIBJPEG=sys
24254 fi
24255
24256 if test "$wxUSE_MGL" != 1 ; then
24257 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24258 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24259echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24260 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24261 echo $ECHO_N "(cached) $ECHO_C" >&6
24262else
24263 cat >conftest.$ac_ext <<_ACEOF
24264/* confdefs.h. */
24265_ACEOF
24266cat confdefs.h >>conftest.$ac_ext
24267cat >>conftest.$ac_ext <<_ACEOF
24268/* end confdefs.h. */
24269
24270 #undef HAVE_STDLIB_H
24271 #include <stdio.h>
24272 #include <jpeglib.h>
24273
24274int
24275main ()
24276{
24277
24278
24279 ;
24280 return 0;
24281}
24282_ACEOF
24283rm -f conftest.$ac_objext
24284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24285 (eval $ac_compile) 2>conftest.er1
a848cd7e 24286 ac_status=$?
ac1cb8d3
VS
24287 grep -v '^ *+' conftest.er1 >conftest.err
24288 rm -f conftest.er1
24289 cat conftest.err >&5
a848cd7e
SC
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
6ebeb4c7 24292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24294 (eval $ac_try) 2>&5
24295 ac_status=$?
24296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); }; } &&
24298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24300 (eval $ac_try) 2>&5
24301 ac_status=$?
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); }; }; then
24304 ac_cv_header_jpeglib_h=yes
24305else
24306 echo "$as_me: failed program was:" >&5
24307sed 's/^/| /' conftest.$ac_ext >&5
24308
24309ac_cv_header_jpeglib_h=no
24310
24311fi
ac1cb8d3 24312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24313
24314fi
24315
24316 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24317echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24318
24319 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24320 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24321echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24322if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24323 echo $ECHO_N "(cached) $ECHO_C" >&6
24324else
24325 ac_check_lib_save_LIBS=$LIBS
24326LIBS="-ljpeg $LIBS"
24327cat >conftest.$ac_ext <<_ACEOF
24328/* confdefs.h. */
24329_ACEOF
24330cat confdefs.h >>conftest.$ac_ext
24331cat >>conftest.$ac_ext <<_ACEOF
24332/* end confdefs.h. */
24333
24334/* Override any gcc2 internal prototype to avoid an error. */
24335#ifdef __cplusplus
24336extern "C"
24337#endif
24338/* We use char because int might match the return type of a gcc2
24339 builtin and then its argument prototype would still apply. */
24340char jpeg_read_header ();
24341int
24342main ()
24343{
24344jpeg_read_header ();
24345 ;
24346 return 0;
24347}
24348_ACEOF
24349rm -f conftest.$ac_objext conftest$ac_exeext
24350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24351 (eval $ac_link) 2>conftest.er1
a848cd7e 24352 ac_status=$?
ac1cb8d3
VS
24353 grep -v '^ *+' conftest.er1 >conftest.err
24354 rm -f conftest.er1
24355 cat conftest.err >&5
a848cd7e
SC
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } &&
6ebeb4c7 24358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24360 (eval $ac_try) 2>&5
24361 ac_status=$?
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); }; } &&
24364 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24366 (eval $ac_try) 2>&5
24367 ac_status=$?
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); }; }; then
24370 ac_cv_lib_jpeg_jpeg_read_header=yes
24371else
24372 echo "$as_me: failed program was:" >&5
24373sed 's/^/| /' conftest.$ac_ext >&5
24374
24375ac_cv_lib_jpeg_jpeg_read_header=no
24376fi
ac1cb8d3
VS
24377rm -f conftest.err conftest.$ac_objext \
24378 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24379LIBS=$ac_check_lib_save_LIBS
24380fi
24381echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24382echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24383if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24384 JPEG_LINK=" -ljpeg"
24385fi
24386
24387 fi
24388
24389 if test "x$JPEG_LINK" = "x" ; then
24390 if test "$wxUSE_LIBJPEG" = "sys" ; then
24391 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24392echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24393 { (exit 1); exit 1; }; }
24394 else
24395 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24396echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24397 wxUSE_LIBJPEG=builtin
24398 fi
24399 else
24400 wxUSE_LIBJPEG=sys
24401 fi
24402 fi
24403 fi
24404fi
24405
24406
24407TIFF_LINK=
24408TIFF_PREREQ_LINKS=-lm
24409if test "$wxUSE_LIBTIFF" != "no" ; then
24410 cat >>confdefs.h <<\_ACEOF
24411#define wxUSE_LIBTIFF 1
24412_ACEOF
24413
24414
24415 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24416 if test "$wxUSE_LIBJPEG" = "sys"; then
24417 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24418 fi
24419 if test "$wxUSE_ZLIB" = "sys"; then
24420 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24421 fi
24422 if test "${ac_cv_header_tiffio_h+set}" = set; then
24423 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24424echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24425if test "${ac_cv_header_tiffio_h+set}" = set; then
24426 echo $ECHO_N "(cached) $ECHO_C" >&6
24427fi
24428echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24429echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24430else
24431 # Is the header compilable?
24432echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24433echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24434cat >conftest.$ac_ext <<_ACEOF
24435/* confdefs.h. */
24436_ACEOF
24437cat confdefs.h >>conftest.$ac_ext
24438cat >>conftest.$ac_ext <<_ACEOF
24439/* end confdefs.h. */
24440$ac_includes_default
24441#include <tiffio.h>
24442_ACEOF
24443rm -f conftest.$ac_objext
24444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24445 (eval $ac_compile) 2>conftest.er1
a848cd7e 24446 ac_status=$?
ac1cb8d3
VS
24447 grep -v '^ *+' conftest.er1 >conftest.err
24448 rm -f conftest.er1
24449 cat conftest.err >&5
a848cd7e
SC
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); } &&
6ebeb4c7 24452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24454 (eval $ac_try) 2>&5
24455 ac_status=$?
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); }; } &&
24458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24460 (eval $ac_try) 2>&5
24461 ac_status=$?
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); }; }; then
24464 ac_header_compiler=yes
24465else
24466 echo "$as_me: failed program was:" >&5
24467sed 's/^/| /' conftest.$ac_ext >&5
24468
24469ac_header_compiler=no
24470fi
ac1cb8d3 24471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24472echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24473echo "${ECHO_T}$ac_header_compiler" >&6
24474
24475# Is the header present?
24476echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24477echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24478cat >conftest.$ac_ext <<_ACEOF
24479/* confdefs.h. */
24480_ACEOF
24481cat confdefs.h >>conftest.$ac_ext
24482cat >>conftest.$ac_ext <<_ACEOF
24483/* end confdefs.h. */
24484#include <tiffio.h>
24485_ACEOF
24486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24488 ac_status=$?
24489 grep -v '^ *+' conftest.er1 >conftest.err
24490 rm -f conftest.er1
24491 cat conftest.err >&5
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); } >/dev/null; then
24494 if test -s conftest.err; then
24495 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24497 else
24498 ac_cpp_err=
24499 fi
24500else
24501 ac_cpp_err=yes
24502fi
24503if test -z "$ac_cpp_err"; then
24504 ac_header_preproc=yes
24505else
24506 echo "$as_me: failed program was:" >&5
24507sed 's/^/| /' conftest.$ac_ext >&5
24508
24509 ac_header_preproc=no
24510fi
24511rm -f conftest.err conftest.$ac_ext
24512echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24513echo "${ECHO_T}$ac_header_preproc" >&6
24514
24515# So? What about this header?
ac1cb8d3
VS
24516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24517 yes:no: )
a848cd7e
SC
24518 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24519echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24520 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24521echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24522 ac_header_preproc=yes
a848cd7e 24523 ;;
ac1cb8d3 24524 no:yes:* )
a848cd7e
SC
24525 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24526echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24527 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24528echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24529 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24530echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24531 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24532echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24533 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24534echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24535 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24536echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24537 (
24538 cat <<\_ASBOX
ac1cb8d3
VS
24539## ----------------------------------------- ##
24540## Report this to wx-dev@lists.wxwidgets.org ##
24541## ----------------------------------------- ##
a848cd7e
SC
24542_ASBOX
24543 ) |
24544 sed "s/^/$as_me: WARNING: /" >&2
24545 ;;
24546esac
24547echo "$as_me:$LINENO: checking for tiffio.h" >&5
24548echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24549if test "${ac_cv_header_tiffio_h+set}" = set; then
24550 echo $ECHO_N "(cached) $ECHO_C" >&6
24551else
24552 ac_cv_header_tiffio_h=$ac_header_preproc
24553fi
24554echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24555echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24556
24557fi
24558if test $ac_cv_header_tiffio_h = yes; then
24559
24560 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24561echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24562if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24563 echo $ECHO_N "(cached) $ECHO_C" >&6
24564else
24565 ac_check_lib_save_LIBS=$LIBS
24566LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24567cat >conftest.$ac_ext <<_ACEOF
24568/* confdefs.h. */
24569_ACEOF
24570cat confdefs.h >>conftest.$ac_ext
24571cat >>conftest.$ac_ext <<_ACEOF
24572/* end confdefs.h. */
24573
24574/* Override any gcc2 internal prototype to avoid an error. */
24575#ifdef __cplusplus
24576extern "C"
24577#endif
24578/* We use char because int might match the return type of a gcc2
24579 builtin and then its argument prototype would still apply. */
24580char TIFFError ();
24581int
24582main ()
24583{
24584TIFFError ();
24585 ;
24586 return 0;
24587}
24588_ACEOF
24589rm -f conftest.$ac_objext conftest$ac_exeext
24590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24591 (eval $ac_link) 2>conftest.er1
a848cd7e 24592 ac_status=$?
ac1cb8d3
VS
24593 grep -v '^ *+' conftest.er1 >conftest.err
24594 rm -f conftest.er1
24595 cat conftest.err >&5
a848cd7e
SC
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } &&
6ebeb4c7 24598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24600 (eval $ac_try) 2>&5
24601 ac_status=$?
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); }; } &&
24604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24606 (eval $ac_try) 2>&5
24607 ac_status=$?
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); }; }; then
24610 ac_cv_lib_tiff_TIFFError=yes
24611else
24612 echo "$as_me: failed program was:" >&5
24613sed 's/^/| /' conftest.$ac_ext >&5
24614
24615ac_cv_lib_tiff_TIFFError=no
24616fi
ac1cb8d3
VS
24617rm -f conftest.err conftest.$ac_objext \
24618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24619LIBS=$ac_check_lib_save_LIBS
24620fi
24621echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24622echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24623if test $ac_cv_lib_tiff_TIFFError = yes; then
24624 TIFF_LINK=" -ltiff"
24625fi
24626
24627
24628
24629fi
24630
24631
24632
24633 if test "x$TIFF_LINK" = "x" ; then
24634 if test "$wxUSE_LIBTIFF" = "sys" ; then
24635 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24636echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24637 { (exit 1); exit 1; }; }
24638 else
24639 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24640echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24641 wxUSE_LIBTIFF=builtin
24642 fi
24643 else
24644 wxUSE_LIBTIFF=sys
24645 fi
24646 fi
24647fi
24648
24649
47a7e797
MW
24650if test "$wxUSE_WCHAR_T" != "yes"; then
24651 if test "$wxUSE_EXPAT" != "no"; then
24652 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24653echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24654 wxUSE_EXPAT=no
24655 fi
24656 if test "$wxUSE_XML" != "no"; then
24657 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24658echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24659 wxUSE_XML=no
24660 fi
24661fi
24662
a848cd7e
SC
24663if test "$wxUSE_EXPAT" != "no"; then
24664 wxUSE_XML=yes
24665 cat >>confdefs.h <<\_ACEOF
24666#define wxUSE_EXPAT 1
24667_ACEOF
24668
24669 cat >>confdefs.h <<\_ACEOF
24670#define wxUSE_XML 1
24671_ACEOF
24672
24673
24674 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24675 if test "${ac_cv_header_expat_h+set}" = set; then
24676 echo "$as_me:$LINENO: checking for expat.h" >&5
24677echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24678if test "${ac_cv_header_expat_h+set}" = set; then
24679 echo $ECHO_N "(cached) $ECHO_C" >&6
24680fi
24681echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24682echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24683else
24684 # Is the header compilable?
24685echo "$as_me:$LINENO: checking expat.h usability" >&5
24686echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24687cat >conftest.$ac_ext <<_ACEOF
24688/* confdefs.h. */
24689_ACEOF
24690cat confdefs.h >>conftest.$ac_ext
24691cat >>conftest.$ac_ext <<_ACEOF
24692/* end confdefs.h. */
24693$ac_includes_default
24694#include <expat.h>
24695_ACEOF
24696rm -f conftest.$ac_objext
24697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24698 (eval $ac_compile) 2>conftest.er1
a848cd7e 24699 ac_status=$?
ac1cb8d3
VS
24700 grep -v '^ *+' conftest.er1 >conftest.err
24701 rm -f conftest.er1
24702 cat conftest.err >&5
a848cd7e
SC
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); } &&
6ebeb4c7 24705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24707 (eval $ac_try) 2>&5
24708 ac_status=$?
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); }; } &&
24711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24713 (eval $ac_try) 2>&5
24714 ac_status=$?
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); }; }; then
24717 ac_header_compiler=yes
24718else
24719 echo "$as_me: failed program was:" >&5
24720sed 's/^/| /' conftest.$ac_ext >&5
24721
24722ac_header_compiler=no
24723fi
ac1cb8d3 24724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24725echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24726echo "${ECHO_T}$ac_header_compiler" >&6
24727
24728# Is the header present?
24729echo "$as_me:$LINENO: checking expat.h presence" >&5
24730echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
24731cat >conftest.$ac_ext <<_ACEOF
24732/* confdefs.h. */
24733_ACEOF
24734cat confdefs.h >>conftest.$ac_ext
24735cat >>conftest.$ac_ext <<_ACEOF
24736/* end confdefs.h. */
24737#include <expat.h>
24738_ACEOF
24739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24741 ac_status=$?
24742 grep -v '^ *+' conftest.er1 >conftest.err
24743 rm -f conftest.er1
24744 cat conftest.err >&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } >/dev/null; then
24747 if test -s conftest.err; then
24748 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24750 else
24751 ac_cpp_err=
24752 fi
24753else
24754 ac_cpp_err=yes
24755fi
24756if test -z "$ac_cpp_err"; then
24757 ac_header_preproc=yes
24758else
24759 echo "$as_me: failed program was:" >&5
24760sed 's/^/| /' conftest.$ac_ext >&5
24761
24762 ac_header_preproc=no
24763fi
24764rm -f conftest.err conftest.$ac_ext
24765echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24766echo "${ECHO_T}$ac_header_preproc" >&6
24767
24768# So? What about this header?
ac1cb8d3
VS
24769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24770 yes:no: )
a848cd7e
SC
24771 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
24772echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24773 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
24774echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
24775 ac_header_preproc=yes
a848cd7e 24776 ;;
ac1cb8d3 24777 no:yes:* )
a848cd7e
SC
24778 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
24779echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24780 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
24781echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
24782 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
24783echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
24784 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
24785echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24786 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
24787echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24788 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
24789echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24790 (
24791 cat <<\_ASBOX
ac1cb8d3
VS
24792## ----------------------------------------- ##
24793## Report this to wx-dev@lists.wxwidgets.org ##
24794## ----------------------------------------- ##
a848cd7e
SC
24795_ASBOX
24796 ) |
24797 sed "s/^/$as_me: WARNING: /" >&2
24798 ;;
24799esac
24800echo "$as_me:$LINENO: checking for expat.h" >&5
24801echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24802if test "${ac_cv_header_expat_h+set}" = set; then
24803 echo $ECHO_N "(cached) $ECHO_C" >&6
24804else
24805 ac_cv_header_expat_h=$ac_header_preproc
24806fi
24807echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24808echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24809
24810fi
24811if test $ac_cv_header_expat_h = yes; then
24812 found_expat_h=1
24813fi
24814
24815
24816 if test "x$found_expat_h" = "x1"; then
24817 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
24818echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
24819if test "${wx_cv_expat_is_not_broken+set}" = set; then
24820 echo $ECHO_N "(cached) $ECHO_C" >&6
24821else
24822
24823
24824
24825 ac_ext=cc
24826ac_cpp='$CXXCPP $CPPFLAGS'
24827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24830
24831 cat >conftest.$ac_ext <<_ACEOF
24832/* confdefs.h. */
24833_ACEOF
24834cat confdefs.h >>conftest.$ac_ext
24835cat >>conftest.$ac_ext <<_ACEOF
24836/* end confdefs.h. */
24837#include <expat.h>
24838int
24839main ()
24840{
24841
24842 ;
24843 return 0;
24844}
24845_ACEOF
24846rm -f conftest.$ac_objext
24847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24848 (eval $ac_compile) 2>conftest.er1
a848cd7e 24849 ac_status=$?
ac1cb8d3
VS
24850 grep -v '^ *+' conftest.er1 >conftest.err
24851 rm -f conftest.er1
24852 cat conftest.err >&5
a848cd7e
SC
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } &&
6ebeb4c7 24855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857 (eval $ac_try) 2>&5
24858 ac_status=$?
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; } &&
24861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863 (eval $ac_try) 2>&5
24864 ac_status=$?
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); }; }; then
24867 wx_cv_expat_is_not_broken=yes
24868else
24869 echo "$as_me: failed program was:" >&5
24870sed 's/^/| /' conftest.$ac_ext >&5
24871
24872wx_cv_expat_is_not_broken=no
24873
24874fi
ac1cb8d3 24875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24876 ac_ext=c
24877ac_cpp='$CPP $CPPFLAGS'
24878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24880ac_compiler_gnu=$ac_cv_c_compiler_gnu
24881
24882
24883
24884fi
24885echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
24886echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
24887 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
24888 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
24889echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
24890if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
24891 echo $ECHO_N "(cached) $ECHO_C" >&6
24892else
24893 ac_check_lib_save_LIBS=$LIBS
24894LIBS="-lexpat $LIBS"
24895cat >conftest.$ac_ext <<_ACEOF
24896/* confdefs.h. */
24897_ACEOF
24898cat confdefs.h >>conftest.$ac_ext
24899cat >>conftest.$ac_ext <<_ACEOF
24900/* end confdefs.h. */
24901
24902/* Override any gcc2 internal prototype to avoid an error. */
24903#ifdef __cplusplus
24904extern "C"
24905#endif
24906/* We use char because int might match the return type of a gcc2
24907 builtin and then its argument prototype would still apply. */
24908char XML_ParserCreate ();
24909int
24910main ()
24911{
24912XML_ParserCreate ();
24913 ;
24914 return 0;
24915}
24916_ACEOF
24917rm -f conftest.$ac_objext conftest$ac_exeext
24918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24919 (eval $ac_link) 2>conftest.er1
a848cd7e 24920 ac_status=$?
ac1cb8d3
VS
24921 grep -v '^ *+' conftest.er1 >conftest.err
24922 rm -f conftest.er1
24923 cat conftest.err >&5
a848cd7e
SC
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } &&
6ebeb4c7 24926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24929 ac_status=$?
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; } &&
24932 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 ac_cv_lib_expat_XML_ParserCreate=yes
24939else
24940 echo "$as_me: failed program was:" >&5
24941sed 's/^/| /' conftest.$ac_ext >&5
24942
24943ac_cv_lib_expat_XML_ParserCreate=no
24944fi
ac1cb8d3
VS
24945rm -f conftest.err conftest.$ac_objext \
24946 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24947LIBS=$ac_check_lib_save_LIBS
24948fi
24949echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
24950echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
24951if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
24952 EXPAT_LINK=" -lexpat"
24953fi
24954
24955 fi
24956 fi
24957 if test "x$EXPAT_LINK" = "x" ; then
24958 if test "$wxUSE_EXPAT" = "sys" ; then
24959 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24960echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24961 { (exit 1); exit 1; }; }
24962 else
24963 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24964echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24965 wxUSE_EXPAT=builtin
24966 fi
24967 else
24968 wxUSE_EXPAT=sys
24969 fi
24970 fi
24971 if test "$wxUSE_EXPAT" = "builtin" ; then
24972
24973
24974subdirs="$subdirs src/expat"
24975
24976 fi
24977fi
24978
24979
24980
24981if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24982 if test "${ac_cv_header_mspack_h+set}" = set; then
24983 echo "$as_me:$LINENO: checking for mspack.h" >&5
24984echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24985if test "${ac_cv_header_mspack_h+set}" = set; then
24986 echo $ECHO_N "(cached) $ECHO_C" >&6
24987fi
24988echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24989echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24990else
24991 # Is the header compilable?
24992echo "$as_me:$LINENO: checking mspack.h usability" >&5
24993echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24994cat >conftest.$ac_ext <<_ACEOF
24995/* confdefs.h. */
24996_ACEOF
24997cat confdefs.h >>conftest.$ac_ext
24998cat >>conftest.$ac_ext <<_ACEOF
24999/* end confdefs.h. */
25000$ac_includes_default
25001#include <mspack.h>
25002_ACEOF
25003rm -f conftest.$ac_objext
25004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25005 (eval $ac_compile) 2>conftest.er1
a848cd7e 25006 ac_status=$?
ac1cb8d3
VS
25007 grep -v '^ *+' conftest.er1 >conftest.err
25008 rm -f conftest.er1
25009 cat conftest.err >&5
a848cd7e
SC
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); } &&
6ebeb4c7 25012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); }; } &&
25018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; }; then
25024 ac_header_compiler=yes
25025else
25026 echo "$as_me: failed program was:" >&5
25027sed 's/^/| /' conftest.$ac_ext >&5
25028
25029ac_header_compiler=no
25030fi
ac1cb8d3 25031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25032echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25033echo "${ECHO_T}$ac_header_compiler" >&6
25034
25035# Is the header present?
25036echo "$as_me:$LINENO: checking mspack.h presence" >&5
25037echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25038cat >conftest.$ac_ext <<_ACEOF
25039/* confdefs.h. */
25040_ACEOF
25041cat confdefs.h >>conftest.$ac_ext
25042cat >>conftest.$ac_ext <<_ACEOF
25043/* end confdefs.h. */
25044#include <mspack.h>
25045_ACEOF
25046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25048 ac_status=$?
25049 grep -v '^ *+' conftest.er1 >conftest.err
25050 rm -f conftest.er1
25051 cat conftest.err >&5
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); } >/dev/null; then
25054 if test -s conftest.err; then
25055 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25057 else
25058 ac_cpp_err=
25059 fi
25060else
25061 ac_cpp_err=yes
25062fi
25063if test -z "$ac_cpp_err"; then
25064 ac_header_preproc=yes
25065else
25066 echo "$as_me: failed program was:" >&5
25067sed 's/^/| /' conftest.$ac_ext >&5
25068
25069 ac_header_preproc=no
25070fi
25071rm -f conftest.err conftest.$ac_ext
25072echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25073echo "${ECHO_T}$ac_header_preproc" >&6
25074
25075# So? What about this header?
ac1cb8d3
VS
25076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25077 yes:no: )
a848cd7e
SC
25078 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25079echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25080 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25081echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25082 ac_header_preproc=yes
a848cd7e 25083 ;;
ac1cb8d3 25084 no:yes:* )
a848cd7e
SC
25085 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25086echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25087 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25088echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25089 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25090echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25091 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25092echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25093 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25094echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25095 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25096echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25097 (
25098 cat <<\_ASBOX
ac1cb8d3
VS
25099## ----------------------------------------- ##
25100## Report this to wx-dev@lists.wxwidgets.org ##
25101## ----------------------------------------- ##
a848cd7e
SC
25102_ASBOX
25103 ) |
25104 sed "s/^/$as_me: WARNING: /" >&2
25105 ;;
25106esac
25107echo "$as_me:$LINENO: checking for mspack.h" >&5
25108echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25109if test "${ac_cv_header_mspack_h+set}" = set; then
25110 echo $ECHO_N "(cached) $ECHO_C" >&6
25111else
25112 ac_cv_header_mspack_h=$ac_header_preproc
25113fi
25114echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25115echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25116
25117fi
25118if test $ac_cv_header_mspack_h = yes; then
25119 found_mspack_h=1
25120fi
25121
25122
25123 if test "x$found_mspack_h" = "x1"; then
25124 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25125echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25126if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25127 echo $ECHO_N "(cached) $ECHO_C" >&6
25128else
25129 ac_check_lib_save_LIBS=$LIBS
25130LIBS="-lmspack $LIBS"
25131cat >conftest.$ac_ext <<_ACEOF
25132/* confdefs.h. */
25133_ACEOF
25134cat confdefs.h >>conftest.$ac_ext
25135cat >>conftest.$ac_ext <<_ACEOF
25136/* end confdefs.h. */
25137
25138/* Override any gcc2 internal prototype to avoid an error. */
25139#ifdef __cplusplus
25140extern "C"
25141#endif
25142/* We use char because int might match the return type of a gcc2
25143 builtin and then its argument prototype would still apply. */
25144char mspack_create_chm_decompressor ();
25145int
25146main ()
25147{
25148mspack_create_chm_decompressor ();
25149 ;
25150 return 0;
25151}
25152_ACEOF
25153rm -f conftest.$ac_objext conftest$ac_exeext
25154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25155 (eval $ac_link) 2>conftest.er1
a848cd7e 25156 ac_status=$?
ac1cb8d3
VS
25157 grep -v '^ *+' conftest.er1 >conftest.err
25158 rm -f conftest.er1
25159 cat conftest.err >&5
a848cd7e
SC
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); } &&
6ebeb4c7 25162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
25168 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }; }; then
25174 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25175else
25176 echo "$as_me: failed program was:" >&5
25177sed 's/^/| /' conftest.$ac_ext >&5
25178
25179ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25180fi
ac1cb8d3
VS
25181rm -f conftest.err conftest.$ac_objext \
25182 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25183LIBS=$ac_check_lib_save_LIBS
25184fi
25185echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25186echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25187if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25188 MSPACK_LINK=" -lmspack"
25189fi
25190
25191 fi
25192 if test "x$MSPACK_LINK" = "x" ; then
25193 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25194 fi
25195fi
25196
25197if test "$wxUSE_LIBMSPACK" != "no"; then
25198 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25199#define wxUSE_LIBMSPACK 1
25200_ACEOF
25201
a848cd7e
SC
25202fi
25203
25204
25205
25206AFMINSTALL=
25207WIN32INSTALL=
25208
25209TOOLKIT=
25210TOOLKIT_INCLUDE=
25211WIDGET_SET=
25212
25213if test "$USE_WIN32" = 1 ; then
25214
25215for ac_header in w32api.h
25216do
25217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25218if eval "test \"\${$as_ac_Header+set}\" = set"; then
25219 echo "$as_me:$LINENO: checking for $ac_header" >&5
25220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25221if eval "test \"\${$as_ac_Header+set}\" = set"; then
25222 echo $ECHO_N "(cached) $ECHO_C" >&6
25223fi
25224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25226else
25227 # Is the header compilable?
25228echo "$as_me:$LINENO: checking $ac_header usability" >&5
25229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25230cat >conftest.$ac_ext <<_ACEOF
25231/* confdefs.h. */
25232_ACEOF
25233cat confdefs.h >>conftest.$ac_ext
25234cat >>conftest.$ac_ext <<_ACEOF
25235/* end confdefs.h. */
25236$ac_includes_default
25237#include <$ac_header>
25238_ACEOF
25239rm -f conftest.$ac_objext
25240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25241 (eval $ac_compile) 2>conftest.er1
a848cd7e 25242 ac_status=$?
ac1cb8d3
VS
25243 grep -v '^ *+' conftest.er1 >conftest.err
25244 rm -f conftest.er1
25245 cat conftest.err >&5
a848cd7e
SC
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); } &&
6ebeb4c7 25248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25251 ac_status=$?
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; } &&
25254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256 (eval $ac_try) 2>&5
25257 ac_status=$?
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }; }; then
25260 ac_header_compiler=yes
25261else
25262 echo "$as_me: failed program was:" >&5
25263sed 's/^/| /' conftest.$ac_ext >&5
25264
25265ac_header_compiler=no
25266fi
ac1cb8d3 25267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25269echo "${ECHO_T}$ac_header_compiler" >&6
25270
25271# Is the header present?
25272echo "$as_me:$LINENO: checking $ac_header presence" >&5
25273echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25274cat >conftest.$ac_ext <<_ACEOF
25275/* confdefs.h. */
25276_ACEOF
25277cat confdefs.h >>conftest.$ac_ext
25278cat >>conftest.$ac_ext <<_ACEOF
25279/* end confdefs.h. */
25280#include <$ac_header>
25281_ACEOF
25282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25284 ac_status=$?
25285 grep -v '^ *+' conftest.er1 >conftest.err
25286 rm -f conftest.er1
25287 cat conftest.err >&5
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); } >/dev/null; then
25290 if test -s conftest.err; then
25291 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25293 else
25294 ac_cpp_err=
25295 fi
25296else
25297 ac_cpp_err=yes
25298fi
25299if test -z "$ac_cpp_err"; then
25300 ac_header_preproc=yes
25301else
25302 echo "$as_me: failed program was:" >&5
25303sed 's/^/| /' conftest.$ac_ext >&5
25304
25305 ac_header_preproc=no
25306fi
25307rm -f conftest.err conftest.$ac_ext
25308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25309echo "${ECHO_T}$ac_header_preproc" >&6
25310
25311# So? What about this header?
ac1cb8d3
VS
25312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25313 yes:no: )
a848cd7e
SC
25314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25317echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25318 ac_header_preproc=yes
a848cd7e 25319 ;;
ac1cb8d3 25320 no:yes:* )
a848cd7e
SC
25321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25322echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25324echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25326echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25328echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25330echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25332echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25333 (
25334 cat <<\_ASBOX
ac1cb8d3
VS
25335## ----------------------------------------- ##
25336## Report this to wx-dev@lists.wxwidgets.org ##
25337## ----------------------------------------- ##
a848cd7e
SC
25338_ASBOX
25339 ) |
25340 sed "s/^/$as_me: WARNING: /" >&2
25341 ;;
25342esac
25343echo "$as_me:$LINENO: checking for $ac_header" >&5
25344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25345if eval "test \"\${$as_ac_Header+set}\" = set"; then
25346 echo $ECHO_N "(cached) $ECHO_C" >&6
25347else
ac1cb8d3 25348 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25349fi
25350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25352
25353fi
25354if test `eval echo '${'$as_ac_Header'}'` = yes; then
25355 cat >>confdefs.h <<_ACEOF
25356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25357_ACEOF
25358
25359fi
25360
25361done
25362
25363 if test "${ac_cv_header_windows_h+set}" = set; then
25364 echo "$as_me:$LINENO: checking for windows.h" >&5
25365echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25366if test "${ac_cv_header_windows_h+set}" = set; then
25367 echo $ECHO_N "(cached) $ECHO_C" >&6
25368fi
25369echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25370echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25371else
25372 # Is the header compilable?
25373echo "$as_me:$LINENO: checking windows.h usability" >&5
25374echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25375cat >conftest.$ac_ext <<_ACEOF
25376/* confdefs.h. */
25377_ACEOF
25378cat confdefs.h >>conftest.$ac_ext
25379cat >>conftest.$ac_ext <<_ACEOF
25380/* end confdefs.h. */
25381$ac_includes_default
25382#include <windows.h>
25383_ACEOF
25384rm -f conftest.$ac_objext
25385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25386 (eval $ac_compile) 2>conftest.er1
a848cd7e 25387 ac_status=$?
ac1cb8d3
VS
25388 grep -v '^ *+' conftest.er1 >conftest.err
25389 rm -f conftest.er1
25390 cat conftest.err >&5
a848cd7e
SC
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } &&
6ebeb4c7 25393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25395 (eval $ac_try) 2>&5
25396 ac_status=$?
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); }; } &&
25399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401 (eval $ac_try) 2>&5
25402 ac_status=$?
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; }; then
25405 ac_header_compiler=yes
25406else
25407 echo "$as_me: failed program was:" >&5
25408sed 's/^/| /' conftest.$ac_ext >&5
25409
25410ac_header_compiler=no
25411fi
ac1cb8d3 25412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25414echo "${ECHO_T}$ac_header_compiler" >&6
25415
25416# Is the header present?
25417echo "$as_me:$LINENO: checking windows.h presence" >&5
25418echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25419cat >conftest.$ac_ext <<_ACEOF
25420/* confdefs.h. */
25421_ACEOF
25422cat confdefs.h >>conftest.$ac_ext
25423cat >>conftest.$ac_ext <<_ACEOF
25424/* end confdefs.h. */
25425#include <windows.h>
25426_ACEOF
25427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25429 ac_status=$?
25430 grep -v '^ *+' conftest.er1 >conftest.err
25431 rm -f conftest.er1
25432 cat conftest.err >&5
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); } >/dev/null; then
25435 if test -s conftest.err; then
25436 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25438 else
25439 ac_cpp_err=
25440 fi
25441else
25442 ac_cpp_err=yes
25443fi
25444if test -z "$ac_cpp_err"; then
25445 ac_header_preproc=yes
25446else
25447 echo "$as_me: failed program was:" >&5
25448sed 's/^/| /' conftest.$ac_ext >&5
25449
25450 ac_header_preproc=no
25451fi
25452rm -f conftest.err conftest.$ac_ext
25453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25454echo "${ECHO_T}$ac_header_preproc" >&6
25455
25456# So? What about this header?
ac1cb8d3
VS
25457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25458 yes:no: )
a848cd7e
SC
25459 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25460echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25461 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25462echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25463 ac_header_preproc=yes
a848cd7e 25464 ;;
ac1cb8d3 25465 no:yes:* )
a848cd7e
SC
25466 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25467echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25468 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25469echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25470 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25471echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25472 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25473echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25474 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25475echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25476 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25477echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25478 (
25479 cat <<\_ASBOX
ac1cb8d3
VS
25480## ----------------------------------------- ##
25481## Report this to wx-dev@lists.wxwidgets.org ##
25482## ----------------------------------------- ##
a848cd7e
SC
25483_ASBOX
25484 ) |
25485 sed "s/^/$as_me: WARNING: /" >&2
25486 ;;
25487esac
25488echo "$as_me:$LINENO: checking for windows.h" >&5
25489echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25490if test "${ac_cv_header_windows_h+set}" = set; then
25491 echo $ECHO_N "(cached) $ECHO_C" >&6
25492else
25493 ac_cv_header_windows_h=$ac_header_preproc
25494fi
25495echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25496echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25497
25498fi
25499if test $ac_cv_header_windows_h = yes; then
25500 :
25501else
25502
25503 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25504echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25505 { (exit 1); exit 1; }; }
25506
25507fi
25508
25509
25510
25511 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25512
25513 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25514 LIBS="$LIBS -loleacc"
25515 fi
25516
25517 case "${host}" in
25518 *-*-cygwin* )
25519 LIBS="$LIBS -lkernel32 -luser32"
25520 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
25521 esac
25522
25523 if test "$wxUSE_ODBC" = "sys" ; then
25524 wxUSE_ODBC = "yes"
25525 fi
25526 if test "$wxUSE_ODBC" = "yes" ; then
25527 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25528 cat >>confdefs.h <<\_ACEOF
25529#define wxUSE_ODBC 1
25530_ACEOF
25531
25532 fi
25533
25534 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25535 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25536
25537 WIN32INSTALL=win32install
25538fi
25539
25540if test "$wxUSE_GUI" = "yes"; then
25541 USE_GUI=1
25542
25543 GUI_TK_LIBRARY=
25544
25545 WXGTK12=
25546 WXGTK127=
25547 WXGTK20=
25548 WXGPE=
25549
207bc66c
RN
25550 if test "$wxUSE_COCOA" = 1 ; then
25551 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25552 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25553echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25554 wxUSE_PRINTING_ARCHITECTURE=no
25555 fi
25556 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25557 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25558echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25559 wxUSE_DRAG_AND_DROP=no
25560 fi
25561 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25562 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25563echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25564 wxUSE_DRAGIMAGE=no
25565 fi
25566 fi
25567
a848cd7e
SC
25568 if test "$wxUSE_MSW" = 1 ; then
25569 TOOLKIT=MSW
25570 GUIDIST=MSW_DIST
25571
ceec2216 25572 case "${host}" in
a848cd7e
SC
25573 *-*-mingw32* )
25574 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25575 esac
25576 fi
25577
25578 if test "$wxUSE_GTK" = 1; then
25579 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25580echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25581
25582 gtk_version_cached=1
25583 if test "${wx_cv_lib_gtk+set}" = set; then
25584 echo $ECHO_N "(cached) $ECHO_C" >&6
25585else
25586
25587 gtk_version_cached=0
25588 echo "$as_me:$LINENO: result: " >&5
25589echo "${ECHO_T}" >&6
25590
25591 GTK_MODULES=
25592 if test "$wxUSE_THREADS" = "yes"; then
25593 GTK_MODULES=gthread
25594 fi
25595
f597b41c 25596 wx_cv_lib_gtk=
5001df0d
MW
25597 if test "x$wxGTK_VERSION" != "x1"
25598 then
25599 case "${host}" in
25600 *-*-solaris2* )
25601 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25602 enable_gtktest=no
25603 fi
25604 esac
25605
a848cd7e
SC
25606 # Check whether --enable-gtktest or --disable-gtktest was given.
25607if test "${enable_gtktest+set}" = set; then
25608 enableval="$enable_gtktest"
25609
25610else
25611 enable_gtktest=yes
25612fi;
25613
25614 pkg_config_args=gtk+-2.0
25615 for module in . $GTK_MODULES
25616 do
25617 case "$module" in
25618 gthread)
25619 pkg_config_args="$pkg_config_args gthread-2.0"
25620 ;;
25621 esac
25622 done
25623
25624 no_gtk=""
25625
25626 # Extract the first word of "pkg-config", so it can be a program name with args.
25627set dummy pkg-config; ac_word=$2
25628echo "$as_me:$LINENO: checking for $ac_word" >&5
25629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25630if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25631 echo $ECHO_N "(cached) $ECHO_C" >&6
25632else
25633 case $PKG_CONFIG in
25634 [\\/]* | ?:[\\/]*)
25635 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25636 ;;
25637 *)
25638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25639for as_dir in $PATH
25640do
25641 IFS=$as_save_IFS
25642 test -z "$as_dir" && as_dir=.
25643 for ac_exec_ext in '' $ac_executable_extensions; do
25644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25645 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25647 break 2
25648 fi
25649done
25650done
25651
25652 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25653 ;;
25654esac
25655fi
25656PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25657
25658if test -n "$PKG_CONFIG"; then
25659 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25660echo "${ECHO_T}$PKG_CONFIG" >&6
25661else
25662 echo "$as_me:$LINENO: result: no" >&5
25663echo "${ECHO_T}no" >&6
25664fi
25665
25666
25667 if test x$PKG_CONFIG != xno ; then
25668 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25669 :
25670 else
c2218763 25671 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25672 no_gtk=yes
25673 PKG_CONFIG=no
25674 fi
25675 else
25676 no_gtk=yes
25677 fi
25678
25679 min_gtk_version=2.0.0
25680 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25681echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25682
25683 if test x$PKG_CONFIG != xno ; then
25684 ## don't try to run the test against uninstalled libtool libs
25685 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25686 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25687 enable_gtktest=no
25688 fi
25689
25690 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25691 :
25692 else
25693 no_gtk=yes
25694 fi
25695 fi
25696
25697 if test x"$no_gtk" = x ; then
25698 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25699 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25700 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25701 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25702 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25703 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25704 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25705 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25706 if test "x$enable_gtktest" = "xyes" ; then
25707 ac_save_CFLAGS="$CFLAGS"
25708 ac_save_LIBS="$LIBS"
25709 CFLAGS="$CFLAGS $GTK_CFLAGS"
25710 LIBS="$GTK_LIBS $LIBS"
25711 rm -f conf.gtktest
25712 if test "$cross_compiling" = yes; then
25713 echo $ac_n "cross compiling; assumed OK... $ac_c"
25714else
25715 cat >conftest.$ac_ext <<_ACEOF
25716/* confdefs.h. */
25717_ACEOF
25718cat confdefs.h >>conftest.$ac_ext
25719cat >>conftest.$ac_ext <<_ACEOF
25720/* end confdefs.h. */
25721
25722#include <gtk/gtk.h>
25723#include <stdio.h>
25724#include <stdlib.h>
25725
25726int
25727main ()
25728{
25729 int major, minor, micro;
25730 char *tmp_version;
25731
25732 system ("touch conf.gtktest");
25733
25734 /* HP/UX 9 (%@#!) writes to sscanf strings */
25735 tmp_version = g_strdup("$min_gtk_version");
25736 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25737 printf("%s, bad version string\n", "$min_gtk_version");
25738 exit(1);
25739 }
25740
25741 if ((gtk_major_version != $gtk_config_major_version) ||
25742 (gtk_minor_version != $gtk_config_minor_version) ||
25743 (gtk_micro_version != $gtk_config_micro_version))
25744 {
25745 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25746 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25747 gtk_major_version, gtk_minor_version, gtk_micro_version);
25748 printf ("*** was found! If pkg-config was correct, then it is best\n");
25749 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25750 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25751 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25752 printf("*** required on your system.\n");
25753 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
25754 printf("*** to point to the correct configuration files\n");
25755 }
25756 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25757 (gtk_minor_version != GTK_MINOR_VERSION) ||
25758 (gtk_micro_version != GTK_MICRO_VERSION))
25759 {
25760 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25761 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25762 printf("*** library (version %d.%d.%d)\n",
25763 gtk_major_version, gtk_minor_version, gtk_micro_version);
25764 }
25765 else
25766 {
25767 if ((gtk_major_version > major) ||
25768 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25769 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25770 {
25771 return 0;
25772 }
25773 else
25774 {
25775 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25776 gtk_major_version, gtk_minor_version, gtk_micro_version);
25777 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25778 major, minor, micro);
25779 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25780 printf("***\n");
25781 printf("*** If you have already installed a sufficiently new version, this error\n");
25782 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
25783 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25784 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
25785 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
25786 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25787 printf("*** so that the correct libraries are found at run-time))\n");
25788 }
25789 }
25790 return 1;
25791}
25792
25793_ACEOF
25794rm -f conftest$ac_exeext
25795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25796 (eval $ac_link) 2>&5
25797 ac_status=$?
25798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25801 (eval $ac_try) 2>&5
25802 ac_status=$?
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); }; }; then
25805 :
25806else
25807 echo "$as_me: program exited with status $ac_status" >&5
25808echo "$as_me: failed program was:" >&5
25809sed 's/^/| /' conftest.$ac_ext >&5
25810
25811( exit $ac_status )
25812no_gtk=yes
25813fi
ac1cb8d3 25814rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25815fi
25816 CFLAGS="$ac_save_CFLAGS"
25817 LIBS="$ac_save_LIBS"
25818 fi
25819 fi
25820 if test "x$no_gtk" = x ; then
25821 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
25822echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
25823 wx_cv_lib_gtk=2.0
25824 else
25825 echo "$as_me:$LINENO: result: no" >&5
25826echo "${ECHO_T}no" >&6
25827 if test "$PKG_CONFIG" = "no" ; then
25828 echo "*** A new enough version of pkg-config was not found."
25829 echo "*** See http://pkgconfig.sourceforge.net"
25830 else
25831 if test -f conf.gtktest ; then
25832 :
25833 else
25834 echo "*** Could not run GTK+ test program, checking why..."
25835 ac_save_CFLAGS="$CFLAGS"
25836 ac_save_LIBS="$LIBS"
25837 CFLAGS="$CFLAGS $GTK_CFLAGS"
25838 LIBS="$LIBS $GTK_LIBS"
25839 cat >conftest.$ac_ext <<_ACEOF
25840/* confdefs.h. */
25841_ACEOF
25842cat confdefs.h >>conftest.$ac_ext
25843cat >>conftest.$ac_ext <<_ACEOF
25844/* end confdefs.h. */
25845
25846#include <gtk/gtk.h>
25847#include <stdio.h>
25848
25849int
25850main ()
25851{
25852 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25853 ;
25854 return 0;
25855}
25856_ACEOF
25857rm -f conftest.$ac_objext conftest$ac_exeext
25858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25859 (eval $ac_link) 2>conftest.er1
a848cd7e 25860 ac_status=$?
ac1cb8d3
VS
25861 grep -v '^ *+' conftest.er1 >conftest.err
25862 rm -f conftest.er1
25863 cat conftest.err >&5
a848cd7e
SC
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
6ebeb4c7 25866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25868 (eval $ac_try) 2>&5
25869 ac_status=$?
25870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); }; } &&
25872 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25874 (eval $ac_try) 2>&5
25875 ac_status=$?
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); }; }; then
25878 echo "*** The test program compiled, but did not run. This usually means"
25879 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
25880 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
25881 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25882 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25883 echo "*** is required on your system"
25884 echo "***"
25885 echo "*** If you have an old version installed, it is best to remove it, although"
25886 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25887else
25888 echo "$as_me: failed program was:" >&5
25889sed 's/^/| /' conftest.$ac_ext >&5
25890
25891 echo "*** The test program failed to compile or link. See the file config.log for the"
25892 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
25893fi
ac1cb8d3
VS
25894rm -f conftest.err conftest.$ac_objext \
25895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25896 CFLAGS="$ac_save_CFLAGS"
25897 LIBS="$ac_save_LIBS"
25898 fi
25899 fi
25900 GTK_CFLAGS=""
25901 GTK_LIBS=""
25902 :
25903 fi
25904
25905
25906 rm -f conf.gtktest
25907
5001df0d
MW
25908
25909 case "${host}" in
25910 *-*-solaris2* )
25911 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25912 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
25913 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
25914 fi
25915 if test "$wxUSE_SHARED" != "yes"; then
25916 GTK_LIBS="$GTK_LIBS -lX11"
25917 fi
25918 esac
f597b41c
MW
25919 fi
25920
f34ca037
MW
25921 if test -z "$wx_cv_lib_gtk"; then
25922 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
25923
25924# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25925if test "${with_gtk_prefix+set}" = set; then
25926 withval="$with_gtk_prefix"
25927 gtk_config_prefix="$withval"
25928else
25929 gtk_config_prefix=""
25930fi;
25931
25932# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25933if test "${with_gtk_exec_prefix+set}" = set; then
25934 withval="$with_gtk_exec_prefix"
25935 gtk_config_exec_prefix="$withval"
25936else
25937 gtk_config_exec_prefix=""
25938fi;
25939# Check whether --enable-gtktest or --disable-gtktest was given.
25940if test "${enable_gtktest+set}" = set; then
25941 enableval="$enable_gtktest"
25942
25943else
25944 enable_gtktest=yes
25945fi;
25946
25947 for module in . $GTK_MODULES
25948 do
25949 case "$module" in
25950 gthread)
25951 gtk_config_args="$gtk_config_args gthread"
25952 ;;
25953 esac
25954 done
25955
25956 if test x$gtk_config_exec_prefix != x ; then
25957 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25958 if test x${GTK_CONFIG+set} != xset ; then
25959 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25960 fi
25961 fi
25962 if test x$gtk_config_prefix != x ; then
25963 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25964 if test x${GTK_CONFIG+set} != xset ; then
25965 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25966 fi
25967 fi
25968
25969 # Extract the first word of "gtk-config", so it can be a program name with args.
25970set dummy gtk-config; ac_word=$2
25971echo "$as_me:$LINENO: checking for $ac_word" >&5
25972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25973if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25974 echo $ECHO_N "(cached) $ECHO_C" >&6
25975else
25976 case $GTK_CONFIG in
25977 [\\/]* | ?:[\\/]*)
25978 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25979 ;;
25980 *)
25981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25982for as_dir in $PATH
25983do
25984 IFS=$as_save_IFS
25985 test -z "$as_dir" && as_dir=.
25986 for ac_exec_ext in '' $ac_executable_extensions; do
25987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25988 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25990 break 2
25991 fi
25992done
25993done
25994
25995 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25996 ;;
25997esac
25998fi
25999GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26000
26001if test -n "$GTK_CONFIG"; then
26002 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26003echo "${ECHO_T}$GTK_CONFIG" >&6
26004else
26005 echo "$as_me:$LINENO: result: no" >&5
26006echo "${ECHO_T}no" >&6
26007fi
26008
26009 min_gtk_version=1.2.7
26010 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26011echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26012 no_gtk=""
26013 if test "$GTK_CONFIG" = "no" ; then
26014 no_gtk=yes
26015 else
26016 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26017 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26018 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26019 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26020 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26021 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26022 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26023 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26024 if test "x$enable_gtktest" = "xyes" ; then
26025 ac_save_CFLAGS="$CFLAGS"
26026 ac_save_LIBS="$LIBS"
26027 CFLAGS="$CFLAGS $GTK_CFLAGS"
26028 LIBS="$GTK_LIBS $LIBS"
26029 rm -f conf.gtktest
26030 if test "$cross_compiling" = yes; then
26031 echo $ac_n "cross compiling; assumed OK... $ac_c"
26032else
26033 cat >conftest.$ac_ext <<_ACEOF
26034/* confdefs.h. */
26035_ACEOF
26036cat confdefs.h >>conftest.$ac_ext
26037cat >>conftest.$ac_ext <<_ACEOF
26038/* end confdefs.h. */
26039
26040#include <gtk/gtk.h>
26041#include <stdio.h>
26042#include <stdlib.h>
26043
26044int
26045main ()
26046{
26047 int major, minor, micro;
26048 char *tmp_version;
26049
26050 system ("touch conf.gtktest");
26051
26052 /* HP/UX 9 (%@#!) writes to sscanf strings */
26053 tmp_version = g_strdup("$min_gtk_version");
26054 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26055 printf("%s, bad version string\n", "$min_gtk_version");
26056 exit(1);
26057 }
26058
26059 if ((gtk_major_version != $gtk_config_major_version) ||
26060 (gtk_minor_version != $gtk_config_minor_version) ||
26061 (gtk_micro_version != $gtk_config_micro_version))
26062 {
26063 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26064 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26065 gtk_major_version, gtk_minor_version, gtk_micro_version);
26066 printf ("*** was found! If gtk-config was correct, then it is best\n");
26067 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26068 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26069 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26070 printf("*** required on your system.\n");
26071 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26072 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26073 printf("*** before re-running configure\n");
26074 }
26075#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26076 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26077 (gtk_minor_version != GTK_MINOR_VERSION) ||
26078 (gtk_micro_version != GTK_MICRO_VERSION))
26079 {
26080 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26081 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26082 printf("*** library (version %d.%d.%d)\n",
26083 gtk_major_version, gtk_minor_version, gtk_micro_version);
26084 }
26085#endif /* defined (GTK_MAJOR_VERSION) ... */
26086 else
26087 {
26088 if ((gtk_major_version > major) ||
26089 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26090 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26091 {
26092 return 0;
26093 }
26094 else
26095 {
26096 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26097 gtk_major_version, gtk_minor_version, gtk_micro_version);
26098 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26099 major, minor, micro);
26100 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26101 printf("***\n");
26102 printf("*** If you have already installed a sufficiently new version, this error\n");
26103 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26104 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26105 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26106 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26107 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26108 printf("*** so that the correct libraries are found at run-time))\n");
26109 }
26110 }
26111 return 1;
26112}
26113
26114_ACEOF
26115rm -f conftest$ac_exeext
26116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26117 (eval $ac_link) 2>&5
26118 ac_status=$?
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122 (eval $ac_try) 2>&5
26123 ac_status=$?
26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125 (exit $ac_status); }; }; then
26126 :
26127else
26128 echo "$as_me: program exited with status $ac_status" >&5
26129echo "$as_me: failed program was:" >&5
26130sed 's/^/| /' conftest.$ac_ext >&5
26131
26132( exit $ac_status )
26133no_gtk=yes
26134fi
ac1cb8d3 26135rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26136fi
26137 CFLAGS="$ac_save_CFLAGS"
26138 LIBS="$ac_save_LIBS"
26139 fi
26140 fi
26141 if test "x$no_gtk" = x ; then
26142 echo "$as_me:$LINENO: result: yes" >&5
26143echo "${ECHO_T}yes" >&6
26144 wx_cv_lib_gtk=1.2.7
26145 else
26146 echo "$as_me:$LINENO: result: no" >&5
26147echo "${ECHO_T}no" >&6
26148 if test "$GTK_CONFIG" = "no" ; then
26149 echo "*** The gtk-config script installed by GTK could not be found"
26150 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26151 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26152 echo "*** full path to gtk-config."
26153 else
26154 if test -f conf.gtktest ; then
26155 :
26156 else
26157 echo "*** Could not run GTK test program, checking why..."
26158 CFLAGS="$CFLAGS $GTK_CFLAGS"
26159 LIBS="$LIBS $GTK_LIBS"
26160 cat >conftest.$ac_ext <<_ACEOF
26161/* confdefs.h. */
26162_ACEOF
26163cat confdefs.h >>conftest.$ac_ext
26164cat >>conftest.$ac_ext <<_ACEOF
26165/* end confdefs.h. */
26166
26167#include <gtk/gtk.h>
26168#include <stdio.h>
26169
26170int
26171main ()
26172{
26173 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26174 ;
26175 return 0;
26176}
26177_ACEOF
26178rm -f conftest.$ac_objext conftest$ac_exeext
26179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26180 (eval $ac_link) 2>conftest.er1
a848cd7e 26181 ac_status=$?
ac1cb8d3
VS
26182 grep -v '^ *+' conftest.er1 >conftest.err
26183 rm -f conftest.er1
26184 cat conftest.err >&5
a848cd7e
SC
26185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); } &&
6ebeb4c7 26187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26189 (eval $ac_try) 2>&5
26190 ac_status=$?
26191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); }; } &&
26193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195 (eval $ac_try) 2>&5
26196 ac_status=$?
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); }; }; then
26199 echo "*** The test program compiled, but did not run. This usually means"
26200 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26201 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26202 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26203 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26204 echo "*** is required on your system"
26205 echo "***"
26206 echo "*** If you have an old version installed, it is best to remove it, although"
26207 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26208 echo "***"
26209 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26210 echo "*** came with the system with the command"
26211 echo "***"
26212 echo "*** rpm --erase --nodeps gtk gtk-devel"
26213else
26214 echo "$as_me: failed program was:" >&5
26215sed 's/^/| /' conftest.$ac_ext >&5
26216
26217 echo "*** The test program failed to compile or link. See the file config.log for the"
26218 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26219 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26220 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26221fi
ac1cb8d3
VS
26222rm -f conftest.err conftest.$ac_objext \
26223 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26224 CFLAGS="$ac_save_CFLAGS"
26225 LIBS="$ac_save_LIBS"
26226 fi
26227 fi
26228 GTK_CFLAGS=""
26229 GTK_LIBS=""
26230 :
26231 fi
26232
26233
26234 rm -f conf.gtktest
26235
26236
f34ca037 26237 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26238
26239# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26240if test "${with_gtk_prefix+set}" = set; then
26241 withval="$with_gtk_prefix"
26242 gtk_config_prefix="$withval"
26243else
26244 gtk_config_prefix=""
26245fi;
26246
26247# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26248if test "${with_gtk_exec_prefix+set}" = set; then
26249 withval="$with_gtk_exec_prefix"
26250 gtk_config_exec_prefix="$withval"
26251else
26252 gtk_config_exec_prefix=""
26253fi;
26254# Check whether --enable-gtktest or --disable-gtktest was given.
26255if test "${enable_gtktest+set}" = set; then
26256 enableval="$enable_gtktest"
26257
26258else
26259 enable_gtktest=yes
26260fi;
26261
26262 for module in . $GTK_MODULES
26263 do
26264 case "$module" in
26265 gthread)
26266 gtk_config_args="$gtk_config_args gthread"
26267 ;;
26268 esac
26269 done
26270
26271 if test x$gtk_config_exec_prefix != x ; then
26272 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26273 if test x${GTK_CONFIG+set} != xset ; then
26274 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26275 fi
26276 fi
26277 if test x$gtk_config_prefix != x ; then
26278 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26279 if test x${GTK_CONFIG+set} != xset ; then
26280 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26281 fi
26282 fi
26283
26284 # Extract the first word of "gtk-config", so it can be a program name with args.
26285set dummy gtk-config; ac_word=$2
26286echo "$as_me:$LINENO: checking for $ac_word" >&5
26287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26288if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26289 echo $ECHO_N "(cached) $ECHO_C" >&6
26290else
26291 case $GTK_CONFIG in
26292 [\\/]* | ?:[\\/]*)
26293 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26294 ;;
26295 *)
26296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26297for as_dir in $PATH
26298do
26299 IFS=$as_save_IFS
26300 test -z "$as_dir" && as_dir=.
26301 for ac_exec_ext in '' $ac_executable_extensions; do
26302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26303 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26305 break 2
26306 fi
26307done
26308done
26309
26310 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26311 ;;
26312esac
26313fi
26314GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26315
26316if test -n "$GTK_CONFIG"; then
26317 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26318echo "${ECHO_T}$GTK_CONFIG" >&6
26319else
26320 echo "$as_me:$LINENO: result: no" >&5
26321echo "${ECHO_T}no" >&6
26322fi
26323
26324 min_gtk_version=1.2.3
26325 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26326echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26327 no_gtk=""
26328 if test "$GTK_CONFIG" = "no" ; then
26329 no_gtk=yes
26330 else
26331 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26332 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26333 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26334 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26335 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26336 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26337 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26338 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26339 if test "x$enable_gtktest" = "xyes" ; then
26340 ac_save_CFLAGS="$CFLAGS"
26341 ac_save_LIBS="$LIBS"
26342 CFLAGS="$CFLAGS $GTK_CFLAGS"
26343 LIBS="$GTK_LIBS $LIBS"
26344 rm -f conf.gtktest
26345 if test "$cross_compiling" = yes; then
26346 echo $ac_n "cross compiling; assumed OK... $ac_c"
26347else
26348 cat >conftest.$ac_ext <<_ACEOF
26349/* confdefs.h. */
26350_ACEOF
26351cat confdefs.h >>conftest.$ac_ext
26352cat >>conftest.$ac_ext <<_ACEOF
26353/* end confdefs.h. */
26354
26355#include <gtk/gtk.h>
26356#include <stdio.h>
26357#include <stdlib.h>
26358
26359int
26360main ()
26361{
26362 int major, minor, micro;
26363 char *tmp_version;
26364
26365 system ("touch conf.gtktest");
26366
26367 /* HP/UX 9 (%@#!) writes to sscanf strings */
26368 tmp_version = g_strdup("$min_gtk_version");
26369 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26370 printf("%s, bad version string\n", "$min_gtk_version");
26371 exit(1);
26372 }
26373
26374 if ((gtk_major_version != $gtk_config_major_version) ||
26375 (gtk_minor_version != $gtk_config_minor_version) ||
26376 (gtk_micro_version != $gtk_config_micro_version))
26377 {
26378 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26379 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26380 gtk_major_version, gtk_minor_version, gtk_micro_version);
26381 printf ("*** was found! If gtk-config was correct, then it is best\n");
26382 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26383 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26384 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26385 printf("*** required on your system.\n");
26386 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26387 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26388 printf("*** before re-running configure\n");
26389 }
26390#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26391 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26392 (gtk_minor_version != GTK_MINOR_VERSION) ||
26393 (gtk_micro_version != GTK_MICRO_VERSION))
26394 {
26395 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26396 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26397 printf("*** library (version %d.%d.%d)\n",
26398 gtk_major_version, gtk_minor_version, gtk_micro_version);
26399 }
26400#endif /* defined (GTK_MAJOR_VERSION) ... */
26401 else
26402 {
26403 if ((gtk_major_version > major) ||
26404 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26405 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26406 {
26407 return 0;
26408 }
26409 else
26410 {
26411 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26412 gtk_major_version, gtk_minor_version, gtk_micro_version);
26413 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26414 major, minor, micro);
26415 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26416 printf("***\n");
26417 printf("*** If you have already installed a sufficiently new version, this error\n");
26418 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26419 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26420 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26421 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26422 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26423 printf("*** so that the correct libraries are found at run-time))\n");
26424 }
26425 }
26426 return 1;
26427}
26428
26429_ACEOF
26430rm -f conftest$ac_exeext
26431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26432 (eval $ac_link) 2>&5
26433 ac_status=$?
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26437 (eval $ac_try) 2>&5
26438 ac_status=$?
26439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); }; }; then
26441 :
26442else
26443 echo "$as_me: program exited with status $ac_status" >&5
26444echo "$as_me: failed program was:" >&5
26445sed 's/^/| /' conftest.$ac_ext >&5
26446
26447( exit $ac_status )
26448no_gtk=yes
26449fi
ac1cb8d3 26450rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26451fi
26452 CFLAGS="$ac_save_CFLAGS"
26453 LIBS="$ac_save_LIBS"
26454 fi
26455 fi
26456 if test "x$no_gtk" = x ; then
26457 echo "$as_me:$LINENO: result: yes" >&5
26458echo "${ECHO_T}yes" >&6
26459 wx_cv_lib_gtk=1.2.3
26460 else
26461 echo "$as_me:$LINENO: result: no" >&5
26462echo "${ECHO_T}no" >&6
26463 if test "$GTK_CONFIG" = "no" ; then
26464 echo "*** The gtk-config script installed by GTK could not be found"
26465 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26466 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26467 echo "*** full path to gtk-config."
26468 else
26469 if test -f conf.gtktest ; then
26470 :
26471 else
26472 echo "*** Could not run GTK test program, checking why..."
26473 CFLAGS="$CFLAGS $GTK_CFLAGS"
26474 LIBS="$LIBS $GTK_LIBS"
26475 cat >conftest.$ac_ext <<_ACEOF
26476/* confdefs.h. */
26477_ACEOF
26478cat confdefs.h >>conftest.$ac_ext
26479cat >>conftest.$ac_ext <<_ACEOF
26480/* end confdefs.h. */
26481
26482#include <gtk/gtk.h>
26483#include <stdio.h>
26484
26485int
26486main ()
26487{
26488 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26489 ;
26490 return 0;
26491}
26492_ACEOF
26493rm -f conftest.$ac_objext conftest$ac_exeext
26494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26495 (eval $ac_link) 2>conftest.er1
a848cd7e 26496 ac_status=$?
ac1cb8d3
VS
26497 grep -v '^ *+' conftest.er1 >conftest.err
26498 rm -f conftest.er1
26499 cat conftest.err >&5
a848cd7e
SC
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); } &&
6ebeb4c7 26502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26504 (eval $ac_try) 2>&5
26505 ac_status=$?
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); }; } &&
26508 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26510 (eval $ac_try) 2>&5
26511 ac_status=$?
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); }; }; then
26514 echo "*** The test program compiled, but did not run. This usually means"
26515 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26516 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26517 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26518 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26519 echo "*** is required on your system"
26520 echo "***"
26521 echo "*** If you have an old version installed, it is best to remove it, although"
26522 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26523 echo "***"
26524 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26525 echo "*** came with the system with the command"
26526 echo "***"
26527 echo "*** rpm --erase --nodeps gtk gtk-devel"
26528else
26529 echo "$as_me: failed program was:" >&5
26530sed 's/^/| /' conftest.$ac_ext >&5
26531
26532 echo "*** The test program failed to compile or link. See the file config.log for the"
26533 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26534 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26535 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26536fi
ac1cb8d3
VS
26537rm -f conftest.err conftest.$ac_objext \
26538 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26539 CFLAGS="$ac_save_CFLAGS"
26540 LIBS="$ac_save_LIBS"
26541 fi
26542 fi
26543 GTK_CFLAGS=""
26544 GTK_LIBS=""
26545 :
26546 fi
26547
26548
26549 rm -f conf.gtktest
26550
f34ca037 26551 fi
a848cd7e
SC
26552 fi
26553 fi
26554
26555 if test -z "$wx_cv_lib_gtk"; then
26556 wx_cv_lib_gtk=none
26557 else
26558 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 26559 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
26560 fi
26561
26562
26563fi
26564
26565
26566 if test "$gtk_version_cached" = 1; then
26567 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26568echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26569 fi
26570
26571 case "$wx_cv_lib_gtk" in
26572 2.0) WXGTK20=1
26573 TOOLKIT_VERSION=2
26574 ;;
26575 1.2.7) WXGTK127=1
26576 WXGTK12=1
26577 ;;
26578 1.2.3) WXGTK12=1
26579 ;;
26580 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26581The development files for GTK+ were not found. For GTK+ 2, please
26582ensure that pkg-config is in the path and that gtk+-2.0.pc is
26583installed. For GTK+ 1.2 please check that gtk-config is in the path,
26584and that the version is 1.2.3 or above. Also check that the
26585libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26586--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26587 " >&5
26588echo "$as_me: error:
f597b41c
MW
26589The development files for GTK+ were not found. For GTK+ 2, please
26590ensure that pkg-config is in the path and that gtk+-2.0.pc is
26591installed. For GTK+ 1.2 please check that gtk-config is in the path,
26592and that the version is 1.2.3 or above. Also check that the
26593libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26594--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26595 " >&2;}
26596 { (exit 1); exit 1; }; }
26597 ;;
26598 esac
26599
26600 if test "$WXGTK20" = 1; then
304205f1
VS
26601 save_CFLAGS="$CFLAGS"
26602 save_LIBS="$LIBS"
9d271838 26603 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 26604 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26605
d12aef51
VZ
26606 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26607echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26608 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26609/* confdefs.h. */
26610_ACEOF
26611cat confdefs.h >>conftest.$ac_ext
26612cat >>conftest.$ac_ext <<_ACEOF
26613/* end confdefs.h. */
304205f1 26614
d12aef51 26615 #include <gtk/gtk.h>
304205f1 26616
d12aef51
VZ
26617int
26618main ()
26619{
304205f1 26620
d12aef51 26621 void *f = gtk_icon_size_lookup;
abc736fd
MW
26622
26623 ;
26624 return 0;
26625}
26626_ACEOF
26627rm -f conftest.$ac_objext
26628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26629 (eval $ac_compile) 2>conftest.er1
26630 ac_status=$?
26631 grep -v '^ *+' conftest.er1 >conftest.err
26632 rm -f conftest.er1
26633 cat conftest.err >&5
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); } &&
6ebeb4c7 26636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
26637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; } &&
26642 { ac_try='test -s conftest.$ac_objext'
26643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); }; }; then
26648
26649 echo "$as_me:$LINENO: result: no" >&5
26650echo "${ECHO_T}no" >&6
26651
26652else
26653 echo "$as_me: failed program was:" >&5
26654sed 's/^/| /' conftest.$ac_ext >&5
26655
26656
26657 cat >>confdefs.h <<\_ACEOF
26658#define NEED_GTK_ICON_SIZE_LOOKUP 1
26659_ACEOF
26660
26661 echo "$as_me:$LINENO: result: yes" >&5
26662echo "${ECHO_T}yes" >&6
26663
26664fi
26665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26666
9755e73b
VS
26667 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26668echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26669 cat >conftest.$ac_ext <<_ACEOF
26670/* confdefs.h. */
26671_ACEOF
26672cat confdefs.h >>conftest.$ac_ext
26673cat >>conftest.$ac_ext <<_ACEOF
26674/* end confdefs.h. */
26675
26676 #include <gtk/gtk.h>
26677
26678int
26679main ()
26680{
26681
26682 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26683 Not GTK+ 2.4
9755e73b
VS
26684 #endif
26685
26686 ;
26687 return 0;
26688}
26689_ACEOF
26690rm -f conftest.$ac_objext
26691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26692 (eval $ac_compile) 2>conftest.er1
26693 ac_status=$?
26694 grep -v '^ *+' conftest.er1 >conftest.err
26695 rm -f conftest.er1
26696 cat conftest.err >&5
26697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26698 (exit $ac_status); } &&
6ebeb4c7 26699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
26700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26701 (eval $ac_try) 2>&5
26702 ac_status=$?
26703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); }; } &&
26705 { ac_try='test -s conftest.$ac_objext'
26706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26707 (eval $ac_try) 2>&5
26708 ac_status=$?
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); }; }; then
26711
26712 cat >>confdefs.h <<\_ACEOF
26713#define __WXGTK24__ 1
26714_ACEOF
26715
26716 echo "$as_me:$LINENO: result: yes" >&5
26717echo "${ECHO_T}yes" >&6
26718
26719else
26720 echo "$as_me: failed program was:" >&5
26721sed 's/^/| /' conftest.$ac_ext >&5
26722
26723
26724 echo "$as_me:$LINENO: result: no" >&5
26725echo "${ECHO_T}no" >&6
26726
26727fi
26728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26729
304205f1
VS
26730 CFLAGS="$save_CFLAGS"
26731 LIBS="$save_LIBS"
a848cd7e
SC
26732 else
26733 if test "$wxUSE_UNICODE" = "yes"; then
26734 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26735echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26736 wxUSE_UNICODE=no
26737 fi
26738 fi
26739
26740 if test "$USE_DARWIN" != 1; then
26741
26742for ac_func in poll
26743do
26744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26745echo "$as_me:$LINENO: checking for $ac_func" >&5
26746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26747if eval "test \"\${$as_ac_var+set}\" = set"; then
26748 echo $ECHO_N "(cached) $ECHO_C" >&6
26749else
26750 cat >conftest.$ac_ext <<_ACEOF
26751/* confdefs.h. */
26752_ACEOF
26753cat confdefs.h >>conftest.$ac_ext
26754cat >>conftest.$ac_ext <<_ACEOF
26755/* end confdefs.h. */
ac1cb8d3
VS
26756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26758#define $ac_func innocuous_$ac_func
26759
a848cd7e
SC
26760/* System header to define __stub macros and hopefully few prototypes,
26761 which can conflict with char $ac_func (); below.
26762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26763 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26764
a848cd7e
SC
26765#ifdef __STDC__
26766# include <limits.h>
26767#else
26768# include <assert.h>
26769#endif
ac1cb8d3
VS
26770
26771#undef $ac_func
26772
a848cd7e
SC
26773/* Override any gcc2 internal prototype to avoid an error. */
26774#ifdef __cplusplus
26775extern "C"
26776{
26777#endif
26778/* We use char because int might match the return type of a gcc2
26779 builtin and then its argument prototype would still apply. */
26780char $ac_func ();
26781/* The GNU C library defines this for functions which it implements
26782 to always fail with ENOSYS. Some functions are actually named
26783 something starting with __ and the normal name is an alias. */
26784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26785choke me
26786#else
26787char (*f) () = $ac_func;
26788#endif
26789#ifdef __cplusplus
26790}
26791#endif
26792
26793int
26794main ()
26795{
26796return f != $ac_func;
26797 ;
26798 return 0;
26799}
26800_ACEOF
26801rm -f conftest.$ac_objext conftest$ac_exeext
26802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26803 (eval $ac_link) 2>conftest.er1
a848cd7e 26804 ac_status=$?
ac1cb8d3
VS
26805 grep -v '^ *+' conftest.er1 >conftest.err
26806 rm -f conftest.er1
26807 cat conftest.err >&5
a848cd7e
SC
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); } &&
6ebeb4c7 26810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26812 (eval $ac_try) 2>&5
26813 ac_status=$?
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); }; } &&
26816 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26818 (eval $ac_try) 2>&5
26819 ac_status=$?
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); }; }; then
26822 eval "$as_ac_var=yes"
26823else
26824 echo "$as_me: failed program was:" >&5
26825sed 's/^/| /' conftest.$ac_ext >&5
26826
26827eval "$as_ac_var=no"
26828fi
ac1cb8d3
VS
26829rm -f conftest.err conftest.$ac_objext \
26830 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26831fi
26832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26833echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26834if test `eval echo '${'$as_ac_var'}'` = yes; then
26835 cat >>confdefs.h <<_ACEOF
26836#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26837_ACEOF
26838
26839fi
26840done
26841
26842 fi
26843
26844 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
26845 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
26846
26847 AFMINSTALL=afminstall
26848 TOOLKIT=GTK
26849 GUIDIST=GTK_DIST
26850
26851 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
26852echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
26853if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
26854 echo $ECHO_N "(cached) $ECHO_C" >&6
26855else
26856 ac_check_lib_save_LIBS=$LIBS
26857LIBS="-lgdk $LIBS"
26858cat >conftest.$ac_ext <<_ACEOF
26859/* confdefs.h. */
26860_ACEOF
26861cat confdefs.h >>conftest.$ac_ext
26862cat >>conftest.$ac_ext <<_ACEOF
26863/* end confdefs.h. */
26864
26865/* Override any gcc2 internal prototype to avoid an error. */
26866#ifdef __cplusplus
26867extern "C"
26868#endif
26869/* We use char because int might match the return type of a gcc2
26870 builtin and then its argument prototype would still apply. */
26871char gdk_im_open ();
26872int
26873main ()
26874{
26875gdk_im_open ();
26876 ;
26877 return 0;
26878}
26879_ACEOF
26880rm -f conftest.$ac_objext conftest$ac_exeext
26881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26882 (eval $ac_link) 2>conftest.er1
a848cd7e 26883 ac_status=$?
ac1cb8d3
VS
26884 grep -v '^ *+' conftest.er1 >conftest.err
26885 rm -f conftest.er1
26886 cat conftest.err >&5
a848cd7e
SC
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); } &&
6ebeb4c7 26889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; } &&
26895 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897 (eval $ac_try) 2>&5
26898 ac_status=$?
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); }; }; then
26901 ac_cv_lib_gdk_gdk_im_open=yes
26902else
26903 echo "$as_me: failed program was:" >&5
26904sed 's/^/| /' conftest.$ac_ext >&5
26905
26906ac_cv_lib_gdk_gdk_im_open=no
26907fi
ac1cb8d3
VS
26908rm -f conftest.err conftest.$ac_objext \
26909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26910LIBS=$ac_check_lib_save_LIBS
26911fi
26912echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26913echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26914if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26915 cat >>confdefs.h <<\_ACEOF
26916#define HAVE_XIM 1
26917_ACEOF
26918
26919fi
26920
26921
26922
26923 if test "$wxUSE_GPE" = "yes"; then
26924 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26925echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26926
0ad5d837
VZ
26927 ac_find_libraries=
26928 for ac_dir in $SEARCH_LIB;
a848cd7e 26929 do
3eca31dc 26930 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
26931 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26932 ac_find_libraries=$ac_dir
26933 break 2
26934 fi
26935 done
26936 done
26937
26938 if test "$ac_find_libraries" != "" ; then
26939
0ad5d837 26940 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
26941 ac_path_to_link=""
26942 else
0ad5d837
VZ
26943 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26944 result=$?
26945 if test $result = 0; then
26946 ac_path_to_link=""
26947 else
26948 ac_path_to_link=" -L$ac_find_libraries"
26949 fi
a848cd7e
SC
26950 fi
26951
26952 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26953 WXGPE=1
0ad5d837
VZ
26954 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
26955echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
26956 else
26957 echo "$as_me:$LINENO: result: not found" >&5
26958echo "${ECHO_T}not found" >&6
26959 fi
26960
26961 fi
26962 fi
26963
26964 if test "$wxUSE_MGL" = 1; then
26965 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26966echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26967 if test "x$MGL_ROOT" = x ; then
26968 echo "$as_me:$LINENO: result: not found" >&5
26969echo "${ECHO_T}not found" >&6
26970 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26971echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26972 { (exit 1); exit 1; }; }
26973 else
26974 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26975echo "${ECHO_T}$MGL_ROOT" >&6
26976 fi
26977
26978 echo "$as_me:$LINENO: checking for libmgl location" >&5
26979echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26980 case "${host}" in
26981 *-*-linux* )
26982 if test "x$wxUSE_SHARED" = xyes ; then
26983 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26984 else
26985 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26986 fi
26987 ;;
26988 *-pc-msdosdjgpp )
26989 mgl_os_candidates="dos32/dj2"
26990 ;;
26991 *)
26992 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26993echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26994 { (exit 1); exit 1; }; }
26995 esac
26996
26997 mgl_lib_type=""
26998 mgl_os=""
26999
27000 for mgl_os_i in $mgl_os_candidates ; do
27001 if test "x$mgl_os" = x ; then
27002 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27003 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27004 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27005 mgl_lib_type=debug
27006 mgl_os=$mgl_os_i
27007 fi
27008 fi
27009 if test "x$mgl_lib_type" = x ; then
27010 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27011 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27012 mgl_lib_type=release
27013 mgl_os=$mgl_os_i
27014 fi
27015 fi
27016 fi
27017 done
27018
27019 if test "x$mgl_os" = x ; then
27020 echo "$as_me:$LINENO: result: not found" >&5
27021echo "${ECHO_T}not found" >&6
27022 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27023echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27024 { (exit 1); exit 1; }; }
27025 fi
27026 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27027echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27028
27029 wxUSE_UNIVERSAL="yes"
27030
27031 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27032 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27033
27034 AFMINSTALL=afminstall
27035 TOOLKIT=MGL
27036 GUIDIST=MGL_DIST
27037 fi
27038
27039 if test "$wxUSE_MICROWIN" = 1; then
27040 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27041echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27042 if test "x$MICROWINDOWS" = x ; then
27043 echo "$as_me:$LINENO: result: not found" >&5
27044echo "${ECHO_T}not found" >&6
27045 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27046echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27047 { (exit 1); exit 1; }; }
27048 else
27049 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27050echo "${ECHO_T}$MICROWINDOWS" >&6
27051 fi
27052
27053 if test -f $MICROWINDOWS/lib/libmwin.a; then
27054 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27055echo "${ECHO_T}MicroWindows' libraries found." >&6
27056 else
27057 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27058echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27059 { (exit 1); exit 1; }; }
27060 fi
27061
27062 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27063 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27064
27065 wxUSE_UNIVERSAL="yes"
27066
27067 AFMINSTALL=afminstall
27068 TOOLKIT=MICROWIN
27069 GUIDIST=MICROWIN_DIST
27070
27071 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27072 fi
27073
74b84332 27074 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
27075
27076if test "x$ac_path_x_has_been_run" != xyes; then
27077 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27078echo $ECHO_N "checking for X... $ECHO_C" >&6
27079
6ebeb4c7 27080ac_path_x_has_been_run=yes
a848cd7e
SC
27081
27082# Check whether --with-x or --without-x was given.
27083if test "${with_x+set}" = set; then
27084 withval="$with_x"
27085
27086fi;
27087# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27088if test "x$with_x" = xno; then
27089 # The user explicitly disabled X.
27090 have_x=disabled
27091else
27092 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27093 # Both variables are already set.
27094 have_x=yes
27095 else
27096 if test "${ac_cv_have_x+set}" = set; then
27097 echo $ECHO_N "(cached) $ECHO_C" >&6
27098else
27099 # One or both of the vars are not set, and there is no cached value.
27100ac_x_includes=no ac_x_libraries=no
27101rm -fr conftest.dir
27102if mkdir conftest.dir; then
27103 cd conftest.dir
27104 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27105 cat >Imakefile <<'_ACEOF'
27106acfindx:
27107 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27108_ACEOF
27109 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27110 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27111 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27112 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27113 for ac_extension in a so sl; do
27114 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27115 test -f $ac_im_libdir/libX11.$ac_extension; then
27116 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27117 fi
27118 done
27119 # Screen out bogus values from the imake configuration. They are
27120 # bogus both because they are the default anyway, and because
27121 # using them would break gcc on systems where it needs fixed includes.
27122 case $ac_im_incroot in
27123 /usr/include) ;;
27124 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27125 esac
27126 case $ac_im_usrlibdir in
27127 /usr/lib | /lib) ;;
27128 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27129 esac
27130 fi
27131 cd ..
27132 rm -fr conftest.dir
27133fi
27134
27135# Standard set of common directories for X headers.
27136# Check X11 before X11Rn because it is often a symlink to the current release.
27137ac_x_header_dirs='
27138/usr/X11/include
27139/usr/X11R6/include
27140/usr/X11R5/include
27141/usr/X11R4/include
27142
27143/usr/include/X11
27144/usr/include/X11R6
27145/usr/include/X11R5
27146/usr/include/X11R4
27147
27148/usr/local/X11/include
27149/usr/local/X11R6/include
27150/usr/local/X11R5/include
27151/usr/local/X11R4/include
27152
27153/usr/local/include/X11
27154/usr/local/include/X11R6
27155/usr/local/include/X11R5
27156/usr/local/include/X11R4
27157
27158/usr/X386/include
27159/usr/x386/include
27160/usr/XFree86/include/X11
27161
27162/usr/include
27163/usr/local/include
27164/usr/unsupported/include
27165/usr/athena/include
27166/usr/local/x11r5/include
27167/usr/lpp/Xamples/include
27168
27169/usr/openwin/include
27170/usr/openwin/share/include'
27171
27172if test "$ac_x_includes" = no; then
6ebeb4c7 27173 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
27174 # First, try using that file with no special directory specified.
27175 cat >conftest.$ac_ext <<_ACEOF
27176/* confdefs.h. */
27177_ACEOF
27178cat confdefs.h >>conftest.$ac_ext
27179cat >>conftest.$ac_ext <<_ACEOF
27180/* end confdefs.h. */
27181#include <X11/Intrinsic.h>
27182_ACEOF
27183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27185 ac_status=$?
27186 grep -v '^ *+' conftest.er1 >conftest.err
27187 rm -f conftest.er1
27188 cat conftest.err >&5
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); } >/dev/null; then
27191 if test -s conftest.err; then
27192 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27194 else
27195 ac_cpp_err=
27196 fi
27197else
27198 ac_cpp_err=yes
27199fi
27200if test -z "$ac_cpp_err"; then
27201 # We can compile using X headers with no special include directory.
27202ac_x_includes=
27203else
27204 echo "$as_me: failed program was:" >&5
27205sed 's/^/| /' conftest.$ac_ext >&5
27206
27207 for ac_dir in $ac_x_header_dirs; do
27208 if test -r "$ac_dir/X11/Intrinsic.h"; then
27209 ac_x_includes=$ac_dir
27210 break
27211 fi
27212done
27213fi
27214rm -f conftest.err conftest.$ac_ext
27215fi # $ac_x_includes = no
27216
27217if test "$ac_x_libraries" = no; then
27218 # Check for the libraries.
27219 # See if we find them without any special options.
27220 # Don't add to $LIBS permanently.
27221 ac_save_LIBS=$LIBS
27222 LIBS="-lXt $LIBS"
27223 cat >conftest.$ac_ext <<_ACEOF
27224/* confdefs.h. */
27225_ACEOF
27226cat confdefs.h >>conftest.$ac_ext
27227cat >>conftest.$ac_ext <<_ACEOF
27228/* end confdefs.h. */
27229#include <X11/Intrinsic.h>
27230int
27231main ()
27232{
27233XtMalloc (0)
27234 ;
27235 return 0;
27236}
27237_ACEOF
27238rm -f conftest.$ac_objext conftest$ac_exeext
27239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27240 (eval $ac_link) 2>conftest.er1
a848cd7e 27241 ac_status=$?
ac1cb8d3
VS
27242 grep -v '^ *+' conftest.er1 >conftest.err
27243 rm -f conftest.er1
27244 cat conftest.err >&5
a848cd7e
SC
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); } &&
6ebeb4c7 27247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249 (eval $ac_try) 2>&5
27250 ac_status=$?
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; } &&
27253 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255 (eval $ac_try) 2>&5
27256 ac_status=$?
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); }; }; then
27259 LIBS=$ac_save_LIBS
27260# We can link X programs with no special library path.
27261ac_x_libraries=
27262else
27263 echo "$as_me: failed program was:" >&5
27264sed 's/^/| /' conftest.$ac_ext >&5
27265
27266LIBS=$ac_save_LIBS
27267for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27268do
27269 # Don't even attempt the hair of trying to link an X program!
27270 for ac_extension in a so sl; do
27271 if test -r $ac_dir/libXt.$ac_extension; then
27272 ac_x_libraries=$ac_dir
27273 break 2
27274 fi
27275 done
27276done
27277fi
ac1cb8d3
VS
27278rm -f conftest.err conftest.$ac_objext \
27279 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27280fi # $ac_x_libraries = no
27281
27282if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27283 # Didn't find X anywhere. Cache the known absence of X.
27284 ac_cv_have_x="have_x=no"
27285else
27286 # Record where we found X for the cache.
27287 ac_cv_have_x="have_x=yes \
ac1cb8d3 27288 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27289fi
27290fi
27291
27292 fi
27293 eval "$ac_cv_have_x"
27294fi # $with_x != no
27295
27296if test "$have_x" != yes; then
27297 echo "$as_me:$LINENO: result: $have_x" >&5
27298echo "${ECHO_T}$have_x" >&6
27299 no_x=yes
27300else
27301 # If each of the values was on the command line, it overrides each guess.
27302 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27303 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27304 # Update the cache value to reflect the command line values.
27305 ac_cv_have_x="have_x=yes \
27306 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
27307 # It might be that x_includes is empty (headers are found in the
27308 # standard search path. Then output the corresponding message
27309 ac_out_x_includes=$x_includes
27310 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
27311 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
27312echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
27313fi
27314
6ebeb4c7 27315fi
a848cd7e
SC
27316if test "$no_x" = yes; then
27317 # Not all programs may use this symbol, but it does not hurt to define it.
27318
27319cat >>confdefs.h <<\_ACEOF
27320#define X_DISPLAY_MISSING 1
27321_ACEOF
27322
27323 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27324else
27325 if test -n "$x_includes"; then
27326 X_CFLAGS="$X_CFLAGS -I$x_includes"
27327 fi
27328
27329 # It would also be nice to do this for all -L options, not just this one.
27330 if test -n "$x_libraries"; then
27331 X_LIBS="$X_LIBS -L$x_libraries"
27332 # For Solaris; some versions of Sun CC require a space after -R and
27333 # others require no space. Words are not sufficient . . . .
27334 case `(uname -sr) 2>/dev/null` in
27335 "SunOS 5"*)
27336 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27337echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27338 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27339 cat >conftest.$ac_ext <<_ACEOF
27340/* confdefs.h. */
27341_ACEOF
27342cat confdefs.h >>conftest.$ac_ext
27343cat >>conftest.$ac_ext <<_ACEOF
27344/* end confdefs.h. */
27345
27346int
27347main ()
27348{
27349
27350 ;
27351 return 0;
27352}
27353_ACEOF
27354rm -f conftest.$ac_objext conftest$ac_exeext
27355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27356 (eval $ac_link) 2>conftest.er1
a848cd7e 27357 ac_status=$?
ac1cb8d3
VS
27358 grep -v '^ *+' conftest.er1 >conftest.err
27359 rm -f conftest.er1
27360 cat conftest.err >&5
a848cd7e
SC
27361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); } &&
6ebeb4c7 27363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27365 (eval $ac_try) 2>&5
27366 ac_status=$?
27367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); }; } &&
27369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371 (eval $ac_try) 2>&5
27372 ac_status=$?
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; }; then
27375 ac_R_nospace=yes
27376else
27377 echo "$as_me: failed program was:" >&5
27378sed 's/^/| /' conftest.$ac_ext >&5
27379
27380ac_R_nospace=no
27381fi
ac1cb8d3
VS
27382rm -f conftest.err conftest.$ac_objext \
27383 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27384 if test $ac_R_nospace = yes; then
27385 echo "$as_me:$LINENO: result: no" >&5
27386echo "${ECHO_T}no" >&6
27387 X_LIBS="$X_LIBS -R$x_libraries"
27388 else
27389 LIBS="$ac_xsave_LIBS -R $x_libraries"
27390 cat >conftest.$ac_ext <<_ACEOF
27391/* confdefs.h. */
27392_ACEOF
27393cat confdefs.h >>conftest.$ac_ext
27394cat >>conftest.$ac_ext <<_ACEOF
27395/* end confdefs.h. */
27396
27397int
27398main ()
27399{
27400
27401 ;
27402 return 0;
27403}
27404_ACEOF
27405rm -f conftest.$ac_objext conftest$ac_exeext
27406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27407 (eval $ac_link) 2>conftest.er1
a848cd7e 27408 ac_status=$?
ac1cb8d3
VS
27409 grep -v '^ *+' conftest.er1 >conftest.err
27410 rm -f conftest.er1
27411 cat conftest.err >&5
a848cd7e
SC
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); } &&
6ebeb4c7 27414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416 (eval $ac_try) 2>&5
27417 ac_status=$?
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); }; } &&
27420 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27422 (eval $ac_try) 2>&5
27423 ac_status=$?
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); }; }; then
27426 ac_R_space=yes
27427else
27428 echo "$as_me: failed program was:" >&5
27429sed 's/^/| /' conftest.$ac_ext >&5
27430
27431ac_R_space=no
27432fi
ac1cb8d3
VS
27433rm -f conftest.err conftest.$ac_objext \
27434 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27435 if test $ac_R_space = yes; then
27436 echo "$as_me:$LINENO: result: yes" >&5
27437echo "${ECHO_T}yes" >&6
27438 X_LIBS="$X_LIBS -R $x_libraries"
27439 else
27440 echo "$as_me:$LINENO: result: neither works" >&5
27441echo "${ECHO_T}neither works" >&6
27442 fi
27443 fi
27444 LIBS=$ac_xsave_LIBS
27445 esac
27446 fi
27447
27448 # Check for system-dependent libraries X programs must link with.
27449 # Do this before checking for the system-independent R6 libraries
27450 # (-lICE), since we may need -lsocket or whatever for X linking.
27451
27452 if test "$ISC" = yes; then
27453 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27454 else
27455 # Martyn Johnson says this is needed for Ultrix, if the X
27456 # libraries were built with DECnet support. And Karl Berry says
27457 # the Alpha needs dnet_stub (dnet does not exist).
27458 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27459 cat >conftest.$ac_ext <<_ACEOF
27460/* confdefs.h. */
27461_ACEOF
27462cat confdefs.h >>conftest.$ac_ext
27463cat >>conftest.$ac_ext <<_ACEOF
27464/* end confdefs.h. */
27465
27466/* Override any gcc2 internal prototype to avoid an error. */
27467#ifdef __cplusplus
27468extern "C"
27469#endif
27470/* We use char because int might match the return type of a gcc2
27471 builtin and then its argument prototype would still apply. */
27472char XOpenDisplay ();
27473int
27474main ()
27475{
27476XOpenDisplay ();
27477 ;
27478 return 0;
27479}
27480_ACEOF
27481rm -f conftest.$ac_objext conftest$ac_exeext
27482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27483 (eval $ac_link) 2>conftest.er1
a848cd7e 27484 ac_status=$?
ac1cb8d3
VS
27485 grep -v '^ *+' conftest.er1 >conftest.err
27486 rm -f conftest.er1
27487 cat conftest.err >&5
a848cd7e
SC
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); } &&
6ebeb4c7 27490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27492 (eval $ac_try) 2>&5
27493 ac_status=$?
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); }; } &&
27496 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27498 (eval $ac_try) 2>&5
27499 ac_status=$?
27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); }; }; then
27502 :
27503else
27504 echo "$as_me: failed program was:" >&5
27505sed 's/^/| /' conftest.$ac_ext >&5
27506
27507echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27508echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27509if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27510 echo $ECHO_N "(cached) $ECHO_C" >&6
27511else
27512 ac_check_lib_save_LIBS=$LIBS
27513LIBS="-ldnet $LIBS"
27514cat >conftest.$ac_ext <<_ACEOF
27515/* confdefs.h. */
27516_ACEOF
27517cat confdefs.h >>conftest.$ac_ext
27518cat >>conftest.$ac_ext <<_ACEOF
27519/* end confdefs.h. */
27520
27521/* Override any gcc2 internal prototype to avoid an error. */
27522#ifdef __cplusplus
27523extern "C"
27524#endif
27525/* We use char because int might match the return type of a gcc2
27526 builtin and then its argument prototype would still apply. */
27527char dnet_ntoa ();
27528int
27529main ()
27530{
27531dnet_ntoa ();
27532 ;
27533 return 0;
27534}
27535_ACEOF
27536rm -f conftest.$ac_objext conftest$ac_exeext
27537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27538 (eval $ac_link) 2>conftest.er1
a848cd7e 27539 ac_status=$?
ac1cb8d3
VS
27540 grep -v '^ *+' conftest.er1 >conftest.err
27541 rm -f conftest.er1
27542 cat conftest.err >&5
a848cd7e
SC
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); } &&
6ebeb4c7 27545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27547 (eval $ac_try) 2>&5
27548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; } &&
27551 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27553 (eval $ac_try) 2>&5
27554 ac_status=$?
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; }; then
27557 ac_cv_lib_dnet_dnet_ntoa=yes
27558else
27559 echo "$as_me: failed program was:" >&5
27560sed 's/^/| /' conftest.$ac_ext >&5
27561
27562ac_cv_lib_dnet_dnet_ntoa=no
27563fi
ac1cb8d3
VS
27564rm -f conftest.err conftest.$ac_objext \
27565 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27566LIBS=$ac_check_lib_save_LIBS
27567fi
27568echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27569echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27570if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27571 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27572fi
27573
27574 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27575 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27576echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27577if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27578 echo $ECHO_N "(cached) $ECHO_C" >&6
27579else
27580 ac_check_lib_save_LIBS=$LIBS
27581LIBS="-ldnet_stub $LIBS"
27582cat >conftest.$ac_ext <<_ACEOF
27583/* confdefs.h. */
27584_ACEOF
27585cat confdefs.h >>conftest.$ac_ext
27586cat >>conftest.$ac_ext <<_ACEOF
27587/* end confdefs.h. */
27588
27589/* Override any gcc2 internal prototype to avoid an error. */
27590#ifdef __cplusplus
27591extern "C"
27592#endif
27593/* We use char because int might match the return type of a gcc2
27594 builtin and then its argument prototype would still apply. */
27595char dnet_ntoa ();
27596int
27597main ()
27598{
27599dnet_ntoa ();
27600 ;
27601 return 0;
27602}
27603_ACEOF
27604rm -f conftest.$ac_objext conftest$ac_exeext
27605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27606 (eval $ac_link) 2>conftest.er1
a848cd7e 27607 ac_status=$?
ac1cb8d3
VS
27608 grep -v '^ *+' conftest.er1 >conftest.err
27609 rm -f conftest.er1
27610 cat conftest.err >&5
a848cd7e
SC
27611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612 (exit $ac_status); } &&
6ebeb4c7 27613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27615 (eval $ac_try) 2>&5
27616 ac_status=$?
27617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 (exit $ac_status); }; } &&
27619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27621 (eval $ac_try) 2>&5
27622 ac_status=$?
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); }; }; then
27625 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27626else
27627 echo "$as_me: failed program was:" >&5
27628sed 's/^/| /' conftest.$ac_ext >&5
27629
27630ac_cv_lib_dnet_stub_dnet_ntoa=no
27631fi
ac1cb8d3
VS
27632rm -f conftest.err conftest.$ac_objext \
27633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27634LIBS=$ac_check_lib_save_LIBS
27635fi
27636echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27637echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27638if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27639 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27640fi
27641
27642 fi
27643fi
ac1cb8d3
VS
27644rm -f conftest.err conftest.$ac_objext \
27645 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27646 LIBS="$ac_xsave_LIBS"
27647
27648 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27649 # to get the SysV transport functions.
27650 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27651 # needs -lnsl.
27652 # The nsl library prevents programs from opening the X display
27653 # on Irix 5.2, according to T.E. Dickey.
27654 # The functions gethostbyname, getservbyname, and inet_addr are
27655 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27656 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27657echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27658if test "${ac_cv_func_gethostbyname+set}" = set; then
27659 echo $ECHO_N "(cached) $ECHO_C" >&6
27660else
27661 cat >conftest.$ac_ext <<_ACEOF
27662/* confdefs.h. */
27663_ACEOF
27664cat confdefs.h >>conftest.$ac_ext
27665cat >>conftest.$ac_ext <<_ACEOF
27666/* end confdefs.h. */
ac1cb8d3
VS
27667/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27669#define gethostbyname innocuous_gethostbyname
27670
a848cd7e
SC
27671/* System header to define __stub macros and hopefully few prototypes,
27672 which can conflict with char gethostbyname (); below.
27673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27674 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27675
a848cd7e
SC
27676#ifdef __STDC__
27677# include <limits.h>
27678#else
27679# include <assert.h>
27680#endif
ac1cb8d3
VS
27681
27682#undef gethostbyname
27683
a848cd7e
SC
27684/* Override any gcc2 internal prototype to avoid an error. */
27685#ifdef __cplusplus
27686extern "C"
27687{
27688#endif
27689/* We use char because int might match the return type of a gcc2
27690 builtin and then its argument prototype would still apply. */
27691char gethostbyname ();
27692/* The GNU C library defines this for functions which it implements
27693 to always fail with ENOSYS. Some functions are actually named
27694 something starting with __ and the normal name is an alias. */
27695#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27696choke me
27697#else
27698char (*f) () = gethostbyname;
27699#endif
27700#ifdef __cplusplus
27701}
27702#endif
27703
27704int
27705main ()
27706{
27707return f != gethostbyname;
27708 ;
27709 return 0;
27710}
27711_ACEOF
27712rm -f conftest.$ac_objext conftest$ac_exeext
27713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27714 (eval $ac_link) 2>conftest.er1
a848cd7e 27715 ac_status=$?
ac1cb8d3
VS
27716 grep -v '^ *+' conftest.er1 >conftest.err
27717 rm -f conftest.er1
27718 cat conftest.err >&5
a848cd7e
SC
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); } &&
6ebeb4c7 27721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27723 (eval $ac_try) 2>&5
27724 ac_status=$?
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); }; } &&
27727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729 (eval $ac_try) 2>&5
27730 ac_status=$?
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; }; then
27733 ac_cv_func_gethostbyname=yes
27734else
27735 echo "$as_me: failed program was:" >&5
27736sed 's/^/| /' conftest.$ac_ext >&5
27737
27738ac_cv_func_gethostbyname=no
27739fi
ac1cb8d3
VS
27740rm -f conftest.err conftest.$ac_objext \
27741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27742fi
27743echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27744echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27745
27746 if test $ac_cv_func_gethostbyname = no; then
27747 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27748echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27749if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27750 echo $ECHO_N "(cached) $ECHO_C" >&6
27751else
27752 ac_check_lib_save_LIBS=$LIBS
27753LIBS="-lnsl $LIBS"
27754cat >conftest.$ac_ext <<_ACEOF
27755/* confdefs.h. */
27756_ACEOF
27757cat confdefs.h >>conftest.$ac_ext
27758cat >>conftest.$ac_ext <<_ACEOF
27759/* end confdefs.h. */
27760
27761/* Override any gcc2 internal prototype to avoid an error. */
27762#ifdef __cplusplus
27763extern "C"
27764#endif
27765/* We use char because int might match the return type of a gcc2
27766 builtin and then its argument prototype would still apply. */
27767char gethostbyname ();
27768int
27769main ()
27770{
27771gethostbyname ();
27772 ;
27773 return 0;
27774}
27775_ACEOF
27776rm -f conftest.$ac_objext conftest$ac_exeext
27777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
27778 (eval $ac_link) 2>conftest.er1
27779 ac_status=$?
27780 grep -v '^ *+' conftest.er1 >conftest.err
27781 rm -f conftest.er1
27782 cat conftest.err >&5
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); } &&
6ebeb4c7 27785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27787 (eval $ac_try) 2>&5
27788 ac_status=$?
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); }; } &&
27791 { ac_try='test -s conftest$ac_exeext'
27792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27793 (eval $ac_try) 2>&5
27794 ac_status=$?
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; }; then
27797 ac_cv_lib_nsl_gethostbyname=yes
27798else
27799 echo "$as_me: failed program was:" >&5
27800sed 's/^/| /' conftest.$ac_ext >&5
27801
27802ac_cv_lib_nsl_gethostbyname=no
27803fi
27804rm -f conftest.err conftest.$ac_objext \
27805 conftest$ac_exeext conftest.$ac_ext
27806LIBS=$ac_check_lib_save_LIBS
27807fi
27808echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27809echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27810if test $ac_cv_lib_nsl_gethostbyname = yes; then
27811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27812fi
27813
27814 if test $ac_cv_lib_nsl_gethostbyname = no; then
27815 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27816echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
27817if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27818 echo $ECHO_N "(cached) $ECHO_C" >&6
27819else
27820 ac_check_lib_save_LIBS=$LIBS
27821LIBS="-lbsd $LIBS"
27822cat >conftest.$ac_ext <<_ACEOF
27823/* confdefs.h. */
27824_ACEOF
27825cat confdefs.h >>conftest.$ac_ext
27826cat >>conftest.$ac_ext <<_ACEOF
27827/* end confdefs.h. */
27828
27829/* Override any gcc2 internal prototype to avoid an error. */
27830#ifdef __cplusplus
27831extern "C"
27832#endif
27833/* We use char because int might match the return type of a gcc2
27834 builtin and then its argument prototype would still apply. */
27835char gethostbyname ();
27836int
27837main ()
27838{
27839gethostbyname ();
27840 ;
27841 return 0;
27842}
27843_ACEOF
27844rm -f conftest.$ac_objext conftest$ac_exeext
27845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27846 (eval $ac_link) 2>conftest.er1
a848cd7e 27847 ac_status=$?
ac1cb8d3
VS
27848 grep -v '^ *+' conftest.er1 >conftest.err
27849 rm -f conftest.er1
27850 cat conftest.err >&5
a848cd7e
SC
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); } &&
6ebeb4c7 27853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27855 (eval $ac_try) 2>&5
27856 ac_status=$?
27857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
27858 (exit $ac_status); }; } &&
27859 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27861 (eval $ac_try) 2>&5
27862 ac_status=$?
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; }; then
27865 ac_cv_lib_bsd_gethostbyname=yes
27866else
27867 echo "$as_me: failed program was:" >&5
27868sed 's/^/| /' conftest.$ac_ext >&5
27869
27870ac_cv_lib_bsd_gethostbyname=no
27871fi
ac1cb8d3
VS
27872rm -f conftest.err conftest.$ac_objext \
27873 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27874LIBS=$ac_check_lib_save_LIBS
27875fi
27876echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27877echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
27878if test $ac_cv_lib_bsd_gethostbyname = yes; then
27879 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27880fi
27881
27882 fi
27883 fi
27884
27885 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27886 # socket/setsockopt and other routines are undefined under SCO ODT
27887 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27888 # on later versions), says Simon Leinen: it contains gethostby*
27889 # variants that don't use the name server (or something). -lsocket
27890 # must be given before -lnsl if both are needed. We assume that
27891 # if connect needs -lnsl, so does gethostbyname.
27892 echo "$as_me:$LINENO: checking for connect" >&5
27893echo $ECHO_N "checking for connect... $ECHO_C" >&6
27894if test "${ac_cv_func_connect+set}" = set; then
27895 echo $ECHO_N "(cached) $ECHO_C" >&6
27896else
27897 cat >conftest.$ac_ext <<_ACEOF
27898/* confdefs.h. */
27899_ACEOF
27900cat confdefs.h >>conftest.$ac_ext
27901cat >>conftest.$ac_ext <<_ACEOF
27902/* end confdefs.h. */
ac1cb8d3
VS
27903/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27905#define connect innocuous_connect
27906
a848cd7e
SC
27907/* System header to define __stub macros and hopefully few prototypes,
27908 which can conflict with char connect (); below.
27909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27910 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27911
a848cd7e
SC
27912#ifdef __STDC__
27913# include <limits.h>
27914#else
27915# include <assert.h>
27916#endif
ac1cb8d3
VS
27917
27918#undef connect
27919
a848cd7e
SC
27920/* Override any gcc2 internal prototype to avoid an error. */
27921#ifdef __cplusplus
27922extern "C"
27923{
27924#endif
27925/* We use char because int might match the return type of a gcc2
27926 builtin and then its argument prototype would still apply. */
27927char connect ();
27928/* The GNU C library defines this for functions which it implements
27929 to always fail with ENOSYS. Some functions are actually named
27930 something starting with __ and the normal name is an alias. */
27931#if defined (__stub_connect) || defined (__stub___connect)
27932choke me
27933#else
27934char (*f) () = connect;
27935#endif
27936#ifdef __cplusplus
27937}
27938#endif
27939
27940int
27941main ()
27942{
27943return f != connect;
27944 ;
27945 return 0;
27946}
27947_ACEOF
27948rm -f conftest.$ac_objext conftest$ac_exeext
27949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27950 (eval $ac_link) 2>conftest.er1
a848cd7e 27951 ac_status=$?
ac1cb8d3
VS
27952 grep -v '^ *+' conftest.er1 >conftest.err
27953 rm -f conftest.er1
27954 cat conftest.err >&5
a848cd7e
SC
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); } &&
6ebeb4c7 27957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27959 (eval $ac_try) 2>&5
27960 ac_status=$?
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); }; } &&
27963 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27965 (eval $ac_try) 2>&5
27966 ac_status=$?
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; }; then
27969 ac_cv_func_connect=yes
27970else
27971 echo "$as_me: failed program was:" >&5
27972sed 's/^/| /' conftest.$ac_ext >&5
27973
27974ac_cv_func_connect=no
27975fi
ac1cb8d3
VS
27976rm -f conftest.err conftest.$ac_objext \
27977 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27978fi
27979echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27980echo "${ECHO_T}$ac_cv_func_connect" >&6
27981
27982 if test $ac_cv_func_connect = no; then
27983 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27984echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27985if test "${ac_cv_lib_socket_connect+set}" = set; then
27986 echo $ECHO_N "(cached) $ECHO_C" >&6
27987else
27988 ac_check_lib_save_LIBS=$LIBS
27989LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27990cat >conftest.$ac_ext <<_ACEOF
27991/* confdefs.h. */
27992_ACEOF
27993cat confdefs.h >>conftest.$ac_ext
27994cat >>conftest.$ac_ext <<_ACEOF
27995/* end confdefs.h. */
27996
27997/* Override any gcc2 internal prototype to avoid an error. */
27998#ifdef __cplusplus
27999extern "C"
28000#endif
28001/* We use char because int might match the return type of a gcc2
28002 builtin and then its argument prototype would still apply. */
28003char connect ();
28004int
28005main ()
28006{
28007connect ();
28008 ;
28009 return 0;
28010}
28011_ACEOF
28012rm -f conftest.$ac_objext conftest$ac_exeext
28013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28014 (eval $ac_link) 2>conftest.er1
a848cd7e 28015 ac_status=$?
ac1cb8d3
VS
28016 grep -v '^ *+' conftest.er1 >conftest.err
28017 rm -f conftest.er1
28018 cat conftest.err >&5
a848cd7e
SC
28019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020 (exit $ac_status); } &&
6ebeb4c7 28021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28023 (eval $ac_try) 2>&5
28024 ac_status=$?
28025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28026 (exit $ac_status); }; } &&
28027 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28029 (eval $ac_try) 2>&5
28030 ac_status=$?
28031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032 (exit $ac_status); }; }; then
28033 ac_cv_lib_socket_connect=yes
28034else
28035 echo "$as_me: failed program was:" >&5
28036sed 's/^/| /' conftest.$ac_ext >&5
28037
28038ac_cv_lib_socket_connect=no
28039fi
ac1cb8d3
VS
28040rm -f conftest.err conftest.$ac_objext \
28041 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28042LIBS=$ac_check_lib_save_LIBS
28043fi
28044echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28045echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28046if test $ac_cv_lib_socket_connect = yes; then
28047 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28048fi
28049
28050 fi
28051
28052 # Guillermo Gomez says -lposix is necessary on A/UX.
28053 echo "$as_me:$LINENO: checking for remove" >&5
28054echo $ECHO_N "checking for remove... $ECHO_C" >&6
28055if test "${ac_cv_func_remove+set}" = set; then
28056 echo $ECHO_N "(cached) $ECHO_C" >&6
28057else
28058 cat >conftest.$ac_ext <<_ACEOF
28059/* confdefs.h. */
28060_ACEOF
28061cat confdefs.h >>conftest.$ac_ext
28062cat >>conftest.$ac_ext <<_ACEOF
28063/* end confdefs.h. */
ac1cb8d3
VS
28064/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28066#define remove innocuous_remove
28067
a848cd7e
SC
28068/* System header to define __stub macros and hopefully few prototypes,
28069 which can conflict with char remove (); below.
28070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28071 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28072
a848cd7e
SC
28073#ifdef __STDC__
28074# include <limits.h>
28075#else
28076# include <assert.h>
28077#endif
ac1cb8d3
VS
28078
28079#undef remove
28080
a848cd7e
SC
28081/* Override any gcc2 internal prototype to avoid an error. */
28082#ifdef __cplusplus
28083extern "C"
28084{
28085#endif
28086/* We use char because int might match the return type of a gcc2
28087 builtin and then its argument prototype would still apply. */
28088char remove ();
28089/* The GNU C library defines this for functions which it implements
28090 to always fail with ENOSYS. Some functions are actually named
28091 something starting with __ and the normal name is an alias. */
28092#if defined (__stub_remove) || defined (__stub___remove)
28093choke me
28094#else
28095char (*f) () = remove;
28096#endif
28097#ifdef __cplusplus
28098}
28099#endif
28100
28101int
28102main ()
28103{
28104return f != remove;
28105 ;
28106 return 0;
28107}
28108_ACEOF
28109rm -f conftest.$ac_objext conftest$ac_exeext
28110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28111 (eval $ac_link) 2>conftest.er1
a848cd7e 28112 ac_status=$?
ac1cb8d3
VS
28113 grep -v '^ *+' conftest.er1 >conftest.err
28114 rm -f conftest.er1
28115 cat conftest.err >&5
a848cd7e
SC
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); } &&
6ebeb4c7 28118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28120 (eval $ac_try) 2>&5
28121 ac_status=$?
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); }; } &&
28124 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126 (eval $ac_try) 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; }; then
28130 ac_cv_func_remove=yes
28131else
28132 echo "$as_me: failed program was:" >&5
28133sed 's/^/| /' conftest.$ac_ext >&5
28134
28135ac_cv_func_remove=no
28136fi
ac1cb8d3
VS
28137rm -f conftest.err conftest.$ac_objext \
28138 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28139fi
28140echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28141echo "${ECHO_T}$ac_cv_func_remove" >&6
28142
28143 if test $ac_cv_func_remove = no; then
28144 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28145echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28146if test "${ac_cv_lib_posix_remove+set}" = set; then
28147 echo $ECHO_N "(cached) $ECHO_C" >&6
28148else
28149 ac_check_lib_save_LIBS=$LIBS
28150LIBS="-lposix $LIBS"
28151cat >conftest.$ac_ext <<_ACEOF
28152/* confdefs.h. */
28153_ACEOF
28154cat confdefs.h >>conftest.$ac_ext
28155cat >>conftest.$ac_ext <<_ACEOF
28156/* end confdefs.h. */
28157
28158/* Override any gcc2 internal prototype to avoid an error. */
28159#ifdef __cplusplus
28160extern "C"
28161#endif
28162/* We use char because int might match the return type of a gcc2
28163 builtin and then its argument prototype would still apply. */
28164char remove ();
28165int
28166main ()
28167{
28168remove ();
28169 ;
28170 return 0;
28171}
28172_ACEOF
28173rm -f conftest.$ac_objext conftest$ac_exeext
28174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28175 (eval $ac_link) 2>conftest.er1
a848cd7e 28176 ac_status=$?
ac1cb8d3
VS
28177 grep -v '^ *+' conftest.er1 >conftest.err
28178 rm -f conftest.er1
28179 cat conftest.err >&5
a848cd7e
SC
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); } &&
6ebeb4c7 28182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28184 (eval $ac_try) 2>&5
28185 ac_status=$?
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); }; } &&
28188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28190 (eval $ac_try) 2>&5
28191 ac_status=$?
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); }; }; then
28194 ac_cv_lib_posix_remove=yes
28195else
28196 echo "$as_me: failed program was:" >&5
28197sed 's/^/| /' conftest.$ac_ext >&5
28198
28199ac_cv_lib_posix_remove=no
28200fi
ac1cb8d3
VS
28201rm -f conftest.err conftest.$ac_objext \
28202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28203LIBS=$ac_check_lib_save_LIBS
28204fi
28205echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28206echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28207if test $ac_cv_lib_posix_remove = yes; then
28208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28209fi
28210
28211 fi
28212
28213 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28214 echo "$as_me:$LINENO: checking for shmat" >&5
28215echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28216if test "${ac_cv_func_shmat+set}" = set; then
28217 echo $ECHO_N "(cached) $ECHO_C" >&6
28218else
28219 cat >conftest.$ac_ext <<_ACEOF
28220/* confdefs.h. */
28221_ACEOF
28222cat confdefs.h >>conftest.$ac_ext
28223cat >>conftest.$ac_ext <<_ACEOF
28224/* end confdefs.h. */
ac1cb8d3
VS
28225/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28227#define shmat innocuous_shmat
28228
a848cd7e
SC
28229/* System header to define __stub macros and hopefully few prototypes,
28230 which can conflict with char shmat (); below.
28231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28232 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28233
a848cd7e
SC
28234#ifdef __STDC__
28235# include <limits.h>
28236#else
28237# include <assert.h>
28238#endif
ac1cb8d3
VS
28239
28240#undef shmat
28241
a848cd7e
SC
28242/* Override any gcc2 internal prototype to avoid an error. */
28243#ifdef __cplusplus
28244extern "C"
28245{
28246#endif
28247/* We use char because int might match the return type of a gcc2
28248 builtin and then its argument prototype would still apply. */
28249char shmat ();
28250/* The GNU C library defines this for functions which it implements
28251 to always fail with ENOSYS. Some functions are actually named
28252 something starting with __ and the normal name is an alias. */
28253#if defined (__stub_shmat) || defined (__stub___shmat)
28254choke me
28255#else
28256char (*f) () = shmat;
28257#endif
28258#ifdef __cplusplus
28259}
28260#endif
28261
28262int
28263main ()
28264{
28265return f != shmat;
28266 ;
28267 return 0;
28268}
28269_ACEOF
28270rm -f conftest.$ac_objext conftest$ac_exeext
28271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28272 (eval $ac_link) 2>conftest.er1
a848cd7e 28273 ac_status=$?
ac1cb8d3
VS
28274 grep -v '^ *+' conftest.er1 >conftest.err
28275 rm -f conftest.er1
28276 cat conftest.err >&5
a848cd7e
SC
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); } &&
6ebeb4c7 28279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281 (eval $ac_try) 2>&5
28282 ac_status=$?
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; } &&
28285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287 (eval $ac_try) 2>&5
28288 ac_status=$?
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; }; then
28291 ac_cv_func_shmat=yes
28292else
28293 echo "$as_me: failed program was:" >&5
28294sed 's/^/| /' conftest.$ac_ext >&5
28295
28296ac_cv_func_shmat=no
28297fi
ac1cb8d3
VS
28298rm -f conftest.err conftest.$ac_objext \
28299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28300fi
28301echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28302echo "${ECHO_T}$ac_cv_func_shmat" >&6
28303
28304 if test $ac_cv_func_shmat = no; then
28305 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28306echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28307if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28308 echo $ECHO_N "(cached) $ECHO_C" >&6
28309else
28310 ac_check_lib_save_LIBS=$LIBS
28311LIBS="-lipc $LIBS"
28312cat >conftest.$ac_ext <<_ACEOF
28313/* confdefs.h. */
28314_ACEOF
28315cat confdefs.h >>conftest.$ac_ext
28316cat >>conftest.$ac_ext <<_ACEOF
28317/* end confdefs.h. */
28318
28319/* Override any gcc2 internal prototype to avoid an error. */
28320#ifdef __cplusplus
28321extern "C"
28322#endif
28323/* We use char because int might match the return type of a gcc2
28324 builtin and then its argument prototype would still apply. */
28325char shmat ();
28326int
28327main ()
28328{
28329shmat ();
28330 ;
28331 return 0;
28332}
28333_ACEOF
28334rm -f conftest.$ac_objext conftest$ac_exeext
28335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28336 (eval $ac_link) 2>conftest.er1
a848cd7e 28337 ac_status=$?
ac1cb8d3
VS
28338 grep -v '^ *+' conftest.er1 >conftest.err
28339 rm -f conftest.er1
28340 cat conftest.err >&5
a848cd7e
SC
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); } &&
6ebeb4c7 28343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345 (eval $ac_try) 2>&5
28346 ac_status=$?
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); }; } &&
28349 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28351 (eval $ac_try) 2>&5
28352 ac_status=$?
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); }; }; then
28355 ac_cv_lib_ipc_shmat=yes
28356else
28357 echo "$as_me: failed program was:" >&5
28358sed 's/^/| /' conftest.$ac_ext >&5
28359
28360ac_cv_lib_ipc_shmat=no
28361fi
ac1cb8d3
VS
28362rm -f conftest.err conftest.$ac_objext \
28363 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28364LIBS=$ac_check_lib_save_LIBS
28365fi
28366echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28367echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28368if test $ac_cv_lib_ipc_shmat = yes; then
28369 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28370fi
28371
28372 fi
28373 fi
28374
28375 # Check for libraries that X11R6 Xt/Xaw programs need.
28376 ac_save_LDFLAGS=$LDFLAGS
28377 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28378 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28379 # check for ICE first), but we must link in the order -lSM -lICE or
28380 # we get undefined symbols. So assume we have SM if we have ICE.
28381 # These have to be linked with before -lX11, unlike the other
28382 # libraries we check for below, so use a different variable.
28383 # John Interrante, Karl Berry
28384 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28385echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28386if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28387 echo $ECHO_N "(cached) $ECHO_C" >&6
28388else
28389 ac_check_lib_save_LIBS=$LIBS
28390LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28391cat >conftest.$ac_ext <<_ACEOF
28392/* confdefs.h. */
28393_ACEOF
28394cat confdefs.h >>conftest.$ac_ext
28395cat >>conftest.$ac_ext <<_ACEOF
28396/* end confdefs.h. */
28397
28398/* Override any gcc2 internal prototype to avoid an error. */
28399#ifdef __cplusplus
28400extern "C"
28401#endif
28402/* We use char because int might match the return type of a gcc2
28403 builtin and then its argument prototype would still apply. */
28404char IceConnectionNumber ();
28405int
28406main ()
28407{
28408IceConnectionNumber ();
28409 ;
28410 return 0;
28411}
28412_ACEOF
28413rm -f conftest.$ac_objext conftest$ac_exeext
28414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28415 (eval $ac_link) 2>conftest.er1
a848cd7e 28416 ac_status=$?
ac1cb8d3
VS
28417 grep -v '^ *+' conftest.er1 >conftest.err
28418 rm -f conftest.er1
28419 cat conftest.err >&5
a848cd7e
SC
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); } &&
6ebeb4c7 28422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28424 (eval $ac_try) 2>&5
28425 ac_status=$?
28426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427 (exit $ac_status); }; } &&
28428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28430 (eval $ac_try) 2>&5
28431 ac_status=$?
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
28434 ac_cv_lib_ICE_IceConnectionNumber=yes
28435else
28436 echo "$as_me: failed program was:" >&5
28437sed 's/^/| /' conftest.$ac_ext >&5
28438
28439ac_cv_lib_ICE_IceConnectionNumber=no
28440fi
ac1cb8d3
VS
28441rm -f conftest.err conftest.$ac_objext \
28442 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28443LIBS=$ac_check_lib_save_LIBS
28444fi
28445echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28446echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28447if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28448 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28449fi
28450
28451 LDFLAGS=$ac_save_LDFLAGS
28452
28453fi
28454
28455
28456 if test "$no_x" = "yes"; then
89d90d6d
VZ
28457 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28458echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28459 { (exit 1); exit 1; }; }
a848cd7e
SC
28460 fi
28461
74b84332
VS
28462 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28463 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28464 AFMINSTALL=afminstall
28465 COMPILED_X_PROGRAM=0
28466
74b84332
VS
28467 fi
28468
28469 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28470 if test "$wxUSE_NANOX" = "yes"; then
28471 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28472echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28473 if test "x$MICROWIN" = x ; then
28474 echo "$as_me:$LINENO: result: not found" >&5
28475echo "${ECHO_T}not found" >&6
28476 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28477echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28478 { (exit 1); exit 1; }; }
28479 else
28480 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28481echo "${ECHO_T}$MICROWIN" >&6
28482 cat >>confdefs.h <<\_ACEOF
28483#define wxUSE_NANOX 1
28484_ACEOF
28485
28486 fi
28487 fi
28488
28489 if test "$wxUSE_UNICODE" = "yes"; then
28490
28491 succeeded=no
28492
28493 if test -z "$PKG_CONFIG"; then
28494 # Extract the first word of "pkg-config", so it can be a program name with args.
28495set dummy pkg-config; ac_word=$2
28496echo "$as_me:$LINENO: checking for $ac_word" >&5
28497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28498if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28499 echo $ECHO_N "(cached) $ECHO_C" >&6
28500else
28501 case $PKG_CONFIG in
28502 [\\/]* | ?:[\\/]*)
28503 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28504 ;;
28505 *)
28506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28507for as_dir in $PATH
28508do
28509 IFS=$as_save_IFS
28510 test -z "$as_dir" && as_dir=.
28511 for ac_exec_ext in '' $ac_executable_extensions; do
28512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28513 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28515 break 2
28516 fi
28517done
28518done
28519
28520 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28521 ;;
28522esac
28523fi
28524PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28525
28526if test -n "$PKG_CONFIG"; then
28527 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28528echo "${ECHO_T}$PKG_CONFIG" >&6
28529else
28530 echo "$as_me:$LINENO: result: no" >&5
28531echo "${ECHO_T}no" >&6
28532fi
28533
28534 fi
28535
28536 if test "$PKG_CONFIG" = "no" ; then
28537 echo "*** The pkg-config script could not be found. Make sure it is"
28538 echo "*** in your path, or set the PKG_CONFIG environment variable"
28539 echo "*** to the full path to pkg-config."
28540 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28541 else
28542 PKG_CONFIG_MIN_VERSION=0.9.0
28543 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28544 echo "$as_me:$LINENO: checking for pangox" >&5
28545echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28546
28547 if $PKG_CONFIG --exists "pangox" ; then
28548 echo "$as_me:$LINENO: result: yes" >&5
28549echo "${ECHO_T}yes" >&6
28550 succeeded=yes
28551
28552 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28553echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28554 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28555 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28556echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28557
28558 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28559echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28560 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28561 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28562echo "${ECHO_T}$PANGOX_LIBS" >&6
28563 else
28564 PANGOX_CFLAGS=""
28565 PANGOX_LIBS=""
28566 ## If we have a custom action on failure, don't print errors, but
28567 ## do set a variable so people can do so.
28568 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28569
28570 fi
28571
28572
28573
28574 else
28575 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28576 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28577 fi
28578 fi
28579
28580 if test $succeeded = yes; then
28581
28582 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28583 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28584
28585 else
28586
28587 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28588echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28589 { (exit 1); exit 1; }; }
28590
28591
28592 fi
28593
28594
28595 succeeded=no
28596
28597 if test -z "$PKG_CONFIG"; then
28598 # Extract the first word of "pkg-config", so it can be a program name with args.
28599set dummy pkg-config; ac_word=$2
28600echo "$as_me:$LINENO: checking for $ac_word" >&5
28601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28602if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28603 echo $ECHO_N "(cached) $ECHO_C" >&6
28604else
28605 case $PKG_CONFIG in
28606 [\\/]* | ?:[\\/]*)
28607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28608 ;;
28609 *)
28610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28611for as_dir in $PATH
28612do
28613 IFS=$as_save_IFS
28614 test -z "$as_dir" && as_dir=.
28615 for ac_exec_ext in '' $ac_executable_extensions; do
28616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28619 break 2
28620 fi
28621done
28622done
28623
28624 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28625 ;;
28626esac
28627fi
28628PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28629
28630if test -n "$PKG_CONFIG"; then
28631 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28632echo "${ECHO_T}$PKG_CONFIG" >&6
28633else
28634 echo "$as_me:$LINENO: result: no" >&5
28635echo "${ECHO_T}no" >&6
28636fi
28637
28638 fi
28639
28640 if test "$PKG_CONFIG" = "no" ; then
28641 echo "*** The pkg-config script could not be found. Make sure it is"
28642 echo "*** in your path, or set the PKG_CONFIG environment variable"
28643 echo "*** to the full path to pkg-config."
28644 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28645 else
28646 PKG_CONFIG_MIN_VERSION=0.9.0
28647 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28648 echo "$as_me:$LINENO: checking for pangoft2" >&5
28649echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28650
28651 if $PKG_CONFIG --exists "pangoft2" ; then
28652 echo "$as_me:$LINENO: result: yes" >&5
28653echo "${ECHO_T}yes" >&6
28654 succeeded=yes
28655
28656 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28657echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28658 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28659 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28660echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28661
28662 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28663echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28664 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28665 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28666echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28667 else
28668 PANGOFT2_CFLAGS=""
28669 PANGOFT2_LIBS=""
28670 ## If we have a custom action on failure, don't print errors, but
28671 ## do set a variable so people can do so.
28672 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28673
28674 fi
28675
28676
28677
28678 else
28679 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28680 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28681 fi
28682 fi
28683
28684 if test $succeeded = yes; then
28685
28686 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28687 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28688
28689 else
28690
28691 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28692echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28693 wxUSE_PRINTING_ARCHITECTURE="no"
28694
28695
28696 fi
28697
28698
28699 succeeded=no
28700
28701 if test -z "$PKG_CONFIG"; then
28702 # Extract the first word of "pkg-config", so it can be a program name with args.
28703set dummy pkg-config; ac_word=$2
28704echo "$as_me:$LINENO: checking for $ac_word" >&5
28705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28706if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28707 echo $ECHO_N "(cached) $ECHO_C" >&6
28708else
28709 case $PKG_CONFIG in
28710 [\\/]* | ?:[\\/]*)
28711 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28712 ;;
28713 *)
28714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28715for as_dir in $PATH
28716do
28717 IFS=$as_save_IFS
28718 test -z "$as_dir" && as_dir=.
28719 for ac_exec_ext in '' $ac_executable_extensions; do
28720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28721 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28723 break 2
28724 fi
28725done
28726done
28727
28728 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28729 ;;
28730esac
28731fi
28732PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28733
28734if test -n "$PKG_CONFIG"; then
28735 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28736echo "${ECHO_T}$PKG_CONFIG" >&6
28737else
28738 echo "$as_me:$LINENO: result: no" >&5
28739echo "${ECHO_T}no" >&6
28740fi
28741
28742 fi
28743
28744 if test "$PKG_CONFIG" = "no" ; then
28745 echo "*** The pkg-config script could not be found. Make sure it is"
28746 echo "*** in your path, or set the PKG_CONFIG environment variable"
28747 echo "*** to the full path to pkg-config."
28748 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28749 else
28750 PKG_CONFIG_MIN_VERSION=0.9.0
28751 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28752 echo "$as_me:$LINENO: checking for pangoxft" >&5
28753echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28754
28755 if $PKG_CONFIG --exists "pangoxft" ; then
28756 echo "$as_me:$LINENO: result: yes" >&5
28757echo "${ECHO_T}yes" >&6
28758 succeeded=yes
28759
28760 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28761echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28762 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28763 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28764echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
28765
28766 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
28767echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
28768 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
28769 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
28770echo "${ECHO_T}$PANGOXFT_LIBS" >&6
28771 else
28772 PANGOXFT_CFLAGS=""
28773 PANGOXFT_LIBS=""
28774 ## If we have a custom action on failure, don't print errors, but
28775 ## do set a variable so people can do so.
28776 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
28777
28778 fi
28779
28780
28781
28782 else
28783 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28784 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28785 fi
28786 fi
28787
28788 if test $succeeded = yes; then
28789
4ae1af05
MB
28790 cat >>confdefs.h <<\_ACEOF
28791#define HAVE_PANGO_XFT 1
28792_ACEOF
28793
a848cd7e
SC
28794 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
28795 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
28796
28797 else
28798
28799 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
28800echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
28801
28802
28803 fi
28804
304205f1
VS
28805 save_CFLAGS="$CFLAGS"
28806 save_LIBS="$LIBS"
28807 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
28808 LIBS="$LIBS $PANGOX_LIBS"
28809
28810for ac_func in pango_font_family_is_monospace
28811do
28812as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28813echo "$as_me:$LINENO: checking for $ac_func" >&5
28814echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28815if eval "test \"\${$as_ac_var+set}\" = set"; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28817else
28818 cat >conftest.$ac_ext <<_ACEOF
28819/* confdefs.h. */
28820_ACEOF
28821cat confdefs.h >>conftest.$ac_ext
28822cat >>conftest.$ac_ext <<_ACEOF
28823/* end confdefs.h. */
28824/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28826#define $ac_func innocuous_$ac_func
28827
28828/* System header to define __stub macros and hopefully few prototypes,
28829 which can conflict with char $ac_func (); below.
28830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28831 <limits.h> exists even on freestanding compilers. */
28832
28833#ifdef __STDC__
28834# include <limits.h>
28835#else
28836# include <assert.h>
28837#endif
28838
28839#undef $ac_func
28840
28841/* Override any gcc2 internal prototype to avoid an error. */
28842#ifdef __cplusplus
28843extern "C"
28844{
28845#endif
28846/* We use char because int might match the return type of a gcc2
28847 builtin and then its argument prototype would still apply. */
28848char $ac_func ();
28849/* The GNU C library defines this for functions which it implements
28850 to always fail with ENOSYS. Some functions are actually named
28851 something starting with __ and the normal name is an alias. */
28852#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28853choke me
28854#else
28855char (*f) () = $ac_func;
28856#endif
28857#ifdef __cplusplus
28858}
28859#endif
28860
28861int
28862main ()
28863{
28864return f != $ac_func;
28865 ;
28866 return 0;
28867}
28868_ACEOF
28869rm -f conftest.$ac_objext conftest$ac_exeext
28870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28871 (eval $ac_link) 2>conftest.er1
28872 ac_status=$?
28873 grep -v '^ *+' conftest.er1 >conftest.err
28874 rm -f conftest.er1
28875 cat conftest.err >&5
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); } &&
6ebeb4c7 28878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
28879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880 (eval $ac_try) 2>&5
28881 ac_status=$?
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; } &&
28884 { ac_try='test -s conftest$ac_exeext'
28885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28886 (eval $ac_try) 2>&5
28887 ac_status=$?
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; }; then
28890 eval "$as_ac_var=yes"
28891else
28892 echo "$as_me: failed program was:" >&5
28893sed 's/^/| /' conftest.$ac_ext >&5
28894
28895eval "$as_ac_var=no"
28896fi
28897rm -f conftest.err conftest.$ac_objext \
28898 conftest$ac_exeext conftest.$ac_ext
28899fi
28900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28901echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28902if test `eval echo '${'$as_ac_var'}'` = yes; then
28903 cat >>confdefs.h <<_ACEOF
28904#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28905_ACEOF
28906
28907fi
28908done
28909
28910 CFLAGS="$save_CFLAGS"
28911 LIBS="$save_LIBS"
a848cd7e
SC
28912 fi
28913
28914 wxUSE_UNIVERSAL="yes"
28915
28916 if test "$wxUSE_NANOX" = "yes"; then
28917 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28918 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"
28919 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28920 else
28921 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28922 fi
28923
a848cd7e
SC
28924 TOOLKIT=X11
28925 GUIDIST=X11_DIST
28926 fi
28927
28928 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28929 if test "$wxUSE_UNICODE" = "yes"; then
28930 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28931echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28932 { (exit 1); exit 1; }; }
28933 fi
28934
74b84332
VS
28935 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28936echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28937
74b84332
VS
28938ac_find_includes=
28939for ac_dir in $SEARCH_INCLUDE /usr/include;
28940 do
28941 if test -f "$ac_dir/Xm/Xm.h"; then
28942 ac_find_includes=$ac_dir
28943 break
28944 fi
28945 done
a848cd7e 28946
74b84332
VS
28947 if test "$ac_find_includes" != "" ; then
28948 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28949echo "${ECHO_T}found in $ac_find_includes" >&6
28950
28951 if test "x$ac_find_includes" = "x/usr/include"; then
28952 ac_path_to_include=""
28953 else
28954 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28955 result=$?
28956 if test $result = 0; then
28957 ac_path_to_include=""
28958 else
28959 ac_path_to_include=" -I$ac_find_includes"
28960 fi
a848cd7e
SC
28961 fi
28962
74b84332
VS
28963 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28964 else
e051b34e
MW
28965 save_CFLAGS=$CFLAGS
28966 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28967
74b84332 28968 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28969/* confdefs.h. */
28970_ACEOF
28971cat confdefs.h >>conftest.$ac_ext
28972cat >>conftest.$ac_ext <<_ACEOF
28973/* end confdefs.h. */
28974
74b84332
VS
28975 #include <Xm/Xm.h>
28976
a848cd7e
SC
28977int
28978main ()
28979{
28980
74b84332
VS
28981 int version;
28982 version = xmUseVersion;
28983
a848cd7e
SC
28984 ;
28985 return 0;
28986}
28987_ACEOF
74b84332
VS
28988rm -f conftest.$ac_objext
28989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28990 (eval $ac_compile) 2>conftest.er1
a848cd7e 28991 ac_status=$?
ac1cb8d3
VS
28992 grep -v '^ *+' conftest.er1 >conftest.err
28993 rm -f conftest.er1
28994 cat conftest.err >&5
a848cd7e
SC
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); } &&
6ebeb4c7 28997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28999 (eval $ac_try) 2>&5
29000 ac_status=$?
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); }; } &&
74b84332 29003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005 (eval $ac_try) 2>&5
29006 ac_status=$?
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; }; then
74b84332
VS
29009
29010 echo "$as_me:$LINENO: result: found in default search path" >&5
29011echo "${ECHO_T}found in default search path" >&6
29012 COMPILED_X_PROGRAM=1
29013
a848cd7e
SC
29014else
29015 echo "$as_me: failed program was:" >&5
29016sed 's/^/| /' conftest.$ac_ext >&5
29017
a848cd7e 29018
74b84332
VS
29019 echo "$as_me:$LINENO: result: no" >&5
29020echo "${ECHO_T}no" >&6
e051b34e
MW
29021 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29022echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29023 { (exit 1); exit 1; }; }
a848cd7e 29024
a848cd7e 29025
a848cd7e 29026fi
74b84332 29027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29028
29029 CFLAGS=$save_CFLAGS
74b84332
VS
29030 fi
29031
0ad5d837
VZ
29032
29033 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29034echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29035
0ad5d837
VZ
29036 ac_find_libraries=
29037 for ac_dir in $SEARCH_LIB;
74b84332 29038 do
3eca31dc 29039 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29040 if test -f "$ac_dir/libXm.$ac_extension"; then
29041 ac_find_libraries=$ac_dir
29042 break 2
a848cd7e 29043 fi
74b84332
VS
29044 done
29045 done
a848cd7e 29046
0ad5d837
VZ
29047
29048 if test "x$ac_find_libraries" != "x" ; then
29049 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29050echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29051
74b84332 29052
0ad5d837 29053 if test "$ac_find_libraries" = "default location"; then
74b84332 29054 ac_path_to_link=""
a848cd7e 29055 else
0ad5d837
VZ
29056 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29057 result=$?
29058 if test $result = 0; then
29059 ac_path_to_link=""
29060 else
29061 ac_path_to_link=" -L$ac_find_libraries"
29062 fi
74b84332
VS
29063 fi
29064
0ad5d837
VZ
29065 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29066 else
29067 save_CFLAGS=$CFLAGS
29068 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
6f9cf1e6
MW
29069 save_LIBS="$LIBS"
29070 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29071
0ad5d837 29072 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29073/* confdefs.h. */
29074_ACEOF
29075cat confdefs.h >>conftest.$ac_ext
29076cat >>conftest.$ac_ext <<_ACEOF
29077/* end confdefs.h. */
29078
0ad5d837 29079 #include <Xm/Xm.h>
74b84332 29080
a848cd7e
SC
29081int
29082main ()
29083{
74b84332 29084
0ad5d837
VZ
29085 int version;
29086 version = xmUseVersion;
74b84332 29087
a848cd7e
SC
29088 ;
29089 return 0;
29090}
29091_ACEOF
0ad5d837
VZ
29092rm -f conftest.$ac_objext conftest$ac_exeext
29093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29094 (eval $ac_link) 2>conftest.er1
a848cd7e 29095 ac_status=$?
ac1cb8d3
VS
29096 grep -v '^ *+' conftest.er1 >conftest.err
29097 rm -f conftest.er1
29098 cat conftest.err >&5
a848cd7e
SC
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); } &&
6ebeb4c7 29101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103 (eval $ac_try) 2>&5
29104 ac_status=$?
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; } &&
0ad5d837 29107 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109 (eval $ac_try) 2>&5
29110 ac_status=$?
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); }; }; then
74b84332 29113
0ad5d837 29114 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29115echo "${ECHO_T}found in default search path" >&6
0ad5d837 29116 COMPILED_X_PROGRAM=1
74b84332 29117
a848cd7e
SC
29118else
29119 echo "$as_me: failed program was:" >&5
29120sed 's/^/| /' conftest.$ac_ext >&5
29121
74b84332 29122
6f9cf1e6 29123 echo "$as_me:$LINENO: result: no" >&5
74b84332 29124echo "${ECHO_T}no" >&6
6f9cf1e6 29125 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29126echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29127 { (exit 1); exit 1; }; }
29128
29129
29130fi
0ad5d837
VZ
29131rm -f conftest.err conftest.$ac_objext \
29132 conftest$ac_exeext conftest.$ac_ext
74b84332 29133
0ad5d837 29134 CFLAGS=$save_CFLAGS
6f9cf1e6 29135 LIBS="$save_LIBS"
74b84332
VS
29136 fi
29137
29138 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29139echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29140 libp_link=""
29141 libsm_ice_link=""
29142 libs_found=0
29143 for libp in "" " -lXp"; do
29144 if test "$libs_found" = "0"; then
29145 for libsm_ice in "" " -lSM -lICE"; do
29146 if test "$libs_found" = "0"; then
29147 save_LIBS="$LIBS"
29148 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29149 save_CFLAGS=$CFLAGS
29150 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29151
29152 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29153/* confdefs.h. */
29154_ACEOF
29155cat confdefs.h >>conftest.$ac_ext
29156cat >>conftest.$ac_ext <<_ACEOF
29157/* end confdefs.h. */
29158
74b84332
VS
29159 #include <Xm/Xm.h>
29160 #include <Xm/List.h>
29161
a848cd7e
SC
29162int
29163main ()
29164{
74b84332
VS
29165
29166 XmString string = NULL;
29167 Widget w = NULL;
29168 int position = 0;
29169 XmListAddItem(w, string, position);
29170
a848cd7e
SC
29171 ;
29172 return 0;
29173}
29174_ACEOF
29175rm -f conftest.$ac_objext conftest$ac_exeext
29176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29177 (eval $ac_link) 2>conftest.er1
a848cd7e 29178 ac_status=$?
ac1cb8d3
VS
29179 grep -v '^ *+' conftest.er1 >conftest.err
29180 rm -f conftest.er1
29181 cat conftest.err >&5
a848cd7e
SC
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); } &&
6ebeb4c7 29184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186 (eval $ac_try) 2>&5
29187 ac_status=$?
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); }; } &&
29190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192 (eval $ac_try) 2>&5
29193 ac_status=$?
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); }; }; then
29196
29197 libp_link="$libp"
29198 libsm_ice_link="$libsm_ice"
29199 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29200echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29201 libs_found=1
29202
29203else
29204 echo "$as_me: failed program was:" >&5
29205sed 's/^/| /' conftest.$ac_ext >&5
29206
29207
29208
29209fi
ac1cb8d3
VS
29210rm -f conftest.err conftest.$ac_objext \
29211 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29212
29213 LIBS="$save_LIBS"
29214 CFLAGS=$save_CFLAGS
29215 fi
29216 done
29217 fi
29218 done
29219
29220 if test "$libs_found" = "0"; then
29221 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29222echo "${ECHO_T}can't find the right libraries" >&6
29223 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29224echo "$as_me: error: can't link a simple motif program" >&2;}
29225 { (exit 1); exit 1; }; }
29226 fi
29227
62fa8b3a
MW
29228 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29229echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29230if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29231 echo $ECHO_N "(cached) $ECHO_C" >&6
29232else
29233 ac_check_lib_save_LIBS=$LIBS
29234LIBS="-lSgm $LIBS"
29235cat >conftest.$ac_ext <<_ACEOF
29236/* confdefs.h. */
29237_ACEOF
29238cat confdefs.h >>conftest.$ac_ext
29239cat >>conftest.$ac_ext <<_ACEOF
29240/* end confdefs.h. */
29241
29242/* Override any gcc2 internal prototype to avoid an error. */
29243#ifdef __cplusplus
29244extern "C"
29245#endif
29246/* We use char because int might match the return type of a gcc2
29247 builtin and then its argument prototype would still apply. */
29248char SgCreateList ();
29249int
29250main ()
29251{
29252SgCreateList ();
29253 ;
29254 return 0;
29255}
29256_ACEOF
29257rm -f conftest.$ac_objext conftest$ac_exeext
29258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29259 (eval $ac_link) 2>conftest.er1
29260 ac_status=$?
29261 grep -v '^ *+' conftest.er1 >conftest.err
29262 rm -f conftest.er1
29263 cat conftest.err >&5
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); } &&
29266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29268 (eval $ac_try) 2>&5
29269 ac_status=$?
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); }; } &&
29272 { ac_try='test -s conftest$ac_exeext'
29273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29274 (eval $ac_try) 2>&5
29275 ac_status=$?
29276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277 (exit $ac_status); }; }; then
29278 ac_cv_lib_Sgm_SgCreateList=yes
29279else
29280 echo "$as_me: failed program was:" >&5
29281sed 's/^/| /' conftest.$ac_ext >&5
29282
29283ac_cv_lib_Sgm_SgCreateList=no
29284fi
29285rm -f conftest.err conftest.$ac_objext \
29286 conftest$ac_exeext conftest.$ac_ext
29287LIBS=$ac_check_lib_save_LIBS
29288fi
29289echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29290echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29291if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29292 libsgm_link=" -lSgm"
29293fi
29294
29295
a848cd7e
SC
29296 save_CFLAGS=$CFLAGS
29297 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 29298
a848cd7e
SC
29299 echo "$as_me:$LINENO: checking for Motif 2" >&5
29300echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29301if test "${wx_cv_lib_motif2+set}" = set; then
29302 echo $ECHO_N "(cached) $ECHO_C" >&6
29303else
29304 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29305/* confdefs.h. */
29306_ACEOF
29307cat confdefs.h >>conftest.$ac_ext
29308cat >>conftest.$ac_ext <<_ACEOF
29309/* end confdefs.h. */
29310
0ad5d837 29311 #include <Xm/Xm.h>
a848cd7e
SC
29312
29313int
29314main ()
29315{
29316
0ad5d837
VZ
29317 #if XmVersion < 2000
29318 Not Motif 2
29319 #endif
a848cd7e
SC
29320
29321 ;
29322 return 0;
29323}
29324_ACEOF
29325rm -f conftest.$ac_objext
29326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29327 (eval $ac_compile) 2>conftest.er1
a848cd7e 29328 ac_status=$?
ac1cb8d3
VS
29329 grep -v '^ *+' conftest.er1 >conftest.err
29330 rm -f conftest.er1
29331 cat conftest.err >&5
a848cd7e
SC
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); } &&
6ebeb4c7 29334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336 (eval $ac_try) 2>&5
29337 ac_status=$?
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; } &&
29340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29342 (eval $ac_try) 2>&5
29343 ac_status=$?
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; }; then
0ad5d837 29346 wx_cv_lib_motif2="yes"
a848cd7e
SC
29347else
29348 echo "$as_me: failed program was:" >&5
29349sed 's/^/| /' conftest.$ac_ext >&5
29350
0ad5d837
VZ
29351wx_cv_lib_motif2="no"
29352fi
29353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29354fi
29355echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29356echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29357 if test "$wx_cv_lib_motif2" = "yes"; then
29358 cat >>confdefs.h <<\_ACEOF
29359#define __WXMOTIF20__ 1
29360_ACEOF
a848cd7e 29361
0ad5d837
VZ
29362 else
29363 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29364#define __WXMOTIF20__ 0
29365_ACEOF
29366
0ad5d837 29367 fi
2113bc77
MW
29368
29369 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29370echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29371if test "${wx_cv_lib_lesstif+set}" = set; then
29372 echo $ECHO_N "(cached) $ECHO_C" >&6
29373else
29374 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29375/* confdefs.h. */
29376_ACEOF
29377cat confdefs.h >>conftest.$ac_ext
29378cat >>conftest.$ac_ext <<_ACEOF
29379/* end confdefs.h. */
29380
0ad5d837 29381 #include <Xm/Xm.h>
2113bc77
MW
29382
29383int
29384main ()
29385{
29386
0ad5d837
VZ
29387 #if !defined(LesstifVersion) || LesstifVersion <= 0
29388 Not Lesstif
29389 #endif
2113bc77
MW
29390
29391 ;
29392 return 0;
29393}
29394_ACEOF
29395rm -f conftest.$ac_objext
29396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29397 (eval $ac_compile) 2>conftest.er1
29398 ac_status=$?
29399 grep -v '^ *+' conftest.er1 >conftest.err
29400 rm -f conftest.er1
29401 cat conftest.err >&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } &&
6ebeb4c7 29404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
29405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406 (eval $ac_try) 2>&5
29407 ac_status=$?
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; } &&
29410 { ac_try='test -s conftest.$ac_objext'
29411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29412 (eval $ac_try) 2>&5
29413 ac_status=$?
29414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415 (exit $ac_status); }; }; then
0ad5d837 29416 wx_cv_lib_lesstif="yes"
2113bc77
MW
29417else
29418 echo "$as_me: failed program was:" >&5
29419sed 's/^/| /' conftest.$ac_ext >&5
29420
0ad5d837
VZ
29421wx_cv_lib_lesstif="no"
29422fi
29423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29424
0ad5d837
VZ
29425fi
29426echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29427echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29428 if test "$wx_cv_lib_lesstif" = "yes"; then
29429 cat >>confdefs.h <<\_ACEOF
29430#define __WXLESSTIF__ 1
29431_ACEOF
29432
29433 else
29434 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29435#define __WXLESSTIF__ 0
29436_ACEOF
29437
0ad5d837 29438 fi
2113bc77 29439
a848cd7e
SC
29440 CFLAGS=$save_CFLAGS
29441
62fa8b3a 29442 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29443 TOOLKIT=MOTIF
29444 GUIDIST=MOTIF_DIST
29445 fi
29446
74b84332 29447 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29448 if test "$wxUSE_LIBXPM" = "sys"; then
29449 echo "$as_me:$LINENO: checking for Xpm library" >&5
29450echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29451
0ad5d837
VZ
29452 ac_find_libraries=
29453 for ac_dir in $SEARCH_LIB;
a848cd7e 29454 do
3eca31dc 29455 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29456 if test -f "$ac_dir/libXpm.$ac_extension"; then
29457 ac_find_libraries=$ac_dir
29458 break 2
29459 fi
29460 done
29461 done
29462
29463 if test "$ac_find_libraries" != "" ; then
29464
0ad5d837 29465 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29466 ac_path_to_link=""
29467 else
0ad5d837
VZ
29468 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29469 result=$?
29470 if test $result = 0; then
29471 ac_path_to_link=""
29472 else
29473 ac_path_to_link=" -L$ac_find_libraries"
29474 fi
a848cd7e
SC
29475 fi
29476
29477 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29478 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29479echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29480
29481 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29482echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29483if test "${wx_cv_x11_xpm_h+set}" = set; then
29484 echo $ECHO_N "(cached) $ECHO_C" >&6
29485else
29486
29487 save_CFLAGS=$CFLAGS
29488 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29489
29490 cat >conftest.$ac_ext <<_ACEOF
29491/* confdefs.h. */
29492_ACEOF
29493cat confdefs.h >>conftest.$ac_ext
29494cat >>conftest.$ac_ext <<_ACEOF
29495/* end confdefs.h. */
29496
29497 #include <X11/xpm.h>
29498
29499int
29500main ()
29501{
29502
29503 int version;
29504 version = XpmLibraryVersion();
29505
29506 ;
29507 return 0;
29508}
29509_ACEOF
29510rm -f conftest.$ac_objext
29511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29512 (eval $ac_compile) 2>conftest.er1
a848cd7e 29513 ac_status=$?
ac1cb8d3
VS
29514 grep -v '^ *+' conftest.er1 >conftest.err
29515 rm -f conftest.er1
29516 cat conftest.err >&5
a848cd7e
SC
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); } &&
6ebeb4c7 29519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29521 (eval $ac_try) 2>&5
29522 ac_status=$?
29523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524 (exit $ac_status); }; } &&
29525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29527 (eval $ac_try) 2>&5
29528 ac_status=$?
29529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530 (exit $ac_status); }; }; then
29531 wx_cv_x11_xpm_h=yes
29532else
29533 echo "$as_me: failed program was:" >&5
29534sed 's/^/| /' conftest.$ac_ext >&5
29535
29536wx_cv_x11_xpm_h=no
29537
29538fi
ac1cb8d3 29539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29540
29541 CFLAGS=$save_CFLAGS
29542
29543
29544fi
29545echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29546echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29547
29548 if test $wx_cv_x11_xpm_h = "yes"; then
29549 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29550 cat >>confdefs.h <<\_ACEOF
29551#define wxHAVE_LIB_XPM 1
29552_ACEOF
29553
29554 else
29555 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29556echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29557 fi
29558 fi
29559
29560 fi
29561
29562 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29563echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29564if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29565 echo $ECHO_N "(cached) $ECHO_C" >&6
29566else
29567 ac_check_lib_save_LIBS=$LIBS
29568LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29569cat >conftest.$ac_ext <<_ACEOF
29570/* confdefs.h. */
29571_ACEOF
29572cat confdefs.h >>conftest.$ac_ext
29573cat >>conftest.$ac_ext <<_ACEOF
29574/* end confdefs.h. */
29575
29576/* Override any gcc2 internal prototype to avoid an error. */
29577#ifdef __cplusplus
29578extern "C"
29579#endif
29580/* We use char because int might match the return type of a gcc2
29581 builtin and then its argument prototype would still apply. */
29582char XShapeQueryExtension ();
29583int
29584main ()
29585{
29586XShapeQueryExtension ();
29587 ;
29588 return 0;
29589}
29590_ACEOF
29591rm -f conftest.$ac_objext conftest$ac_exeext
29592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29593 (eval $ac_link) 2>conftest.er1
a848cd7e 29594 ac_status=$?
ac1cb8d3
VS
29595 grep -v '^ *+' conftest.er1 >conftest.err
29596 rm -f conftest.er1
29597 cat conftest.err >&5
a848cd7e
SC
29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); } &&
6ebeb4c7 29600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29602 (eval $ac_try) 2>&5
29603 ac_status=$?
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; } &&
29606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29608 (eval $ac_try) 2>&5
29609 ac_status=$?
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); }; }; then
29612 ac_cv_lib_Xext_XShapeQueryExtension=yes
29613else
29614 echo "$as_me: failed program was:" >&5
29615sed 's/^/| /' conftest.$ac_ext >&5
29616
29617ac_cv_lib_Xext_XShapeQueryExtension=no
29618fi
ac1cb8d3
VS
29619rm -f conftest.err conftest.$ac_objext \
29620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29621LIBS=$ac_check_lib_save_LIBS
29622fi
29623echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29624echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29625if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29626
29627 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29628 wxHAVE_XEXT_LIB=1
29629
29630fi
29631
29632
29633 if test "$wxHAVE_XEXT_LIB" = 1; then
29634 save_CFLAGS="$CFLAGS"
29635 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29636
29637 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29638echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29639 cat >conftest.$ac_ext <<_ACEOF
29640/* confdefs.h. */
29641_ACEOF
29642cat confdefs.h >>conftest.$ac_ext
29643cat >>conftest.$ac_ext <<_ACEOF
29644/* end confdefs.h. */
29645
29646 #include <X11/Xlib.h>
29647 #include <X11/extensions/shape.h>
29648
29649int
29650main ()
29651{
29652
29653 int dummy1, dummy2;
29654 XShapeQueryExtension((Display*)NULL,
29655 (int*)NULL, (int*)NULL);
29656
29657 ;
29658 return 0;
29659}
29660_ACEOF
29661rm -f conftest.$ac_objext
29662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29663 (eval $ac_compile) 2>conftest.er1
a848cd7e 29664 ac_status=$?
ac1cb8d3
VS
29665 grep -v '^ *+' conftest.er1 >conftest.err
29666 rm -f conftest.er1
29667 cat conftest.err >&5
a848cd7e
SC
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); } &&
6ebeb4c7 29670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29672 (eval $ac_try) 2>&5
29673 ac_status=$?
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); }; } &&
29676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29678 (eval $ac_try) 2>&5
29679 ac_status=$?
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); }; }; then
29682
29683 cat >>confdefs.h <<\_ACEOF
29684#define HAVE_XSHAPE 1
29685_ACEOF
29686
29687 echo "$as_me:$LINENO: result: found" >&5
29688echo "${ECHO_T}found" >&6
29689
29690else
29691 echo "$as_me: failed program was:" >&5
29692sed 's/^/| /' conftest.$ac_ext >&5
29693
29694
29695 echo "$as_me:$LINENO: result: not found" >&5
29696echo "${ECHO_T}not found" >&6
29697
29698fi
ac1cb8d3 29699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29700 CFLAGS="$save_CFLAGS"
29701
29702 fi
29703 fi
29704
29705 if test "$wxUSE_MAC" = 1; then
29706 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29707echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29708 if test "$GCC" = yes; then
29709 echo "$as_me:$LINENO: result: gcc" >&5
29710echo "${ECHO_T}gcc" >&6
29711 CPPFLAGS_PASCAL="-fpascal-strings"
29712 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29713 echo "$as_me:$LINENO: result: xlc" >&5
29714echo "${ECHO_T}xlc" >&6
29715 CPPFLAGS_PASCAL="-qmacpstr"
29716 else
29717 echo "$as_me:$LINENO: result: none" >&5
29718echo "${ECHO_T}none" >&6
29719 fi
29720
1e9e8aba
DE
29721 if test "x$wxUSE_UNIX" = "xyes"; then
29722 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29723 else
29724 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29725 fi
a848cd7e 29726
a848cd7e
SC
29727 TOOLKIT=MAC
29728 GUIDIST=MACX_DIST
dd21ced8 29729 WXBASEPORT="_carbon"
a848cd7e
SC
29730 fi
29731
29732 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
29733 TOOLKIT=COCOA
29734 GUIDIST=COCOA_DIST
29735 fi
29736
29737 if test "$wxUSE_PM" = 1; then
29738 TOOLKIT=PM
de59c161
RD
29739 GUIDIST=PM_DIST
29740 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
29741echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
29742if test "${wx_cv_spbcdata+set}" = set; then
29743 echo $ECHO_N "(cached) $ECHO_C" >&6
29744else
29745
29746 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
29747/* confdefs.h. */
29748_ACEOF
29749cat confdefs.h >>conftest.$ac_ext
29750cat >>conftest.$ac_ext <<_ACEOF
29751/* end confdefs.h. */
29752
29753 #define INCL_PM
29754 #include <os2.h>
29755
29756int
29757main ()
29758{
29759
29760 SPBCDATA test;
29761
29762 ;
29763 return 0;
29764}
29765_ACEOF
29766rm -f conftest.$ac_objext
29767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29768 (eval $ac_compile) 2>conftest.er1
de59c161 29769 ac_status=$?
ac1cb8d3
VS
29770 grep -v '^ *+' conftest.er1 >conftest.err
29771 rm -f conftest.er1
29772 cat conftest.err >&5
de59c161
RD
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); } &&
6ebeb4c7 29775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29777 (eval $ac_try) 2>&5
29778 ac_status=$?
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); }; } &&
29781 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
29782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29783 (eval $ac_try) 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
29787 wx_cv_spbcdata=yes
29788else
29789 echo "$as_me: failed program was:" >&5
29790sed 's/^/| /' conftest.$ac_ext >&5
29791
29792wx_cv_spbcdata=no
29793
29794fi
ac1cb8d3 29795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
29796
29797
29798fi
29799echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
29800echo "${ECHO_T}$wx_cv_spbcdata" >&6
29801
29802 if test $wx_cv_spbcdata = "yes"; then
29803 cat >>confdefs.h <<\_ACEOF
29804#define HAVE_SPBCDATA 1
29805_ACEOF
29806
29807 fi
a848cd7e
SC
29808 fi
29809
29810 if test "$TOOLKIT" = "PM" ; then
29811 TOOLKIT_DIR="os2"
29812 else
29813 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
29814 fi
29815
a848cd7e 29816 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
29817 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
29818 WIDGET_SET=univ
a848cd7e
SC
29819 fi
29820
29821 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
29822 DISTDIR="wx\$(TOOLKIT)"
29823else
29824 USE_GUI=0
29825
29826 TOOLKIT_DIR="base"
29827
29828 if test "$USE_WIN32" = 1 ; then
a848cd7e 29829 TOOLKIT="MSW"
a848cd7e
SC
29830 fi
29831
a848cd7e
SC
29832 GUIDIST="BASE_DIST"
29833 DISTDIR="wxBase"
29834fi
29835
29836
d12aef51
VZ
29837if test "$wxUSE_GUI" = "yes"; then
29838 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
29839
29840for ac_header in X11/Xlib.h
29841do
29842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29843if eval "test \"\${$as_ac_Header+set}\" = set"; then
29844 echo "$as_me:$LINENO: checking for $ac_header" >&5
29845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29846if eval "test \"\${$as_ac_Header+set}\" = set"; then
29847 echo $ECHO_N "(cached) $ECHO_C" >&6
29848fi
29849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29851else
29852 # Is the header compilable?
29853echo "$as_me:$LINENO: checking $ac_header usability" >&5
29854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29855cat >conftest.$ac_ext <<_ACEOF
29856/* confdefs.h. */
29857_ACEOF
29858cat confdefs.h >>conftest.$ac_ext
29859cat >>conftest.$ac_ext <<_ACEOF
29860/* end confdefs.h. */
29861$ac_includes_default
29862#include <$ac_header>
29863_ACEOF
29864rm -f conftest.$ac_objext
29865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29866 (eval $ac_compile) 2>conftest.er1
29867 ac_status=$?
29868 grep -v '^ *+' conftest.er1 >conftest.err
29869 rm -f conftest.er1
29870 cat conftest.err >&5
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); } &&
29873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29875 (eval $ac_try) 2>&5
29876 ac_status=$?
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; } &&
29879 { ac_try='test -s conftest.$ac_objext'
29880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29881 (eval $ac_try) 2>&5
29882 ac_status=$?
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; }; then
29885 ac_header_compiler=yes
29886else
29887 echo "$as_me: failed program was:" >&5
29888sed 's/^/| /' conftest.$ac_ext >&5
29889
29890ac_header_compiler=no
29891fi
29892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29894echo "${ECHO_T}$ac_header_compiler" >&6
29895
29896# Is the header present?
29897echo "$as_me:$LINENO: checking $ac_header presence" >&5
29898echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29899cat >conftest.$ac_ext <<_ACEOF
29900/* confdefs.h. */
29901_ACEOF
29902cat confdefs.h >>conftest.$ac_ext
29903cat >>conftest.$ac_ext <<_ACEOF
29904/* end confdefs.h. */
29905#include <$ac_header>
29906_ACEOF
29907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29909 ac_status=$?
29910 grep -v '^ *+' conftest.er1 >conftest.err
29911 rm -f conftest.er1
29912 cat conftest.err >&5
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); } >/dev/null; then
29915 if test -s conftest.err; then
29916 ac_cpp_err=$ac_c_preproc_warn_flag
29917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29918 else
29919 ac_cpp_err=
29920 fi
29921else
29922 ac_cpp_err=yes
29923fi
29924if test -z "$ac_cpp_err"; then
29925 ac_header_preproc=yes
29926else
29927 echo "$as_me: failed program was:" >&5
29928sed 's/^/| /' conftest.$ac_ext >&5
29929
29930 ac_header_preproc=no
29931fi
29932rm -f conftest.err conftest.$ac_ext
29933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29934echo "${ECHO_T}$ac_header_preproc" >&6
29935
29936# So? What about this header?
29937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29938 yes:no: )
29939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29943 ac_header_preproc=yes
29944 ;;
29945 no:yes:* )
29946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29949echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29953echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29958 (
29959 cat <<\_ASBOX
29960## ----------------------------------------- ##
29961## Report this to wx-dev@lists.wxwidgets.org ##
29962## ----------------------------------------- ##
29963_ASBOX
29964 ) |
29965 sed "s/^/$as_me: WARNING: /" >&2
29966 ;;
29967esac
29968echo "$as_me:$LINENO: checking for $ac_header" >&5
29969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29970if eval "test \"\${$as_ac_Header+set}\" = set"; then
29971 echo $ECHO_N "(cached) $ECHO_C" >&6
29972else
29973 eval "$as_ac_Header=\$ac_header_preproc"
29974fi
29975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29977
29978fi
29979if test `eval echo '${'$as_ac_Header'}'` = yes; then
29980 cat >>confdefs.h <<_ACEOF
29981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29982_ACEOF
29983
29984fi
29985
29986done
29987
29988
29989for ac_header in X11/XKBlib.h
29990do
29991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29992echo "$as_me:$LINENO: checking for $ac_header" >&5
29993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29994if eval "test \"\${$as_ac_Header+set}\" = set"; then
29995 echo $ECHO_N "(cached) $ECHO_C" >&6
29996else
29997 cat >conftest.$ac_ext <<_ACEOF
29998/* confdefs.h. */
29999_ACEOF
30000cat confdefs.h >>conftest.$ac_ext
30001cat >>conftest.$ac_ext <<_ACEOF
30002/* end confdefs.h. */
30003
30004 #if HAVE_X11_XLIB_H
30005 #include <X11/Xlib.h>
30006 #endif
30007
30008
30009#include <$ac_header>
30010_ACEOF
30011rm -f conftest.$ac_objext
30012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30013 (eval $ac_compile) 2>conftest.er1
30014 ac_status=$?
30015 grep -v '^ *+' conftest.er1 >conftest.err
30016 rm -f conftest.er1
30017 cat conftest.err >&5
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); } &&
30020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30022 (eval $ac_try) 2>&5
30023 ac_status=$?
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); }; } &&
30026 { ac_try='test -s conftest.$ac_objext'
30027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30028 (eval $ac_try) 2>&5
30029 ac_status=$?
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); }; }; then
30032 eval "$as_ac_Header=yes"
30033else
30034 echo "$as_me: failed program was:" >&5
30035sed 's/^/| /' conftest.$ac_ext >&5
30036
30037eval "$as_ac_Header=no"
30038fi
30039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30040fi
30041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30043if test `eval echo '${'$as_ac_Header'}'` = yes; then
30044 cat >>confdefs.h <<_ACEOF
30045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30046_ACEOF
30047
30048fi
30049
30050done
30051
30052 fi
30053fi
30054
a848cd7e
SC
30055
30056
30057IODBC_C_SRC=""
30058
30059
30060if test "$TOOLKIT" != "MSW" ; then
30061
30062 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30063
30064 if test "${ac_cv_header_sql_h+set}" = set; then
30065 echo "$as_me:$LINENO: checking for sql.h" >&5
30066echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30067if test "${ac_cv_header_sql_h+set}" = set; then
30068 echo $ECHO_N "(cached) $ECHO_C" >&6
30069fi
30070echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30071echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30072else
30073 # Is the header compilable?
30074echo "$as_me:$LINENO: checking sql.h usability" >&5
30075echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30076cat >conftest.$ac_ext <<_ACEOF
30077/* confdefs.h. */
30078_ACEOF
30079cat confdefs.h >>conftest.$ac_ext
30080cat >>conftest.$ac_ext <<_ACEOF
30081/* end confdefs.h. */
30082$ac_includes_default
30083#include <sql.h>
30084_ACEOF
30085rm -f conftest.$ac_objext
30086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30087 (eval $ac_compile) 2>conftest.er1
a848cd7e 30088 ac_status=$?
ac1cb8d3
VS
30089 grep -v '^ *+' conftest.er1 >conftest.err
30090 rm -f conftest.er1
30091 cat conftest.err >&5
a848cd7e
SC
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); } &&
6ebeb4c7 30094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30096 (eval $ac_try) 2>&5
30097 ac_status=$?
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); }; } &&
30100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30102 (eval $ac_try) 2>&5
30103 ac_status=$?
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); }; }; then
30106 ac_header_compiler=yes
30107else
30108 echo "$as_me: failed program was:" >&5
30109sed 's/^/| /' conftest.$ac_ext >&5
30110
30111ac_header_compiler=no
30112fi
ac1cb8d3 30113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30115echo "${ECHO_T}$ac_header_compiler" >&6
30116
30117# Is the header present?
30118echo "$as_me:$LINENO: checking sql.h presence" >&5
30119echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30120cat >conftest.$ac_ext <<_ACEOF
30121/* confdefs.h. */
30122_ACEOF
30123cat confdefs.h >>conftest.$ac_ext
30124cat >>conftest.$ac_ext <<_ACEOF
30125/* end confdefs.h. */
30126#include <sql.h>
30127_ACEOF
30128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30130 ac_status=$?
30131 grep -v '^ *+' conftest.er1 >conftest.err
30132 rm -f conftest.er1
30133 cat conftest.err >&5
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); } >/dev/null; then
30136 if test -s conftest.err; then
30137 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30139 else
30140 ac_cpp_err=
30141 fi
30142else
30143 ac_cpp_err=yes
30144fi
30145if test -z "$ac_cpp_err"; then
30146 ac_header_preproc=yes
30147else
30148 echo "$as_me: failed program was:" >&5
30149sed 's/^/| /' conftest.$ac_ext >&5
30150
30151 ac_header_preproc=no
30152fi
30153rm -f conftest.err conftest.$ac_ext
30154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30155echo "${ECHO_T}$ac_header_preproc" >&6
30156
30157# So? What about this header?
ac1cb8d3
VS
30158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30159 yes:no: )
a848cd7e
SC
30160 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30161echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30162 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30163echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30164 ac_header_preproc=yes
a848cd7e 30165 ;;
ac1cb8d3 30166 no:yes:* )
a848cd7e
SC
30167 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30168echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30169 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30170echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30171 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30172echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30173 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30174echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30175 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30176echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30177 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30178echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30179 (
30180 cat <<\_ASBOX
ac1cb8d3
VS
30181## ----------------------------------------- ##
30182## Report this to wx-dev@lists.wxwidgets.org ##
30183## ----------------------------------------- ##
a848cd7e
SC
30184_ASBOX
30185 ) |
30186 sed "s/^/$as_me: WARNING: /" >&2
30187 ;;
30188esac
30189echo "$as_me:$LINENO: checking for sql.h" >&5
30190echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30191if test "${ac_cv_header_sql_h+set}" = set; then
30192 echo $ECHO_N "(cached) $ECHO_C" >&6
30193else
30194 ac_cv_header_sql_h=$ac_header_preproc
30195fi
30196echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30197echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30198
30199fi
30200if test $ac_cv_header_sql_h = yes; then
30201 found_sql_h=1
30202fi
30203
30204
30205 if test "x$found_sql_h" = "x1" ; then
30206 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30207echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30208if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30209 echo $ECHO_N "(cached) $ECHO_C" >&6
30210else
30211 ac_check_lib_save_LIBS=$LIBS
30212LIBS="-liodbc $LIBS"
30213cat >conftest.$ac_ext <<_ACEOF
30214/* confdefs.h. */
30215_ACEOF
30216cat confdefs.h >>conftest.$ac_ext
30217cat >>conftest.$ac_ext <<_ACEOF
30218/* end confdefs.h. */
30219
30220/* Override any gcc2 internal prototype to avoid an error. */
30221#ifdef __cplusplus
30222extern "C"
30223#endif
30224/* We use char because int might match the return type of a gcc2
30225 builtin and then its argument prototype would still apply. */
30226char SQLAllocEnv ();
30227int
30228main ()
30229{
30230SQLAllocEnv ();
30231 ;
30232 return 0;
30233}
30234_ACEOF
30235rm -f conftest.$ac_objext conftest$ac_exeext
30236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30237 (eval $ac_link) 2>conftest.er1
a848cd7e 30238 ac_status=$?
ac1cb8d3
VS
30239 grep -v '^ *+' conftest.er1 >conftest.err
30240 rm -f conftest.er1
30241 cat conftest.err >&5
a848cd7e
SC
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); } &&
6ebeb4c7 30244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30246 (eval $ac_try) 2>&5
30247 ac_status=$?
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); }; } &&
30250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30252 (eval $ac_try) 2>&5
30253 ac_status=$?
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); }; }; then
30256 ac_cv_lib_iodbc_SQLAllocEnv=yes
30257else
30258 echo "$as_me: failed program was:" >&5
30259sed 's/^/| /' conftest.$ac_ext >&5
30260
30261ac_cv_lib_iodbc_SQLAllocEnv=no
30262fi
ac1cb8d3
VS
30263rm -f conftest.err conftest.$ac_objext \
30264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30265LIBS=$ac_check_lib_save_LIBS
30266fi
30267echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30268echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30269if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30270 ODBC_LINK=" -liodbc"
30271else
30272
30273 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30274echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30275if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30276 echo $ECHO_N "(cached) $ECHO_C" >&6
30277else
30278 ac_check_lib_save_LIBS=$LIBS
30279LIBS="-lunixodbc $LIBS"
30280cat >conftest.$ac_ext <<_ACEOF
30281/* confdefs.h. */
30282_ACEOF
30283cat confdefs.h >>conftest.$ac_ext
30284cat >>conftest.$ac_ext <<_ACEOF
30285/* end confdefs.h. */
30286
30287/* Override any gcc2 internal prototype to avoid an error. */
30288#ifdef __cplusplus
30289extern "C"
30290#endif
30291/* We use char because int might match the return type of a gcc2
30292 builtin and then its argument prototype would still apply. */
30293char SQLAllocEnv ();
30294int
30295main ()
30296{
30297SQLAllocEnv ();
30298 ;
30299 return 0;
30300}
30301_ACEOF
30302rm -f conftest.$ac_objext conftest$ac_exeext
30303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30304 (eval $ac_link) 2>conftest.er1
a848cd7e 30305 ac_status=$?
ac1cb8d3
VS
30306 grep -v '^ *+' conftest.er1 >conftest.err
30307 rm -f conftest.er1
30308 cat conftest.err >&5
a848cd7e
SC
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); } &&
6ebeb4c7 30311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30313 (eval $ac_try) 2>&5
30314 ac_status=$?
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); }; } &&
30317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30319 (eval $ac_try) 2>&5
30320 ac_status=$?
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); }; }; then
30323 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30324else
30325 echo "$as_me: failed program was:" >&5
30326sed 's/^/| /' conftest.$ac_ext >&5
30327
30328ac_cv_lib_unixodbc_SQLAllocEnv=no
30329fi
ac1cb8d3
VS
30330rm -f conftest.err conftest.$ac_objext \
30331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30332LIBS=$ac_check_lib_save_LIBS
30333fi
30334echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30335echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30336if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30337 ODBC_LINK=" -lunixodbc"
30338else
30339
30340 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30341echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30342if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30343 echo $ECHO_N "(cached) $ECHO_C" >&6
30344else
30345 ac_check_lib_save_LIBS=$LIBS
30346LIBS="-lodbc $LIBS"
30347cat >conftest.$ac_ext <<_ACEOF
30348/* confdefs.h. */
30349_ACEOF
30350cat confdefs.h >>conftest.$ac_ext
30351cat >>conftest.$ac_ext <<_ACEOF
30352/* end confdefs.h. */
30353
30354/* Override any gcc2 internal prototype to avoid an error. */
30355#ifdef __cplusplus
30356extern "C"
30357#endif
30358/* We use char because int might match the return type of a gcc2
30359 builtin and then its argument prototype would still apply. */
30360char SQLAllocEnv ();
30361int
30362main ()
30363{
30364SQLAllocEnv ();
30365 ;
30366 return 0;
30367}
30368_ACEOF
30369rm -f conftest.$ac_objext conftest$ac_exeext
30370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30371 (eval $ac_link) 2>conftest.er1
a848cd7e 30372 ac_status=$?
ac1cb8d3
VS
30373 grep -v '^ *+' conftest.er1 >conftest.err
30374 rm -f conftest.er1
30375 cat conftest.err >&5
a848cd7e
SC
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); } &&
6ebeb4c7 30378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30380 (eval $ac_try) 2>&5
30381 ac_status=$?
30382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383 (exit $ac_status); }; } &&
30384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30386 (eval $ac_try) 2>&5
30387 ac_status=$?
30388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30389 (exit $ac_status); }; }; then
30390 ac_cv_lib_odbc_SQLAllocEnv=yes
30391else
30392 echo "$as_me: failed program was:" >&5
30393sed 's/^/| /' conftest.$ac_ext >&5
30394
30395ac_cv_lib_odbc_SQLAllocEnv=no
30396fi
ac1cb8d3
VS
30397rm -f conftest.err conftest.$ac_objext \
30398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30399LIBS=$ac_check_lib_save_LIBS
30400fi
30401echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30402echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30403if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30404 ODBC_LINK=" -lodbc"
30405fi
30406
30407
30408fi
30409
30410
30411fi
30412
30413 fi
30414 if test "x$ODBC_LINK" = "x" ; then
30415 if test "$wxUSE_ODBC" = "sys" ; then
30416 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30417echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30418 { (exit 1); exit 1; }; }
30419 else
30420 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30421echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30422 wxUSE_ODBC=builtin
30423 fi
30424 else
30425 wxUSE_ODBC=sys
30426 fi
30427 fi
a848cd7e 30428
2da0c077
RD
30429 if test "$wxUSE_ODBC" = "builtin" ; then
30430 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30431#define wxUSE_BUILTIN_IODBC 1
30432_ACEOF
30433
a848cd7e
SC
30434 fi
30435fi
30436
2da0c077
RD
30437if test "$wxUSE_ODBC" != "no" ; then
30438 cat >>confdefs.h <<\_ACEOF
30439#define wxUSE_ODBC 1
30440_ACEOF
30441
30442 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30443
30444 WXODBCFLAG="-D_IODBC_"
30445fi
a848cd7e 30446
01cb68df 30447
a848cd7e 30448if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30449 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30450 echo "$as_me:$LINENO: checking for Xinerama" >&5
30451echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30452
0ad5d837
VZ
30453 ac_find_libraries=
30454 for ac_dir in $SEARCH_LIB;
30455 do
30456 for ac_extension in a so sl dylib dll.a; do
30457 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30458 ac_find_libraries=$ac_dir
30459 break 2
30460 fi
30461 done
30462 done
30463
a848cd7e
SC
30464 if test "$ac_find_libraries" != "" ; then
30465
0ad5d837 30466 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30467 ac_path_to_link=""
30468 else
0ad5d837
VZ
30469 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30470 result=$?
30471 if test $result = 0; then
30472 ac_path_to_link=""
30473 else
30474 ac_path_to_link=" -L$ac_find_libraries"
30475 fi
a848cd7e
SC
30476 fi
30477
30478 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30479 LDFLAGS="$LDFLAGS $ac_path_to_link"
30480 fi
30481 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30482 echo "$as_me:$LINENO: result: yes" >&5
30483echo "${ECHO_T}yes" >&6
30484
30485 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30486echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30487
0ad5d837
VZ
30488 ac_find_libraries=
30489 for ac_dir in $SEARCH_LIB;
a848cd7e 30490 do
3eca31dc 30491 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30492 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30493 ac_find_libraries=$ac_dir
30494 break 2
30495 fi
30496 done
30497 done
30498
30499 if test "$ac_find_libraries" != "" ; then
30500 echo "$as_me:$LINENO: result: yes" >&5
30501echo "${ECHO_T}yes" >&6
30502
30503for ac_header in X11/extensions/xf86vmode.h
30504do
30505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30506echo "$as_me:$LINENO: checking for $ac_header" >&5
30507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30508if eval "test \"\${$as_ac_Header+set}\" = set"; then
30509 echo $ECHO_N "(cached) $ECHO_C" >&6
30510else
30511 cat >conftest.$ac_ext <<_ACEOF
30512/* confdefs.h. */
30513_ACEOF
30514cat confdefs.h >>conftest.$ac_ext
30515cat >>conftest.$ac_ext <<_ACEOF
30516/* end confdefs.h. */
30517
30518 #if HAVE_X11_XLIB_H
30519 #include <X11/Xlib.h>
30520 #endif
30521
30522
30523#include <$ac_header>
30524_ACEOF
30525rm -f conftest.$ac_objext
30526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30527 (eval $ac_compile) 2>conftest.er1
a848cd7e 30528 ac_status=$?
ac1cb8d3
VS
30529 grep -v '^ *+' conftest.er1 >conftest.err
30530 rm -f conftest.er1
30531 cat conftest.err >&5
a848cd7e
SC
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); } &&
6ebeb4c7 30534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30536 (eval $ac_try) 2>&5
30537 ac_status=$?
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; } &&
30540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30542 (eval $ac_try) 2>&5
30543 ac_status=$?
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; }; then
30546 eval "$as_ac_Header=yes"
30547else
30548 echo "$as_me: failed program was:" >&5
30549sed 's/^/| /' conftest.$ac_ext >&5
30550
30551eval "$as_ac_Header=no"
30552fi
ac1cb8d3 30553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30554fi
30555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30557if test `eval echo '${'$as_ac_Header'}'` = yes; then
30558 cat >>confdefs.h <<_ACEOF
30559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30560_ACEOF
30561
30562 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30563
30564fi
30565
30566done
30567
30568 else
30569 echo "$as_me:$LINENO: result: no" >&5
30570echo "${ECHO_T}no" >&6
30571 fi
30572
30573 else
30574 echo "$as_me:$LINENO: result: no" >&5
30575echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30576 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30577echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30578 wxUSE_DISPLAY="no"
30579 fi
01cb68df
RG
30580 elif test "$wxUSE_MSW" = 1; then
30581
30582
30583for ac_header in multimon.h ddraw.h
30584do
30585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30586echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30588if eval "test \"\${$as_ac_Header+set}\" = set"; then
30589 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30590else
5294a27e 30591 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30592/* confdefs.h. */
30593_ACEOF
30594cat confdefs.h >>conftest.$ac_ext
30595cat >>conftest.$ac_ext <<_ACEOF
30596/* end confdefs.h. */
5294a27e
VZ
30597#include <windows.h>
30598
01cb68df
RG
30599#include <$ac_header>
30600_ACEOF
30601rm -f conftest.$ac_objext
30602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30603 (eval $ac_compile) 2>conftest.er1
01cb68df 30604 ac_status=$?
ac1cb8d3
VS
30605 grep -v '^ *+' conftest.er1 >conftest.err
30606 rm -f conftest.er1
30607 cat conftest.err >&5
01cb68df
RG
30608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609 (exit $ac_status); } &&
6ebeb4c7 30610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30612 (eval $ac_try) 2>&5
30613 ac_status=$?
30614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615 (exit $ac_status); }; } &&
30616 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30618 (eval $ac_try) 2>&5
30619 ac_status=$?
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621 (exit $ac_status); }; }; then
5294a27e 30622 eval "$as_ac_Header=yes"
01cb68df
RG
30623else
30624 echo "$as_me: failed program was:" >&5
30625sed 's/^/| /' conftest.$ac_ext >&5
30626
5294a27e 30627eval "$as_ac_Header=no"
01cb68df 30628fi
ac1cb8d3 30629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30630fi
30631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30633if test `eval echo '${'$as_ac_Header'}'` = yes; then
30634 cat >>confdefs.h <<_ACEOF
30635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30636_ACEOF
30637
30638else
30639
5294a27e
VZ
30640 wxUSE_DISPLAY="no"
30641 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30642echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30643
30644fi
30645
30646done
30647
a848cd7e
SC
30648 fi
30649fi
30650
30651
30652USE_OPENGL=0
30653if test "$wxUSE_OPENGL" = "yes"; then
30654 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30655 OPENGL_LIBS="-framework OpenGL -framework AGL"
30656 elif test "$wxUSE_MSW" = 1; then
30657 OPENGL_LIBS="-lopengl32 -lglu32"
30658 else
30659
30660
30661ac_find_includes=
30662for ac_dir in $SEARCH_INCLUDE /usr/include;
30663 do
30664 if test -f "$ac_dir/GL/gl.h"; then
30665 ac_find_includes=$ac_dir
30666 break
30667 fi
30668 done
30669
30670 if test "$ac_find_includes" != "" ; then
30671 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30672echo "${ECHO_T}found in $ac_find_includes" >&6
30673
30674 if test "x$ac_find_includes" = "x/usr/include"; then
30675 ac_path_to_include=""
30676 else
30677 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30678 result=$?
30679 if test $result = 0; then
30680 ac_path_to_include=""
30681 else
30682 ac_path_to_include=" -I$ac_find_includes"
30683 fi
30684 fi
30685
30686 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30687 fi
30688
30689 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30690 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30691echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30692if test "${ac_cv_header_GL_gl_h+set}" = set; then
30693 echo $ECHO_N "(cached) $ECHO_C" >&6
30694fi
30695echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30696echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30697else
30698 # Is the header compilable?
30699echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30700echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30701cat >conftest.$ac_ext <<_ACEOF
30702/* confdefs.h. */
30703_ACEOF
30704cat confdefs.h >>conftest.$ac_ext
30705cat >>conftest.$ac_ext <<_ACEOF
30706/* end confdefs.h. */
30707$ac_includes_default
30708#include <GL/gl.h>
30709_ACEOF
30710rm -f conftest.$ac_objext
30711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30712 (eval $ac_compile) 2>conftest.er1
a848cd7e 30713 ac_status=$?
ac1cb8d3
VS
30714 grep -v '^ *+' conftest.er1 >conftest.err
30715 rm -f conftest.er1
30716 cat conftest.err >&5
a848cd7e
SC
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); } &&
6ebeb4c7 30719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30721 (eval $ac_try) 2>&5
30722 ac_status=$?
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); }; } &&
30725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30727 (eval $ac_try) 2>&5
30728 ac_status=$?
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); }; }; then
30731 ac_header_compiler=yes
30732else
30733 echo "$as_me: failed program was:" >&5
30734sed 's/^/| /' conftest.$ac_ext >&5
30735
30736ac_header_compiler=no
30737fi
ac1cb8d3 30738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30739echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30740echo "${ECHO_T}$ac_header_compiler" >&6
30741
30742# Is the header present?
30743echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
30744echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
30745cat >conftest.$ac_ext <<_ACEOF
30746/* confdefs.h. */
30747_ACEOF
30748cat confdefs.h >>conftest.$ac_ext
30749cat >>conftest.$ac_ext <<_ACEOF
30750/* end confdefs.h. */
30751#include <GL/gl.h>
30752_ACEOF
30753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30755 ac_status=$?
30756 grep -v '^ *+' conftest.er1 >conftest.err
30757 rm -f conftest.er1
30758 cat conftest.err >&5
30759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760 (exit $ac_status); } >/dev/null; then
30761 if test -s conftest.err; then
30762 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30764 else
30765 ac_cpp_err=
30766 fi
30767else
30768 ac_cpp_err=yes
30769fi
30770if test -z "$ac_cpp_err"; then
30771 ac_header_preproc=yes
30772else
30773 echo "$as_me: failed program was:" >&5
30774sed 's/^/| /' conftest.$ac_ext >&5
30775
30776 ac_header_preproc=no
30777fi
30778rm -f conftest.err conftest.$ac_ext
30779echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30780echo "${ECHO_T}$ac_header_preproc" >&6
30781
30782# So? What about this header?
ac1cb8d3
VS
30783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30784 yes:no: )
a848cd7e
SC
30785 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30786echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30787 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
30788echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
30789 ac_header_preproc=yes
a848cd7e 30790 ;;
ac1cb8d3 30791 no:yes:* )
a848cd7e
SC
30792 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
30793echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30794 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
30795echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
30796 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
30797echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
30798 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
30799echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30800 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
30801echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30802 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
30803echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30804 (
30805 cat <<\_ASBOX
ac1cb8d3
VS
30806## ----------------------------------------- ##
30807## Report this to wx-dev@lists.wxwidgets.org ##
30808## ----------------------------------------- ##
a848cd7e
SC
30809_ASBOX
30810 ) |
30811 sed "s/^/$as_me: WARNING: /" >&2
30812 ;;
30813esac
30814echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30815echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30816if test "${ac_cv_header_GL_gl_h+set}" = set; then
30817 echo $ECHO_N "(cached) $ECHO_C" >&6
30818else
30819 ac_cv_header_GL_gl_h=$ac_header_preproc
30820fi
30821echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30822echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30823
30824fi
30825if test $ac_cv_header_GL_gl_h = yes; then
30826
30827 found_gl=0
30828
30829 echo "$as_me:$LINENO: checking for -lGL" >&5
30830echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
30831
0ad5d837
VZ
30832 ac_find_libraries=
30833 for ac_dir in $SEARCH_LIB;
a848cd7e 30834 do
3eca31dc 30835 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30836 if test -f "$ac_dir/libGL.$ac_extension"; then
30837 ac_find_libraries=$ac_dir
30838 break 2
30839 fi
30840 done
30841 done
30842
30843 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
30844 echo "$as_me:$LINENO: result: yes" >&5
30845echo "${ECHO_T}yes" >&6
30846
a848cd7e 30847
0ad5d837 30848 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30849 ac_path_to_link=""
30850 else
0ad5d837
VZ
30851 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30852 result=$?
30853 if test $result = 0; then
30854 ac_path_to_link=""
30855 else
30856 ac_path_to_link=" -L$ac_find_libraries"
30857 fi
a848cd7e
SC
30858 fi
30859
30860 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30861 LDFLAGS_GL="$ac_path_to_link"
30862 fi
30863
69120ee4
VZ
30864 echo "$as_me:$LINENO: checking for -lGLU" >&5
30865echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 30866
0ad5d837
VZ
30867 ac_find_libraries=
30868 for ac_dir in $SEARCH_LIB;
30869 do
30870 for ac_extension in a so sl dylib dll.a; do
30871 if test -f "$ac_dir/libGLU.$ac_extension"; then
30872 ac_find_libraries=$ac_dir
30873 break 2
30874 fi
30875 done
30876 done
30877
a848cd7e
SC
30878 if test "$ac_find_libraries" != "" ; then
30879
0ad5d837 30880 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30881 ac_path_to_link=""
30882 else
0ad5d837
VZ
30883 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30884 result=$?
30885 if test $result = 0; then
30886 ac_path_to_link=""
30887 else
30888 ac_path_to_link=" -L$ac_find_libraries"
30889 fi
a848cd7e
SC
30890 fi
30891
30892 if test "$ac_path_to_link" != " -L/usr/lib" -a \
30893 "$ac_path_to_link" != "$LDFLAGS_GL"; then
30894 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
30895 fi
30896
30897 found_gl=1
30898 OPENGL_LIBS="-lGL -lGLU"
30899 echo "$as_me:$LINENO: result: yes" >&5
30900echo "${ECHO_T}yes" >&6
69120ee4
VZ
30901 else
30902 echo "$as_me:$LINENO: result: no" >&5
30903echo "${ECHO_T}no" >&6
a848cd7e 30904 fi
69120ee4
VZ
30905 else
30906 echo "$as_me:$LINENO: result: no" >&5
30907echo "${ECHO_T}no" >&6
a848cd7e
SC
30908 fi
30909
30910 if test "$found_gl" != 1; then
a848cd7e
SC
30911 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
30912echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
30913
0ad5d837
VZ
30914 ac_find_libraries=
30915 for ac_dir in $SEARCH_LIB;
a848cd7e 30916 do
3eca31dc 30917 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30918 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
30919 ac_find_libraries=$ac_dir
30920 break 2
30921 fi
30922 done
30923 done
30924
30925 if test "$ac_find_libraries" != "" ; then
30926
0ad5d837 30927 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30928 ac_path_to_link=""
30929 else
0ad5d837
VZ
30930 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30931 result=$?
30932 if test $result = 0; then
30933 ac_path_to_link=""
30934 else
30935 ac_path_to_link=" -L$ac_find_libraries"
30936 fi
a848cd7e
SC
30937 fi
30938
30939 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
30940 OPENGL_LIBS="-lMesaGL -lMesaGLU"
30941 echo "$as_me:$LINENO: result: yes" >&5
30942echo "${ECHO_T}yes" >&6
30943 else
30944 echo "$as_me:$LINENO: result: no" >&5
30945echo "${ECHO_T}no" >&6
30946 fi
30947 fi
30948
30949fi
30950
30951
30952
30953 if test "x$OPENGL_LIBS" = "x"; then
30954 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
30955echo "$as_me: error: OpenGL libraries not available" >&2;}
30956 { (exit 1); exit 1; }; }
30957 fi
30958 fi
30959
30960 if test "$wxUSE_OPENGL" = "yes"; then
30961 USE_OPENGL=1
30962 cat >>confdefs.h <<\_ACEOF
30963#define wxUSE_OPENGL 1
30964_ACEOF
30965
30966 cat >>confdefs.h <<\_ACEOF
30967#define wxUSE_GLCANVAS 1
30968_ACEOF
30969
30970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
30971 fi
30972fi
30973
a848cd7e
SC
30974
30975if test -n "$TOOLKIT" ; then
30976 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
30977fi
30978
a848cd7e
SC
30979
30980
30981if test "$wxUSE_SHARED" = "yes"; then
30982 case "${host}" in
30983 *-pc-msdosdjgpp )
30984 wxUSE_SHARED=no
30985 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
30986echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
30987 ;;
30988 esac
30989fi
30990
a848cd7e 30991if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
30992
30993
30994 found_versioning=no
30995
30996
30997 if test $found_versioning = no ; then
30998 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
30999echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31000if test "${wx_cv_version_script+set}" = set; then
31001 echo $ECHO_N "(cached) $ECHO_C" >&6
31002else
31003
31004 echo "VER_1 { *; };" >conftest.sym
31005 echo "int main() { return 0; }" >conftest.cpp
31006
31007 if { ac_try='
31008 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31009 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31011 (eval $ac_try) 2>&5
31012 ac_status=$?
31013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31014 (exit $ac_status); }; } ; then
31015 if test -s conftest.stderr ; then
31016 wx_cv_version_script=no
31017 else
31018 wx_cv_version_script=yes
31019 fi
31020 else
31021 wx_cv_version_script=no
31022 fi
e5d4b470
MW
31023
31024 if test $wx_cv_version_script = yes
31025 then
31026 echo "struct B { virtual ~B() { } }; \
31027 struct D : public B { }; \
31028 void F() { D d; }" > conftest.cpp
31029
31030 if { ac_try='
31031 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31032 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31034 (eval $ac_try) 2>&5
31035 ac_status=$?
31036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037 (exit $ac_status); }; } &&
31038 { ac_try='
31039 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31040 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31042 (eval $ac_try) 2>&5
31043 ac_status=$?
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045 (exit $ac_status); }; }
31046 then
31047 if { ac_try='
31048 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31049 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31051 (eval $ac_try) 2>&5
31052 ac_status=$?
31053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054 (exit $ac_status); }; }
31055 then
31056 wx_cv_version_script=yes
31057 else
31058 wx_cv_version_script=no
31059 fi
31060 fi
31061 fi
31062
a848cd7e 31063 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31064 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31065
31066fi
31067echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31068echo "${ECHO_T}$wx_cv_version_script" >&6
31069 if test $wx_cv_version_script = yes ; then
31070 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31071 fi
31072 fi
31073
31074
31075 case "${host}" in
31076 *-*-linux* | *-*-gnu* )
31077 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31078 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31079 ;;
a848cd7e
SC
31080
31081 *-*-solaris2* )
31082 if test "$GCC" = yes ; then
31083 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
31084
31085 saveLdflags="$LDFLAGS"
31086 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31087 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31088echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31089 cat >conftest.$ac_ext <<_ACEOF
31090/* confdefs.h. */
31091_ACEOF
31092cat confdefs.h >>conftest.$ac_ext
31093cat >>conftest.$ac_ext <<_ACEOF
31094/* end confdefs.h. */
31095
31096int
31097main ()
31098{
31099
31100 ;
31101 return 0;
31102}
31103_ACEOF
31104rm -f conftest.$ac_objext conftest$ac_exeext
31105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31106 (eval $ac_link) 2>conftest.er1
a848cd7e 31107 ac_status=$?
ac1cb8d3
VS
31108 grep -v '^ *+' conftest.er1 >conftest.err
31109 rm -f conftest.er1
31110 cat conftest.err >&5
a848cd7e
SC
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); } &&
6ebeb4c7 31113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31115 (eval $ac_try) 2>&5
31116 ac_status=$?
31117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31118 (exit $ac_status); }; } &&
31119 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31121 (eval $ac_try) 2>&5
31122 ac_status=$?
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); }; }; then
31125
31126 echo "$as_me:$LINENO: result: yes" >&5
31127echo "${ECHO_T}yes" >&6
31128 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31129 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31130
31131else
31132 echo "$as_me: failed program was:" >&5
31133sed 's/^/| /' conftest.$ac_ext >&5
31134
31135
31136 echo "$as_me:$LINENO: result: no" >&5
31137echo "${ECHO_T}no" >&6
31138 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31139echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31140 LDFLAGS="$saveLdflags -Wl,-R,/"
31141 cat >conftest.$ac_ext <<_ACEOF
31142/* confdefs.h. */
31143_ACEOF
31144cat confdefs.h >>conftest.$ac_ext
31145cat >>conftest.$ac_ext <<_ACEOF
31146/* end confdefs.h. */
31147
31148int
31149main ()
31150{
31151
31152 ;
31153 return 0;
31154}
31155_ACEOF
31156rm -f conftest.$ac_objext conftest$ac_exeext
31157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31158 (eval $ac_link) 2>conftest.er1
a848cd7e 31159 ac_status=$?
ac1cb8d3
VS
31160 grep -v '^ *+' conftest.er1 >conftest.err
31161 rm -f conftest.er1
31162 cat conftest.err >&5
a848cd7e
SC
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); } &&
6ebeb4c7 31165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31167 (eval $ac_try) 2>&5
31168 ac_status=$?
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); }; } &&
31171 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31173 (eval $ac_try) 2>&5
31174 ac_status=$?
31175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); }; }; then
31177
ffa0583f 31178 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31179echo "${ECHO_T}yes" >&6
ffa0583f
RL
31180 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31181 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31182
a848cd7e
SC
31183else
31184 echo "$as_me: failed program was:" >&5
31185sed 's/^/| /' conftest.$ac_ext >&5
31186
31187
31188 echo "$as_me:$LINENO: result: no" >&5
31189echo "${ECHO_T}no" >&6
31190
31191fi
ac1cb8d3
VS
31192rm -f conftest.err conftest.$ac_objext \
31193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31194
31195fi
ac1cb8d3
VS
31196rm -f conftest.err conftest.$ac_objext \
31197 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31198 LDFLAGS="$saveLdflags"
31199 else
a848cd7e 31200 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31201 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31202 fi
31203 ;;
31204
cfda0ea8 31205 *-*-darwin* )
0caebc27
MW
31206 install_name_tool=`which install_name_tool`
31207 if test "$install_name_tool" -a -x "$install_name_tool"; then
31208 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31209 cat <<EOF >change-install-names
a848cd7e
SC
31210#!/bin/sh
31211libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31212inst_cmd="install_name_tool "
31213for i in \${libnames} ; do
31214 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31215done
31216\${inst_cmd} \${3}
31217EOF
0caebc27
MW
31218 chmod +x change-install-names
31219 fi
a848cd7e
SC
31220 ;;
31221
31222 *-*-cygwin* | *-*-mingw32* )
31223 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
31224 ;;
31225
81f90336
MW
31226 *-*-hpux* )
31227 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31228 WXCONFIG_RPATH="-Wl,+b,\$libdir"
31229 ;;
31230
a848cd7e 31231 esac
ceec2216 31232
ffa0583f
RL
31233 if test $wxUSE_RPATH = "no"; then
31234 SAMPLES_RPATH_FLAG=''
31235 SAMPLES_RPATH_POSTLINK=''
31236 WXCONFIG_RPATH=''
31237 fi
31238
31239 SHARED=1
31240
31241else
31242
ceec2216
RL
31243 config_linkage_component="-static"
31244 SHARED=0
ffa0583f 31245
ceec2216 31246fi
a848cd7e 31247
a848cd7e 31248
ceec2216
RL
31249UNICODE=0
31250lib_unicode_suffix=
31251WX_CHARTYPE="ansi"
31252if test "$wxUSE_UNICODE" = "yes"; then
31253 lib_unicode_suffix=u
31254 WX_CHARTYPE="unicode"
31255 UNICODE=1
a848cd7e
SC
31256fi
31257
ceec2216
RL
31258lib_debug_suffix=
31259WX_DEBUGTYPE="release"
31260DEBUG_FLAG=0
31261if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31262 lib_debug_suffix=d
31263 WX_DEBUGTYPE="debug"
31264 DEBUG_FLAG=1
31265fi
a848cd7e 31266
ceec2216
RL
31267WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31268WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31269
ceec2216
RL
31270DEBUG_INFO=0
31271if test "$wxUSE_DEBUG_INFO" = "yes"; then
31272 DEBUG_INFO=1
31273fi
a848cd7e 31274
ceec2216 31275WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31276
ceec2216 31277TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31278
ceec2216 31279TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31280
ceec2216
RL
31281if test "$cross_compiling" = "yes"; then
31282 HOST_SUFFIX="-$host_alias"
31283 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31284 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31285fi
31286
dd21ced8 31287WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31288if test "${TOOLKIT_DIR}" = "os2"; then
31289 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31290else
31291 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31292fi
ceec2216
RL
31293
31294
31295
1d1af5ea
DE
31296if test "$wxUSE_COCOA" = 1; then
31297
31298
31299 ac_ext=c
31300ac_cpp='$CPP $CPPFLAGS'
31301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31303ac_compiler_gnu=$ac_cv_c_compiler_gnu
31304
31305ac_ext=m
31306
31307 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31308echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31309 cat >conftest.$ac_ext <<_ACEOF
31310/* confdefs.h. */
31311_ACEOF
31312cat confdefs.h >>conftest.$ac_ext
31313cat >>conftest.$ac_ext <<_ACEOF
31314/* end confdefs.h. */
31315#include <AppKit/NSEvent.h>
31316#include <CoreFoundation/CoreFoundation.h>
31317
31318int
31319main ()
31320{
31321
31322 ;
31323 return 0;
31324}
31325_ACEOF
31326rm -f conftest.$ac_objext
31327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31328 (eval $ac_compile) 2>conftest.er1
31329 ac_status=$?
31330 grep -v '^ *+' conftest.er1 >conftest.err
31331 rm -f conftest.er1
31332 cat conftest.err >&5
31333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334 (exit $ac_status); } &&
6ebeb4c7 31335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31337 (eval $ac_try) 2>&5
31338 ac_status=$?
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340 (exit $ac_status); }; } &&
31341 { ac_try='test -s conftest.$ac_objext'
31342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31343 (eval $ac_try) 2>&5
31344 ac_status=$?
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); }; }; then
31347 echo "$as_me:$LINENO: result: no" >&5
31348echo "${ECHO_T}no" >&6
31349else
31350 echo "$as_me: failed program was:" >&5
31351sed 's/^/| /' conftest.$ac_ext >&5
31352
31353echo "$as_me:$LINENO: result: yes" >&5
31354echo "${ECHO_T}yes" >&6
31355 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31356echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31357 cat >conftest.$ac_ext <<_ACEOF
31358/* confdefs.h. */
31359_ACEOF
31360cat confdefs.h >>conftest.$ac_ext
31361cat >>conftest.$ac_ext <<_ACEOF
31362/* end confdefs.h. */
31363#define __Point__ 1
31364#include <AppKit/NSEvent.h>
31365#include <CoreFoundation/CoreFoundation.h>
31366
31367int
31368main ()
31369{
31370
31371 ;
31372 return 0;
31373}
31374_ACEOF
31375rm -f conftest.$ac_objext
31376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31377 (eval $ac_compile) 2>conftest.er1
31378 ac_status=$?
31379 grep -v '^ *+' conftest.er1 >conftest.err
31380 rm -f conftest.er1
31381 cat conftest.err >&5
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); } &&
6ebeb4c7 31384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31386 (eval $ac_try) 2>&5
31387 ac_status=$?
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); }; } &&
31390 { ac_try='test -s conftest.$ac_objext'
31391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392 (eval $ac_try) 2>&5
31393 ac_status=$?
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; }; then
31396 echo "$as_me:$LINENO: result: yes" >&5
31397echo "${ECHO_T}yes" >&6
31398 cat >>confdefs.h <<\_ACEOF
31399#define __Point__ 1
31400_ACEOF
31401
31402
31403else
31404 echo "$as_me: failed program was:" >&5
31405sed 's/^/| /' conftest.$ac_ext >&5
31406
31407{ { echo "$as_me:$LINENO: error: no
31408See \`config.log' for more details." >&5
31409echo "$as_me: error: no
31410See \`config.log' for more details." >&2;}
31411 { (exit 1); exit 1; }; }
31412
31413fi
31414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31415
31416fi
31417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31418 ac_ext=c
31419ac_cpp='$CPP $CPPFLAGS'
31420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31422ac_compiler_gnu=$ac_cv_c_compiler_gnu
31423
31424fi
31425
a848cd7e 31426if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31427 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31428 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31429
a848cd7e 31430 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31431
31432 # Extract the first word of "Rez", so it can be a program name with args.
31433set dummy Rez; ac_word=$2
31434echo "$as_me:$LINENO: checking for $ac_word" >&5
31435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31436if test "${ac_cv_prog_RESCOMP+set}" = set; then
31437 echo $ECHO_N "(cached) $ECHO_C" >&6
31438else
31439 if test -n "$RESCOMP"; then
31440 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31441else
31442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31443for as_dir in $PATH
31444do
31445 IFS=$as_save_IFS
31446 test -z "$as_dir" && as_dir=.
31447 for ac_exec_ext in '' $ac_executable_extensions; do
31448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31449 ac_cv_prog_RESCOMP="Rez"
31450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31451 break 2
31452 fi
31453done
31454done
31455
31456 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31457fi
31458fi
31459RESCOMP=$ac_cv_prog_RESCOMP
31460if test -n "$RESCOMP"; then
31461 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31462echo "${ECHO_T}$RESCOMP" >&6
31463else
31464 echo "$as_me:$LINENO: result: no" >&5
31465echo "${ECHO_T}no" >&6
31466fi
31467
31468 # Extract the first word of "DeRez", so it can be a program name with args.
31469set dummy DeRez; ac_word=$2
31470echo "$as_me:$LINENO: checking for $ac_word" >&5
31471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31472if test "${ac_cv_prog_DEREZ+set}" = set; then
31473 echo $ECHO_N "(cached) $ECHO_C" >&6
31474else
31475 if test -n "$DEREZ"; then
31476 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31477else
31478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31479for as_dir in $PATH
31480do
31481 IFS=$as_save_IFS
31482 test -z "$as_dir" && as_dir=.
31483 for ac_exec_ext in '' $ac_executable_extensions; do
31484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31485 ac_cv_prog_DEREZ="DeRez"
31486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31487 break 2
31488 fi
31489done
31490done
31491
31492 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31493fi
31494fi
31495DEREZ=$ac_cv_prog_DEREZ
31496if test -n "$DEREZ"; then
31497 echo "$as_me:$LINENO: result: $DEREZ" >&5
31498echo "${ECHO_T}$DEREZ" >&6
31499else
31500 echo "$as_me:$LINENO: result: no" >&5
31501echo "${ECHO_T}no" >&6
31502fi
31503
31504 # Extract the first word of "SetFile", so it can be a program name with args.
31505set dummy SetFile; ac_word=$2
31506echo "$as_me:$LINENO: checking for $ac_word" >&5
31507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31508if test "${ac_cv_prog_SETFILE+set}" = set; then
31509 echo $ECHO_N "(cached) $ECHO_C" >&6
31510else
31511 if test -n "$SETFILE"; then
31512 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31513else
31514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31515for as_dir in $PATH
31516do
31517 IFS=$as_save_IFS
31518 test -z "$as_dir" && as_dir=.
31519 for ac_exec_ext in '' $ac_executable_extensions; do
31520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31521 ac_cv_prog_SETFILE="SetFile"
31522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31523 break 2
31524 fi
31525done
31526done
31527
31528 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31529fi
31530fi
31531SETFILE=$ac_cv_prog_SETFILE
31532if test -n "$SETFILE"; then
31533 echo "$as_me:$LINENO: result: $SETFILE" >&5
31534echo "${ECHO_T}$SETFILE" >&6
31535else
31536 echo "$as_me:$LINENO: result: no" >&5
31537echo "${ECHO_T}no" >&6
31538fi
31539
31540
31541 MACSETFILE="\$(SETFILE)"
31542
31543 if test "$wxUSE_MAC" = 1; then
1a79f136 31544 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31545
1a79f136 31546 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
31547 else
31548 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31549 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31550 fi
31551else
ffa0583f
RL
31552 MACSETFILE="@true"
31553 MACRESWXCONFIG="@true"
a848cd7e
SC
31554
31555 if test "$wxUSE_PM" = 1; then
31556 MACRESCOMP="emxbind -ep"
31557 else
ffa0583f 31558 MACRESCOMP="@true"
a848cd7e
SC
31559 fi
31560fi
31561
31562
31563
31564echo "$as_me:$LINENO: checking for mode_t" >&5
31565echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31566if test "${ac_cv_type_mode_t+set}" = set; then
31567 echo $ECHO_N "(cached) $ECHO_C" >&6
31568else
31569 cat >conftest.$ac_ext <<_ACEOF
31570/* confdefs.h. */
31571_ACEOF
31572cat confdefs.h >>conftest.$ac_ext
31573cat >>conftest.$ac_ext <<_ACEOF
31574/* end confdefs.h. */
31575$ac_includes_default
31576int
31577main ()
31578{
31579if ((mode_t *) 0)
31580 return 0;
31581if (sizeof (mode_t))
31582 return 0;
31583 ;
31584 return 0;
31585}
31586_ACEOF
31587rm -f conftest.$ac_objext
31588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31589 (eval $ac_compile) 2>conftest.er1
a848cd7e 31590 ac_status=$?
ac1cb8d3
VS
31591 grep -v '^ *+' conftest.er1 >conftest.err
31592 rm -f conftest.er1
31593 cat conftest.err >&5
a848cd7e
SC
31594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); } &&
6ebeb4c7 31596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31598 (eval $ac_try) 2>&5
31599 ac_status=$?
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); }; } &&
31602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31604 (eval $ac_try) 2>&5
31605 ac_status=$?
31606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31607 (exit $ac_status); }; }; then
31608 ac_cv_type_mode_t=yes
31609else
31610 echo "$as_me: failed program was:" >&5
31611sed 's/^/| /' conftest.$ac_ext >&5
31612
31613ac_cv_type_mode_t=no
31614fi
ac1cb8d3 31615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31616fi
31617echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31618echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31619if test $ac_cv_type_mode_t = yes; then
31620 :
31621else
31622
31623cat >>confdefs.h <<_ACEOF
31624#define mode_t int
31625_ACEOF
31626
31627fi
31628
31629echo "$as_me:$LINENO: checking for off_t" >&5
31630echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31631if test "${ac_cv_type_off_t+set}" = set; then
31632 echo $ECHO_N "(cached) $ECHO_C" >&6
31633else
31634 cat >conftest.$ac_ext <<_ACEOF
31635/* confdefs.h. */
31636_ACEOF
31637cat confdefs.h >>conftest.$ac_ext
31638cat >>conftest.$ac_ext <<_ACEOF
31639/* end confdefs.h. */
31640$ac_includes_default
31641int
31642main ()
31643{
31644if ((off_t *) 0)
31645 return 0;
31646if (sizeof (off_t))
31647 return 0;
31648 ;
31649 return 0;
31650}
31651_ACEOF
31652rm -f conftest.$ac_objext
31653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31654 (eval $ac_compile) 2>conftest.er1
a848cd7e 31655 ac_status=$?
ac1cb8d3
VS
31656 grep -v '^ *+' conftest.er1 >conftest.err
31657 rm -f conftest.er1
31658 cat conftest.err >&5
a848cd7e
SC
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); } &&
6ebeb4c7 31661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663 (eval $ac_try) 2>&5
31664 ac_status=$?
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); }; } &&
31667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31669 (eval $ac_try) 2>&5
31670 ac_status=$?
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); }; }; then
31673 ac_cv_type_off_t=yes
31674else
31675 echo "$as_me: failed program was:" >&5
31676sed 's/^/| /' conftest.$ac_ext >&5
31677
31678ac_cv_type_off_t=no
31679fi
ac1cb8d3 31680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31681fi
31682echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31683echo "${ECHO_T}$ac_cv_type_off_t" >&6
31684if test $ac_cv_type_off_t = yes; then
31685 :
31686else
31687
31688cat >>confdefs.h <<_ACEOF
31689#define off_t long
31690_ACEOF
31691
31692fi
31693
31694echo "$as_me:$LINENO: checking for pid_t" >&5
31695echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31696if test "${ac_cv_type_pid_t+set}" = set; then
31697 echo $ECHO_N "(cached) $ECHO_C" >&6
31698else
31699 cat >conftest.$ac_ext <<_ACEOF
31700/* confdefs.h. */
31701_ACEOF
31702cat confdefs.h >>conftest.$ac_ext
31703cat >>conftest.$ac_ext <<_ACEOF
31704/* end confdefs.h. */
31705$ac_includes_default
31706int
31707main ()
31708{
31709if ((pid_t *) 0)
31710 return 0;
31711if (sizeof (pid_t))
31712 return 0;
31713 ;
31714 return 0;
31715}
31716_ACEOF
31717rm -f conftest.$ac_objext
31718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31719 (eval $ac_compile) 2>conftest.er1
a848cd7e 31720 ac_status=$?
ac1cb8d3
VS
31721 grep -v '^ *+' conftest.er1 >conftest.err
31722 rm -f conftest.er1
31723 cat conftest.err >&5
a848cd7e
SC
31724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725 (exit $ac_status); } &&
6ebeb4c7 31726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31728 (eval $ac_try) 2>&5
31729 ac_status=$?
31730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731 (exit $ac_status); }; } &&
31732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31734 (eval $ac_try) 2>&5
31735 ac_status=$?
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); }; }; then
31738 ac_cv_type_pid_t=yes
31739else
31740 echo "$as_me: failed program was:" >&5
31741sed 's/^/| /' conftest.$ac_ext >&5
31742
31743ac_cv_type_pid_t=no
31744fi
ac1cb8d3 31745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31746fi
31747echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31748echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31749if test $ac_cv_type_pid_t = yes; then
31750 :
31751else
31752
31753cat >>confdefs.h <<_ACEOF
31754#define pid_t int
31755_ACEOF
31756
31757fi
31758
31759echo "$as_me:$LINENO: checking for size_t" >&5
31760echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31761if test "${ac_cv_type_size_t+set}" = set; then
31762 echo $ECHO_N "(cached) $ECHO_C" >&6
31763else
31764 cat >conftest.$ac_ext <<_ACEOF
31765/* confdefs.h. */
31766_ACEOF
31767cat confdefs.h >>conftest.$ac_ext
31768cat >>conftest.$ac_ext <<_ACEOF
31769/* end confdefs.h. */
31770$ac_includes_default
31771int
31772main ()
31773{
31774if ((size_t *) 0)
31775 return 0;
31776if (sizeof (size_t))
31777 return 0;
31778 ;
31779 return 0;
31780}
31781_ACEOF
31782rm -f conftest.$ac_objext
31783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31784 (eval $ac_compile) 2>conftest.er1
a848cd7e 31785 ac_status=$?
ac1cb8d3
VS
31786 grep -v '^ *+' conftest.er1 >conftest.err
31787 rm -f conftest.er1
31788 cat conftest.err >&5
a848cd7e
SC
31789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31790 (exit $ac_status); } &&
6ebeb4c7 31791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31793 (eval $ac_try) 2>&5
31794 ac_status=$?
31795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); }; } &&
31797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31799 (eval $ac_try) 2>&5
31800 ac_status=$?
31801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802 (exit $ac_status); }; }; then
31803 ac_cv_type_size_t=yes
31804else
31805 echo "$as_me: failed program was:" >&5
31806sed 's/^/| /' conftest.$ac_ext >&5
31807
31808ac_cv_type_size_t=no
31809fi
ac1cb8d3 31810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31811fi
31812echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31813echo "${ECHO_T}$ac_cv_type_size_t" >&6
31814if test $ac_cv_type_size_t = yes; then
31815 :
31816else
31817
31818cat >>confdefs.h <<_ACEOF
31819#define size_t unsigned
31820_ACEOF
31821
31822fi
31823
31824echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
31825echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
31826if test "${ac_cv_type_uid_t+set}" = set; then
31827 echo $ECHO_N "(cached) $ECHO_C" >&6
31828else
31829 cat >conftest.$ac_ext <<_ACEOF
31830/* confdefs.h. */
31831_ACEOF
31832cat confdefs.h >>conftest.$ac_ext
31833cat >>conftest.$ac_ext <<_ACEOF
31834/* end confdefs.h. */
31835#include <sys/types.h>
31836
31837_ACEOF
31838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31839 $EGREP "uid_t" >/dev/null 2>&1; then
31840 ac_cv_type_uid_t=yes
31841else
31842 ac_cv_type_uid_t=no
31843fi
31844rm -f conftest*
31845
31846fi
31847echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31848echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31849if test $ac_cv_type_uid_t = no; then
31850
31851cat >>confdefs.h <<\_ACEOF
31852#define uid_t int
31853_ACEOF
31854
31855
31856cat >>confdefs.h <<\_ACEOF
31857#define gid_t int
31858_ACEOF
31859
31860fi
31861
31862
d51253e8
RL
31863echo "$as_me:$LINENO: checking for ssize_t" >&5
31864echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31865if test "${ac_cv_type_ssize_t+set}" = set; then
31866 echo $ECHO_N "(cached) $ECHO_C" >&6
31867else
31868 cat >conftest.$ac_ext <<_ACEOF
31869/* confdefs.h. */
31870_ACEOF
31871cat confdefs.h >>conftest.$ac_ext
31872cat >>conftest.$ac_ext <<_ACEOF
31873/* end confdefs.h. */
31874$ac_includes_default
31875int
31876main ()
31877{
31878if ((ssize_t *) 0)
31879 return 0;
31880if (sizeof (ssize_t))
31881 return 0;
31882 ;
31883 return 0;
31884}
31885_ACEOF
31886rm -f conftest.$ac_objext
31887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31888 (eval $ac_compile) 2>conftest.er1
31889 ac_status=$?
31890 grep -v '^ *+' conftest.er1 >conftest.err
31891 rm -f conftest.er1
31892 cat conftest.err >&5
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); } &&
6ebeb4c7 31895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
31896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31897 (eval $ac_try) 2>&5
31898 ac_status=$?
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; } &&
31901 { ac_try='test -s conftest.$ac_objext'
31902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31903 (eval $ac_try) 2>&5
31904 ac_status=$?
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); }; }; then
31907 ac_cv_type_ssize_t=yes
31908else
31909 echo "$as_me: failed program was:" >&5
31910sed 's/^/| /' conftest.$ac_ext >&5
31911
31912ac_cv_type_ssize_t=no
31913fi
31914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31915fi
31916echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31917echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31918if test $ac_cv_type_ssize_t = yes; then
31919
31920cat >>confdefs.h <<_ACEOF
31921#define HAVE_SSIZE_T 1
31922_ACEOF
31923
31924
31925fi
31926
31927
a848cd7e
SC
31928
31929
31930ac_ext=cc
31931ac_cpp='$CXXCPP $CPPFLAGS'
31932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31935
31936echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
31937echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
31938if test "${wx_cv_size_t_is_uint+set}" = set; then
31939 echo $ECHO_N "(cached) $ECHO_C" >&6
31940else
31941
31942 cat >conftest.$ac_ext <<_ACEOF
31943/* confdefs.h. */
31944_ACEOF
31945cat confdefs.h >>conftest.$ac_ext
31946cat >>conftest.$ac_ext <<_ACEOF
31947/* end confdefs.h. */
31948#include <stddef.h>
31949int
31950main ()
31951{
31952
31953 return 0; }
31954
31955 struct Foo { void foo(size_t); void foo(unsigned int); };
31956
31957 int bar() {
31958
31959 ;
31960 return 0;
31961}
31962_ACEOF
31963rm -f conftest.$ac_objext
31964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31965 (eval $ac_compile) 2>conftest.er1
a848cd7e 31966 ac_status=$?
ac1cb8d3
VS
31967 grep -v '^ *+' conftest.er1 >conftest.err
31968 rm -f conftest.er1
31969 cat conftest.err >&5
a848cd7e
SC
31970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971 (exit $ac_status); } &&
6ebeb4c7 31972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31974 (eval $ac_try) 2>&5
31975 ac_status=$?
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); }; } &&
31978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31980 (eval $ac_try) 2>&5
31981 ac_status=$?
31982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983 (exit $ac_status); }; }; then
31984 wx_cv_size_t_is_uint=no
31985else
31986 echo "$as_me: failed program was:" >&5
31987sed 's/^/| /' conftest.$ac_ext >&5
31988
31989wx_cv_size_t_is_uint=yes
31990
31991fi
ac1cb8d3 31992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31993
31994
31995fi
31996echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
31997echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
31998
31999if test "$wx_cv_size_t_is_uint" = "yes"; then
32000 cat >>confdefs.h <<\_ACEOF
32001#define wxSIZE_T_IS_UINT 1
32002_ACEOF
32003
32004else
32005 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32006echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32007if test "${wx_cv_size_t_is_ulong+set}" = set; then
32008 echo $ECHO_N "(cached) $ECHO_C" >&6
32009else
32010 cat >conftest.$ac_ext <<_ACEOF
32011/* confdefs.h. */
32012_ACEOF
32013cat confdefs.h >>conftest.$ac_ext
32014cat >>conftest.$ac_ext <<_ACEOF
32015/* end confdefs.h. */
32016#include <stddef.h>
32017int
32018main ()
32019{
32020
32021 return 0; }
32022
32023 struct Foo { void foo(size_t); void foo(unsigned long); };
32024
32025 int bar() {
32026
32027 ;
32028 return 0;
32029}
32030_ACEOF
32031rm -f conftest.$ac_objext
32032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32033 (eval $ac_compile) 2>conftest.er1
a848cd7e 32034 ac_status=$?
ac1cb8d3
VS
32035 grep -v '^ *+' conftest.er1 >conftest.err
32036 rm -f conftest.er1
32037 cat conftest.err >&5
a848cd7e
SC
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); } &&
6ebeb4c7 32040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32042 (eval $ac_try) 2>&5
32043 ac_status=$?
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); }; } &&
32046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32048 (eval $ac_try) 2>&5
32049 ac_status=$?
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); }; }; then
32052 wx_cv_size_t_is_ulong=no
32053else
32054 echo "$as_me: failed program was:" >&5
32055sed 's/^/| /' conftest.$ac_ext >&5
32056
32057wx_cv_size_t_is_ulong=yes
32058
32059fi
ac1cb8d3 32060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32061
32062fi
32063echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32064echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32065
32066 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32067 cat >>confdefs.h <<\_ACEOF
32068#define wxSIZE_T_IS_ULONG 1
32069_ACEOF
32070
32071 fi
32072fi
32073
32074ac_ext=c
32075ac_cpp='$CPP $CPPFLAGS'
32076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32078ac_compiler_gnu=$ac_cv_c_compiler_gnu
32079
32080
32081
32082echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32083echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32084if test "${wx_cv_struct_pw_gecos+set}" = set; then
32085 echo $ECHO_N "(cached) $ECHO_C" >&6
32086else
32087
32088 cat >conftest.$ac_ext <<_ACEOF
32089/* confdefs.h. */
32090_ACEOF
32091cat confdefs.h >>conftest.$ac_ext
32092cat >>conftest.$ac_ext <<_ACEOF
32093/* end confdefs.h. */
32094#include <pwd.h>
32095int
32096main ()
32097{
32098
32099 char *p;
32100 struct passwd *pw;
32101 p = pw->pw_gecos;
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); } &&
6ebeb4c7 32116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32118 (eval $ac_try) 2>&5
32119 ac_status=$?
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); }; } &&
32122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32124 (eval $ac_try) 2>&5
32125 ac_status=$?
32126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127 (exit $ac_status); }; }; then
32128
32129 wx_cv_struct_pw_gecos=yes
32130
32131else
32132 echo "$as_me: failed program was:" >&5
32133sed 's/^/| /' conftest.$ac_ext >&5
32134
32135
32136 wx_cv_struct_pw_gecos=no
32137
32138
32139fi
ac1cb8d3 32140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32141
32142
32143fi
32144echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32145echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32146
32147if test "$wx_cv_struct_pw_gecos" = "yes"; then
32148 cat >>confdefs.h <<\_ACEOF
32149#define HAVE_PW_GECOS 1
32150_ACEOF
32151
32152fi
32153
32154
47a7e797 32155if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32156 cat >>confdefs.h <<\_ACEOF
32157#define wxUSE_WCHAR_T 1
32158_ACEOF
32159
32160
32161 WCSLEN_FOUND=0
32162 WCHAR_LINK=
32163
32164for ac_func in wcslen
32165do
32166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32167echo "$as_me:$LINENO: checking for $ac_func" >&5
32168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32169if eval "test \"\${$as_ac_var+set}\" = set"; then
32170 echo $ECHO_N "(cached) $ECHO_C" >&6
32171else
32172 cat >conftest.$ac_ext <<_ACEOF
32173/* confdefs.h. */
32174_ACEOF
32175cat confdefs.h >>conftest.$ac_ext
32176cat >>conftest.$ac_ext <<_ACEOF
32177/* end confdefs.h. */
ac1cb8d3
VS
32178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32180#define $ac_func innocuous_$ac_func
32181
a848cd7e
SC
32182/* System header to define __stub macros and hopefully few prototypes,
32183 which can conflict with char $ac_func (); below.
32184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32185 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32186
a848cd7e
SC
32187#ifdef __STDC__
32188# include <limits.h>
32189#else
32190# include <assert.h>
32191#endif
ac1cb8d3
VS
32192
32193#undef $ac_func
32194
a848cd7e
SC
32195/* Override any gcc2 internal prototype to avoid an error. */
32196#ifdef __cplusplus
32197extern "C"
32198{
32199#endif
32200/* We use char because int might match the return type of a gcc2
32201 builtin and then its argument prototype would still apply. */
32202char $ac_func ();
32203/* The GNU C library defines this for functions which it implements
32204 to always fail with ENOSYS. Some functions are actually named
32205 something starting with __ and the normal name is an alias. */
32206#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32207choke me
32208#else
32209char (*f) () = $ac_func;
32210#endif
32211#ifdef __cplusplus
32212}
32213#endif
32214
32215int
32216main ()
32217{
32218return f != $ac_func;
32219 ;
32220 return 0;
32221}
32222_ACEOF
32223rm -f conftest.$ac_objext conftest$ac_exeext
32224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32225 (eval $ac_link) 2>conftest.er1
a848cd7e 32226 ac_status=$?
ac1cb8d3
VS
32227 grep -v '^ *+' conftest.er1 >conftest.err
32228 rm -f conftest.er1
32229 cat conftest.err >&5
a848cd7e
SC
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); } &&
6ebeb4c7 32232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32234 (eval $ac_try) 2>&5
32235 ac_status=$?
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); }; } &&
32238 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32240 (eval $ac_try) 2>&5
32241 ac_status=$?
32242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243 (exit $ac_status); }; }; then
32244 eval "$as_ac_var=yes"
32245else
32246 echo "$as_me: failed program was:" >&5
32247sed 's/^/| /' conftest.$ac_ext >&5
32248
32249eval "$as_ac_var=no"
32250fi
ac1cb8d3
VS
32251rm -f conftest.err conftest.$ac_objext \
32252 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32253fi
32254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32256if test `eval echo '${'$as_ac_var'}'` = yes; then
32257 cat >>confdefs.h <<_ACEOF
32258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32259_ACEOF
32260 WCSLEN_FOUND=1
32261fi
32262done
32263
32264
32265 if test "$WCSLEN_FOUND" = 0; then
32266 if test "$TOOLKIT" = "MSW"; then
32267 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32268echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32269if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32270 echo $ECHO_N "(cached) $ECHO_C" >&6
32271else
32272 ac_check_lib_save_LIBS=$LIBS
32273LIBS="-lmsvcrt $LIBS"
32274cat >conftest.$ac_ext <<_ACEOF
32275/* confdefs.h. */
32276_ACEOF
32277cat confdefs.h >>conftest.$ac_ext
32278cat >>conftest.$ac_ext <<_ACEOF
32279/* end confdefs.h. */
32280
32281/* Override any gcc2 internal prototype to avoid an error. */
32282#ifdef __cplusplus
32283extern "C"
32284#endif
32285/* We use char because int might match the return type of a gcc2
32286 builtin and then its argument prototype would still apply. */
32287char wcslen ();
32288int
32289main ()
32290{
32291wcslen ();
32292 ;
32293 return 0;
32294}
32295_ACEOF
32296rm -f conftest.$ac_objext conftest$ac_exeext
32297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32298 (eval $ac_link) 2>conftest.er1
a848cd7e 32299 ac_status=$?
ac1cb8d3
VS
32300 grep -v '^ *+' conftest.er1 >conftest.err
32301 rm -f conftest.er1
32302 cat conftest.err >&5
a848cd7e
SC
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); } &&
6ebeb4c7 32305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
32311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32313 (eval $ac_try) 2>&5
32314 ac_status=$?
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); }; }; then
32317 ac_cv_lib_msvcrt_wcslen=yes
32318else
32319 echo "$as_me: failed program was:" >&5
32320sed 's/^/| /' conftest.$ac_ext >&5
32321
32322ac_cv_lib_msvcrt_wcslen=no
32323fi
ac1cb8d3
VS
32324rm -f conftest.err conftest.$ac_objext \
32325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32326LIBS=$ac_check_lib_save_LIBS
32327fi
32328echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32329echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32330if test $ac_cv_lib_msvcrt_wcslen = yes; then
32331 WCHAR_OK=1
32332fi
32333
32334 else
32335 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32336echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32337if test "${ac_cv_lib_w_wcslen+set}" = set; then
32338 echo $ECHO_N "(cached) $ECHO_C" >&6
32339else
32340 ac_check_lib_save_LIBS=$LIBS
32341LIBS="-lw $LIBS"
32342cat >conftest.$ac_ext <<_ACEOF
32343/* confdefs.h. */
32344_ACEOF
32345cat confdefs.h >>conftest.$ac_ext
32346cat >>conftest.$ac_ext <<_ACEOF
32347/* end confdefs.h. */
32348
32349/* Override any gcc2 internal prototype to avoid an error. */
32350#ifdef __cplusplus
32351extern "C"
32352#endif
32353/* We use char because int might match the return type of a gcc2
32354 builtin and then its argument prototype would still apply. */
32355char wcslen ();
32356int
32357main ()
32358{
32359wcslen ();
32360 ;
32361 return 0;
32362}
32363_ACEOF
32364rm -f conftest.$ac_objext conftest$ac_exeext
32365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32366 (eval $ac_link) 2>conftest.er1
a848cd7e 32367 ac_status=$?
ac1cb8d3
VS
32368 grep -v '^ *+' conftest.er1 >conftest.err
32369 rm -f conftest.er1
32370 cat conftest.err >&5
a848cd7e
SC
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); } &&
6ebeb4c7 32373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32375 (eval $ac_try) 2>&5
32376 ac_status=$?
32377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32378 (exit $ac_status); }; } &&
32379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32381 (eval $ac_try) 2>&5
32382 ac_status=$?
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); }; }; then
32385 ac_cv_lib_w_wcslen=yes
32386else
32387 echo "$as_me: failed program was:" >&5
32388sed 's/^/| /' conftest.$ac_ext >&5
32389
32390ac_cv_lib_w_wcslen=no
32391fi
ac1cb8d3
VS
32392rm -f conftest.err conftest.$ac_objext \
32393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32394LIBS=$ac_check_lib_save_LIBS
32395fi
32396echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32397echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32398if test $ac_cv_lib_w_wcslen = yes; then
32399
32400 WCHAR_LINK=" -lw"
32401 WCSLEN_FOUND=1
32402
32403fi
32404
32405 fi
32406 fi
32407
32408 if test "$WCSLEN_FOUND" = 1; then
32409 cat >>confdefs.h <<\_ACEOF
32410#define HAVE_WCSLEN 1
32411_ACEOF
32412
32413 fi
32414
efdf6afe 32415 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
32416 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32417 fi
32418
efdf6afe
VZ
32419 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32420echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32421if test "${ac_cv_type_mbstate_t+set}" = set; then
32422 echo $ECHO_N "(cached) $ECHO_C" >&6
32423else
32424 cat >conftest.$ac_ext <<_ACEOF
32425/* confdefs.h. */
32426_ACEOF
32427cat confdefs.h >>conftest.$ac_ext
32428cat >>conftest.$ac_ext <<_ACEOF
32429/* end confdefs.h. */
32430#include <wchar.h>
32431
32432int
32433main ()
32434{
32435if ((mbstate_t *) 0)
32436 return 0;
32437if (sizeof (mbstate_t))
32438 return 0;
32439 ;
32440 return 0;
32441}
32442_ACEOF
32443rm -f conftest.$ac_objext
32444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32445 (eval $ac_compile) 2>conftest.er1
32446 ac_status=$?
32447 grep -v '^ *+' conftest.er1 >conftest.err
32448 rm -f conftest.er1
32449 cat conftest.err >&5
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); } &&
32452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454 (eval $ac_try) 2>&5
32455 ac_status=$?
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); }; } &&
32458 { ac_try='test -s conftest.$ac_objext'
32459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32460 (eval $ac_try) 2>&5
32461 ac_status=$?
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); }; }; then
32464 ac_cv_type_mbstate_t=yes
32465else
32466 echo "$as_me: failed program was:" >&5
32467sed 's/^/| /' conftest.$ac_ext >&5
32468
32469ac_cv_type_mbstate_t=no
32470fi
32471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32472fi
32473echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32474echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32475if test $ac_cv_type_mbstate_t = yes; then
32476
32477cat >>confdefs.h <<_ACEOF
32478#define HAVE_MBSTATE_T 1
32479_ACEOF
32480
a848cd7e
SC
32481
32482for ac_func in wcsrtombs
32483do
32484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32485echo "$as_me:$LINENO: checking for $ac_func" >&5
32486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32487if eval "test \"\${$as_ac_var+set}\" = set"; then
32488 echo $ECHO_N "(cached) $ECHO_C" >&6
32489else
32490 cat >conftest.$ac_ext <<_ACEOF
32491/* confdefs.h. */
32492_ACEOF
32493cat confdefs.h >>conftest.$ac_ext
32494cat >>conftest.$ac_ext <<_ACEOF
32495/* end confdefs.h. */
ac1cb8d3
VS
32496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32498#define $ac_func innocuous_$ac_func
32499
a848cd7e
SC
32500/* System header to define __stub macros and hopefully few prototypes,
32501 which can conflict with char $ac_func (); below.
32502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32503 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32504
a848cd7e
SC
32505#ifdef __STDC__
32506# include <limits.h>
32507#else
32508# include <assert.h>
32509#endif
ac1cb8d3
VS
32510
32511#undef $ac_func
32512
a848cd7e
SC
32513/* Override any gcc2 internal prototype to avoid an error. */
32514#ifdef __cplusplus
32515extern "C"
32516{
32517#endif
32518/* We use char because int might match the return type of a gcc2
32519 builtin and then its argument prototype would still apply. */
32520char $ac_func ();
32521/* The GNU C library defines this for functions which it implements
32522 to always fail with ENOSYS. Some functions are actually named
32523 something starting with __ and the normal name is an alias. */
32524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32525choke me
32526#else
32527char (*f) () = $ac_func;
32528#endif
32529#ifdef __cplusplus
32530}
32531#endif
32532
32533int
32534main ()
32535{
32536return f != $ac_func;
32537 ;
32538 return 0;
32539}
32540_ACEOF
32541rm -f conftest.$ac_objext conftest$ac_exeext
32542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32543 (eval $ac_link) 2>conftest.er1
a848cd7e 32544 ac_status=$?
ac1cb8d3
VS
32545 grep -v '^ *+' conftest.er1 >conftest.err
32546 rm -f conftest.er1
32547 cat conftest.err >&5
a848cd7e
SC
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); } &&
6ebeb4c7 32550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32552 (eval $ac_try) 2>&5
32553 ac_status=$?
32554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555 (exit $ac_status); }; } &&
32556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32558 (eval $ac_try) 2>&5
32559 ac_status=$?
32560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561 (exit $ac_status); }; }; then
32562 eval "$as_ac_var=yes"
32563else
32564 echo "$as_me: failed program was:" >&5
32565sed 's/^/| /' conftest.$ac_ext >&5
32566
32567eval "$as_ac_var=no"
32568fi
ac1cb8d3
VS
32569rm -f conftest.err conftest.$ac_objext \
32570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32571fi
32572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32574if test `eval echo '${'$as_ac_var'}'` = yes; then
32575 cat >>confdefs.h <<_ACEOF
32576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32577_ACEOF
32578
32579fi
32580done
32581
efdf6afe
VZ
32582fi
32583
a848cd7e
SC
32584else
32585 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32586echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32587fi
32588
32589
32590
32591ac_ext=cc
32592ac_cpp='$CXXCPP $CPPFLAGS'
32593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32596
32597
32598
4a767dd5
VZ
32599
32600for ac_func in snprintf vsnprintf
a848cd7e
SC
32601do
32602as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32603echo "$as_me:$LINENO: checking for $ac_func" >&5
32604echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32605if eval "test \"\${$as_ac_var+set}\" = set"; then
32606 echo $ECHO_N "(cached) $ECHO_C" >&6
32607else
32608 cat >conftest.$ac_ext <<_ACEOF
32609/* confdefs.h. */
32610_ACEOF
32611cat confdefs.h >>conftest.$ac_ext
32612cat >>conftest.$ac_ext <<_ACEOF
32613/* end confdefs.h. */
ac1cb8d3
VS
32614/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32616#define $ac_func innocuous_$ac_func
32617
a848cd7e
SC
32618/* System header to define __stub macros and hopefully few prototypes,
32619 which can conflict with char $ac_func (); below.
32620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32621 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32622
a848cd7e
SC
32623#ifdef __STDC__
32624# include <limits.h>
32625#else
32626# include <assert.h>
32627#endif
ac1cb8d3
VS
32628
32629#undef $ac_func
32630
a848cd7e
SC
32631/* Override any gcc2 internal prototype to avoid an error. */
32632#ifdef __cplusplus
32633extern "C"
32634{
32635#endif
32636/* We use char because int might match the return type of a gcc2
32637 builtin and then its argument prototype would still apply. */
32638char $ac_func ();
32639/* The GNU C library defines this for functions which it implements
32640 to always fail with ENOSYS. Some functions are actually named
32641 something starting with __ and the normal name is an alias. */
32642#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32643choke me
32644#else
32645char (*f) () = $ac_func;
32646#endif
32647#ifdef __cplusplus
32648}
32649#endif
32650
32651int
32652main ()
32653{
32654return f != $ac_func;
32655 ;
32656 return 0;
32657}
32658_ACEOF
32659rm -f conftest.$ac_objext conftest$ac_exeext
32660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32661 (eval $ac_link) 2>conftest.er1
a848cd7e 32662 ac_status=$?
ac1cb8d3
VS
32663 grep -v '^ *+' conftest.er1 >conftest.err
32664 rm -f conftest.er1
32665 cat conftest.err >&5
a848cd7e
SC
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); } &&
6ebeb4c7 32668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32670 (eval $ac_try) 2>&5
32671 ac_status=$?
32672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673 (exit $ac_status); }; } &&
32674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32676 (eval $ac_try) 2>&5
32677 ac_status=$?
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); }; }; then
32680 eval "$as_ac_var=yes"
32681else
32682 echo "$as_me: failed program was:" >&5
32683sed 's/^/| /' conftest.$ac_ext >&5
32684
32685eval "$as_ac_var=no"
32686fi
ac1cb8d3
VS
32687rm -f conftest.err conftest.$ac_objext \
32688 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32689fi
32690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32691echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32692if test `eval echo '${'$as_ac_var'}'` = yes; then
32693 cat >>confdefs.h <<_ACEOF
32694#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32695_ACEOF
32696
32697fi
32698done
32699
32700
32701if test "$ac_cv_func_vsnprintf" = "yes"; then
32702 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32703echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32704if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32705 echo $ECHO_N "(cached) $ECHO_C" >&6
32706else
32707
efdf6afe 32708 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32709/* confdefs.h. */
32710_ACEOF
32711cat confdefs.h >>conftest.$ac_ext
32712cat >>conftest.$ac_ext <<_ACEOF
32713/* end confdefs.h. */
32714
32715 #include <stdio.h>
32716 #include <stdarg.h>
efdf6afe
VZ
32717 #ifdef __MSL__
32718 #if __MSL__ >= 0x6000
32719 namespace std {}
32720 using namespace std;
32721 #endif
32722 #endif
a848cd7e
SC
32723
32724int
32725main ()
32726{
32727
32728 char *buf;
32729 va_list ap;
62fa8b3a 32730 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
32731
32732 ;
32733 return 0;
32734}
32735_ACEOF
32736rm -f conftest.$ac_objext
32737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32738 (eval $ac_compile) 2>conftest.er1
32739 ac_status=$?
32740 grep -v '^ *+' conftest.er1 >conftest.err
32741 rm -f conftest.er1
32742 cat conftest.err >&5
32743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744 (exit $ac_status); } &&
6ebeb4c7 32745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
32746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32747 (eval $ac_try) 2>&5
32748 ac_status=$?
32749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750 (exit $ac_status); }; } &&
32751 { ac_try='test -s conftest.$ac_objext'
32752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32753 (eval $ac_try) 2>&5
32754 ac_status=$?
32755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 (exit $ac_status); }; }; then
32757 wx_cv_func_vsnprintf_decl=yes
32758else
32759 echo "$as_me: failed program was:" >&5
32760sed 's/^/| /' conftest.$ac_ext >&5
32761
a848cd7e
SC
32762wx_cv_func_vsnprintf_decl=no
32763
32764fi
ac1cb8d3 32765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32766
32767
32768fi
32769echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
32770echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
32771
32772 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
32773 cat >>confdefs.h <<\_ACEOF
32774#define HAVE_VSNPRINTF_DECL 1
32775_ACEOF
32776
62fa8b3a
MW
32777
32778 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
32779echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
32780if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
32781 echo $ECHO_N "(cached) $ECHO_C" >&6
32782else
32783
32784 cat >conftest.$ac_ext <<_ACEOF
32785/* confdefs.h. */
32786_ACEOF
32787cat confdefs.h >>conftest.$ac_ext
32788cat >>conftest.$ac_ext <<_ACEOF
32789/* end confdefs.h. */
32790
32791 #include <stdio.h>
32792 #include <stdarg.h>
32793 #ifdef __MSL__
32794 #if __MSL__ >= 0x6000
32795 namespace std {}
32796 using namespace std;
32797 #endif
32798 #endif
32799
32800int
32801main ()
32802{
32803
32804 char *buf;
32805 va_list ap;
32806 const char *fmt = "%s";
32807 vsnprintf(buf, 10u, fmt, ap);
32808
32809 ;
32810 return 0;
32811}
32812_ACEOF
32813rm -f conftest.$ac_objext
32814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32815 (eval $ac_compile) 2>conftest.er1
32816 ac_status=$?
32817 grep -v '^ *+' conftest.er1 >conftest.err
32818 rm -f conftest.er1
32819 cat conftest.err >&5
32820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821 (exit $ac_status); } &&
32822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32824 (eval $ac_try) 2>&5
32825 ac_status=$?
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest.$ac_objext'
32829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830 (eval $ac_try) 2>&5
32831 ac_status=$?
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; }; then
32834 wx_cv_func_broken_vsnprintf_decl=no
32835else
32836 echo "$as_me: failed program was:" >&5
32837sed 's/^/| /' conftest.$ac_ext >&5
32838
32839wx_cv_func_broken_vsnprintf_decl=yes
32840
32841fi
32842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32843
32844
32845fi
32846echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
32847echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
32848
32849 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
32850 cat >>confdefs.h <<\_ACEOF
32851#define HAVE_BROKEN_VSNPRINTF_DECL 1
32852_ACEOF
32853
32854 fi
a848cd7e
SC
32855 fi
32856fi
32857
4a767dd5
VZ
32858if test "$ac_cv_func_snprintf" = "yes"; then
32859 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
32860echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
32861if test "${wx_cv_func_snprintf_decl+set}" = set; then
32862 echo $ECHO_N "(cached) $ECHO_C" >&6
32863else
32864
32865 cat >conftest.$ac_ext <<_ACEOF
32866/* confdefs.h. */
32867_ACEOF
32868cat confdefs.h >>conftest.$ac_ext
32869cat >>conftest.$ac_ext <<_ACEOF
32870/* end confdefs.h. */
32871
32872 #include <stdio.h>
32873 #include <stdarg.h>
32874 #ifdef __MSL__
32875 #if __MSL__ >= 0x6000
32876 namespace std {}
32877 using namespace std;
32878 #endif
32879 #endif
32880
32881int
32882main ()
32883{
32884
32885 char *buf;
62fa8b3a 32886 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
32887
32888 ;
32889 return 0;
32890}
32891_ACEOF
32892rm -f conftest.$ac_objext
32893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32894 (eval $ac_compile) 2>conftest.er1
32895 ac_status=$?
32896 grep -v '^ *+' conftest.er1 >conftest.err
32897 rm -f conftest.er1
32898 cat conftest.err >&5
32899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900 (exit $ac_status); } &&
32901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32903 (eval $ac_try) 2>&5
32904 ac_status=$?
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); }; } &&
32907 { ac_try='test -s conftest.$ac_objext'
32908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32909 (eval $ac_try) 2>&5
32910 ac_status=$?
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); }; }; then
32913 wx_cv_func_snprintf_decl=yes
32914else
32915 echo "$as_me: failed program was:" >&5
32916sed 's/^/| /' conftest.$ac_ext >&5
32917
32918wx_cv_func_snprintf_decl=no
32919
32920fi
32921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32922
32923
32924fi
32925echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
32926echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
32927
32928 if test "$wx_cv_func_snprintf_decl" = "yes"; then
32929 cat >>confdefs.h <<\_ACEOF
32930#define HAVE_SNPRINTF_DECL 1
32931_ACEOF
32932
62fa8b3a
MW
32933
32934 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
32935echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
32936if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
32937 echo $ECHO_N "(cached) $ECHO_C" >&6
32938else
32939
32940 cat >conftest.$ac_ext <<_ACEOF
32941/* confdefs.h. */
32942_ACEOF
32943cat confdefs.h >>conftest.$ac_ext
32944cat >>conftest.$ac_ext <<_ACEOF
32945/* end confdefs.h. */
32946
32947 #include <stdio.h>
32948 #include <stdarg.h>
32949 #ifdef __MSL__
32950 #if __MSL__ >= 0x6000
32951 namespace std {}
32952 using namespace std;
32953 #endif
32954 #endif
32955
32956int
32957main ()
32958{
32959
32960 char *buf;
32961 const char *fmt = "%s";
32962 snprintf(buf, 10u, fmt, "wx");
32963
32964 ;
32965 return 0;
32966}
32967_ACEOF
32968rm -f conftest.$ac_objext
32969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32970 (eval $ac_compile) 2>conftest.er1
32971 ac_status=$?
32972 grep -v '^ *+' conftest.er1 >conftest.err
32973 rm -f conftest.er1
32974 cat conftest.err >&5
32975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976 (exit $ac_status); } &&
32977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32979 (eval $ac_try) 2>&5
32980 ac_status=$?
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; } &&
32983 { ac_try='test -s conftest.$ac_objext'
32984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32985 (eval $ac_try) 2>&5
32986 ac_status=$?
32987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32988 (exit $ac_status); }; }; then
32989 wx_cv_func_broken_snprintf_decl=no
32990else
32991 echo "$as_me: failed program was:" >&5
32992sed 's/^/| /' conftest.$ac_ext >&5
32993
32994wx_cv_func_broken_snprintf_decl=yes
32995
32996fi
32997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32998
32999
33000fi
33001echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33002echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33003
33004 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33005 cat >>confdefs.h <<\_ACEOF
33006#define HAVE_BROKEN_SNPRINTF_DECL 1
33007_ACEOF
33008
33009 fi
4a767dd5
VZ
33010 fi
33011fi
33012
a848cd7e
SC
33013if test "$wxUSE_UNICODE" = yes; then
33014
33015
33016
fbe47c7b
VS
33017
33018
33019
33020for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33021do
33022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33023echo "$as_me:$LINENO: checking for $ac_func" >&5
33024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33025if eval "test \"\${$as_ac_var+set}\" = set"; then
33026 echo $ECHO_N "(cached) $ECHO_C" >&6
33027else
33028 cat >conftest.$ac_ext <<_ACEOF
33029/* confdefs.h. */
33030_ACEOF
33031cat confdefs.h >>conftest.$ac_ext
33032cat >>conftest.$ac_ext <<_ACEOF
33033/* end confdefs.h. */
ac1cb8d3
VS
33034/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33036#define $ac_func innocuous_$ac_func
33037
a848cd7e
SC
33038/* System header to define __stub macros and hopefully few prototypes,
33039 which can conflict with char $ac_func (); below.
33040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33041 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33042
a848cd7e
SC
33043#ifdef __STDC__
33044# include <limits.h>
33045#else
33046# include <assert.h>
33047#endif
ac1cb8d3
VS
33048
33049#undef $ac_func
33050
a848cd7e
SC
33051/* Override any gcc2 internal prototype to avoid an error. */
33052#ifdef __cplusplus
33053extern "C"
33054{
33055#endif
33056/* We use char because int might match the return type of a gcc2
33057 builtin and then its argument prototype would still apply. */
33058char $ac_func ();
33059/* The GNU C library defines this for functions which it implements
33060 to always fail with ENOSYS. Some functions are actually named
33061 something starting with __ and the normal name is an alias. */
33062#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33063choke me
33064#else
33065char (*f) () = $ac_func;
33066#endif
33067#ifdef __cplusplus
33068}
33069#endif
33070
33071int
33072main ()
33073{
33074return f != $ac_func;
33075 ;
33076 return 0;
33077}
33078_ACEOF
33079rm -f conftest.$ac_objext conftest$ac_exeext
33080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33081 (eval $ac_link) 2>conftest.er1
a848cd7e 33082 ac_status=$?
ac1cb8d3
VS
33083 grep -v '^ *+' conftest.er1 >conftest.err
33084 rm -f conftest.er1
33085 cat conftest.err >&5
a848cd7e
SC
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); } &&
6ebeb4c7 33088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33090 (eval $ac_try) 2>&5
33091 ac_status=$?
33092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093 (exit $ac_status); }; } &&
33094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33096 (eval $ac_try) 2>&5
33097 ac_status=$?
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 (exit $ac_status); }; }; then
33100 eval "$as_ac_var=yes"
33101else
33102 echo "$as_me: failed program was:" >&5
33103sed 's/^/| /' conftest.$ac_ext >&5
33104
33105eval "$as_ac_var=no"
33106fi
ac1cb8d3
VS
33107rm -f conftest.err conftest.$ac_objext \
33108 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33109fi
33110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33111echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33112if test `eval echo '${'$as_ac_var'}'` = yes; then
33113 cat >>confdefs.h <<_ACEOF
33114#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33115_ACEOF
33116
33117fi
33118done
33119
33120
33121 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33122echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33123 cat >conftest.$ac_ext <<_ACEOF
33124/* confdefs.h. */
33125_ACEOF
33126cat confdefs.h >>conftest.$ac_ext
33127cat >>conftest.$ac_ext <<_ACEOF
33128/* end confdefs.h. */
33129#include <wchar.h>
33130int
33131main ()
33132{
33133&_vsnwprintf;
33134 ;
33135 return 0;
33136}
33137_ACEOF
33138rm -f conftest.$ac_objext
33139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33140 (eval $ac_compile) 2>conftest.er1
a848cd7e 33141 ac_status=$?
ac1cb8d3
VS
33142 grep -v '^ *+' conftest.er1 >conftest.err
33143 rm -f conftest.er1
33144 cat conftest.err >&5
a848cd7e
SC
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); } &&
6ebeb4c7 33147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33149 (eval $ac_try) 2>&5
33150 ac_status=$?
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); }; } &&
33153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33155 (eval $ac_try) 2>&5
33156 ac_status=$?
33157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158 (exit $ac_status); }; }; then
33159 echo "$as_me:$LINENO: result: yes" >&5
33160echo "${ECHO_T}yes" >&6
33161 cat >>confdefs.h <<\_ACEOF
33162#define HAVE__VSNWPRINTF 1
33163_ACEOF
33164
33165else
33166 echo "$as_me: failed program was:" >&5
33167sed 's/^/| /' conftest.$ac_ext >&5
33168
33169echo "$as_me:$LINENO: result: no" >&5
33170echo "${ECHO_T}no" >&6
33171fi
ac1cb8d3 33172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33173fi
33174
33175ac_ext=c
33176ac_cpp='$CPP $CPPFLAGS'
33177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33179ac_compiler_gnu=$ac_cv_c_compiler_gnu
33180
33181
6ebeb4c7
VZ
33182if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33183
33184for ac_func in fnmatch
33185do
33186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33187echo "$as_me:$LINENO: checking for $ac_func" >&5
33188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33189if eval "test \"\${$as_ac_var+set}\" = set"; then
33190 echo $ECHO_N "(cached) $ECHO_C" >&6
33191else
33192 cat >conftest.$ac_ext <<_ACEOF
33193/* confdefs.h. */
33194_ACEOF
33195cat confdefs.h >>conftest.$ac_ext
33196cat >>conftest.$ac_ext <<_ACEOF
33197/* end confdefs.h. */
33198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33200#define $ac_func innocuous_$ac_func
33201
33202/* System header to define __stub macros and hopefully few prototypes,
33203 which can conflict with char $ac_func (); below.
33204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33205 <limits.h> exists even on freestanding compilers. */
33206
33207#ifdef __STDC__
33208# include <limits.h>
33209#else
33210# include <assert.h>
33211#endif
33212
33213#undef $ac_func
33214
33215/* Override any gcc2 internal prototype to avoid an error. */
33216#ifdef __cplusplus
33217extern "C"
33218{
33219#endif
33220/* We use char because int might match the return type of a gcc2
33221 builtin and then its argument prototype would still apply. */
33222char $ac_func ();
33223/* The GNU C library defines this for functions which it implements
33224 to always fail with ENOSYS. Some functions are actually named
33225 something starting with __ and the normal name is an alias. */
33226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33227choke me
33228#else
33229char (*f) () = $ac_func;
33230#endif
33231#ifdef __cplusplus
33232}
33233#endif
33234
33235int
33236main ()
33237{
33238return f != $ac_func;
33239 ;
33240 return 0;
33241}
33242_ACEOF
33243rm -f conftest.$ac_objext conftest$ac_exeext
33244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33245 (eval $ac_link) 2>conftest.er1
33246 ac_status=$?
33247 grep -v '^ *+' conftest.er1 >conftest.err
33248 rm -f conftest.er1
33249 cat conftest.err >&5
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); } &&
33252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33254 (eval $ac_try) 2>&5
33255 ac_status=$?
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); }; } &&
33258 { ac_try='test -s conftest$ac_exeext'
33259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33260 (eval $ac_try) 2>&5
33261 ac_status=$?
33262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263 (exit $ac_status); }; }; then
33264 eval "$as_ac_var=yes"
33265else
33266 echo "$as_me: failed program was:" >&5
33267sed 's/^/| /' conftest.$ac_ext >&5
33268
33269eval "$as_ac_var=no"
33270fi
33271rm -f conftest.err conftest.$ac_objext \
33272 conftest$ac_exeext conftest.$ac_ext
33273fi
33274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33275echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33276if test `eval echo '${'$as_ac_var'}'` = yes; then
33277 cat >>confdefs.h <<_ACEOF
33278#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33279_ACEOF
33280
33281fi
33282done
33283
33284fi
33285
33286if test "$wxUSE_FILE" = "yes"; then
33287
33288for ac_func in fsync
33289do
33290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33291echo "$as_me:$LINENO: checking for $ac_func" >&5
33292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33293if eval "test \"\${$as_ac_var+set}\" = set"; then
33294 echo $ECHO_N "(cached) $ECHO_C" >&6
33295else
33296 cat >conftest.$ac_ext <<_ACEOF
33297/* confdefs.h. */
33298_ACEOF
33299cat confdefs.h >>conftest.$ac_ext
33300cat >>conftest.$ac_ext <<_ACEOF
33301/* end confdefs.h. */
33302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33304#define $ac_func innocuous_$ac_func
33305
33306/* System header to define __stub macros and hopefully few prototypes,
33307 which can conflict with char $ac_func (); below.
33308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33309 <limits.h> exists even on freestanding compilers. */
33310
33311#ifdef __STDC__
33312# include <limits.h>
33313#else
33314# include <assert.h>
33315#endif
33316
33317#undef $ac_func
33318
33319/* Override any gcc2 internal prototype to avoid an error. */
33320#ifdef __cplusplus
33321extern "C"
33322{
33323#endif
33324/* We use char because int might match the return type of a gcc2
33325 builtin and then its argument prototype would still apply. */
33326char $ac_func ();
33327/* The GNU C library defines this for functions which it implements
33328 to always fail with ENOSYS. Some functions are actually named
33329 something starting with __ and the normal name is an alias. */
33330#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33331choke me
33332#else
33333char (*f) () = $ac_func;
33334#endif
33335#ifdef __cplusplus
33336}
33337#endif
33338
33339int
33340main ()
33341{
33342return f != $ac_func;
33343 ;
33344 return 0;
33345}
33346_ACEOF
33347rm -f conftest.$ac_objext conftest$ac_exeext
33348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33349 (eval $ac_link) 2>conftest.er1
33350 ac_status=$?
33351 grep -v '^ *+' conftest.er1 >conftest.err
33352 rm -f conftest.er1
33353 cat conftest.err >&5
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); } &&
33356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33358 (eval $ac_try) 2>&5
33359 ac_status=$?
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); }; } &&
33362 { ac_try='test -s conftest$ac_exeext'
33363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33364 (eval $ac_try) 2>&5
33365 ac_status=$?
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; }; then
33368 eval "$as_ac_var=yes"
33369else
33370 echo "$as_me: failed program was:" >&5
33371sed 's/^/| /' conftest.$ac_ext >&5
33372
33373eval "$as_ac_var=no"
33374fi
33375rm -f conftest.err conftest.$ac_objext \
33376 conftest$ac_exeext conftest.$ac_ext
33377fi
33378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33379echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33380if test `eval echo '${'$as_ac_var'}'` = yes; then
33381 cat >>confdefs.h <<_ACEOF
33382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33383_ACEOF
33384
33385fi
33386done
33387
33388fi
a848cd7e
SC
33389
33390
33391if test "$TOOLKIT" != "MSW"; then
33392
33393
33394
33395
33396ac_ext=cc
33397ac_cpp='$CXXCPP $CPPFLAGS'
33398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33401
33402
33403
33404
33405# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33406if test "${with_libiconv_prefix+set}" = set; then
33407 withval="$with_libiconv_prefix"
33408
33409 for dir in `echo "$withval" | tr : ' '`; do
33410 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33411 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33412 done
33413
33414fi;
33415
33416 echo "$as_me:$LINENO: checking for iconv" >&5
33417echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33418if test "${am_cv_func_iconv+set}" = set; then
33419 echo $ECHO_N "(cached) $ECHO_C" >&6
33420else
33421
33422 am_cv_func_iconv="no, consider installing GNU libiconv"
33423 am_cv_lib_iconv=no
33424 cat >conftest.$ac_ext <<_ACEOF
33425/* confdefs.h. */
33426_ACEOF
33427cat confdefs.h >>conftest.$ac_ext
33428cat >>conftest.$ac_ext <<_ACEOF
33429/* end confdefs.h. */
33430#include <stdlib.h>
33431#include <iconv.h>
33432int
33433main ()
33434{
33435iconv_t cd = iconv_open("","");
33436 iconv(cd,NULL,NULL,NULL,NULL);
33437 iconv_close(cd);
33438 ;
33439 return 0;
33440}
33441_ACEOF
33442rm -f conftest.$ac_objext conftest$ac_exeext
33443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33444 (eval $ac_link) 2>conftest.er1
a848cd7e 33445 ac_status=$?
ac1cb8d3
VS
33446 grep -v '^ *+' conftest.er1 >conftest.err
33447 rm -f conftest.er1
33448 cat conftest.err >&5
a848cd7e
SC
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450 (exit $ac_status); } &&
6ebeb4c7 33451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453 (eval $ac_try) 2>&5
33454 ac_status=$?
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); }; } &&
33457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33459 (eval $ac_try) 2>&5
33460 ac_status=$?
33461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462 (exit $ac_status); }; }; then
33463 am_cv_func_iconv=yes
33464else
33465 echo "$as_me: failed program was:" >&5
33466sed 's/^/| /' conftest.$ac_ext >&5
33467
33468fi
ac1cb8d3
VS
33469rm -f conftest.err conftest.$ac_objext \
33470 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33471 if test "$am_cv_func_iconv" != yes; then
33472 am_save_LIBS="$LIBS"
33473 LIBS="$LIBS -liconv"
33474 cat >conftest.$ac_ext <<_ACEOF
33475/* confdefs.h. */
33476_ACEOF
33477cat confdefs.h >>conftest.$ac_ext
33478cat >>conftest.$ac_ext <<_ACEOF
33479/* end confdefs.h. */
33480#include <stdlib.h>
33481#include <iconv.h>
33482int
33483main ()
33484{
33485iconv_t cd = iconv_open("","");
33486 iconv(cd,NULL,NULL,NULL,NULL);
33487 iconv_close(cd);
33488 ;
33489 return 0;
33490}
33491_ACEOF
33492rm -f conftest.$ac_objext conftest$ac_exeext
33493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33494 (eval $ac_link) 2>conftest.er1
a848cd7e 33495 ac_status=$?
ac1cb8d3
VS
33496 grep -v '^ *+' conftest.er1 >conftest.err
33497 rm -f conftest.er1
33498 cat conftest.err >&5
a848cd7e
SC
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); } &&
6ebeb4c7 33501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33503 (eval $ac_try) 2>&5
33504 ac_status=$?
33505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33506 (exit $ac_status); }; } &&
33507 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33509 (eval $ac_try) 2>&5
33510 ac_status=$?
33511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512 (exit $ac_status); }; }; then
33513 am_cv_lib_iconv=yes
33514 am_cv_func_iconv=yes
33515else
33516 echo "$as_me: failed program was:" >&5
33517sed 's/^/| /' conftest.$ac_ext >&5
33518
33519fi
ac1cb8d3
VS
33520rm -f conftest.err conftest.$ac_objext \
33521 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33522 LIBS="$am_save_LIBS"
33523 fi
33524
33525fi
33526echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33527echo "${ECHO_T}$am_cv_func_iconv" >&6
33528 if test "$am_cv_func_iconv" = yes; then
33529
33530cat >>confdefs.h <<\_ACEOF
33531#define HAVE_ICONV 1
33532_ACEOF
33533
33534 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33535echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33536if test "${wx_cv_func_iconv_const+set}" = set; then
33537 echo $ECHO_N "(cached) $ECHO_C" >&6
33538else
33539 cat >conftest.$ac_ext <<_ACEOF
33540/* confdefs.h. */
33541_ACEOF
33542cat confdefs.h >>conftest.$ac_ext
33543cat >>conftest.$ac_ext <<_ACEOF
33544/* end confdefs.h. */
33545
33546#include <stdlib.h>
33547#include <iconv.h>
33548extern
33549#ifdef __cplusplus
33550"C"
33551#endif
33552#if defined(__STDC__) || defined(__cplusplus)
33553size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33554#else
33555size_t iconv();
33556#endif
33557
33558int
33559main ()
33560{
33561
33562 ;
33563 return 0;
33564}
33565_ACEOF
33566rm -f conftest.$ac_objext
33567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33568 (eval $ac_compile) 2>conftest.er1
a848cd7e 33569 ac_status=$?
ac1cb8d3
VS
33570 grep -v '^ *+' conftest.er1 >conftest.err
33571 rm -f conftest.er1
33572 cat conftest.err >&5
a848cd7e
SC
33573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574 (exit $ac_status); } &&
6ebeb4c7 33575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33577 (eval $ac_try) 2>&5
33578 ac_status=$?
33579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580 (exit $ac_status); }; } &&
33581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33583 (eval $ac_try) 2>&5
33584 ac_status=$?
33585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586 (exit $ac_status); }; }; then
33587 wx_cv_func_iconv_const="no"
33588else
33589 echo "$as_me: failed program was:" >&5
33590sed 's/^/| /' conftest.$ac_ext >&5
33591
33592wx_cv_func_iconv_const="yes"
33593
33594fi
ac1cb8d3 33595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33596
33597fi
33598echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33599echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33600
33601 iconv_const=
33602 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33603 iconv_const="const"
33604 fi
33605
33606
33607cat >>confdefs.h <<_ACEOF
33608#define ICONV_CONST $iconv_const
33609_ACEOF
33610
33611 fi
33612 LIBICONV=
33613 if test "$am_cv_lib_iconv" = yes; then
33614 LIBICONV="-liconv"
33615 fi
33616
33617
33618LIBS="$LIBICONV $LIBS"
33619ac_ext=c
33620ac_cpp='$CPP $CPPFLAGS'
33621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33623ac_compiler_gnu=$ac_cv_c_compiler_gnu
33624
33625
33626if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33627
33628for ac_func in sigaction
33629do
33630as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33631echo "$as_me:$LINENO: checking for $ac_func" >&5
33632echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33633if eval "test \"\${$as_ac_var+set}\" = set"; then
33634 echo $ECHO_N "(cached) $ECHO_C" >&6
33635else
33636 cat >conftest.$ac_ext <<_ACEOF
33637/* confdefs.h. */
33638_ACEOF
33639cat confdefs.h >>conftest.$ac_ext
33640cat >>conftest.$ac_ext <<_ACEOF
33641/* end confdefs.h. */
ac1cb8d3
VS
33642/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33644#define $ac_func innocuous_$ac_func
33645
a848cd7e
SC
33646/* System header to define __stub macros and hopefully few prototypes,
33647 which can conflict with char $ac_func (); below.
33648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33649 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33650
a848cd7e
SC
33651#ifdef __STDC__
33652# include <limits.h>
33653#else
33654# include <assert.h>
33655#endif
ac1cb8d3
VS
33656
33657#undef $ac_func
33658
a848cd7e
SC
33659/* Override any gcc2 internal prototype to avoid an error. */
33660#ifdef __cplusplus
33661extern "C"
33662{
33663#endif
33664/* We use char because int might match the return type of a gcc2
33665 builtin and then its argument prototype would still apply. */
33666char $ac_func ();
33667/* The GNU C library defines this for functions which it implements
33668 to always fail with ENOSYS. Some functions are actually named
33669 something starting with __ and the normal name is an alias. */
33670#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33671choke me
33672#else
33673char (*f) () = $ac_func;
33674#endif
33675#ifdef __cplusplus
33676}
33677#endif
33678
33679int
33680main ()
33681{
33682return f != $ac_func;
33683 ;
33684 return 0;
33685}
33686_ACEOF
33687rm -f conftest.$ac_objext conftest$ac_exeext
33688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33689 (eval $ac_link) 2>conftest.er1
a848cd7e 33690 ac_status=$?
ac1cb8d3
VS
33691 grep -v '^ *+' conftest.er1 >conftest.err
33692 rm -f conftest.er1
33693 cat conftest.err >&5
a848cd7e
SC
33694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695 (exit $ac_status); } &&
6ebeb4c7 33696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33698 (eval $ac_try) 2>&5
33699 ac_status=$?
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); }; } &&
33702 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704 (eval $ac_try) 2>&5
33705 ac_status=$?
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); }; }; then
33708 eval "$as_ac_var=yes"
33709else
33710 echo "$as_me: failed program was:" >&5
33711sed 's/^/| /' conftest.$ac_ext >&5
33712
33713eval "$as_ac_var=no"
33714fi
ac1cb8d3
VS
33715rm -f conftest.err conftest.$ac_objext \
33716 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33717fi
33718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33719echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33720if test `eval echo '${'$as_ac_var'}'` = yes; then
33721 cat >>confdefs.h <<_ACEOF
33722#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33723_ACEOF
33724
33725fi
33726done
33727
33728
33729 if test "$ac_cv_func_sigaction" = "no"; then
33730 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
33731echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
33732 wxUSE_ON_FATAL_EXCEPTION=no
33733 fi
33734
33735 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
33736
33737
33738 ac_ext=cc
33739ac_cpp='$CXXCPP $CPPFLAGS'
33740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33743
33744
33745 echo "$as_me:$LINENO: checking for sa_handler type" >&5
33746echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
33747if test "${wx_cv_type_sa_handler+set}" = set; then
33748 echo $ECHO_N "(cached) $ECHO_C" >&6
33749else
33750
33751 cat >conftest.$ac_ext <<_ACEOF
33752/* confdefs.h. */
33753_ACEOF
33754cat confdefs.h >>conftest.$ac_ext
33755cat >>conftest.$ac_ext <<_ACEOF
33756/* end confdefs.h. */
33757#include <signal.h>
33758int
33759main ()
33760{
33761
33762 extern void testSigHandler(int);
33763
33764 struct sigaction sa;
33765 sa.sa_handler = testSigHandler;
33766
33767 ;
33768 return 0;
33769}
33770_ACEOF
33771rm -f conftest.$ac_objext
33772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33773 (eval $ac_compile) 2>conftest.er1
a848cd7e 33774 ac_status=$?
ac1cb8d3
VS
33775 grep -v '^ *+' conftest.er1 >conftest.err
33776 rm -f conftest.er1
33777 cat conftest.err >&5
a848cd7e
SC
33778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779 (exit $ac_status); } &&
6ebeb4c7 33780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33782 (eval $ac_try) 2>&5
33783 ac_status=$?
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); }; } &&
33786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33788 (eval $ac_try) 2>&5
33789 ac_status=$?
33790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 (exit $ac_status); }; }; then
33792
33793 wx_cv_type_sa_handler=int
33794
33795else
33796 echo "$as_me: failed program was:" >&5
33797sed 's/^/| /' conftest.$ac_ext >&5
33798
33799
33800 wx_cv_type_sa_handler=void
33801
33802fi
ac1cb8d3 33803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33804
33805fi
33806echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
33807echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
33808
33809 ac_ext=c
33810ac_cpp='$CPP $CPPFLAGS'
33811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33813ac_compiler_gnu=$ac_cv_c_compiler_gnu
33814
33815
33816 cat >>confdefs.h <<_ACEOF
33817#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
33818_ACEOF
33819
33820 fi
33821fi
33822
eaff0f0d
VZ
33823if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33824
33825
33826 ac_ext=cc
33827ac_cpp='$CXXCPP $CPPFLAGS'
33828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33831
33832
33833 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
33834echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
33835if test "${wx_cv_func_backtrace+set}" = set; then
33836 echo $ECHO_N "(cached) $ECHO_C" >&6
33837else
33838
33839 cat >conftest.$ac_ext <<_ACEOF
33840/* confdefs.h. */
33841_ACEOF
33842cat confdefs.h >>conftest.$ac_ext
33843cat >>conftest.$ac_ext <<_ACEOF
33844/* end confdefs.h. */
33845#include <execinfo.h>
33846int
33847main ()
33848{
33849
33850 void *trace[1];
33851 char **messages;
33852
33853 backtrace(trace, 1);
33854 messages = backtrace_symbols(trace, 1);
33855
33856 ;
33857 return 0;
33858}
33859_ACEOF
33860rm -f conftest.$ac_objext
33861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33862 (eval $ac_compile) 2>conftest.er1
33863 ac_status=$?
33864 grep -v '^ *+' conftest.er1 >conftest.err
33865 rm -f conftest.er1
33866 cat conftest.err >&5
33867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868 (exit $ac_status); } &&
6ebeb4c7 33869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871 (eval $ac_try) 2>&5
33872 ac_status=$?
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; } &&
33875 { ac_try='test -s conftest.$ac_objext'
33876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33877 (eval $ac_try) 2>&5
33878 ac_status=$?
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); }; }; then
33881 wx_cv_func_backtrace=yes
33882else
33883 echo "$as_me: failed program was:" >&5
33884sed 's/^/| /' conftest.$ac_ext >&5
33885
33886wx_cv_func_backtrace=no
33887
33888fi
33889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33890
33891
33892fi
33893echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
33894echo "${ECHO_T}$wx_cv_func_backtrace" >&6
33895
33896
33897 if test "$wx_cv_func_backtrace" = "no"; then
33898 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
33899echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
33900 wxUSE_STACKWALKER=no
33901 else
33902 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
33903echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
33904if test "${wx_cv_func_cxa_demangle+set}" = set; then
33905 echo $ECHO_N "(cached) $ECHO_C" >&6
33906else
33907
33908 cat >conftest.$ac_ext <<_ACEOF
33909/* confdefs.h. */
33910_ACEOF
33911cat confdefs.h >>conftest.$ac_ext
33912cat >>conftest.$ac_ext <<_ACEOF
33913/* end confdefs.h. */
33914#include <cxxabi.h>
33915int
33916main ()
33917{
33918
33919 int rc;
33920 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
33921
33922 ;
33923 return 0;
33924}
33925_ACEOF
dfe0c803
JS
33926rm -f conftest.$ac_objext conftest$ac_exeext
33927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33928 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
33929 ac_status=$?
33930 grep -v '^ *+' conftest.er1 >conftest.err
33931 rm -f conftest.er1
33932 cat conftest.err >&5
33933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934 (exit $ac_status); } &&
6ebeb4c7 33935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33937 (eval $ac_try) 2>&5
33938 ac_status=$?
33939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940 (exit $ac_status); }; } &&
dfe0c803 33941 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
33942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33943 (eval $ac_try) 2>&5
33944 ac_status=$?
33945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33946 (exit $ac_status); }; }; then
33947 wx_cv_func_cxa_demangle=yes
33948else
33949 echo "$as_me: failed program was:" >&5
33950sed 's/^/| /' conftest.$ac_ext >&5
33951
33952wx_cv_func_cxa_demangle=no
33953
33954fi
dfe0c803
JS
33955rm -f conftest.err conftest.$ac_objext \
33956 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
33957
33958
33959fi
33960echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
33961echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
33962
33963 if test "$wx_cv_func_cxa_demangle" = "yes"; then
33964 cat >>confdefs.h <<\_ACEOF
33965#define HAVE_CXA_DEMANGLE 1
33966_ACEOF
33967
33968 fi
33969 fi
33970
33971 ac_ext=c
33972ac_cpp='$CPP $CPPFLAGS'
33973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33975ac_compiler_gnu=$ac_cv_c_compiler_gnu
33976
33977fi
33978
898beab1
DE
33979if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
33980 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
33981echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
33982 wxUSE_STACKWALKER=no
33983fi
33984
33985
a848cd7e
SC
33986
33987
33988for ac_func in mkstemp mktemp
33989do
33990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33991echo "$as_me:$LINENO: checking for $ac_func" >&5
33992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33993if eval "test \"\${$as_ac_var+set}\" = set"; then
33994 echo $ECHO_N "(cached) $ECHO_C" >&6
33995else
33996 cat >conftest.$ac_ext <<_ACEOF
33997/* confdefs.h. */
33998_ACEOF
33999cat confdefs.h >>conftest.$ac_ext
34000cat >>conftest.$ac_ext <<_ACEOF
34001/* end confdefs.h. */
ac1cb8d3
VS
34002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34004#define $ac_func innocuous_$ac_func
34005
a848cd7e
SC
34006/* System header to define __stub macros and hopefully few prototypes,
34007 which can conflict with char $ac_func (); below.
34008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34009 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34010
a848cd7e
SC
34011#ifdef __STDC__
34012# include <limits.h>
34013#else
34014# include <assert.h>
34015#endif
ac1cb8d3
VS
34016
34017#undef $ac_func
34018
a848cd7e
SC
34019/* Override any gcc2 internal prototype to avoid an error. */
34020#ifdef __cplusplus
34021extern "C"
34022{
34023#endif
34024/* We use char because int might match the return type of a gcc2
34025 builtin and then its argument prototype would still apply. */
34026char $ac_func ();
34027/* The GNU C library defines this for functions which it implements
34028 to always fail with ENOSYS. Some functions are actually named
34029 something starting with __ and the normal name is an alias. */
34030#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34031choke me
34032#else
34033char (*f) () = $ac_func;
34034#endif
34035#ifdef __cplusplus
34036}
34037#endif
34038
34039int
34040main ()
34041{
34042return f != $ac_func;
34043 ;
34044 return 0;
34045}
34046_ACEOF
34047rm -f conftest.$ac_objext conftest$ac_exeext
34048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34049 (eval $ac_link) 2>conftest.er1
a848cd7e 34050 ac_status=$?
ac1cb8d3
VS
34051 grep -v '^ *+' conftest.er1 >conftest.err
34052 rm -f conftest.er1
34053 cat conftest.err >&5
a848cd7e
SC
34054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055 (exit $ac_status); } &&
6ebeb4c7 34056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34058 (eval $ac_try) 2>&5
34059 ac_status=$?
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); }; } &&
34062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34064 (eval $ac_try) 2>&5
34065 ac_status=$?
34066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067 (exit $ac_status); }; }; then
34068 eval "$as_ac_var=yes"
34069else
34070 echo "$as_me: failed program was:" >&5
34071sed 's/^/| /' conftest.$ac_ext >&5
34072
34073eval "$as_ac_var=no"
34074fi
ac1cb8d3
VS
34075rm -f conftest.err conftest.$ac_objext \
34076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34077fi
34078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34079echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34080if test `eval echo '${'$as_ac_var'}'` = yes; then
34081 cat >>confdefs.h <<_ACEOF
34082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34083_ACEOF
34084 break
34085fi
34086done
34087
34088
34089echo "$as_me:$LINENO: checking for statfs" >&5
34090echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34091if test "${wx_cv_func_statfs+set}" = set; then
34092 echo $ECHO_N "(cached) $ECHO_C" >&6
34093else
34094 cat >conftest.$ac_ext <<_ACEOF
34095/* confdefs.h. */
34096_ACEOF
34097cat confdefs.h >>conftest.$ac_ext
34098cat >>conftest.$ac_ext <<_ACEOF
34099/* end confdefs.h. */
34100
34101 #if defined(__BSD__)
84ae7ca4
VZ
34102 #include <sys/param.h>
34103 #include <sys/mount.h>
a848cd7e 34104 #else
84ae7ca4 34105 #include <sys/vfs.h>
a848cd7e
SC
34106 #endif
34107
34108int
34109main ()
34110{
34111
34112 long l;
34113 struct statfs fs;
34114 statfs("/", &fs);
34115 l = fs.f_bsize;
34116 l += fs.f_blocks;
34117 l += fs.f_bavail;
34118
34119 ;
34120 return 0;
34121}
34122_ACEOF
34123rm -f conftest.$ac_objext
34124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34125 (eval $ac_compile) 2>conftest.er1
a848cd7e 34126 ac_status=$?
ac1cb8d3
VS
34127 grep -v '^ *+' conftest.er1 >conftest.err
34128 rm -f conftest.er1
34129 cat conftest.err >&5
a848cd7e
SC
34130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34131 (exit $ac_status); } &&
6ebeb4c7 34132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34134 (eval $ac_try) 2>&5
34135 ac_status=$?
34136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137 (exit $ac_status); }; } &&
34138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34140 (eval $ac_try) 2>&5
34141 ac_status=$?
34142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143 (exit $ac_status); }; }; then
84ae7ca4 34144 wx_cv_func_statfs=yes
a848cd7e
SC
34145else
34146 echo "$as_me: failed program was:" >&5
34147sed 's/^/| /' conftest.$ac_ext >&5
34148
84ae7ca4 34149wx_cv_func_statfs=no
a848cd7e
SC
34150
34151fi
ac1cb8d3 34152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34153
34154fi
34155echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34156echo "${ECHO_T}$wx_cv_func_statfs" >&6
34157
34158if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34159
34160
34161 ac_ext=cc
34162ac_cpp='$CXXCPP $CPPFLAGS'
34163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34166
34167 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34168echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34169if test "${wx_cv_func_statfs_decl+set}" = set; then
34170 echo $ECHO_N "(cached) $ECHO_C" >&6
34171else
0683aca6
VZ
34172 cat >conftest.$ac_ext <<_ACEOF
34173/* confdefs.h. */
34174_ACEOF
34175cat confdefs.h >>conftest.$ac_ext
34176cat >>conftest.$ac_ext <<_ACEOF
34177/* end confdefs.h. */
84ae7ca4 34178
0683aca6
VZ
34179 #if defined(__BSD__)
34180 #include <sys/param.h>
34181 #include <sys/mount.h>
34182 #else
34183 #include <sys/vfs.h>
34184 #endif
34185
34186int
34187main ()
34188{
34189
34190 struct statfs fs;
34191 statfs("", &fs);
34192
34193 ;
34194 return 0;
34195}
34196_ACEOF
34197rm -f conftest.$ac_objext
34198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34199 (eval $ac_compile) 2>conftest.er1
34200 ac_status=$?
34201 grep -v '^ *+' conftest.er1 >conftest.err
34202 rm -f conftest.er1
34203 cat conftest.err >&5
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); } &&
34206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34208 (eval $ac_try) 2>&5
34209 ac_status=$?
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); }; } &&
34212 { ac_try='test -s conftest.$ac_objext'
34213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34214 (eval $ac_try) 2>&5
34215 ac_status=$?
34216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34217 (exit $ac_status); }; }; then
34218 wx_cv_func_statfs_decl=yes
34219else
34220 echo "$as_me: failed program was:" >&5
34221sed 's/^/| /' conftest.$ac_ext >&5
34222
34223wx_cv_func_statfs_decl=no
34224
34225fi
34226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34227
34228fi
34229echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34230echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34231 ac_ext=c
34232ac_cpp='$CPP $CPPFLAGS'
34233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34235ac_compiler_gnu=$ac_cv_c_compiler_gnu
34236
34237
34238 if test "$wx_cv_func_statfs_decl" = "yes"; then
34239 cat >>confdefs.h <<\_ACEOF
34240#define HAVE_STATFS_DECL 1
34241_ACEOF
34242
34243 fi
34244
a848cd7e
SC
34245 wx_cv_type_statvfs_t="struct statfs"
34246 cat >>confdefs.h <<\_ACEOF
34247#define HAVE_STATFS 1
34248_ACEOF
34249
34250else
34251 echo "$as_me:$LINENO: checking for statvfs" >&5
34252echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34253if test "${wx_cv_func_statvfs+set}" = set; then
34254 echo $ECHO_N "(cached) $ECHO_C" >&6
34255else
34256 cat >conftest.$ac_ext <<_ACEOF
34257/* confdefs.h. */
34258_ACEOF
34259cat confdefs.h >>conftest.$ac_ext
34260cat >>conftest.$ac_ext <<_ACEOF
34261/* end confdefs.h. */
34262
34263 #include <stddef.h>
34264 #include <sys/statvfs.h>
34265
34266int
34267main ()
34268{
34269
34270 statvfs("/", NULL);
34271
34272 ;
34273 return 0;
34274}
34275_ACEOF
34276rm -f conftest.$ac_objext
34277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34278 (eval $ac_compile) 2>conftest.er1
a848cd7e 34279 ac_status=$?
ac1cb8d3
VS
34280 grep -v '^ *+' conftest.er1 >conftest.err
34281 rm -f conftest.er1
34282 cat conftest.err >&5
a848cd7e
SC
34283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34284 (exit $ac_status); } &&
6ebeb4c7 34285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34287 (eval $ac_try) 2>&5
34288 ac_status=$?
34289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34290 (exit $ac_status); }; } &&
34291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34293 (eval $ac_try) 2>&5
34294 ac_status=$?
34295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34296 (exit $ac_status); }; }; then
34297 wx_cv_func_statvfs=yes
34298else
34299 echo "$as_me: failed program was:" >&5
34300sed 's/^/| /' conftest.$ac_ext >&5
34301
34302wx_cv_func_statvfs=no
34303
34304fi
ac1cb8d3 34305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34306
34307fi
34308echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34309echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34310
34311 if test "$wx_cv_func_statvfs" = "yes"; then
34312
34313
34314 ac_ext=cc
34315ac_cpp='$CXXCPP $CPPFLAGS'
34316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34319
34320
34321 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34322echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34323if test "${wx_cv_type_statvfs_t+set}" = set; then
34324 echo $ECHO_N "(cached) $ECHO_C" >&6
34325else
34326 cat >conftest.$ac_ext <<_ACEOF
34327/* confdefs.h. */
34328_ACEOF
34329cat confdefs.h >>conftest.$ac_ext
34330cat >>conftest.$ac_ext <<_ACEOF
34331/* end confdefs.h. */
34332
34333 #include <sys/statvfs.h>
34334
34335int
34336main ()
34337{
34338
34339 long l;
34340 statvfs_t fs;
34341 statvfs("/", &fs);
34342 l = fs.f_bsize;
34343 l += fs.f_blocks;
34344 l += fs.f_bavail;
34345
34346 ;
34347 return 0;
34348}
34349_ACEOF
34350rm -f conftest.$ac_objext
34351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34352 (eval $ac_compile) 2>conftest.er1
a848cd7e 34353 ac_status=$?
ac1cb8d3
VS
34354 grep -v '^ *+' conftest.er1 >conftest.err
34355 rm -f conftest.er1
34356 cat conftest.err >&5
a848cd7e
SC
34357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358 (exit $ac_status); } &&
6ebeb4c7 34359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34361 (eval $ac_try) 2>&5
34362 ac_status=$?
34363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364 (exit $ac_status); }; } &&
34365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34367 (eval $ac_try) 2>&5
34368 ac_status=$?
34369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370 (exit $ac_status); }; }; then
34371 wx_cv_type_statvfs_t=statvfs_t
34372else
34373 echo "$as_me: failed program was:" >&5
34374sed 's/^/| /' conftest.$ac_ext >&5
34375
34376
34377 cat >conftest.$ac_ext <<_ACEOF
34378/* confdefs.h. */
34379_ACEOF
34380cat confdefs.h >>conftest.$ac_ext
34381cat >>conftest.$ac_ext <<_ACEOF
34382/* end confdefs.h. */
34383
34384 #include <sys/statvfs.h>
34385
34386int
34387main ()
34388{
34389
34390 long l;
34391 struct statvfs fs;
34392 statvfs("/", &fs);
34393 l = fs.f_bsize;
34394 l += fs.f_blocks;
34395 l += fs.f_bavail;
34396
34397 ;
34398 return 0;
34399}
34400_ACEOF
34401rm -f conftest.$ac_objext
34402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34403 (eval $ac_compile) 2>conftest.er1
a848cd7e 34404 ac_status=$?
ac1cb8d3
VS
34405 grep -v '^ *+' conftest.er1 >conftest.err
34406 rm -f conftest.er1
34407 cat conftest.err >&5
a848cd7e
SC
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); } &&
6ebeb4c7 34410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34412 (eval $ac_try) 2>&5
34413 ac_status=$?
34414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415 (exit $ac_status); }; } &&
34416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34418 (eval $ac_try) 2>&5
34419 ac_status=$?
34420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34421 (exit $ac_status); }; }; then
34422 wx_cv_type_statvfs_t="struct statvfs"
34423else
34424 echo "$as_me: failed program was:" >&5
34425sed 's/^/| /' conftest.$ac_ext >&5
34426
34427wx_cv_type_statvfs_t="unknown"
34428
34429fi
ac1cb8d3 34430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34431
34432
34433fi
ac1cb8d3 34434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34435
34436fi
34437echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34438echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34439
34440 ac_ext=c
34441ac_cpp='$CPP $CPPFLAGS'
34442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34444ac_compiler_gnu=$ac_cv_c_compiler_gnu
34445
34446
34447 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34448 cat >>confdefs.h <<\_ACEOF
34449#define HAVE_STATVFS 1
34450_ACEOF
34451
34452 fi
34453 else
34454 wx_cv_type_statvfs_t="unknown"
34455 fi
34456fi
34457
34458if test "$wx_cv_type_statvfs_t" != "unknown"; then
34459 cat >>confdefs.h <<_ACEOF
34460#define WX_STATFS_T $wx_cv_type_statvfs_t
34461_ACEOF
34462
34463else
34464 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34465echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34466fi
34467
34468if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34469
34470
34471for ac_func in fcntl flock
34472do
34473as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34474echo "$as_me:$LINENO: checking for $ac_func" >&5
34475echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34476if eval "test \"\${$as_ac_var+set}\" = set"; then
34477 echo $ECHO_N "(cached) $ECHO_C" >&6
34478else
34479 cat >conftest.$ac_ext <<_ACEOF
34480/* confdefs.h. */
34481_ACEOF
34482cat confdefs.h >>conftest.$ac_ext
34483cat >>conftest.$ac_ext <<_ACEOF
34484/* end confdefs.h. */
ac1cb8d3
VS
34485/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34487#define $ac_func innocuous_$ac_func
34488
a848cd7e
SC
34489/* System header to define __stub macros and hopefully few prototypes,
34490 which can conflict with char $ac_func (); below.
34491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34492 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34493
a848cd7e
SC
34494#ifdef __STDC__
34495# include <limits.h>
34496#else
34497# include <assert.h>
34498#endif
ac1cb8d3
VS
34499
34500#undef $ac_func
34501
a848cd7e
SC
34502/* Override any gcc2 internal prototype to avoid an error. */
34503#ifdef __cplusplus
34504extern "C"
34505{
34506#endif
34507/* We use char because int might match the return type of a gcc2
34508 builtin and then its argument prototype would still apply. */
34509char $ac_func ();
34510/* The GNU C library defines this for functions which it implements
34511 to always fail with ENOSYS. Some functions are actually named
34512 something starting with __ and the normal name is an alias. */
34513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34514choke me
34515#else
34516char (*f) () = $ac_func;
34517#endif
34518#ifdef __cplusplus
34519}
34520#endif
34521
34522int
34523main ()
34524{
34525return f != $ac_func;
34526 ;
34527 return 0;
34528}
34529_ACEOF
34530rm -f conftest.$ac_objext conftest$ac_exeext
34531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34532 (eval $ac_link) 2>conftest.er1
a848cd7e 34533 ac_status=$?
ac1cb8d3
VS
34534 grep -v '^ *+' conftest.er1 >conftest.err
34535 rm -f conftest.er1
34536 cat conftest.err >&5
a848cd7e
SC
34537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34538 (exit $ac_status); } &&
6ebeb4c7 34539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34541 (eval $ac_try) 2>&5
34542 ac_status=$?
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 (exit $ac_status); }; } &&
34545 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34547 (eval $ac_try) 2>&5
34548 ac_status=$?
34549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550 (exit $ac_status); }; }; then
34551 eval "$as_ac_var=yes"
34552else
34553 echo "$as_me: failed program was:" >&5
34554sed 's/^/| /' conftest.$ac_ext >&5
34555
34556eval "$as_ac_var=no"
34557fi
ac1cb8d3
VS
34558rm -f conftest.err conftest.$ac_objext \
34559 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34560fi
34561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34562echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34563if test `eval echo '${'$as_ac_var'}'` = yes; then
34564 cat >>confdefs.h <<_ACEOF
34565#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34566_ACEOF
34567 break
34568fi
34569done
34570
34571
34572 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34573 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34574echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34575 wxUSE_SNGLINST_CHECKER=no
34576 fi
34577fi
34578
34579
34580for ac_func in timegm
34581do
34582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34583echo "$as_me:$LINENO: checking for $ac_func" >&5
34584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34585if eval "test \"\${$as_ac_var+set}\" = set"; then
34586 echo $ECHO_N "(cached) $ECHO_C" >&6
34587else
34588 cat >conftest.$ac_ext <<_ACEOF
34589/* confdefs.h. */
34590_ACEOF
34591cat confdefs.h >>conftest.$ac_ext
34592cat >>conftest.$ac_ext <<_ACEOF
34593/* end confdefs.h. */
ac1cb8d3
VS
34594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34596#define $ac_func innocuous_$ac_func
34597
a848cd7e
SC
34598/* System header to define __stub macros and hopefully few prototypes,
34599 which can conflict with char $ac_func (); below.
34600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34601 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34602
a848cd7e
SC
34603#ifdef __STDC__
34604# include <limits.h>
34605#else
34606# include <assert.h>
34607#endif
ac1cb8d3
VS
34608
34609#undef $ac_func
34610
a848cd7e
SC
34611/* Override any gcc2 internal prototype to avoid an error. */
34612#ifdef __cplusplus
34613extern "C"
34614{
34615#endif
34616/* We use char because int might match the return type of a gcc2
34617 builtin and then its argument prototype would still apply. */
34618char $ac_func ();
34619/* The GNU C library defines this for functions which it implements
34620 to always fail with ENOSYS. Some functions are actually named
34621 something starting with __ and the normal name is an alias. */
34622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34623choke me
34624#else
34625char (*f) () = $ac_func;
34626#endif
34627#ifdef __cplusplus
34628}
34629#endif
34630
34631int
34632main ()
34633{
34634return f != $ac_func;
34635 ;
34636 return 0;
34637}
34638_ACEOF
34639rm -f conftest.$ac_objext conftest$ac_exeext
34640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34641 (eval $ac_link) 2>conftest.er1
a848cd7e 34642 ac_status=$?
ac1cb8d3
VS
34643 grep -v '^ *+' conftest.er1 >conftest.err
34644 rm -f conftest.er1
34645 cat conftest.err >&5
a848cd7e
SC
34646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647 (exit $ac_status); } &&
6ebeb4c7 34648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34650 (eval $ac_try) 2>&5
34651 ac_status=$?
34652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653 (exit $ac_status); }; } &&
34654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34656 (eval $ac_try) 2>&5
34657 ac_status=$?
34658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659 (exit $ac_status); }; }; then
34660 eval "$as_ac_var=yes"
34661else
34662 echo "$as_me: failed program was:" >&5
34663sed 's/^/| /' conftest.$ac_ext >&5
34664
34665eval "$as_ac_var=no"
34666fi
ac1cb8d3
VS
34667rm -f conftest.err conftest.$ac_objext \
34668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34669fi
34670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34671echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34672if test `eval echo '${'$as_ac_var'}'` = yes; then
34673 cat >>confdefs.h <<_ACEOF
34674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34675_ACEOF
34676
34677fi
34678done
34679
34680
34681
34682
34683for ac_func in putenv setenv
34684do
34685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34686echo "$as_me:$LINENO: checking for $ac_func" >&5
34687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34688if eval "test \"\${$as_ac_var+set}\" = set"; then
34689 echo $ECHO_N "(cached) $ECHO_C" >&6
34690else
34691 cat >conftest.$ac_ext <<_ACEOF
34692/* confdefs.h. */
34693_ACEOF
34694cat confdefs.h >>conftest.$ac_ext
34695cat >>conftest.$ac_ext <<_ACEOF
34696/* end confdefs.h. */
ac1cb8d3
VS
34697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34699#define $ac_func innocuous_$ac_func
34700
a848cd7e
SC
34701/* System header to define __stub macros and hopefully few prototypes,
34702 which can conflict with char $ac_func (); below.
34703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34704 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34705
a848cd7e
SC
34706#ifdef __STDC__
34707# include <limits.h>
34708#else
34709# include <assert.h>
34710#endif
ac1cb8d3
VS
34711
34712#undef $ac_func
34713
a848cd7e
SC
34714/* Override any gcc2 internal prototype to avoid an error. */
34715#ifdef __cplusplus
34716extern "C"
34717{
34718#endif
34719/* We use char because int might match the return type of a gcc2
34720 builtin and then its argument prototype would still apply. */
34721char $ac_func ();
34722/* The GNU C library defines this for functions which it implements
34723 to always fail with ENOSYS. Some functions are actually named
34724 something starting with __ and the normal name is an alias. */
34725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34726choke me
34727#else
34728char (*f) () = $ac_func;
34729#endif
34730#ifdef __cplusplus
34731}
34732#endif
34733
34734int
34735main ()
34736{
34737return f != $ac_func;
34738 ;
34739 return 0;
34740}
34741_ACEOF
34742rm -f conftest.$ac_objext conftest$ac_exeext
34743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34744 (eval $ac_link) 2>conftest.er1
a848cd7e 34745 ac_status=$?
ac1cb8d3
VS
34746 grep -v '^ *+' conftest.er1 >conftest.err
34747 rm -f conftest.er1
34748 cat conftest.err >&5
a848cd7e
SC
34749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750 (exit $ac_status); } &&
6ebeb4c7 34751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34753 (eval $ac_try) 2>&5
34754 ac_status=$?
34755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); }; } &&
34757 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34759 (eval $ac_try) 2>&5
34760 ac_status=$?
34761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762 (exit $ac_status); }; }; then
34763 eval "$as_ac_var=yes"
34764else
34765 echo "$as_me: failed program was:" >&5
34766sed 's/^/| /' conftest.$ac_ext >&5
34767
34768eval "$as_ac_var=no"
34769fi
ac1cb8d3
VS
34770rm -f conftest.err conftest.$ac_objext \
34771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34772fi
34773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34774echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34775if test `eval echo '${'$as_ac_var'}'` = yes; then
34776 cat >>confdefs.h <<_ACEOF
34777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34778_ACEOF
34779 break
34780fi
34781done
34782
34783
34784HAVE_SOME_SLEEP_FUNC=0
34785if test "$USE_BEOS" = 1; then
34786 cat >>confdefs.h <<\_ACEOF
34787#define HAVE_SLEEP 1
34788_ACEOF
34789
34790 HAVE_SOME_SLEEP_FUNC=1
34791fi
34792
34793if test "$USE_DARWIN" = 1; then
34794 cat >>confdefs.h <<\_ACEOF
34795#define HAVE_USLEEP 1
34796_ACEOF
34797
34798 HAVE_SOME_SLEEP_FUNC=1
34799fi
34800
34801if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
34802 POSIX4_LINK=
34803
34804for ac_func in nanosleep
34805do
34806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34807echo "$as_me:$LINENO: checking for $ac_func" >&5
34808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34809if eval "test \"\${$as_ac_var+set}\" = set"; then
34810 echo $ECHO_N "(cached) $ECHO_C" >&6
34811else
34812 cat >conftest.$ac_ext <<_ACEOF
34813/* confdefs.h. */
34814_ACEOF
34815cat confdefs.h >>conftest.$ac_ext
34816cat >>conftest.$ac_ext <<_ACEOF
34817/* end confdefs.h. */
ac1cb8d3
VS
34818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34820#define $ac_func innocuous_$ac_func
34821
a848cd7e
SC
34822/* System header to define __stub macros and hopefully few prototypes,
34823 which can conflict with char $ac_func (); below.
34824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34825 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34826
a848cd7e
SC
34827#ifdef __STDC__
34828# include <limits.h>
34829#else
34830# include <assert.h>
34831#endif
ac1cb8d3
VS
34832
34833#undef $ac_func
34834
a848cd7e
SC
34835/* Override any gcc2 internal prototype to avoid an error. */
34836#ifdef __cplusplus
34837extern "C"
34838{
34839#endif
34840/* We use char because int might match the return type of a gcc2
34841 builtin and then its argument prototype would still apply. */
34842char $ac_func ();
34843/* The GNU C library defines this for functions which it implements
34844 to always fail with ENOSYS. Some functions are actually named
34845 something starting with __ and the normal name is an alias. */
34846#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34847choke me
34848#else
34849char (*f) () = $ac_func;
34850#endif
34851#ifdef __cplusplus
34852}
34853#endif
34854
34855int
34856main ()
34857{
34858return f != $ac_func;
34859 ;
34860 return 0;
34861}
34862_ACEOF
34863rm -f conftest.$ac_objext conftest$ac_exeext
34864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34865 (eval $ac_link) 2>conftest.er1
a848cd7e 34866 ac_status=$?
ac1cb8d3
VS
34867 grep -v '^ *+' conftest.er1 >conftest.err
34868 rm -f conftest.er1
34869 cat conftest.err >&5
a848cd7e
SC
34870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34871 (exit $ac_status); } &&
6ebeb4c7 34872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34874 (eval $ac_try) 2>&5
34875 ac_status=$?
34876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877 (exit $ac_status); }; } &&
34878 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34880 (eval $ac_try) 2>&5
34881 ac_status=$?
34882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883 (exit $ac_status); }; }; then
34884 eval "$as_ac_var=yes"
34885else
34886 echo "$as_me: failed program was:" >&5
34887sed 's/^/| /' conftest.$ac_ext >&5
34888
34889eval "$as_ac_var=no"
34890fi
ac1cb8d3
VS
34891rm -f conftest.err conftest.$ac_objext \
34892 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34893fi
34894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34895echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34896if test `eval echo '${'$as_ac_var'}'` = yes; then
34897 cat >>confdefs.h <<_ACEOF
34898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34899_ACEOF
34900 cat >>confdefs.h <<\_ACEOF
34901#define HAVE_NANOSLEEP 1
34902_ACEOF
34903
34904else
34905
34906 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
34907echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
34908if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
34909 echo $ECHO_N "(cached) $ECHO_C" >&6
34910else
34911 ac_check_lib_save_LIBS=$LIBS
34912LIBS="-lposix4 $LIBS"
34913cat >conftest.$ac_ext <<_ACEOF
34914/* confdefs.h. */
34915_ACEOF
34916cat confdefs.h >>conftest.$ac_ext
34917cat >>conftest.$ac_ext <<_ACEOF
34918/* end confdefs.h. */
34919
34920/* Override any gcc2 internal prototype to avoid an error. */
34921#ifdef __cplusplus
34922extern "C"
34923#endif
34924/* We use char because int might match the return type of a gcc2
34925 builtin and then its argument prototype would still apply. */
34926char nanosleep ();
34927int
34928main ()
34929{
34930nanosleep ();
34931 ;
34932 return 0;
34933}
34934_ACEOF
34935rm -f conftest.$ac_objext conftest$ac_exeext
34936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34937 (eval $ac_link) 2>conftest.er1
a848cd7e 34938 ac_status=$?
ac1cb8d3
VS
34939 grep -v '^ *+' conftest.er1 >conftest.err
34940 rm -f conftest.er1
34941 cat conftest.err >&5
a848cd7e
SC
34942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 (exit $ac_status); } &&
6ebeb4c7 34944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34946 (eval $ac_try) 2>&5
34947 ac_status=$?
34948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34949 (exit $ac_status); }; } &&
34950 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34952 (eval $ac_try) 2>&5
34953 ac_status=$?
34954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955 (exit $ac_status); }; }; then
34956 ac_cv_lib_posix4_nanosleep=yes
34957else
34958 echo "$as_me: failed program was:" >&5
34959sed 's/^/| /' conftest.$ac_ext >&5
34960
34961ac_cv_lib_posix4_nanosleep=no
34962fi
ac1cb8d3
VS
34963rm -f conftest.err conftest.$ac_objext \
34964 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34965LIBS=$ac_check_lib_save_LIBS
34966fi
34967echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
34968echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
34969if test $ac_cv_lib_posix4_nanosleep = yes; then
34970
34971 cat >>confdefs.h <<\_ACEOF
34972#define HAVE_NANOSLEEP 1
34973_ACEOF
34974
34975 POSIX4_LINK=" -lposix4"
34976
34977else
34978
34979
34980for ac_func in usleep
34981do
34982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34983echo "$as_me:$LINENO: checking for $ac_func" >&5
34984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34985if eval "test \"\${$as_ac_var+set}\" = set"; then
34986 echo $ECHO_N "(cached) $ECHO_C" >&6
34987else
34988 cat >conftest.$ac_ext <<_ACEOF
34989/* confdefs.h. */
34990_ACEOF
34991cat confdefs.h >>conftest.$ac_ext
34992cat >>conftest.$ac_ext <<_ACEOF
34993/* end confdefs.h. */
ac1cb8d3
VS
34994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34996#define $ac_func innocuous_$ac_func
34997
a848cd7e
SC
34998/* System header to define __stub macros and hopefully few prototypes,
34999 which can conflict with char $ac_func (); below.
35000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35001 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35002
a848cd7e
SC
35003#ifdef __STDC__
35004# include <limits.h>
35005#else
35006# include <assert.h>
35007#endif
ac1cb8d3
VS
35008
35009#undef $ac_func
35010
a848cd7e
SC
35011/* Override any gcc2 internal prototype to avoid an error. */
35012#ifdef __cplusplus
35013extern "C"
35014{
35015#endif
35016/* We use char because int might match the return type of a gcc2
35017 builtin and then its argument prototype would still apply. */
35018char $ac_func ();
35019/* The GNU C library defines this for functions which it implements
35020 to always fail with ENOSYS. Some functions are actually named
35021 something starting with __ and the normal name is an alias. */
35022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35023choke me
35024#else
35025char (*f) () = $ac_func;
35026#endif
35027#ifdef __cplusplus
35028}
35029#endif
35030
35031int
35032main ()
35033{
35034return f != $ac_func;
35035 ;
35036 return 0;
35037}
35038_ACEOF
35039rm -f conftest.$ac_objext conftest$ac_exeext
35040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35041 (eval $ac_link) 2>conftest.er1
a848cd7e 35042 ac_status=$?
ac1cb8d3
VS
35043 grep -v '^ *+' conftest.er1 >conftest.err
35044 rm -f conftest.er1
35045 cat conftest.err >&5
a848cd7e
SC
35046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35047 (exit $ac_status); } &&
6ebeb4c7 35048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35050 (eval $ac_try) 2>&5
35051 ac_status=$?
35052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053 (exit $ac_status); }; } &&
35054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35056 (eval $ac_try) 2>&5
35057 ac_status=$?
35058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35059 (exit $ac_status); }; }; then
35060 eval "$as_ac_var=yes"
35061else
35062 echo "$as_me: failed program was:" >&5
35063sed 's/^/| /' conftest.$ac_ext >&5
35064
35065eval "$as_ac_var=no"
35066fi
ac1cb8d3
VS
35067rm -f conftest.err conftest.$ac_objext \
35068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35069fi
35070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35071echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35072if test `eval echo '${'$as_ac_var'}'` = yes; then
35073 cat >>confdefs.h <<_ACEOF
35074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35075_ACEOF
35076 cat >>confdefs.h <<\_ACEOF
35077#define HAVE_USLEEP 1
35078_ACEOF
35079
35080else
35081 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35082echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35083
35084fi
35085done
35086
35087
35088
35089fi
35090
35091
35092
35093fi
35094done
35095
35096fi
35097
35098
35099
35100for ac_func in uname gethostname
35101do
35102as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35103echo "$as_me:$LINENO: checking for $ac_func" >&5
35104echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35105if eval "test \"\${$as_ac_var+set}\" = set"; then
35106 echo $ECHO_N "(cached) $ECHO_C" >&6
35107else
35108 cat >conftest.$ac_ext <<_ACEOF
35109/* confdefs.h. */
35110_ACEOF
35111cat confdefs.h >>conftest.$ac_ext
35112cat >>conftest.$ac_ext <<_ACEOF
35113/* end confdefs.h. */
ac1cb8d3
VS
35114/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35116#define $ac_func innocuous_$ac_func
35117
a848cd7e
SC
35118/* System header to define __stub macros and hopefully few prototypes,
35119 which can conflict with char $ac_func (); below.
35120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35121 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35122
a848cd7e
SC
35123#ifdef __STDC__
35124# include <limits.h>
35125#else
35126# include <assert.h>
35127#endif
ac1cb8d3
VS
35128
35129#undef $ac_func
35130
a848cd7e
SC
35131/* Override any gcc2 internal prototype to avoid an error. */
35132#ifdef __cplusplus
35133extern "C"
35134{
35135#endif
35136/* We use char because int might match the return type of a gcc2
35137 builtin and then its argument prototype would still apply. */
35138char $ac_func ();
35139/* The GNU C library defines this for functions which it implements
35140 to always fail with ENOSYS. Some functions are actually named
35141 something starting with __ and the normal name is an alias. */
35142#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35143choke me
35144#else
35145char (*f) () = $ac_func;
35146#endif
35147#ifdef __cplusplus
35148}
35149#endif
35150
35151int
35152main ()
35153{
35154return f != $ac_func;
35155 ;
35156 return 0;
35157}
35158_ACEOF
35159rm -f conftest.$ac_objext conftest$ac_exeext
35160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35161 (eval $ac_link) 2>conftest.er1
a848cd7e 35162 ac_status=$?
ac1cb8d3
VS
35163 grep -v '^ *+' conftest.er1 >conftest.err
35164 rm -f conftest.er1
35165 cat conftest.err >&5
a848cd7e
SC
35166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167 (exit $ac_status); } &&
6ebeb4c7 35168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170 (eval $ac_try) 2>&5
35171 ac_status=$?
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); }; } &&
35174 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176 (eval $ac_try) 2>&5
35177 ac_status=$?
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); }; }; then
35180 eval "$as_ac_var=yes"
35181else
35182 echo "$as_me: failed program was:" >&5
35183sed 's/^/| /' conftest.$ac_ext >&5
35184
35185eval "$as_ac_var=no"
35186fi
ac1cb8d3
VS
35187rm -f conftest.err conftest.$ac_objext \
35188 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35189fi
35190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35191echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35192if test `eval echo '${'$as_ac_var'}'` = yes; then
35193 cat >>confdefs.h <<_ACEOF
35194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35195_ACEOF
35196 break
35197fi
35198done
35199
35200
35201
35202
35203ac_ext=cc
35204ac_cpp='$CXXCPP $CPPFLAGS'
35205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35208
35209
35210
35211for ac_func in strtok_r
35212do
35213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35214echo "$as_me:$LINENO: checking for $ac_func" >&5
35215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35216if eval "test \"\${$as_ac_var+set}\" = set"; then
35217 echo $ECHO_N "(cached) $ECHO_C" >&6
35218else
35219 cat >conftest.$ac_ext <<_ACEOF
35220/* confdefs.h. */
35221_ACEOF
35222cat confdefs.h >>conftest.$ac_ext
35223cat >>conftest.$ac_ext <<_ACEOF
35224/* end confdefs.h. */
ac1cb8d3
VS
35225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35227#define $ac_func innocuous_$ac_func
35228
a848cd7e
SC
35229/* System header to define __stub macros and hopefully few prototypes,
35230 which can conflict with char $ac_func (); below.
35231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35232 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35233
a848cd7e
SC
35234#ifdef __STDC__
35235# include <limits.h>
35236#else
35237# include <assert.h>
35238#endif
ac1cb8d3
VS
35239
35240#undef $ac_func
35241
a848cd7e
SC
35242/* Override any gcc2 internal prototype to avoid an error. */
35243#ifdef __cplusplus
35244extern "C"
35245{
35246#endif
35247/* We use char because int might match the return type of a gcc2
35248 builtin and then its argument prototype would still apply. */
35249char $ac_func ();
35250/* The GNU C library defines this for functions which it implements
35251 to always fail with ENOSYS. Some functions are actually named
35252 something starting with __ and the normal name is an alias. */
35253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35254choke me
35255#else
35256char (*f) () = $ac_func;
35257#endif
35258#ifdef __cplusplus
35259}
35260#endif
35261
35262int
35263main ()
35264{
35265return f != $ac_func;
35266 ;
35267 return 0;
35268}
35269_ACEOF
35270rm -f conftest.$ac_objext conftest$ac_exeext
35271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35272 (eval $ac_link) 2>conftest.er1
a848cd7e 35273 ac_status=$?
ac1cb8d3
VS
35274 grep -v '^ *+' conftest.er1 >conftest.err
35275 rm -f conftest.er1
35276 cat conftest.err >&5
a848cd7e
SC
35277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278 (exit $ac_status); } &&
6ebeb4c7 35279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35281 (eval $ac_try) 2>&5
35282 ac_status=$?
35283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284 (exit $ac_status); }; } &&
35285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35287 (eval $ac_try) 2>&5
35288 ac_status=$?
35289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290 (exit $ac_status); }; }; then
35291 eval "$as_ac_var=yes"
35292else
35293 echo "$as_me: failed program was:" >&5
35294sed 's/^/| /' conftest.$ac_ext >&5
35295
35296eval "$as_ac_var=no"
35297fi
ac1cb8d3
VS
35298rm -f conftest.err conftest.$ac_objext \
35299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35300fi
35301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35302echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35303if test `eval echo '${'$as_ac_var'}'` = yes; then
35304 cat >>confdefs.h <<_ACEOF
35305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35306_ACEOF
35307
35308fi
35309done
35310
35311
35312ac_ext=c
35313ac_cpp='$CPP $CPPFLAGS'
35314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35316ac_compiler_gnu=$ac_cv_c_compiler_gnu
35317
35318
35319INET_LINK=
35320
35321for ac_func in inet_addr
35322do
35323as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35324echo "$as_me:$LINENO: checking for $ac_func" >&5
35325echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35326if eval "test \"\${$as_ac_var+set}\" = set"; then
35327 echo $ECHO_N "(cached) $ECHO_C" >&6
35328else
35329 cat >conftest.$ac_ext <<_ACEOF
35330/* confdefs.h. */
35331_ACEOF
35332cat confdefs.h >>conftest.$ac_ext
35333cat >>conftest.$ac_ext <<_ACEOF
35334/* end confdefs.h. */
ac1cb8d3
VS
35335/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35337#define $ac_func innocuous_$ac_func
35338
a848cd7e
SC
35339/* System header to define __stub macros and hopefully few prototypes,
35340 which can conflict with char $ac_func (); below.
35341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35342 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35343
a848cd7e
SC
35344#ifdef __STDC__
35345# include <limits.h>
35346#else
35347# include <assert.h>
35348#endif
ac1cb8d3
VS
35349
35350#undef $ac_func
35351
a848cd7e
SC
35352/* Override any gcc2 internal prototype to avoid an error. */
35353#ifdef __cplusplus
35354extern "C"
35355{
35356#endif
35357/* We use char because int might match the return type of a gcc2
35358 builtin and then its argument prototype would still apply. */
35359char $ac_func ();
35360/* The GNU C library defines this for functions which it implements
35361 to always fail with ENOSYS. Some functions are actually named
35362 something starting with __ and the normal name is an alias. */
35363#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35364choke me
35365#else
35366char (*f) () = $ac_func;
35367#endif
35368#ifdef __cplusplus
35369}
35370#endif
35371
35372int
35373main ()
35374{
35375return f != $ac_func;
35376 ;
35377 return 0;
35378}
35379_ACEOF
35380rm -f conftest.$ac_objext conftest$ac_exeext
35381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35382 (eval $ac_link) 2>conftest.er1
a848cd7e 35383 ac_status=$?
ac1cb8d3
VS
35384 grep -v '^ *+' conftest.er1 >conftest.err
35385 rm -f conftest.er1
35386 cat conftest.err >&5
a848cd7e
SC
35387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35388 (exit $ac_status); } &&
6ebeb4c7 35389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35391 (eval $ac_try) 2>&5
35392 ac_status=$?
35393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35394 (exit $ac_status); }; } &&
35395 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35397 (eval $ac_try) 2>&5
35398 ac_status=$?
35399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400 (exit $ac_status); }; }; then
35401 eval "$as_ac_var=yes"
35402else
35403 echo "$as_me: failed program was:" >&5
35404sed 's/^/| /' conftest.$ac_ext >&5
35405
35406eval "$as_ac_var=no"
35407fi
ac1cb8d3
VS
35408rm -f conftest.err conftest.$ac_objext \
35409 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35410fi
35411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35413if test `eval echo '${'$as_ac_var'}'` = yes; then
35414 cat >>confdefs.h <<_ACEOF
35415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35416_ACEOF
35417 cat >>confdefs.h <<\_ACEOF
35418#define HAVE_INET_ADDR 1
35419_ACEOF
35420
35421else
35422
35423 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35424echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35425if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35426 echo $ECHO_N "(cached) $ECHO_C" >&6
35427else
35428 ac_check_lib_save_LIBS=$LIBS
35429LIBS="-lnsl $LIBS"
35430cat >conftest.$ac_ext <<_ACEOF
35431/* confdefs.h. */
35432_ACEOF
35433cat confdefs.h >>conftest.$ac_ext
35434cat >>conftest.$ac_ext <<_ACEOF
35435/* end confdefs.h. */
35436
35437/* Override any gcc2 internal prototype to avoid an error. */
35438#ifdef __cplusplus
35439extern "C"
35440#endif
35441/* We use char because int might match the return type of a gcc2
35442 builtin and then its argument prototype would still apply. */
35443char inet_addr ();
35444int
35445main ()
35446{
35447inet_addr ();
35448 ;
35449 return 0;
35450}
35451_ACEOF
35452rm -f conftest.$ac_objext conftest$ac_exeext
35453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35454 (eval $ac_link) 2>conftest.er1
a848cd7e 35455 ac_status=$?
ac1cb8d3
VS
35456 grep -v '^ *+' conftest.er1 >conftest.err
35457 rm -f conftest.er1
35458 cat conftest.err >&5
a848cd7e
SC
35459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460 (exit $ac_status); } &&
6ebeb4c7 35461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35463 (eval $ac_try) 2>&5
35464 ac_status=$?
35465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35466 (exit $ac_status); }; } &&
35467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35469 (eval $ac_try) 2>&5
35470 ac_status=$?
35471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35472 (exit $ac_status); }; }; then
35473 ac_cv_lib_nsl_inet_addr=yes
35474else
35475 echo "$as_me: failed program was:" >&5
35476sed 's/^/| /' conftest.$ac_ext >&5
35477
35478ac_cv_lib_nsl_inet_addr=no
35479fi
ac1cb8d3
VS
35480rm -f conftest.err conftest.$ac_objext \
35481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35482LIBS=$ac_check_lib_save_LIBS
35483fi
35484echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35485echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35486if test $ac_cv_lib_nsl_inet_addr = yes; then
35487 INET_LINK="nsl"
35488else
35489
35490 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35491echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35492if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35493 echo $ECHO_N "(cached) $ECHO_C" >&6
35494else
35495 ac_check_lib_save_LIBS=$LIBS
35496LIBS="-lresolv $LIBS"
35497cat >conftest.$ac_ext <<_ACEOF
35498/* confdefs.h. */
35499_ACEOF
35500cat confdefs.h >>conftest.$ac_ext
35501cat >>conftest.$ac_ext <<_ACEOF
35502/* end confdefs.h. */
35503
35504/* Override any gcc2 internal prototype to avoid an error. */
35505#ifdef __cplusplus
35506extern "C"
35507#endif
35508/* We use char because int might match the return type of a gcc2
35509 builtin and then its argument prototype would still apply. */
35510char inet_addr ();
35511int
35512main ()
35513{
35514inet_addr ();
35515 ;
35516 return 0;
35517}
35518_ACEOF
35519rm -f conftest.$ac_objext conftest$ac_exeext
35520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35521 (eval $ac_link) 2>conftest.er1
a848cd7e 35522 ac_status=$?
ac1cb8d3
VS
35523 grep -v '^ *+' conftest.er1 >conftest.err
35524 rm -f conftest.er1
35525 cat conftest.err >&5
a848cd7e
SC
35526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527 (exit $ac_status); } &&
6ebeb4c7 35528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35530 (eval $ac_try) 2>&5
35531 ac_status=$?
35532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35533 (exit $ac_status); }; } &&
35534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35536 (eval $ac_try) 2>&5
35537 ac_status=$?
35538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35539 (exit $ac_status); }; }; then
35540 ac_cv_lib_resolv_inet_addr=yes
35541else
35542 echo "$as_me: failed program was:" >&5
35543sed 's/^/| /' conftest.$ac_ext >&5
35544
35545ac_cv_lib_resolv_inet_addr=no
35546fi
ac1cb8d3
VS
35547rm -f conftest.err conftest.$ac_objext \
35548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35549LIBS=$ac_check_lib_save_LIBS
35550fi
35551echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35552echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35553if test $ac_cv_lib_resolv_inet_addr = yes; then
35554 INET_LINK="resolv"
35555else
35556
35557 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35558echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35559if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35560 echo $ECHO_N "(cached) $ECHO_C" >&6
35561else
35562 ac_check_lib_save_LIBS=$LIBS
35563LIBS="-lsocket $LIBS"
35564cat >conftest.$ac_ext <<_ACEOF
35565/* confdefs.h. */
35566_ACEOF
35567cat confdefs.h >>conftest.$ac_ext
35568cat >>conftest.$ac_ext <<_ACEOF
35569/* end confdefs.h. */
35570
35571/* Override any gcc2 internal prototype to avoid an error. */
35572#ifdef __cplusplus
35573extern "C"
35574#endif
35575/* We use char because int might match the return type of a gcc2
35576 builtin and then its argument prototype would still apply. */
35577char inet_addr ();
35578int
35579main ()
35580{
35581inet_addr ();
35582 ;
35583 return 0;
35584}
35585_ACEOF
35586rm -f conftest.$ac_objext conftest$ac_exeext
35587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35588 (eval $ac_link) 2>conftest.er1
a848cd7e 35589 ac_status=$?
ac1cb8d3
VS
35590 grep -v '^ *+' conftest.er1 >conftest.err
35591 rm -f conftest.er1
35592 cat conftest.err >&5
a848cd7e
SC
35593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594 (exit $ac_status); } &&
6ebeb4c7 35595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35597 (eval $ac_try) 2>&5
35598 ac_status=$?
35599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600 (exit $ac_status); }; } &&
35601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35603 (eval $ac_try) 2>&5
35604 ac_status=$?
35605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35606 (exit $ac_status); }; }; then
35607 ac_cv_lib_socket_inet_addr=yes
35608else
35609 echo "$as_me: failed program was:" >&5
35610sed 's/^/| /' conftest.$ac_ext >&5
35611
35612ac_cv_lib_socket_inet_addr=no
35613fi
ac1cb8d3
VS
35614rm -f conftest.err conftest.$ac_objext \
35615 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35616LIBS=$ac_check_lib_save_LIBS
35617fi
35618echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35619echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35620if test $ac_cv_lib_socket_inet_addr = yes; then
35621 INET_LINK="socket"
35622
35623fi
35624
35625
35626
35627fi
35628
35629
35630
35631fi
35632
35633
35634
35635fi
35636done
35637
35638
35639
35640for ac_func in inet_aton
35641do
35642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35643echo "$as_me:$LINENO: checking for $ac_func" >&5
35644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35645if eval "test \"\${$as_ac_var+set}\" = set"; then
35646 echo $ECHO_N "(cached) $ECHO_C" >&6
35647else
35648 cat >conftest.$ac_ext <<_ACEOF
35649/* confdefs.h. */
35650_ACEOF
35651cat confdefs.h >>conftest.$ac_ext
35652cat >>conftest.$ac_ext <<_ACEOF
35653/* end confdefs.h. */
ac1cb8d3
VS
35654/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35656#define $ac_func innocuous_$ac_func
35657
a848cd7e
SC
35658/* System header to define __stub macros and hopefully few prototypes,
35659 which can conflict with char $ac_func (); below.
35660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35661 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35662
a848cd7e
SC
35663#ifdef __STDC__
35664# include <limits.h>
35665#else
35666# include <assert.h>
35667#endif
ac1cb8d3
VS
35668
35669#undef $ac_func
35670
a848cd7e
SC
35671/* Override any gcc2 internal prototype to avoid an error. */
35672#ifdef __cplusplus
35673extern "C"
35674{
35675#endif
35676/* We use char because int might match the return type of a gcc2
35677 builtin and then its argument prototype would still apply. */
35678char $ac_func ();
35679/* The GNU C library defines this for functions which it implements
35680 to always fail with ENOSYS. Some functions are actually named
35681 something starting with __ and the normal name is an alias. */
35682#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35683choke me
35684#else
35685char (*f) () = $ac_func;
35686#endif
35687#ifdef __cplusplus
35688}
35689#endif
35690
35691int
35692main ()
35693{
35694return f != $ac_func;
35695 ;
35696 return 0;
35697}
35698_ACEOF
35699rm -f conftest.$ac_objext conftest$ac_exeext
35700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35701 (eval $ac_link) 2>conftest.er1
a848cd7e 35702 ac_status=$?
ac1cb8d3
VS
35703 grep -v '^ *+' conftest.er1 >conftest.err
35704 rm -f conftest.er1
35705 cat conftest.err >&5
a848cd7e
SC
35706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707 (exit $ac_status); } &&
6ebeb4c7 35708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35710 (eval $ac_try) 2>&5
35711 ac_status=$?
35712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35713 (exit $ac_status); }; } &&
35714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35716 (eval $ac_try) 2>&5
35717 ac_status=$?
35718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719 (exit $ac_status); }; }; then
35720 eval "$as_ac_var=yes"
35721else
35722 echo "$as_me: failed program was:" >&5
35723sed 's/^/| /' conftest.$ac_ext >&5
35724
35725eval "$as_ac_var=no"
35726fi
ac1cb8d3
VS
35727rm -f conftest.err conftest.$ac_objext \
35728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35729fi
35730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35731echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35732if test `eval echo '${'$as_ac_var'}'` = yes; then
35733 cat >>confdefs.h <<_ACEOF
35734#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35735_ACEOF
35736 cat >>confdefs.h <<\_ACEOF
35737#define HAVE_INET_ATON 1
35738_ACEOF
35739
35740else
35741
35742 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
35743echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
35744echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
35745if eval "test \"\${$as_ac_Lib+set}\" = set"; then
35746 echo $ECHO_N "(cached) $ECHO_C" >&6
35747else
35748 ac_check_lib_save_LIBS=$LIBS
35749LIBS="-l$INET_LINK $LIBS"
35750cat >conftest.$ac_ext <<_ACEOF
35751/* confdefs.h. */
35752_ACEOF
35753cat confdefs.h >>conftest.$ac_ext
35754cat >>conftest.$ac_ext <<_ACEOF
35755/* end confdefs.h. */
35756
35757/* Override any gcc2 internal prototype to avoid an error. */
35758#ifdef __cplusplus
35759extern "C"
35760#endif
35761/* We use char because int might match the return type of a gcc2
35762 builtin and then its argument prototype would still apply. */
35763char inet_aton ();
35764int
35765main ()
35766{
35767inet_aton ();
35768 ;
35769 return 0;
35770}
35771_ACEOF
35772rm -f conftest.$ac_objext conftest$ac_exeext
35773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35774 (eval $ac_link) 2>conftest.er1
a848cd7e 35775 ac_status=$?
ac1cb8d3
VS
35776 grep -v '^ *+' conftest.er1 >conftest.err
35777 rm -f conftest.er1
35778 cat conftest.err >&5
a848cd7e
SC
35779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35780 (exit $ac_status); } &&
6ebeb4c7 35781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35783 (eval $ac_try) 2>&5
35784 ac_status=$?
35785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786 (exit $ac_status); }; } &&
35787 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35789 (eval $ac_try) 2>&5
35790 ac_status=$?
35791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35792 (exit $ac_status); }; }; then
35793 eval "$as_ac_Lib=yes"
35794else
35795 echo "$as_me: failed program was:" >&5
35796sed 's/^/| /' conftest.$ac_ext >&5
35797
35798eval "$as_ac_Lib=no"
35799fi
ac1cb8d3
VS
35800rm -f conftest.err conftest.$ac_objext \
35801 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35802LIBS=$ac_check_lib_save_LIBS
35803fi
35804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
35805echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
35806if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35807 cat >>confdefs.h <<\_ACEOF
35808#define HAVE_INET_ATON 1
35809_ACEOF
35810
35811fi
35812
35813
35814fi
35815done
35816
35817
35818if test "x$INET_LINK" != "x"; then
35819 cat >>confdefs.h <<\_ACEOF
35820#define HAVE_INET_ADDR 1
35821_ACEOF
35822
35823 INET_LINK=" -l$INET_LINK"
35824fi
35825
35826fi
35827
35828
35829
35830EXTRALIBS_ESD=
35831echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
35832echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
35833if test "${ac_cv_lib_esd_esd_close+set}" = set; then
35834 echo $ECHO_N "(cached) $ECHO_C" >&6
35835else
35836 ac_check_lib_save_LIBS=$LIBS
35837LIBS="-lesd $LIBS"
35838cat >conftest.$ac_ext <<_ACEOF
35839/* confdefs.h. */
35840_ACEOF
35841cat confdefs.h >>conftest.$ac_ext
35842cat >>conftest.$ac_ext <<_ACEOF
35843/* end confdefs.h. */
35844
35845/* Override any gcc2 internal prototype to avoid an error. */
35846#ifdef __cplusplus
35847extern "C"
35848#endif
35849/* We use char because int might match the return type of a gcc2
35850 builtin and then its argument prototype would still apply. */
35851char esd_close ();
35852int
35853main ()
35854{
35855esd_close ();
35856 ;
35857 return 0;
35858}
35859_ACEOF
35860rm -f conftest.$ac_objext conftest$ac_exeext
35861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35862 (eval $ac_link) 2>conftest.er1
a848cd7e 35863 ac_status=$?
ac1cb8d3
VS
35864 grep -v '^ *+' conftest.er1 >conftest.err
35865 rm -f conftest.er1
35866 cat conftest.err >&5
a848cd7e
SC
35867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35868 (exit $ac_status); } &&
6ebeb4c7 35869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35871 (eval $ac_try) 2>&5
35872 ac_status=$?
35873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35874 (exit $ac_status); }; } &&
35875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35877 (eval $ac_try) 2>&5
35878 ac_status=$?
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); }; }; then
35881 ac_cv_lib_esd_esd_close=yes
35882else
35883 echo "$as_me: failed program was:" >&5
35884sed 's/^/| /' conftest.$ac_ext >&5
35885
35886ac_cv_lib_esd_esd_close=no
35887fi
ac1cb8d3
VS
35888rm -f conftest.err conftest.$ac_objext \
35889 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35890LIBS=$ac_check_lib_save_LIBS
35891fi
35892echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
35893echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
35894if test $ac_cv_lib_esd_esd_close = yes; then
35895
35896
35897for ac_header in esd.h
35898do
35899as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35900if eval "test \"\${$as_ac_Header+set}\" = set"; then
35901 echo "$as_me:$LINENO: checking for $ac_header" >&5
35902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35903if eval "test \"\${$as_ac_Header+set}\" = set"; then
35904 echo $ECHO_N "(cached) $ECHO_C" >&6
35905fi
35906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35908else
35909 # Is the header compilable?
35910echo "$as_me:$LINENO: checking $ac_header usability" >&5
35911echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35912cat >conftest.$ac_ext <<_ACEOF
35913/* confdefs.h. */
35914_ACEOF
35915cat confdefs.h >>conftest.$ac_ext
35916cat >>conftest.$ac_ext <<_ACEOF
35917/* end confdefs.h. */
35918$ac_includes_default
35919#include <$ac_header>
35920_ACEOF
35921rm -f conftest.$ac_objext
35922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35923 (eval $ac_compile) 2>conftest.er1
a848cd7e 35924 ac_status=$?
ac1cb8d3
VS
35925 grep -v '^ *+' conftest.er1 >conftest.err
35926 rm -f conftest.er1
35927 cat conftest.err >&5
a848cd7e
SC
35928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35929 (exit $ac_status); } &&
6ebeb4c7 35930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35932 (eval $ac_try) 2>&5
35933 ac_status=$?
35934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35935 (exit $ac_status); }; } &&
35936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35938 (eval $ac_try) 2>&5
35939 ac_status=$?
35940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941 (exit $ac_status); }; }; then
35942 ac_header_compiler=yes
35943else
35944 echo "$as_me: failed program was:" >&5
35945sed 's/^/| /' conftest.$ac_ext >&5
35946
35947ac_header_compiler=no
35948fi
ac1cb8d3 35949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35951echo "${ECHO_T}$ac_header_compiler" >&6
35952
35953# Is the header present?
35954echo "$as_me:$LINENO: checking $ac_header presence" >&5
35955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35956cat >conftest.$ac_ext <<_ACEOF
35957/* confdefs.h. */
35958_ACEOF
35959cat confdefs.h >>conftest.$ac_ext
35960cat >>conftest.$ac_ext <<_ACEOF
35961/* end confdefs.h. */
35962#include <$ac_header>
35963_ACEOF
35964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35966 ac_status=$?
35967 grep -v '^ *+' conftest.er1 >conftest.err
35968 rm -f conftest.er1
35969 cat conftest.err >&5
35970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971 (exit $ac_status); } >/dev/null; then
35972 if test -s conftest.err; then
35973 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35975 else
35976 ac_cpp_err=
35977 fi
35978else
35979 ac_cpp_err=yes
35980fi
35981if test -z "$ac_cpp_err"; then
35982 ac_header_preproc=yes
35983else
35984 echo "$as_me: failed program was:" >&5
35985sed 's/^/| /' conftest.$ac_ext >&5
35986
35987 ac_header_preproc=no
35988fi
35989rm -f conftest.err conftest.$ac_ext
35990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35991echo "${ECHO_T}$ac_header_preproc" >&6
35992
35993# So? What about this header?
ac1cb8d3
VS
35994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35995 yes:no: )
a848cd7e
SC
35996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36000 ac_header_preproc=yes
a848cd7e 36001 ;;
ac1cb8d3 36002 no:yes:* )
a848cd7e
SC
36003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36015 (
36016 cat <<\_ASBOX
ac1cb8d3
VS
36017## ----------------------------------------- ##
36018## Report this to wx-dev@lists.wxwidgets.org ##
36019## ----------------------------------------- ##
a848cd7e
SC
36020_ASBOX
36021 ) |
36022 sed "s/^/$as_me: WARNING: /" >&2
36023 ;;
36024esac
36025echo "$as_me:$LINENO: checking for $ac_header" >&5
36026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36027if eval "test \"\${$as_ac_Header+set}\" = set"; then
36028 echo $ECHO_N "(cached) $ECHO_C" >&6
36029else
ac1cb8d3 36030 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36031fi
36032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36034
36035fi
36036if test `eval echo '${'$as_ac_Header'}'` = yes; then
36037 cat >>confdefs.h <<_ACEOF
36038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36039_ACEOF
36040
36041 EXTRALIBS_ESD="-lesd"
36042
36043fi
36044
36045done
36046
36047
36048fi
36049
36050
36051
36052echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36053echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36054cat >conftest.$ac_ext <<_ACEOF
36055/* confdefs.h. */
36056_ACEOF
36057cat confdefs.h >>conftest.$ac_ext
36058cat >>conftest.$ac_ext <<_ACEOF
36059/* end confdefs.h. */
36060#ifdef __linux__
36061 #include <linux/cdrom.h>
36062 #else
36063 /* For Solaris */
36064 #include <sys/cdio.h>
36065 #endif
36066
36067int
36068main ()
36069{
36070struct cdrom_tocentry entry, old_entry;
36071 ;
36072 return 0;
36073}
36074_ACEOF
36075rm -f conftest.$ac_objext
36076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36077 (eval $ac_compile) 2>conftest.er1
a848cd7e 36078 ac_status=$?
ac1cb8d3
VS
36079 grep -v '^ *+' conftest.er1 >conftest.err
36080 rm -f conftest.er1
36081 cat conftest.err >&5
a848cd7e
SC
36082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 (exit $ac_status); } &&
6ebeb4c7 36084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36086 (eval $ac_try) 2>&5
36087 ac_status=$?
36088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089 (exit $ac_status); }; } &&
36090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36092 (eval $ac_try) 2>&5
36093 ac_status=$?
36094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36095 (exit $ac_status); }; }; then
36096 echo "$as_me:$LINENO: result: yes" >&5
36097echo "${ECHO_T}yes" >&6
36098 cat >>confdefs.h <<\_ACEOF
36099#define HAVE_KNOWN_CDROM_INTERFACE 1
36100_ACEOF
36101
36102else
36103 echo "$as_me: failed program was:" >&5
36104sed 's/^/| /' conftest.$ac_ext >&5
36105
36106echo "$as_me:$LINENO: result: no" >&5
36107echo "${ECHO_T}no" >&6
36108fi
ac1cb8d3 36109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36110
36111
36112cat >confcache <<\_ACEOF
36113# This file is a shell script that caches the results of configure
36114# tests run on this system so they can be shared between configure
36115# scripts and configure runs, see configure's option --config-cache.
36116# It is not useful on other systems. If it contains results you don't
36117# want to keep, you may remove or edit it.
36118#
36119# config.status only pays attention to the cache file if you give it
36120# the --recheck option to rerun configure.
36121#
36122# `ac_cv_env_foo' variables (set or unset) will be overridden when
36123# loading this file, other *unset* `ac_cv_foo' will be assigned the
36124# following values.
36125
36126_ACEOF
36127
36128# The following way of writing the cache mishandles newlines in values,
36129# but we know of no workaround that is simple, portable, and efficient.
36130# So, don't put newlines in cache variables' values.
36131# Ultrix sh set writes to stderr and can't be redirected directly,
36132# and sets the high bit in the cache file unless we assign to the vars.
36133{
36134 (set) 2>&1 |
36135 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36136 *ac_space=\ *)
36137 # `set' does not quote correctly, so add quotes (double-quote
36138 # substitution turns \\\\ into \\, and sed turns \\ into \).
36139 sed -n \
ac1cb8d3
VS
36140 "s/'/'\\\\''/g;
36141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36142 ;;
36143 *)
36144 # `set' quotes correctly as required by POSIX, so do not add quotes.
36145 sed -n \
ac1cb8d3 36146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36147 ;;
36148 esac;
36149} |
36150 sed '
36151 t clear
36152 : clear
36153 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36154 t end
36155 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36156 : end' >>confcache
36157if diff $cache_file confcache >/dev/null 2>&1; then :; else
36158 if test -w $cache_file; then
36159 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36160 cat confcache >$cache_file
36161 else
36162 echo "not updating unwritable cache $cache_file"
36163 fi
36164fi
36165rm -f confcache
36166
36167
36168CPP_MT_FLAG=
36169if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36170
36171
36172 THREADS_LINK=
36173 THREADS_CFLAGS=
36174
36175 if test "$wxUSE_THREADS" = "yes" ; then
36176 if test "$USE_BEOS" = 1; then
36177 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36178echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36179 wxUSE_THREADS="no"
36180 fi
36181 fi
36182
36183 if test "$wxUSE_THREADS" = "yes" ; then
36184
36185
36186 THREAD_OPTS="-pthread"
36187 case "${host}" in
36188 *-*-solaris2* | *-*-sunos4* )
36189 if test "x$GCC" = "xyes"; then
36190 THREAD_OPTS="-pthreads $THREAD_OPTS"
36191 else
36192 THREAD_OPTS="-mt $THREAD_OPTS"
36193 fi
36194 ;;
36195 *-*-freebsd*)
36196 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36197 ;;
36198 *-*-darwin* | *-*-cygwin* )
36199 THREAD_OPTS=""
36200 ;;
36201 *-*-aix*)
36202 THREAD_OPTS="pthreads"
36203 ;;
36204 *-hp-hpux* )
00421666
MW
36205 if test "x$GCC" = "xyes"; then
36206 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36207 THREAD_OPTS=""
36208 else
efdf6afe 36209 THREAD_OPTS=""
a848cd7e
SC
36210 fi
36211 ;;
36212
36213 *-*-irix* )
36214 if test "x$GCC" = "xyes"; then
36215 THREAD_OPTS=""
36216 fi
36217 ;;
36218
36219 *-*-*UnixWare*)
36220 if test "x$GCC" != "xyes"; then
36221 THREAD_OPTS="-Ethread"
36222 fi
36223 ;;
36224 esac
36225
36226 THREAD_OPTS="$THREAD_OPTS pthread none"
36227
36228 THREADS_OK=no
36229 for flag in $THREAD_OPTS; do
36230 case $flag in
36231 none)
36232 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36233echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36234 ;;
36235
36236 -*)
36237 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36238echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36239 THREADS_CFLAGS="$flag"
36240 ;;
36241
36242 *)
36243 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36244echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36245 THREADS_LINK="-l$flag"
36246 ;;
36247 esac
36248
36249 save_LIBS="$LIBS"
36250 save_CFLAGS="$CFLAGS"
36251 LIBS="$THREADS_LINK $LIBS"
36252 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36253
36254 cat >conftest.$ac_ext <<_ACEOF
36255/* confdefs.h. */
36256_ACEOF
36257cat confdefs.h >>conftest.$ac_ext
36258cat >>conftest.$ac_ext <<_ACEOF
36259/* end confdefs.h. */
36260#include <pthread.h>
36261int
36262main ()
36263{
36264pthread_create(0,0,0,0);
36265 ;
36266 return 0;
36267}
36268_ACEOF
36269rm -f conftest.$ac_objext conftest$ac_exeext
36270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36271 (eval $ac_link) 2>conftest.er1
a848cd7e 36272 ac_status=$?
ac1cb8d3
VS
36273 grep -v '^ *+' conftest.er1 >conftest.err
36274 rm -f conftest.er1
36275 cat conftest.err >&5
a848cd7e
SC
36276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); } &&
6ebeb4c7 36278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280 (eval $ac_try) 2>&5
36281 ac_status=$?
36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283 (exit $ac_status); }; } &&
36284 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36286 (eval $ac_try) 2>&5
36287 ac_status=$?
36288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289 (exit $ac_status); }; }; then
36290 THREADS_OK=yes
36291else
36292 echo "$as_me: failed program was:" >&5
36293sed 's/^/| /' conftest.$ac_ext >&5
36294
36295fi
ac1cb8d3
VS
36296rm -f conftest.err conftest.$ac_objext \
36297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36298
36299 LIBS="$save_LIBS"
36300 CFLAGS="$save_CFLAGS"
36301
36302 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36303echo "${ECHO_T}$THREADS_OK" >&6
36304 if test "x$THREADS_OK" = "xyes"; then
36305 break;
36306 fi
36307
36308 THREADS_LINK=""
36309 THREADS_CFLAGS=""
36310 done
36311
36312 if test "x$THREADS_OK" != "xyes"; then
36313 wxUSE_THREADS=no
36314 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36315echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36316 else
36317 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36318 LIBS="$THREADS_LINK $LIBS"
36319
36320 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36321echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36322 flag=no
36323 case "${host}" in
36324 *-aix*)
36325 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36326 flag="-D_THREAD_SAFE"
36327 ;;
36328 *-freebsd*)
36329 flag="-D_THREAD_SAFE"
36330 ;;
36331 *-hp-hpux* )
36332 flag="-D_REENTRANT"
36333 if test "x$GCC" != "xyes"; then
36334 flag="$flag -D_RWSTD_MULTI_THREAD"
36335 fi
36336 ;;
36337 *solaris* | alpha*-osf*)
36338 flag="-D_REENTRANT"
36339 ;;
36340 esac
36341 echo "$as_me:$LINENO: result: ${flag}" >&5
36342echo "${ECHO_T}${flag}" >&6
36343 if test "x$flag" != xno; then
36344 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
36345 fi
36346
36347 if test "x$THREADS_CFLAGS" != "x"; then
36348 CFLAGS="$CFLAGS $THREADS_CFLAGS"
36349 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
36350 fi
36351 fi
36352 fi
36353
36354 if test "$wxUSE_THREADS" = "yes" ; then
36355
36356for ac_func in thr_setconcurrency
36357do
36358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36359echo "$as_me:$LINENO: checking for $ac_func" >&5
36360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36361if eval "test \"\${$as_ac_var+set}\" = set"; then
36362 echo $ECHO_N "(cached) $ECHO_C" >&6
36363else
36364 cat >conftest.$ac_ext <<_ACEOF
36365/* confdefs.h. */
36366_ACEOF
36367cat confdefs.h >>conftest.$ac_ext
36368cat >>conftest.$ac_ext <<_ACEOF
36369/* end confdefs.h. */
ac1cb8d3
VS
36370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36372#define $ac_func innocuous_$ac_func
36373
a848cd7e
SC
36374/* System header to define __stub macros and hopefully few prototypes,
36375 which can conflict with char $ac_func (); below.
36376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36377 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36378
a848cd7e
SC
36379#ifdef __STDC__
36380# include <limits.h>
36381#else
36382# include <assert.h>
36383#endif
ac1cb8d3
VS
36384
36385#undef $ac_func
36386
a848cd7e
SC
36387/* Override any gcc2 internal prototype to avoid an error. */
36388#ifdef __cplusplus
36389extern "C"
36390{
36391#endif
36392/* We use char because int might match the return type of a gcc2
36393 builtin and then its argument prototype would still apply. */
36394char $ac_func ();
36395/* The GNU C library defines this for functions which it implements
36396 to always fail with ENOSYS. Some functions are actually named
36397 something starting with __ and the normal name is an alias. */
36398#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36399choke me
36400#else
36401char (*f) () = $ac_func;
36402#endif
36403#ifdef __cplusplus
36404}
36405#endif
36406
36407int
36408main ()
36409{
36410return f != $ac_func;
36411 ;
36412 return 0;
36413}
36414_ACEOF
36415rm -f conftest.$ac_objext conftest$ac_exeext
36416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36417 (eval $ac_link) 2>conftest.er1
a848cd7e 36418 ac_status=$?
ac1cb8d3
VS
36419 grep -v '^ *+' conftest.er1 >conftest.err
36420 rm -f conftest.er1
36421 cat conftest.err >&5
a848cd7e
SC
36422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36423 (exit $ac_status); } &&
6ebeb4c7 36424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36426 (eval $ac_try) 2>&5
36427 ac_status=$?
36428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36429 (exit $ac_status); }; } &&
36430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36432 (eval $ac_try) 2>&5
36433 ac_status=$?
36434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36435 (exit $ac_status); }; }; then
36436 eval "$as_ac_var=yes"
36437else
36438 echo "$as_me: failed program was:" >&5
36439sed 's/^/| /' conftest.$ac_ext >&5
36440
36441eval "$as_ac_var=no"
36442fi
ac1cb8d3
VS
36443rm -f conftest.err conftest.$ac_objext \
36444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36445fi
36446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36448if test `eval echo '${'$as_ac_var'}'` = yes; then
36449 cat >>confdefs.h <<_ACEOF
36450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36451_ACEOF
36452
36453fi
36454done
36455
36456
6ebeb4c7
VZ
36457 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36458echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36459if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36460 echo $ECHO_N "(cached) $ECHO_C" >&6
36461else
36462
36463 cat >conftest.$ac_ext <<_ACEOF
36464/* confdefs.h. */
36465_ACEOF
36466cat confdefs.h >>conftest.$ac_ext
36467cat >>conftest.$ac_ext <<_ACEOF
36468/* end confdefs.h. */
36469#include <pthread.h>
36470 void ThreadCleanupFunc(void *p);
36471
36472int
36473main ()
36474{
36475
36476 void *p;
36477 pthread_cleanup_push(ThreadCleanupFunc, p);
36478 pthread_cleanup_pop(0);
36479
36480 ;
36481 return 0;
36482}
36483_ACEOF
36484rm -f conftest.$ac_objext
36485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36486 (eval $ac_compile) 2>conftest.er1
36487 ac_status=$?
36488 grep -v '^ *+' conftest.er1 >conftest.err
36489 rm -f conftest.er1
36490 cat conftest.err >&5
36491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492 (exit $ac_status); } &&
36493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
36499 { ac_try='test -s conftest.$ac_objext'
36500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36501 (eval $ac_try) 2>&5
36502 ac_status=$?
36503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504 (exit $ac_status); }; }; then
36505
36506 wx_cv_func_pthread_cleanup=yes
36507
36508else
36509 echo "$as_me: failed program was:" >&5
36510sed 's/^/| /' conftest.$ac_ext >&5
36511
36512
36513 wx_cv_func_pthread_cleanup=no
36514
36515
36516fi
36517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36518
36519fi
36520echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36521echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36522 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36523 cat >>confdefs.h <<\_ACEOF
36524#define wxHAVE_PTHREAD_CLEANUP 1
36525_ACEOF
36526
36527 fi
36528
a848cd7e
SC
36529
36530for ac_header in sched.h
36531do
36532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36533if eval "test \"\${$as_ac_Header+set}\" = set"; then
36534 echo "$as_me:$LINENO: checking for $ac_header" >&5
36535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36536if eval "test \"\${$as_ac_Header+set}\" = set"; then
36537 echo $ECHO_N "(cached) $ECHO_C" >&6
36538fi
36539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36541else
36542 # Is the header compilable?
36543echo "$as_me:$LINENO: checking $ac_header usability" >&5
36544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36545cat >conftest.$ac_ext <<_ACEOF
36546/* confdefs.h. */
36547_ACEOF
36548cat confdefs.h >>conftest.$ac_ext
36549cat >>conftest.$ac_ext <<_ACEOF
36550/* end confdefs.h. */
36551$ac_includes_default
36552#include <$ac_header>
36553_ACEOF
36554rm -f conftest.$ac_objext
36555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36556 (eval $ac_compile) 2>conftest.er1
a848cd7e 36557 ac_status=$?
ac1cb8d3
VS
36558 grep -v '^ *+' conftest.er1 >conftest.err
36559 rm -f conftest.er1
36560 cat conftest.err >&5
a848cd7e
SC
36561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562 (exit $ac_status); } &&
6ebeb4c7 36563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36565 (eval $ac_try) 2>&5
36566 ac_status=$?
36567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568 (exit $ac_status); }; } &&
36569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36571 (eval $ac_try) 2>&5
36572 ac_status=$?
36573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574 (exit $ac_status); }; }; then
36575 ac_header_compiler=yes
36576else
36577 echo "$as_me: failed program was:" >&5
36578sed 's/^/| /' conftest.$ac_ext >&5
36579
36580ac_header_compiler=no
36581fi
ac1cb8d3 36582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36584echo "${ECHO_T}$ac_header_compiler" >&6
36585
36586# Is the header present?
36587echo "$as_me:$LINENO: checking $ac_header presence" >&5
36588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36589cat >conftest.$ac_ext <<_ACEOF
36590/* confdefs.h. */
36591_ACEOF
36592cat confdefs.h >>conftest.$ac_ext
36593cat >>conftest.$ac_ext <<_ACEOF
36594/* end confdefs.h. */
36595#include <$ac_header>
36596_ACEOF
36597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36599 ac_status=$?
36600 grep -v '^ *+' conftest.er1 >conftest.err
36601 rm -f conftest.er1
36602 cat conftest.err >&5
36603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36604 (exit $ac_status); } >/dev/null; then
36605 if test -s conftest.err; then
36606 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36608 else
36609 ac_cpp_err=
36610 fi
36611else
36612 ac_cpp_err=yes
36613fi
36614if test -z "$ac_cpp_err"; then
36615 ac_header_preproc=yes
36616else
36617 echo "$as_me: failed program was:" >&5
36618sed 's/^/| /' conftest.$ac_ext >&5
36619
36620 ac_header_preproc=no
36621fi
36622rm -f conftest.err conftest.$ac_ext
36623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36624echo "${ECHO_T}$ac_header_preproc" >&6
36625
36626# So? What about this header?
ac1cb8d3
VS
36627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36628 yes:no: )
a848cd7e
SC
36629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36633 ac_header_preproc=yes
a848cd7e 36634 ;;
ac1cb8d3 36635 no:yes:* )
a848cd7e
SC
36636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36648 (
36649 cat <<\_ASBOX
ac1cb8d3
VS
36650## ----------------------------------------- ##
36651## Report this to wx-dev@lists.wxwidgets.org ##
36652## ----------------------------------------- ##
a848cd7e
SC
36653_ASBOX
36654 ) |
36655 sed "s/^/$as_me: WARNING: /" >&2
36656 ;;
36657esac
36658echo "$as_me:$LINENO: checking for $ac_header" >&5
36659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36660if eval "test \"\${$as_ac_Header+set}\" = set"; then
36661 echo $ECHO_N "(cached) $ECHO_C" >&6
36662else
ac1cb8d3 36663 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36664fi
36665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36667
36668fi
36669if test `eval echo '${'$as_ac_Header'}'` = yes; then
36670 cat >>confdefs.h <<_ACEOF
36671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36672_ACEOF
36673
36674fi
36675
36676done
36677
36678 if test "$ac_cv_header_sched_h" = "yes"; then
36679 echo "$as_me:$LINENO: checking for sched_yield" >&5
36680echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36681if test "${ac_cv_func_sched_yield+set}" = set; then
36682 echo $ECHO_N "(cached) $ECHO_C" >&6
36683else
36684 cat >conftest.$ac_ext <<_ACEOF
36685/* confdefs.h. */
36686_ACEOF
36687cat confdefs.h >>conftest.$ac_ext
36688cat >>conftest.$ac_ext <<_ACEOF
36689/* end confdefs.h. */
ac1cb8d3
VS
36690/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36692#define sched_yield innocuous_sched_yield
36693
a848cd7e
SC
36694/* System header to define __stub macros and hopefully few prototypes,
36695 which can conflict with char sched_yield (); below.
36696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36697 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36698
a848cd7e
SC
36699#ifdef __STDC__
36700# include <limits.h>
36701#else
36702# include <assert.h>
36703#endif
ac1cb8d3
VS
36704
36705#undef sched_yield
36706
a848cd7e
SC
36707/* Override any gcc2 internal prototype to avoid an error. */
36708#ifdef __cplusplus
36709extern "C"
36710{
36711#endif
36712/* We use char because int might match the return type of a gcc2
36713 builtin and then its argument prototype would still apply. */
36714char sched_yield ();
36715/* The GNU C library defines this for functions which it implements
36716 to always fail with ENOSYS. Some functions are actually named
36717 something starting with __ and the normal name is an alias. */
36718#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36719choke me
36720#else
36721char (*f) () = sched_yield;
36722#endif
36723#ifdef __cplusplus
36724}
36725#endif
36726
36727int
36728main ()
36729{
36730return f != sched_yield;
36731 ;
36732 return 0;
36733}
36734_ACEOF
36735rm -f conftest.$ac_objext conftest$ac_exeext
36736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36737 (eval $ac_link) 2>conftest.er1
a848cd7e 36738 ac_status=$?
ac1cb8d3
VS
36739 grep -v '^ *+' conftest.er1 >conftest.err
36740 rm -f conftest.er1
36741 cat conftest.err >&5
a848cd7e
SC
36742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36743 (exit $ac_status); } &&
6ebeb4c7 36744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36746 (eval $ac_try) 2>&5
36747 ac_status=$?
36748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749 (exit $ac_status); }; } &&
36750 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36752 (eval $ac_try) 2>&5
36753 ac_status=$?
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); }; }; then
36756 ac_cv_func_sched_yield=yes
36757else
36758 echo "$as_me: failed program was:" >&5
36759sed 's/^/| /' conftest.$ac_ext >&5
36760
36761ac_cv_func_sched_yield=no
36762fi
ac1cb8d3
VS
36763rm -f conftest.err conftest.$ac_objext \
36764 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36765fi
36766echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
36767echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
36768if test $ac_cv_func_sched_yield = yes; then
36769 cat >>confdefs.h <<\_ACEOF
36770#define HAVE_SCHED_YIELD 1
36771_ACEOF
36772
36773else
36774
36775 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
36776echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
36777if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
36778 echo $ECHO_N "(cached) $ECHO_C" >&6
36779else
36780 ac_check_lib_save_LIBS=$LIBS
36781LIBS="-lposix4 $LIBS"
36782cat >conftest.$ac_ext <<_ACEOF
36783/* confdefs.h. */
36784_ACEOF
36785cat confdefs.h >>conftest.$ac_ext
36786cat >>conftest.$ac_ext <<_ACEOF
36787/* end confdefs.h. */
36788
36789/* Override any gcc2 internal prototype to avoid an error. */
36790#ifdef __cplusplus
36791extern "C"
36792#endif
36793/* We use char because int might match the return type of a gcc2
36794 builtin and then its argument prototype would still apply. */
36795char sched_yield ();
36796int
36797main ()
36798{
36799sched_yield ();
36800 ;
36801 return 0;
36802}
36803_ACEOF
36804rm -f conftest.$ac_objext conftest$ac_exeext
36805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36806 (eval $ac_link) 2>conftest.er1
a848cd7e 36807 ac_status=$?
ac1cb8d3
VS
36808 grep -v '^ *+' conftest.er1 >conftest.err
36809 rm -f conftest.er1
36810 cat conftest.err >&5
a848cd7e
SC
36811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812 (exit $ac_status); } &&
6ebeb4c7 36813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36815 (eval $ac_try) 2>&5
36816 ac_status=$?
36817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818 (exit $ac_status); }; } &&
36819 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36821 (eval $ac_try) 2>&5
36822 ac_status=$?
36823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824 (exit $ac_status); }; }; then
36825 ac_cv_lib_posix4_sched_yield=yes
36826else
36827 echo "$as_me: failed program was:" >&5
36828sed 's/^/| /' conftest.$ac_ext >&5
36829
36830ac_cv_lib_posix4_sched_yield=no
36831fi
ac1cb8d3
VS
36832rm -f conftest.err conftest.$ac_objext \
36833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36834LIBS=$ac_check_lib_save_LIBS
36835fi
36836echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
36837echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
36838if test $ac_cv_lib_posix4_sched_yield = yes; then
36839 cat >>confdefs.h <<\_ACEOF
36840#define HAVE_SCHED_YIELD 1
36841_ACEOF
36842 POSIX4_LINK=" -lposix4"
36843else
36844 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
36845echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
36846
36847fi
36848
36849
36850
36851fi
36852
36853 fi
36854
36855 HAVE_PRIOR_FUNCS=0
36856 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
36857echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
36858if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
36859 echo $ECHO_N "(cached) $ECHO_C" >&6
36860else
36861 cat >conftest.$ac_ext <<_ACEOF
36862/* confdefs.h. */
36863_ACEOF
36864cat confdefs.h >>conftest.$ac_ext
36865cat >>conftest.$ac_ext <<_ACEOF
36866/* end confdefs.h. */
ac1cb8d3
VS
36867/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
36868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36869#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
36870
a848cd7e
SC
36871/* System header to define __stub macros and hopefully few prototypes,
36872 which can conflict with char pthread_attr_getschedpolicy (); below.
36873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36874 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36875
a848cd7e
SC
36876#ifdef __STDC__
36877# include <limits.h>
36878#else
36879# include <assert.h>
36880#endif
ac1cb8d3
VS
36881
36882#undef pthread_attr_getschedpolicy
36883
a848cd7e
SC
36884/* Override any gcc2 internal prototype to avoid an error. */
36885#ifdef __cplusplus
36886extern "C"
36887{
36888#endif
36889/* We use char because int might match the return type of a gcc2
36890 builtin and then its argument prototype would still apply. */
36891char pthread_attr_getschedpolicy ();
36892/* The GNU C library defines this for functions which it implements
36893 to always fail with ENOSYS. Some functions are actually named
36894 something starting with __ and the normal name is an alias. */
36895#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
36896choke me
36897#else
36898char (*f) () = pthread_attr_getschedpolicy;
36899#endif
36900#ifdef __cplusplus
36901}
36902#endif
36903
36904int
36905main ()
36906{
36907return f != pthread_attr_getschedpolicy;
36908 ;
36909 return 0;
36910}
36911_ACEOF
36912rm -f conftest.$ac_objext conftest$ac_exeext
36913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36914 (eval $ac_link) 2>conftest.er1
a848cd7e 36915 ac_status=$?
ac1cb8d3
VS
36916 grep -v '^ *+' conftest.er1 >conftest.err
36917 rm -f conftest.er1
36918 cat conftest.err >&5
a848cd7e
SC
36919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36920 (exit $ac_status); } &&
6ebeb4c7 36921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36923 (eval $ac_try) 2>&5
36924 ac_status=$?
36925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36926 (exit $ac_status); }; } &&
36927 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36929 (eval $ac_try) 2>&5
36930 ac_status=$?
36931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36932 (exit $ac_status); }; }; then
36933 ac_cv_func_pthread_attr_getschedpolicy=yes
36934else
36935 echo "$as_me: failed program was:" >&5
36936sed 's/^/| /' conftest.$ac_ext >&5
36937
36938ac_cv_func_pthread_attr_getschedpolicy=no
36939fi
ac1cb8d3
VS
36940rm -f conftest.err conftest.$ac_objext \
36941 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36942fi
36943echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
36944echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
36945if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
36946 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
36947echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
36948if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
36949 echo $ECHO_N "(cached) $ECHO_C" >&6
36950else
36951 cat >conftest.$ac_ext <<_ACEOF
36952/* confdefs.h. */
36953_ACEOF
36954cat confdefs.h >>conftest.$ac_ext
36955cat >>conftest.$ac_ext <<_ACEOF
36956/* end confdefs.h. */
ac1cb8d3
VS
36957/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
36958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36959#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
36960
a848cd7e
SC
36961/* System header to define __stub macros and hopefully few prototypes,
36962 which can conflict with char pthread_attr_setschedparam (); below.
36963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36964 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36965
a848cd7e
SC
36966#ifdef __STDC__
36967# include <limits.h>
36968#else
36969# include <assert.h>
36970#endif
ac1cb8d3
VS
36971
36972#undef pthread_attr_setschedparam
36973
a848cd7e
SC
36974/* Override any gcc2 internal prototype to avoid an error. */
36975#ifdef __cplusplus
36976extern "C"
36977{
36978#endif
36979/* We use char because int might match the return type of a gcc2
36980 builtin and then its argument prototype would still apply. */
36981char pthread_attr_setschedparam ();
36982/* The GNU C library defines this for functions which it implements
36983 to always fail with ENOSYS. Some functions are actually named
36984 something starting with __ and the normal name is an alias. */
36985#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
36986choke me
36987#else
36988char (*f) () = pthread_attr_setschedparam;
36989#endif
36990#ifdef __cplusplus
36991}
36992#endif
36993
36994int
36995main ()
36996{
36997return f != pthread_attr_setschedparam;
36998 ;
36999 return 0;
37000}
37001_ACEOF
37002rm -f conftest.$ac_objext conftest$ac_exeext
37003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37004 (eval $ac_link) 2>conftest.er1
a848cd7e 37005 ac_status=$?
ac1cb8d3
VS
37006 grep -v '^ *+' conftest.er1 >conftest.err
37007 rm -f conftest.er1
37008 cat conftest.err >&5
a848cd7e
SC
37009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); } &&
6ebeb4c7 37011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37013 (eval $ac_try) 2>&5
37014 ac_status=$?
37015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37016 (exit $ac_status); }; } &&
37017 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37019 (eval $ac_try) 2>&5
37020 ac_status=$?
37021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37022 (exit $ac_status); }; }; then
37023 ac_cv_func_pthread_attr_setschedparam=yes
37024else
37025 echo "$as_me: failed program was:" >&5
37026sed 's/^/| /' conftest.$ac_ext >&5
37027
37028ac_cv_func_pthread_attr_setschedparam=no
37029fi
ac1cb8d3
VS
37030rm -f conftest.err conftest.$ac_objext \
37031 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37032fi
37033echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37034echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37035if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37036 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37037echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37038if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37039 echo $ECHO_N "(cached) $ECHO_C" >&6
37040else
37041 cat >conftest.$ac_ext <<_ACEOF
37042/* confdefs.h. */
37043_ACEOF
37044cat confdefs.h >>conftest.$ac_ext
37045cat >>conftest.$ac_ext <<_ACEOF
37046/* end confdefs.h. */
ac1cb8d3
VS
37047/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37049#define sched_get_priority_max innocuous_sched_get_priority_max
37050
a848cd7e
SC
37051/* System header to define __stub macros and hopefully few prototypes,
37052 which can conflict with char sched_get_priority_max (); below.
37053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37054 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37055
a848cd7e
SC
37056#ifdef __STDC__
37057# include <limits.h>
37058#else
37059# include <assert.h>
37060#endif
ac1cb8d3
VS
37061
37062#undef sched_get_priority_max
37063
a848cd7e
SC
37064/* Override any gcc2 internal prototype to avoid an error. */
37065#ifdef __cplusplus
37066extern "C"
37067{
37068#endif
37069/* We use char because int might match the return type of a gcc2
37070 builtin and then its argument prototype would still apply. */
37071char sched_get_priority_max ();
37072/* The GNU C library defines this for functions which it implements
37073 to always fail with ENOSYS. Some functions are actually named
37074 something starting with __ and the normal name is an alias. */
37075#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37076choke me
37077#else
37078char (*f) () = sched_get_priority_max;
37079#endif
37080#ifdef __cplusplus
37081}
37082#endif
37083
37084int
37085main ()
37086{
37087return f != sched_get_priority_max;
37088 ;
37089 return 0;
37090}
37091_ACEOF
37092rm -f conftest.$ac_objext conftest$ac_exeext
37093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37094 (eval $ac_link) 2>conftest.er1
a848cd7e 37095 ac_status=$?
ac1cb8d3
VS
37096 grep -v '^ *+' conftest.er1 >conftest.err
37097 rm -f conftest.er1
37098 cat conftest.err >&5
a848cd7e
SC
37099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37100 (exit $ac_status); } &&
6ebeb4c7 37101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37103 (eval $ac_try) 2>&5
37104 ac_status=$?
37105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106 (exit $ac_status); }; } &&
37107 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37109 (eval $ac_try) 2>&5
37110 ac_status=$?
37111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37112 (exit $ac_status); }; }; then
37113 ac_cv_func_sched_get_priority_max=yes
37114else
37115 echo "$as_me: failed program was:" >&5
37116sed 's/^/| /' conftest.$ac_ext >&5
37117
37118ac_cv_func_sched_get_priority_max=no
37119fi
ac1cb8d3
VS
37120rm -f conftest.err conftest.$ac_objext \
37121 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37122fi
37123echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37124echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37125if test $ac_cv_func_sched_get_priority_max = yes; then
37126 HAVE_PRIOR_FUNCS=1
37127else
37128 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37129echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37130if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37131 echo $ECHO_N "(cached) $ECHO_C" >&6
37132else
37133 ac_check_lib_save_LIBS=$LIBS
37134LIBS="-lposix4 $LIBS"
37135cat >conftest.$ac_ext <<_ACEOF
37136/* confdefs.h. */
37137_ACEOF
37138cat confdefs.h >>conftest.$ac_ext
37139cat >>conftest.$ac_ext <<_ACEOF
37140/* end confdefs.h. */
37141
37142/* Override any gcc2 internal prototype to avoid an error. */
37143#ifdef __cplusplus
37144extern "C"
37145#endif
37146/* We use char because int might match the return type of a gcc2
37147 builtin and then its argument prototype would still apply. */
37148char sched_get_priority_max ();
37149int
37150main ()
37151{
37152sched_get_priority_max ();
37153 ;
37154 return 0;
37155}
37156_ACEOF
37157rm -f conftest.$ac_objext conftest$ac_exeext
37158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37159 (eval $ac_link) 2>conftest.er1
a848cd7e 37160 ac_status=$?
ac1cb8d3
VS
37161 grep -v '^ *+' conftest.er1 >conftest.err
37162 rm -f conftest.er1
37163 cat conftest.err >&5
a848cd7e
SC
37164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37165 (exit $ac_status); } &&
6ebeb4c7 37166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37168 (eval $ac_try) 2>&5
37169 ac_status=$?
37170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171 (exit $ac_status); }; } &&
37172 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37174 (eval $ac_try) 2>&5
37175 ac_status=$?
37176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); }; }; then
37178 ac_cv_lib_posix4_sched_get_priority_max=yes
37179else
37180 echo "$as_me: failed program was:" >&5
37181sed 's/^/| /' conftest.$ac_ext >&5
37182
37183ac_cv_lib_posix4_sched_get_priority_max=no
37184fi
ac1cb8d3
VS
37185rm -f conftest.err conftest.$ac_objext \
37186 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37187LIBS=$ac_check_lib_save_LIBS
37188fi
37189echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37190echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37191if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37192
37193 HAVE_PRIOR_FUNCS=1
37194 POSIX4_LINK=" -lposix4"
37195
37196fi
37197
37198
37199fi
37200
37201
37202fi
37203
37204
37205fi
37206
37207
37208 if test "$HAVE_PRIOR_FUNCS" = 1; then
37209 cat >>confdefs.h <<\_ACEOF
37210#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37211_ACEOF
37212
37213 else
37214 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37215echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37216 fi
37217
37218 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37219echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37220if test "${ac_cv_func_pthread_cancel+set}" = set; then
37221 echo $ECHO_N "(cached) $ECHO_C" >&6
37222else
37223 cat >conftest.$ac_ext <<_ACEOF
37224/* confdefs.h. */
37225_ACEOF
37226cat confdefs.h >>conftest.$ac_ext
37227cat >>conftest.$ac_ext <<_ACEOF
37228/* end confdefs.h. */
ac1cb8d3
VS
37229/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37231#define pthread_cancel innocuous_pthread_cancel
37232
a848cd7e
SC
37233/* System header to define __stub macros and hopefully few prototypes,
37234 which can conflict with char pthread_cancel (); below.
37235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37236 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37237
a848cd7e
SC
37238#ifdef __STDC__
37239# include <limits.h>
37240#else
37241# include <assert.h>
37242#endif
ac1cb8d3
VS
37243
37244#undef pthread_cancel
37245
a848cd7e
SC
37246/* Override any gcc2 internal prototype to avoid an error. */
37247#ifdef __cplusplus
37248extern "C"
37249{
37250#endif
37251/* We use char because int might match the return type of a gcc2
37252 builtin and then its argument prototype would still apply. */
37253char pthread_cancel ();
37254/* The GNU C library defines this for functions which it implements
37255 to always fail with ENOSYS. Some functions are actually named
37256 something starting with __ and the normal name is an alias. */
37257#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37258choke me
37259#else
37260char (*f) () = pthread_cancel;
37261#endif
37262#ifdef __cplusplus
37263}
37264#endif
37265
37266int
37267main ()
37268{
37269return f != pthread_cancel;
37270 ;
37271 return 0;
37272}
37273_ACEOF
37274rm -f conftest.$ac_objext conftest$ac_exeext
37275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37276 (eval $ac_link) 2>conftest.er1
a848cd7e 37277 ac_status=$?
ac1cb8d3
VS
37278 grep -v '^ *+' conftest.er1 >conftest.err
37279 rm -f conftest.er1
37280 cat conftest.err >&5
a848cd7e
SC
37281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37282 (exit $ac_status); } &&
6ebeb4c7 37283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37285 (eval $ac_try) 2>&5
37286 ac_status=$?
37287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288 (exit $ac_status); }; } &&
37289 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37291 (eval $ac_try) 2>&5
37292 ac_status=$?
37293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294 (exit $ac_status); }; }; then
37295 ac_cv_func_pthread_cancel=yes
37296else
37297 echo "$as_me: failed program was:" >&5
37298sed 's/^/| /' conftest.$ac_ext >&5
37299
37300ac_cv_func_pthread_cancel=no
37301fi
ac1cb8d3
VS
37302rm -f conftest.err conftest.$ac_objext \
37303 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37304fi
37305echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37306echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37307if test $ac_cv_func_pthread_cancel = yes; then
37308 cat >>confdefs.h <<\_ACEOF
37309#define HAVE_PTHREAD_CANCEL 1
37310_ACEOF
37311
37312else
37313 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37314echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37315fi
37316
37317
abc736fd
MW
37318 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37319echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
37320if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
37321 echo $ECHO_N "(cached) $ECHO_C" >&6
37322else
37323 cat >conftest.$ac_ext <<_ACEOF
37324/* confdefs.h. */
37325_ACEOF
37326cat confdefs.h >>conftest.$ac_ext
37327cat >>conftest.$ac_ext <<_ACEOF
37328/* end confdefs.h. */
37329/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
37330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37331#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
37332
37333/* System header to define __stub macros and hopefully few prototypes,
37334 which can conflict with char pthread_attr_setstacksize (); below.
37335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37336 <limits.h> exists even on freestanding compilers. */
37337
37338#ifdef __STDC__
37339# include <limits.h>
37340#else
37341# include <assert.h>
37342#endif
37343
37344#undef pthread_attr_setstacksize
37345
37346/* Override any gcc2 internal prototype to avoid an error. */
37347#ifdef __cplusplus
37348extern "C"
37349{
37350#endif
37351/* We use char because int might match the return type of a gcc2
37352 builtin and then its argument prototype would still apply. */
37353char pthread_attr_setstacksize ();
37354/* The GNU C library defines this for functions which it implements
37355 to always fail with ENOSYS. Some functions are actually named
37356 something starting with __ and the normal name is an alias. */
37357#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37358choke me
37359#else
37360char (*f) () = pthread_attr_setstacksize;
37361#endif
37362#ifdef __cplusplus
37363}
37364#endif
37365
37366int
37367main ()
37368{
37369return f != pthread_attr_setstacksize;
37370 ;
37371 return 0;
37372}
37373_ACEOF
37374rm -f conftest.$ac_objext conftest$ac_exeext
37375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37376 (eval $ac_link) 2>conftest.er1
37377 ac_status=$?
37378 grep -v '^ *+' conftest.er1 >conftest.err
37379 rm -f conftest.er1
37380 cat conftest.err >&5
37381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382 (exit $ac_status); } &&
6ebeb4c7 37383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
37384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37385 (eval $ac_try) 2>&5
37386 ac_status=$?
37387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388 (exit $ac_status); }; } &&
37389 { ac_try='test -s conftest$ac_exeext'
37390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37391 (eval $ac_try) 2>&5
37392 ac_status=$?
37393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394 (exit $ac_status); }; }; then
37395 ac_cv_func_pthread_attr_setstacksize=yes
37396else
37397 echo "$as_me: failed program was:" >&5
37398sed 's/^/| /' conftest.$ac_ext >&5
37399
37400ac_cv_func_pthread_attr_setstacksize=no
37401fi
37402rm -f conftest.err conftest.$ac_objext \
37403 conftest$ac_exeext conftest.$ac_ext
37404fi
37405echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37406echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37407if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37408 cat >>confdefs.h <<\_ACEOF
37409#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37410_ACEOF
37411
37412fi
37413
a848cd7e
SC
37414
37415
37416 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37417echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37418if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37419 echo $ECHO_N "(cached) $ECHO_C" >&6
37420else
37421
37422 cat >conftest.$ac_ext <<_ACEOF
37423/* confdefs.h. */
37424_ACEOF
37425cat confdefs.h >>conftest.$ac_ext
37426cat >>conftest.$ac_ext <<_ACEOF
37427/* end confdefs.h. */
37428#include <pthread.h>
37429int
37430main ()
37431{
37432
37433 pthread_mutexattr_t attr;
37434 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37435
37436 ;
37437 return 0;
37438}
37439_ACEOF
37440rm -f conftest.$ac_objext
37441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37442 (eval $ac_compile) 2>conftest.er1
a848cd7e 37443 ac_status=$?
ac1cb8d3
VS
37444 grep -v '^ *+' conftest.er1 >conftest.err
37445 rm -f conftest.er1
37446 cat conftest.err >&5
a848cd7e
SC
37447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37448 (exit $ac_status); } &&
6ebeb4c7 37449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451 (eval $ac_try) 2>&5
37452 ac_status=$?
37453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454 (exit $ac_status); }; } &&
37455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457 (eval $ac_try) 2>&5
37458 ac_status=$?
37459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460 (exit $ac_status); }; }; then
123dca7d 37461 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
37462else
37463 echo "$as_me: failed program was:" >&5
37464sed 's/^/| /' conftest.$ac_ext >&5
37465
123dca7d 37466wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
37467
37468fi
ac1cb8d3 37469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37470
37471fi
37472echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37473echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37474
37475 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37476 cat >>confdefs.h <<\_ACEOF
37477#define HAVE_PTHREAD_MUTEXATTR_T 1
37478_ACEOF
37479
123dca7d
VZ
37480
37481 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37482echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37483if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37484 echo $ECHO_N "(cached) $ECHO_C" >&6
37485else
37486
37487 cat >conftest.$ac_ext <<_ACEOF
37488/* confdefs.h. */
37489_ACEOF
37490cat confdefs.h >>conftest.$ac_ext
37491cat >>conftest.$ac_ext <<_ACEOF
37492/* end confdefs.h. */
37493#include <pthread.h>
37494int
37495main ()
37496{
37497
37498 pthread_mutexattr_t attr;
37499 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37500
37501 ;
37502 return 0;
37503}
37504_ACEOF
37505rm -f conftest.$ac_objext
37506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37507 (eval $ac_compile) 2>conftest.er1
37508 ac_status=$?
37509 grep -v '^ *+' conftest.er1 >conftest.err
37510 rm -f conftest.er1
37511 cat conftest.err >&5
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); } &&
37514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37516 (eval $ac_try) 2>&5
37517 ac_status=$?
37518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37519 (exit $ac_status); }; } &&
37520 { ac_try='test -s conftest.$ac_objext'
37521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37522 (eval $ac_try) 2>&5
37523 ac_status=$?
37524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525 (exit $ac_status); }; }; then
37526 wx_cv_func_pthread_mutexattr_settype_decl=yes
37527else
37528 echo "$as_me: failed program was:" >&5
37529sed 's/^/| /' conftest.$ac_ext >&5
37530
37531wx_cv_func_pthread_mutexattr_settype_decl=no
37532
37533fi
37534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37535
37536fi
37537echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
37538echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
37539 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
37540 cat >>confdefs.h <<\_ACEOF
37541#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
37542_ACEOF
37543
37544 fi
a848cd7e
SC
37545 else
37546 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37547echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37548if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37549 echo $ECHO_N "(cached) $ECHO_C" >&6
37550else
37551
37552 cat >conftest.$ac_ext <<_ACEOF
37553/* confdefs.h. */
37554_ACEOF
37555cat confdefs.h >>conftest.$ac_ext
37556cat >>conftest.$ac_ext <<_ACEOF
37557/* end confdefs.h. */
37558#include <pthread.h>
37559int
37560main ()
37561{
37562
37563 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37564
37565 ;
37566 return 0;
37567}
37568_ACEOF
37569rm -f conftest.$ac_objext
37570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37571 (eval $ac_compile) 2>conftest.er1
a848cd7e 37572 ac_status=$?
ac1cb8d3
VS
37573 grep -v '^ *+' conftest.er1 >conftest.err
37574 rm -f conftest.er1
37575 cat conftest.err >&5
a848cd7e
SC
37576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577 (exit $ac_status); } &&
6ebeb4c7 37578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37580 (eval $ac_try) 2>&5
37581 ac_status=$?
37582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37583 (exit $ac_status); }; } &&
37584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37586 (eval $ac_try) 2>&5
37587 ac_status=$?
37588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37589 (exit $ac_status); }; }; then
37590
37591 wx_cv_type_pthread_rec_mutex_init=yes
37592
37593else
37594 echo "$as_me: failed program was:" >&5
37595sed 's/^/| /' conftest.$ac_ext >&5
37596
37597
37598 wx_cv_type_pthread_rec_mutex_init=no
37599
37600
37601fi
ac1cb8d3 37602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37603
37604fi
37605echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37606echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37607 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37608 cat >>confdefs.h <<\_ACEOF
37609#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37610_ACEOF
37611
37612 else
37613 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37614echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37615 fi
37616 fi
37617 fi
37618
37619else
37620 if test "$wxUSE_THREADS" = "yes" ; then
37621 case "${host}" in
37622 *-*-mingw32* )
37623 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37624echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37625if test "${wx_cv_cflags_mthread+set}" = set; then
37626 echo $ECHO_N "(cached) $ECHO_C" >&6
37627else
37628
37629 CFLAGS_OLD="$CFLAGS"
37630 CFLAGS="$CFLAGS -mthreads"
37631 cat >conftest.$ac_ext <<_ACEOF
37632/* confdefs.h. */
37633_ACEOF
37634cat confdefs.h >>conftest.$ac_ext
37635cat >>conftest.$ac_ext <<_ACEOF
37636/* end confdefs.h. */
37637
37638int
37639main ()
37640{
37641
37642 ;
37643 return 0;
37644}
37645_ACEOF
37646rm -f conftest.$ac_objext
37647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37648 (eval $ac_compile) 2>conftest.er1
a848cd7e 37649 ac_status=$?
ac1cb8d3
VS
37650 grep -v '^ *+' conftest.er1 >conftest.err
37651 rm -f conftest.er1
37652 cat conftest.err >&5
a848cd7e
SC
37653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654 (exit $ac_status); } &&
6ebeb4c7 37655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37657 (eval $ac_try) 2>&5
37658 ac_status=$?
37659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37660 (exit $ac_status); }; } &&
37661 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37663 (eval $ac_try) 2>&5
37664 ac_status=$?
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); }; }; then
37667 wx_cv_cflags_mthread=yes
37668else
37669 echo "$as_me: failed program was:" >&5
37670sed 's/^/| /' conftest.$ac_ext >&5
37671
37672wx_cv_cflags_mthread=no
37673
37674fi
ac1cb8d3 37675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37676
37677
37678fi
37679echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37680echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37681
37682 if test "$wx_cv_cflags_mthread" = "yes"; then
37683 CXXFLAGS="$CXXFLAGS -mthreads"
37684 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
37685 LDFLAGS="$LDFLAGS -mthreads"
37686 else
37687 CFLAGS="$CFLAGS_OLD"
37688 fi
37689 ;;
37690 *-pc-os2*emx )
37691 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
37692 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
37693 LDFLAGS="$LDFLAGS -Zmt"
37694 ;;
37695 esac
37696 fi
37697fi
37698
37699if test "$wxUSE_THREADS" = "yes"; then
37700 cat >>confdefs.h <<\_ACEOF
37701#define wxUSE_THREADS 1
37702_ACEOF
37703
37704
37705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37706else
37707 if test "$ac_cv_func_strtok_r" = "yes"; then
37708 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37709echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37710 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
37711 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
37712 echo "$as_me:$LINENO: result: yes" >&5
37713echo "${ECHO_T}yes" >&6
37714 else
37715 echo "$as_me:$LINENO: result: no" >&5
37716echo "${ECHO_T}no" >&6
37717 fi
37718 fi
37719fi
37720
37721if test "$WXGTK20" = 1 ; then
37722 cat >>confdefs.h <<_ACEOF
37723#define __WXGTK20__ $WXGTK20
37724_ACEOF
37725
37726 WXGTK12=1
37727fi
37728
37729if test "$WXGTK12" = 1 ; then
37730 cat >>confdefs.h <<_ACEOF
37731#define __WXGTK12__ $WXGTK12
37732_ACEOF
37733
37734fi
37735
37736if test "$WXGTK127" = 1 ; then
37737 cat >>confdefs.h <<_ACEOF
37738#define __WXGTK127__ $WXGTK127
37739_ACEOF
37740
37741fi
37742
37743if test "$WXGPE" = 1 ; then
37744 cat >>confdefs.h <<_ACEOF
37745#define __WXGPE__ $WXGPE
37746_ACEOF
37747
37748fi
37749
37750WXDEBUG=
37751
37752if test "$wxUSE_DEBUG_INFO" = "yes" ; then
37753 WXDEBUG="-g"
37754 wxUSE_OPTIMISE=no
37755fi
37756
37757if test "$wxUSE_DEBUG_GDB" = "yes" ; then
37758 wxUSE_DEBUG_INFO=yes
18228ab4
MW
37759 if test "$GCC" = yes; then
37760 WXDEBUG="-ggdb"
37761 fi
a848cd7e
SC
37762fi
37763
37764if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
37765 cat >>confdefs.h <<\_ACEOF
37766#define WXDEBUG 1
37767_ACEOF
37768
37769 WXDEBUG_DEFINE="-D__WXDEBUG__"
37770else
37771 if test "$wxUSE_GTK" = 1 ; then
37772 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
37773 fi
37774fi
37775
37776if test "$wxUSE_MEM_TRACING" = "yes" ; then
37777 cat >>confdefs.h <<\_ACEOF
37778#define wxUSE_MEMORY_TRACING 1
37779_ACEOF
37780
37781 cat >>confdefs.h <<\_ACEOF
37782#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
37783_ACEOF
37784
37785 cat >>confdefs.h <<\_ACEOF
37786#define wxUSE_DEBUG_NEW_ALWAYS 1
37787_ACEOF
37788
37789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
37790fi
37791
37792if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 37793 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
37794fi
37795
37796PROFILE=
37797if test "$wxUSE_PROFILE" = "yes" ; then
37798 PROFILE=" -pg"
37799fi
37800
37801CODE_GEN_FLAGS=
37802CODE_GEN_FLAGS_CXX=
37803if test "$GCC" = "yes" ; then
37804 if test "$wxUSE_NO_RTTI" = "yes" ; then
37805 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
37806 fi
37807 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37808 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
37809 fi
37810 if test "$wxUSE_PERMISSIVE" = "yes" ; then
37811 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
37812 fi
37813
37814 case "${host}" in
37815 powerpc*-*-aix* )
37816 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
37817 ;;
37818 *-hppa* )
37819 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
37820 ;;
37821 esac
37822fi
37823
37824OPTIMISE=
37825if test "$wxUSE_OPTIMISE" = "no" ; then
37826 if test "$GCC" = yes ; then
37827 OPTIMISE="-O0"
37828 fi
37829else
37830 if test "$GCC" = yes ; then
37831 OPTIMISE="-O2"
37832
37833 case "${host}" in
37834 i586-*-*|i686-*-* )
37835 OPTIMISE="${OPTIMISE} "
37836 ;;
37837 esac
37838 else
37839 OPTIMISE="-O"
37840 fi
37841fi
37842
37843
37844if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
37845 cat >>confdefs.h <<\_ACEOF
37846#define WXWIN_COMPATIBILITY_2_2 1
37847_ACEOF
37848
37849
37850 WXWIN_COMPATIBILITY_2_4="yes"
37851fi
37852
37853if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
37854 cat >>confdefs.h <<\_ACEOF
37855#define WXWIN_COMPATIBILITY_2_4 1
37856_ACEOF
37857
37858fi
37859
37860
37861if test "$wxUSE_GUI" = "yes"; then
881bfcd6 37862 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37863#define wxUSE_GUI 1
37864_ACEOF
37865
37866
370fd4c2 37867 fi
a848cd7e
SC
37868
37869
37870if test "$wxUSE_UNIX" = "yes"; then
37871 cat >>confdefs.h <<\_ACEOF
37872#define wxUSE_UNIX 1
37873_ACEOF
37874
37875fi
37876
37877
37878if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37879
37880 HAVE_DL_FUNCS=0
37881 HAVE_SHL_FUNCS=0
37882 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
37883 if test "$USE_DARWIN" = 1; then
37884 HAVE_DL_FUNCS=1
47a7e797
MW
37885 elif test "$USE_DOS" = 1; then
37886 HAVE_DL_FUNCS=0
a848cd7e
SC
37887 else
37888
37889for ac_func in dlopen
37890do
37891as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37892echo "$as_me:$LINENO: checking for $ac_func" >&5
37893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37894if eval "test \"\${$as_ac_var+set}\" = set"; then
37895 echo $ECHO_N "(cached) $ECHO_C" >&6
37896else
37897 cat >conftest.$ac_ext <<_ACEOF
37898/* confdefs.h. */
37899_ACEOF
37900cat confdefs.h >>conftest.$ac_ext
37901cat >>conftest.$ac_ext <<_ACEOF
37902/* end confdefs.h. */
ac1cb8d3
VS
37903/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37905#define $ac_func innocuous_$ac_func
37906
a848cd7e
SC
37907/* System header to define __stub macros and hopefully few prototypes,
37908 which can conflict with char $ac_func (); below.
37909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37910 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37911
a848cd7e
SC
37912#ifdef __STDC__
37913# include <limits.h>
37914#else
37915# include <assert.h>
37916#endif
ac1cb8d3
VS
37917
37918#undef $ac_func
37919
a848cd7e
SC
37920/* Override any gcc2 internal prototype to avoid an error. */
37921#ifdef __cplusplus
37922extern "C"
37923{
37924#endif
37925/* We use char because int might match the return type of a gcc2
37926 builtin and then its argument prototype would still apply. */
37927char $ac_func ();
37928/* The GNU C library defines this for functions which it implements
37929 to always fail with ENOSYS. Some functions are actually named
37930 something starting with __ and the normal name is an alias. */
37931#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37932choke me
37933#else
37934char (*f) () = $ac_func;
37935#endif
37936#ifdef __cplusplus
37937}
37938#endif
37939
37940int
37941main ()
37942{
37943return f != $ac_func;
37944 ;
37945 return 0;
37946}
37947_ACEOF
37948rm -f conftest.$ac_objext conftest$ac_exeext
37949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37950 (eval $ac_link) 2>conftest.er1
a848cd7e 37951 ac_status=$?
ac1cb8d3
VS
37952 grep -v '^ *+' conftest.er1 >conftest.err
37953 rm -f conftest.er1
37954 cat conftest.err >&5
a848cd7e
SC
37955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956 (exit $ac_status); } &&
6ebeb4c7 37957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37959 (eval $ac_try) 2>&5
37960 ac_status=$?
37961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37962 (exit $ac_status); }; } &&
37963 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37965 (eval $ac_try) 2>&5
37966 ac_status=$?
37967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37968 (exit $ac_status); }; }; then
37969 eval "$as_ac_var=yes"
37970else
37971 echo "$as_me: failed program was:" >&5
37972sed 's/^/| /' conftest.$ac_ext >&5
37973
37974eval "$as_ac_var=no"
37975fi
ac1cb8d3
VS
37976rm -f conftest.err conftest.$ac_objext \
37977 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37978fi
37979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37980echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37981if test `eval echo '${'$as_ac_var'}'` = yes; then
37982 cat >>confdefs.h <<_ACEOF
37983#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37984_ACEOF
37985
37986 cat >>confdefs.h <<\_ACEOF
37987#define HAVE_DLOPEN 1
37988_ACEOF
37989
37990 HAVE_DL_FUNCS=1
37991
37992else
37993
37994 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37995echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
37996if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37997 echo $ECHO_N "(cached) $ECHO_C" >&6
37998else
37999 ac_check_lib_save_LIBS=$LIBS
38000LIBS="-ldl $LIBS"
38001cat >conftest.$ac_ext <<_ACEOF
38002/* confdefs.h. */
38003_ACEOF
38004cat confdefs.h >>conftest.$ac_ext
38005cat >>conftest.$ac_ext <<_ACEOF
38006/* end confdefs.h. */
38007
38008/* Override any gcc2 internal prototype to avoid an error. */
38009#ifdef __cplusplus
38010extern "C"
38011#endif
38012/* We use char because int might match the return type of a gcc2
38013 builtin and then its argument prototype would still apply. */
38014char dlopen ();
38015int
38016main ()
38017{
38018dlopen ();
38019 ;
38020 return 0;
38021}
38022_ACEOF
38023rm -f conftest.$ac_objext conftest$ac_exeext
38024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38025 (eval $ac_link) 2>conftest.er1
a848cd7e 38026 ac_status=$?
ac1cb8d3
VS
38027 grep -v '^ *+' conftest.er1 >conftest.err
38028 rm -f conftest.er1
38029 cat conftest.err >&5
a848cd7e
SC
38030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38031 (exit $ac_status); } &&
6ebeb4c7 38032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38034 (eval $ac_try) 2>&5
38035 ac_status=$?
38036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037 (exit $ac_status); }; } &&
38038 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38040 (eval $ac_try) 2>&5
38041 ac_status=$?
38042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043 (exit $ac_status); }; }; then
38044 ac_cv_lib_dl_dlopen=yes
38045else
38046 echo "$as_me: failed program was:" >&5
38047sed 's/^/| /' conftest.$ac_ext >&5
38048
38049ac_cv_lib_dl_dlopen=no
38050fi
ac1cb8d3
VS
38051rm -f conftest.err conftest.$ac_objext \
38052 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38053LIBS=$ac_check_lib_save_LIBS
38054fi
38055echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38056echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
38057if test $ac_cv_lib_dl_dlopen = yes; then
38058
38059 cat >>confdefs.h <<\_ACEOF
38060#define HAVE_DLOPEN 1
38061_ACEOF
38062
38063 HAVE_DL_FUNCS=1
38064 DL_LINK=" -ldl$DL_LINK"
38065
38066else
38067
38068
38069for ac_func in shl_load
38070do
38071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38072echo "$as_me:$LINENO: checking for $ac_func" >&5
38073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38074if eval "test \"\${$as_ac_var+set}\" = set"; then
38075 echo $ECHO_N "(cached) $ECHO_C" >&6
38076else
38077 cat >conftest.$ac_ext <<_ACEOF
38078/* confdefs.h. */
38079_ACEOF
38080cat confdefs.h >>conftest.$ac_ext
38081cat >>conftest.$ac_ext <<_ACEOF
38082/* end confdefs.h. */
ac1cb8d3
VS
38083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38085#define $ac_func innocuous_$ac_func
38086
a848cd7e
SC
38087/* System header to define __stub macros and hopefully few prototypes,
38088 which can conflict with char $ac_func (); below.
38089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38090 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38091
a848cd7e
SC
38092#ifdef __STDC__
38093# include <limits.h>
38094#else
38095# include <assert.h>
38096#endif
ac1cb8d3
VS
38097
38098#undef $ac_func
38099
a848cd7e
SC
38100/* Override any gcc2 internal prototype to avoid an error. */
38101#ifdef __cplusplus
38102extern "C"
38103{
38104#endif
38105/* We use char because int might match the return type of a gcc2
38106 builtin and then its argument prototype would still apply. */
38107char $ac_func ();
38108/* The GNU C library defines this for functions which it implements
38109 to always fail with ENOSYS. Some functions are actually named
38110 something starting with __ and the normal name is an alias. */
38111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38112choke me
38113#else
38114char (*f) () = $ac_func;
38115#endif
38116#ifdef __cplusplus
38117}
38118#endif
38119
38120int
38121main ()
38122{
38123return f != $ac_func;
38124 ;
38125 return 0;
38126}
38127_ACEOF
38128rm -f conftest.$ac_objext conftest$ac_exeext
38129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38130 (eval $ac_link) 2>conftest.er1
a848cd7e 38131 ac_status=$?
ac1cb8d3
VS
38132 grep -v '^ *+' conftest.er1 >conftest.err
38133 rm -f conftest.er1
38134 cat conftest.err >&5
a848cd7e
SC
38135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136 (exit $ac_status); } &&
6ebeb4c7 38137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38139 (eval $ac_try) 2>&5
38140 ac_status=$?
38141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142 (exit $ac_status); }; } &&
38143 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38145 (eval $ac_try) 2>&5
38146 ac_status=$?
38147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148 (exit $ac_status); }; }; then
38149 eval "$as_ac_var=yes"
38150else
38151 echo "$as_me: failed program was:" >&5
38152sed 's/^/| /' conftest.$ac_ext >&5
38153
38154eval "$as_ac_var=no"
38155fi
ac1cb8d3
VS
38156rm -f conftest.err conftest.$ac_objext \
38157 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38158fi
38159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38160echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38161if test `eval echo '${'$as_ac_var'}'` = yes; then
38162 cat >>confdefs.h <<_ACEOF
38163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38164_ACEOF
38165
38166 cat >>confdefs.h <<\_ACEOF
38167#define HAVE_SHL_LOAD 1
38168_ACEOF
38169
38170 HAVE_SHL_FUNCS=1
38171
38172else
38173
38174 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
38175echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
38176if test "${ac_cv_lib_shl_load_dld+set}" = set; then
38177 echo $ECHO_N "(cached) $ECHO_C" >&6
38178else
38179 ac_check_lib_save_LIBS=$LIBS
38180LIBS="-lshl_load $LIBS"
38181cat >conftest.$ac_ext <<_ACEOF
38182/* confdefs.h. */
38183_ACEOF
38184cat confdefs.h >>conftest.$ac_ext
38185cat >>conftest.$ac_ext <<_ACEOF
38186/* end confdefs.h. */
38187
38188/* Override any gcc2 internal prototype to avoid an error. */
38189#ifdef __cplusplus
38190extern "C"
38191#endif
38192/* We use char because int might match the return type of a gcc2
38193 builtin and then its argument prototype would still apply. */
38194char dld ();
38195int
38196main ()
38197{
38198dld ();
38199 ;
38200 return 0;
38201}
38202_ACEOF
38203rm -f conftest.$ac_objext conftest$ac_exeext
38204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38205 (eval $ac_link) 2>conftest.er1
a848cd7e 38206 ac_status=$?
ac1cb8d3
VS
38207 grep -v '^ *+' conftest.er1 >conftest.err
38208 rm -f conftest.er1
38209 cat conftest.err >&5
a848cd7e
SC
38210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211 (exit $ac_status); } &&
6ebeb4c7 38212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38214 (eval $ac_try) 2>&5
38215 ac_status=$?
38216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217 (exit $ac_status); }; } &&
38218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38220 (eval $ac_try) 2>&5
38221 ac_status=$?
38222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38223 (exit $ac_status); }; }; then
38224 ac_cv_lib_shl_load_dld=yes
38225else
38226 echo "$as_me: failed program was:" >&5
38227sed 's/^/| /' conftest.$ac_ext >&5
38228
38229ac_cv_lib_shl_load_dld=no
38230fi
ac1cb8d3
VS
38231rm -f conftest.err conftest.$ac_objext \
38232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38233LIBS=$ac_check_lib_save_LIBS
38234fi
38235echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
38236echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
38237if test $ac_cv_lib_shl_load_dld = yes; then
38238
38239 HAVE_SHL_FUNCS=1
38240 DL_LINK=" -ldld$DL_LINK"
38241
38242fi
38243
38244
38245fi
38246done
38247
38248
38249fi
38250
38251
38252fi
38253done
38254
38255
38256 if test "$HAVE_DL_FUNCS" = 1; then
38257
38258for ac_func in dlerror
38259do
38260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38261echo "$as_me:$LINENO: checking for $ac_func" >&5
38262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38263if eval "test \"\${$as_ac_var+set}\" = set"; then
38264 echo $ECHO_N "(cached) $ECHO_C" >&6
38265else
38266 cat >conftest.$ac_ext <<_ACEOF
38267/* confdefs.h. */
38268_ACEOF
38269cat confdefs.h >>conftest.$ac_ext
38270cat >>conftest.$ac_ext <<_ACEOF
38271/* end confdefs.h. */
ac1cb8d3
VS
38272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38274#define $ac_func innocuous_$ac_func
38275
a848cd7e
SC
38276/* System header to define __stub macros and hopefully few prototypes,
38277 which can conflict with char $ac_func (); below.
38278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38279 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38280
a848cd7e
SC
38281#ifdef __STDC__
38282# include <limits.h>
38283#else
38284# include <assert.h>
38285#endif
ac1cb8d3
VS
38286
38287#undef $ac_func
38288
a848cd7e
SC
38289/* Override any gcc2 internal prototype to avoid an error. */
38290#ifdef __cplusplus
38291extern "C"
38292{
38293#endif
38294/* We use char because int might match the return type of a gcc2
38295 builtin and then its argument prototype would still apply. */
38296char $ac_func ();
38297/* The GNU C library defines this for functions which it implements
38298 to always fail with ENOSYS. Some functions are actually named
38299 something starting with __ and the normal name is an alias. */
38300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38301choke me
38302#else
38303char (*f) () = $ac_func;
38304#endif
38305#ifdef __cplusplus
38306}
38307#endif
38308
38309int
38310main ()
38311{
38312return f != $ac_func;
38313 ;
38314 return 0;
38315}
38316_ACEOF
38317rm -f conftest.$ac_objext conftest$ac_exeext
38318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38319 (eval $ac_link) 2>conftest.er1
a848cd7e 38320 ac_status=$?
ac1cb8d3
VS
38321 grep -v '^ *+' conftest.er1 >conftest.err
38322 rm -f conftest.er1
38323 cat conftest.err >&5
a848cd7e
SC
38324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38325 (exit $ac_status); } &&
6ebeb4c7 38326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38328 (eval $ac_try) 2>&5
38329 ac_status=$?
38330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38331 (exit $ac_status); }; } &&
38332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38334 (eval $ac_try) 2>&5
38335 ac_status=$?
38336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38337 (exit $ac_status); }; }; then
38338 eval "$as_ac_var=yes"
38339else
38340 echo "$as_me: failed program was:" >&5
38341sed 's/^/| /' conftest.$ac_ext >&5
38342
38343eval "$as_ac_var=no"
38344fi
ac1cb8d3
VS
38345rm -f conftest.err conftest.$ac_objext \
38346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38347fi
38348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38349echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38350if test `eval echo '${'$as_ac_var'}'` = yes; then
38351 cat >>confdefs.h <<_ACEOF
38352#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38353_ACEOF
38354 cat >>confdefs.h <<\_ACEOF
38355#define HAVE_DLERROR 1
38356_ACEOF
38357
38358else
38359
38360 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
38361echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
38362if test "${ac_cv_lib_dl_dlerror+set}" = set; then
38363 echo $ECHO_N "(cached) $ECHO_C" >&6
38364else
38365 ac_check_lib_save_LIBS=$LIBS
38366LIBS="-ldl $LIBS"
38367cat >conftest.$ac_ext <<_ACEOF
38368/* confdefs.h. */
38369_ACEOF
38370cat confdefs.h >>conftest.$ac_ext
38371cat >>conftest.$ac_ext <<_ACEOF
38372/* end confdefs.h. */
38373
38374/* Override any gcc2 internal prototype to avoid an error. */
38375#ifdef __cplusplus
38376extern "C"
38377#endif
38378/* We use char because int might match the return type of a gcc2
38379 builtin and then its argument prototype would still apply. */
38380char dlerror ();
38381int
38382main ()
38383{
38384dlerror ();
38385 ;
38386 return 0;
38387}
38388_ACEOF
38389rm -f conftest.$ac_objext conftest$ac_exeext
38390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38391 (eval $ac_link) 2>conftest.er1
a848cd7e 38392 ac_status=$?
ac1cb8d3
VS
38393 grep -v '^ *+' conftest.er1 >conftest.err
38394 rm -f conftest.er1
38395 cat conftest.err >&5
a848cd7e
SC
38396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38397 (exit $ac_status); } &&
6ebeb4c7 38398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38400 (eval $ac_try) 2>&5
38401 ac_status=$?
38402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38403 (exit $ac_status); }; } &&
38404 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38406 (eval $ac_try) 2>&5
38407 ac_status=$?
38408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38409 (exit $ac_status); }; }; then
38410 ac_cv_lib_dl_dlerror=yes
38411else
38412 echo "$as_me: failed program was:" >&5
38413sed 's/^/| /' conftest.$ac_ext >&5
38414
38415ac_cv_lib_dl_dlerror=no
38416fi
ac1cb8d3
VS
38417rm -f conftest.err conftest.$ac_objext \
38418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38419LIBS=$ac_check_lib_save_LIBS
38420fi
38421echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
38422echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
38423if test $ac_cv_lib_dl_dlerror = yes; then
38424 cat >>confdefs.h <<\_ACEOF
38425#define HAVE_DLERROR 1
38426_ACEOF
38427
38428fi
38429
38430
38431
38432fi
38433done
38434
38435 fi
38436 fi
38437
38438 if test "$HAVE_DL_FUNCS" = 0; then
38439 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 38440 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
38441 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
38442echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
38443 wxUSE_DYNAMIC_LOADER=no
38444 wxUSE_DYNLIB_CLASS=no
38445 else
38446 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
38447echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
38448 fi
38449 fi
38450 fi
38451 fi
38452fi
38453
38454if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38455 cat >>confdefs.h <<\_ACEOF
38456#define wxUSE_DYNAMIC_LOADER 1
38457_ACEOF
38458
38459fi
38460if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38461 cat >>confdefs.h <<\_ACEOF
38462#define wxUSE_DYNLIB_CLASS 1
38463_ACEOF
38464
38465fi
38466
38467
38468
38469if test "$wxUSE_PLUGINS" = "yes" ; then
38470 if test "$wxUSE_SHARED" = "no" ; then
38471 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38472echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38473 wxUSE_PLUGINS=no
38474 fi
38475 if test "$wxUSE_MONOLITHIC" = "yes" ; then
38476 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38477echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38478 wxUSE_PLUGINS=no
38479 fi
38480 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38481 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38482echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38483 wxUSE_PLUGINS=no
38484 fi
38485 if test "$wxUSE_PLUGINS" = "yes" ; then
38486 cat >>confdefs.h <<\_ACEOF
38487#define wxUSE_PLUGINS 1
38488_ACEOF
38489
38490 fi
38491fi
38492
38493
38494if test "$wxUSE_STL" = "yes"; then
38495 cat >>confdefs.h <<\_ACEOF
38496#define wxUSE_STL 1
38497_ACEOF
38498
38499fi
38500
38501if test "$wxUSE_APPLE_IEEE" = "yes"; then
38502 cat >>confdefs.h <<\_ACEOF
38503#define wxUSE_APPLE_IEEE 1
38504_ACEOF
38505
38506fi
38507
38508if test "$wxUSE_TIMER" = "yes"; then
38509 cat >>confdefs.h <<\_ACEOF
38510#define wxUSE_TIMER 1
38511_ACEOF
38512
38513fi
38514
9c112555 38515if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
38516 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38517echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38518if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 38519 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38520else
d12aef51
VZ
38521
38522 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38523/* confdefs.h. */
38524_ACEOF
38525cat confdefs.h >>conftest.$ac_ext
38526cat >>conftest.$ac_ext <<_ACEOF
38527/* end confdefs.h. */
d12aef51
VZ
38528
38529 #include <sys/soundcard.h>
38530
38531int
38532main ()
38533{
38534
38535 ioctl(0, SNDCTL_DSP_SYNC, 0);
38536
38537 ;
38538 return 0;
38539}
a848cd7e 38540_ACEOF
d12aef51
VZ
38541rm -f conftest.$ac_objext conftest$ac_exeext
38542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38543 (eval $ac_link) 2>conftest.er1
a848cd7e 38544 ac_status=$?
ac1cb8d3
VS
38545 grep -v '^ *+' conftest.er1 >conftest.err
38546 rm -f conftest.er1
38547 cat conftest.err >&5
a848cd7e
SC
38548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38549 (exit $ac_status); } &&
6ebeb4c7 38550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38552 (eval $ac_try) 2>&5
38553 ac_status=$?
38554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38555 (exit $ac_status); }; } &&
d12aef51 38556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38558 (eval $ac_try) 2>&5
38559 ac_status=$?
38560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561 (exit $ac_status); }; }; then
d12aef51 38562 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38563else
38564 echo "$as_me: failed program was:" >&5
38565sed 's/^/| /' conftest.$ac_ext >&5
38566
a848cd7e 38567
d12aef51
VZ
38568 saveLibs="$LIBS"
38569 LIBS="$saveLibs -lossaudio"
38570 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38571/* confdefs.h. */
38572_ACEOF
38573cat confdefs.h >>conftest.$ac_ext
38574cat >>conftest.$ac_ext <<_ACEOF
38575/* end confdefs.h. */
d12aef51
VZ
38576
38577 #include <sys/soundcard.h>
38578
38579int
38580main ()
38581{
38582
38583 ioctl(0, SNDCTL_DSP_SYNC, 0);
38584
38585 ;
38586 return 0;
38587}
a848cd7e 38588_ACEOF
d12aef51
VZ
38589rm -f conftest.$ac_objext conftest$ac_exeext
38590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38591 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
38592 ac_status=$?
38593 grep -v '^ *+' conftest.er1 >conftest.err
38594 rm -f conftest.er1
38595 cat conftest.err >&5
38596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51
VZ
38597 (exit $ac_status); } &&
38598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38600 (eval $ac_try) 2>&5
38601 ac_status=$?
38602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603 (exit $ac_status); }; } &&
38604 { ac_try='test -s conftest$ac_exeext'
38605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38606 (eval $ac_try) 2>&5
38607 ac_status=$?
38608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38609 (exit $ac_status); }; }; then
38610 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38611else
38612 echo "$as_me: failed program was:" >&5
38613sed 's/^/| /' conftest.$ac_ext >&5
38614
a848cd7e 38615
d12aef51
VZ
38616 LIBS="$saveLibs"
38617 ac_cv_header_sys_soundcard=no
38618
38619
a848cd7e 38620fi
d12aef51
VZ
38621rm -f conftest.err conftest.$ac_objext \
38622 conftest$ac_exeext conftest.$ac_ext
38623
a848cd7e
SC
38624
38625fi
d12aef51
VZ
38626rm -f conftest.err conftest.$ac_objext \
38627 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38628
38629fi
d12aef51
VZ
38630echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38631echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 38632
d12aef51
VZ
38633 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38634 cat >>confdefs.h <<\_ACEOF
38635#define HAVE_SYS_SOUNDCARD_H 1
38636_ACEOF
a848cd7e 38637
d12aef51
VZ
38638 else
38639 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38640 fi
9c112555
MW
38641fi
38642WITH_PLUGIN_SDL=0
38643if test "$wxUSE_SOUND" = "yes"; then
38644 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
38645 if test "$wxUSE_LIBSDL" != "no"; then
38646
38647# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38648if test "${with_sdl_prefix+set}" = set; then
38649 withval="$with_sdl_prefix"
38650 sdl_prefix="$withval"
38651else
38652 sdl_prefix=""
38653fi;
38654
38655# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38656if test "${with_sdl_exec_prefix+set}" = set; then
38657 withval="$with_sdl_exec_prefix"
38658 sdl_exec_prefix="$withval"
38659else
38660 sdl_exec_prefix=""
38661fi;
38662# Check whether --enable-sdltest or --disable-sdltest was given.
38663if test "${enable_sdltest+set}" = set; then
38664 enableval="$enable_sdltest"
38665
38666else
38667 enable_sdltest=yes
38668fi;
38669
38670 if test x$sdl_exec_prefix != x ; then
38671 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38672 if test x${SDL_CONFIG+set} != xset ; then
38673 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38674 fi
38675 fi
38676 if test x$sdl_prefix != x ; then
38677 sdl_args="$sdl_args --prefix=$sdl_prefix"
38678 if test x${SDL_CONFIG+set} != xset ; then
38679 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38680 fi
38681 fi
38682
38683
38684 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38685 # Extract the first word of "sdl-config", so it can be a program name with args.
38686set dummy sdl-config; ac_word=$2
38687echo "$as_me:$LINENO: checking for $ac_word" >&5
38688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38689if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38690 echo $ECHO_N "(cached) $ECHO_C" >&6
38691else
38692 case $SDL_CONFIG in
38693 [\\/]* | ?:[\\/]*)
38694 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38695 ;;
38696 *)
38697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38698for as_dir in $PATH
38699do
38700 IFS=$as_save_IFS
38701 test -z "$as_dir" && as_dir=.
38702 for ac_exec_ext in '' $ac_executable_extensions; do
38703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38704 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38706 break 2
38707 fi
38708done
38709done
38710
38711 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
38712 ;;
38713esac
38714fi
38715SDL_CONFIG=$ac_cv_path_SDL_CONFIG
38716
38717if test -n "$SDL_CONFIG"; then
38718 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
38719echo "${ECHO_T}$SDL_CONFIG" >&6
38720else
38721 echo "$as_me:$LINENO: result: no" >&5
38722echo "${ECHO_T}no" >&6
38723fi
38724
38725 min_sdl_version=1.2.0
38726 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
38727echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
38728 no_sdl=""
38729 if test "$SDL_CONFIG" = "no" ; then
38730 no_sdl=yes
38731 else
38732 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
38733 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
38734
38735 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
38736 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38737 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
38738 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38739 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
38740 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38741 if test "x$enable_sdltest" = "xyes" ; then
38742 ac_save_CFLAGS="$CFLAGS"
94acd38e 38743 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
38744 ac_save_LIBS="$LIBS"
38745 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38746 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38747 LIBS="$LIBS $SDL_LIBS"
38748 rm -f conf.sdltest
38749 if test "$cross_compiling" = yes; then
38750 echo $ac_n "cross compiling; assumed OK... $ac_c"
38751else
38752 cat >conftest.$ac_ext <<_ACEOF
38753/* confdefs.h. */
38754_ACEOF
38755cat confdefs.h >>conftest.$ac_ext
38756cat >>conftest.$ac_ext <<_ACEOF
38757/* end confdefs.h. */
38758
38759#include <stdio.h>
38760#include <stdlib.h>
38761#include <string.h>
38762#include "SDL.h"
38763
38764char*
38765my_strdup (char *str)
38766{
38767 char *new_str;
38768
38769 if (str)
38770 {
38771 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
38772 strcpy (new_str, str);
38773 }
38774 else
38775 new_str = NULL;
38776
38777 return new_str;
38778}
38779
38780int main (int argc, char *argv[])
38781{
38782 int major, minor, micro;
38783 char *tmp_version;
38784
38785 /* This hangs on some systems (?)
38786 system ("touch conf.sdltest");
38787 */
38788 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
38789
38790 /* HP/UX 9 (%@#!) writes to sscanf strings */
38791 tmp_version = my_strdup("$min_sdl_version");
38792 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
38793 printf("%s, bad version string\n", "$min_sdl_version");
38794 exit(1);
38795 }
38796
38797 if (($sdl_major_version > major) ||
38798 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
38799 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
38800 {
38801 return 0;
38802 }
38803 else
38804 {
38805 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
38806 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
38807 printf("*** best to upgrade to the required version.\n");
38808 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
38809 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
38810 printf("*** config.cache before re-running configure\n");
38811 return 1;
38812 }
38813}
38814
38815
38816_ACEOF
38817rm -f conftest$ac_exeext
38818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38819 (eval $ac_link) 2>&5
38820 ac_status=$?
38821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38824 (eval $ac_try) 2>&5
38825 ac_status=$?
38826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827 (exit $ac_status); }; }; then
38828 :
38829else
38830 echo "$as_me: program exited with status $ac_status" >&5
38831echo "$as_me: failed program was:" >&5
38832sed 's/^/| /' conftest.$ac_ext >&5
38833
38834( exit $ac_status )
38835no_sdl=yes
38836fi
ac1cb8d3 38837rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38838fi
38839 CFLAGS="$ac_save_CFLAGS"
94acd38e 38840 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38841 LIBS="$ac_save_LIBS"
38842 fi
38843 fi
38844 if test "x$no_sdl" = x ; then
38845 echo "$as_me:$LINENO: result: yes" >&5
38846echo "${ECHO_T}yes" >&6
38847
38848 EXTRALIBS_SDL="$SDL_LIBS"
38849 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
38850 cat >>confdefs.h <<\_ACEOF
38851#define wxUSE_LIBSDL 1
38852_ACEOF
38853
38854
38855 else
38856 echo "$as_me:$LINENO: result: no" >&5
38857echo "${ECHO_T}no" >&6
38858 if test "$SDL_CONFIG" = "no" ; then
38859 echo "*** The sdl-config script installed by SDL could not be found"
38860 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
38861 echo "*** your path, or set the SDL_CONFIG environment variable to the"
38862 echo "*** full path to sdl-config."
38863 else
38864 if test -f conf.sdltest ; then
38865 :
38866 else
38867 echo "*** Could not run SDL test program, checking why..."
38868 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38869 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38870 LIBS="$LIBS $SDL_LIBS"
38871 cat >conftest.$ac_ext <<_ACEOF
38872/* confdefs.h. */
38873_ACEOF
38874cat confdefs.h >>conftest.$ac_ext
38875cat >>conftest.$ac_ext <<_ACEOF
38876/* end confdefs.h. */
38877
38878#include <stdio.h>
38879#include "SDL.h"
38880
38881int main(int argc, char *argv[])
38882{ return 0; }
38883#undef main
38884#define main K_and_R_C_main
38885
38886int
38887main ()
38888{
38889 return 0;
38890 ;
38891 return 0;
38892}
38893_ACEOF
38894rm -f conftest.$ac_objext conftest$ac_exeext
38895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38896 (eval $ac_link) 2>conftest.er1
a848cd7e 38897 ac_status=$?
ac1cb8d3
VS
38898 grep -v '^ *+' conftest.er1 >conftest.err
38899 rm -f conftest.er1
38900 cat conftest.err >&5
a848cd7e
SC
38901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38902 (exit $ac_status); } &&
6ebeb4c7 38903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38905 (eval $ac_try) 2>&5
38906 ac_status=$?
38907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38908 (exit $ac_status); }; } &&
38909 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38911 (eval $ac_try) 2>&5
38912 ac_status=$?
38913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38914 (exit $ac_status); }; }; then
38915 echo "*** The test program compiled, but did not run. This usually means"
38916 echo "*** that the run-time linker is not finding SDL or finding the wrong"
38917 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
38918 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38919 echo "*** to the installed location Also, make sure you have run ldconfig if that"
38920 echo "*** is required on your system"
38921 echo "***"
38922 echo "*** If you have an old version installed, it is best to remove it, although"
38923 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38924else
38925 echo "$as_me: failed program was:" >&5
38926sed 's/^/| /' conftest.$ac_ext >&5
38927
38928 echo "*** The test program failed to compile or link. See the file config.log for the"
38929 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
38930 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
38931 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
38932fi
ac1cb8d3
VS
38933rm -f conftest.err conftest.$ac_objext \
38934 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38935 CFLAGS="$ac_save_CFLAGS"
94acd38e 38936 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38937 LIBS="$ac_save_LIBS"
38938 fi
38939 fi
38940 SDL_CFLAGS=""
38941 SDL_LIBS=""
38942 wxUSE_LIBSDL="no"
38943 fi
38944
38945
38946 rm -f conf.sdltest
38947
38948 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
38949 WITH_PLUGIN_SDL=1
38950 fi
38951 fi
38952 fi
38953
38954 cat >>confdefs.h <<\_ACEOF
38955#define wxUSE_SOUND 1
38956_ACEOF
38957
38958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
38959fi
38960
d1c38808
VZ
38961if test "$WXGTK20" = 1; then
38962 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38963 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
38964
38965
38966 succeeded=no
38967
38968 if test -z "$PKG_CONFIG"; then
38969 # Extract the first word of "pkg-config", so it can be a program name with args.
38970set dummy pkg-config; ac_word=$2
38971echo "$as_me:$LINENO: checking for $ac_word" >&5
38972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38973if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
38974 echo $ECHO_N "(cached) $ECHO_C" >&6
38975else
38976 case $PKG_CONFIG in
38977 [\\/]* | ?:[\\/]*)
38978 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38979 ;;
38980 *)
38981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38982for as_dir in $PATH
38983do
38984 IFS=$as_save_IFS
38985 test -z "$as_dir" && as_dir=.
38986 for ac_exec_ext in '' $ac_executable_extensions; do
38987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38988 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38990 break 2
38991 fi
38992done
38993done
38994
38995 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
38996 ;;
38997esac
38998fi
38999PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39000
39001if test -n "$PKG_CONFIG"; then
39002 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39003echo "${ECHO_T}$PKG_CONFIG" >&6
39004else
39005 echo "$as_me:$LINENO: result: no" >&5
39006echo "${ECHO_T}no" >&6
39007fi
39008
39009 fi
39010
39011 if test "$PKG_CONFIG" = "no" ; then
39012 echo "*** The pkg-config script could not be found. Make sure it is"
39013 echo "*** in your path, or set the PKG_CONFIG environment variable"
39014 echo "*** to the full path to pkg-config."
39015 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39016 else
39017 PKG_CONFIG_MIN_VERSION=0.9.0
39018 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
39019 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
39020echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 39021
ffa762ff 39022 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
39023 echo "$as_me:$LINENO: result: yes" >&5
39024echo "${ECHO_T}yes" >&6
39025 succeeded=yes
39026
39027 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
39028echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 39029 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39030 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
39031echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
39032
39033 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
39034echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 39035 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39036 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
39037echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
39038 else
39039 LIBGNOMEPRINTUI_CFLAGS=""
39040 LIBGNOMEPRINTUI_LIBS=""
39041 ## If we have a custom action on failure, don't print errors, but
39042 ## do set a variable so people can do so.
ffa762ff 39043 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39044
39045 fi
39046
39047
39048
39049 else
39050 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39051 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39052 fi
39053 fi
39054
39055 if test $succeeded = yes; then
39056
d1c38808
VZ
39057 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
39058 cat >>confdefs.h <<\_ACEOF
39059#define wxUSE_LIBGNOMEPRINT 1
39060_ACEOF
39061
39062
39063 else
39064
39065 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
39066echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
39067 wxUSE_LIBGNOMEPRINT="no"
39068
39069
39070 fi
39071
39072 fi
39073 fi
39074fi
39075
39076
a848cd7e
SC
39077if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
39078 cat >>confdefs.h <<\_ACEOF
39079#define wxUSE_CMDLINE_PARSER 1
39080_ACEOF
39081
39082fi
39083
39084if test "$wxUSE_STOPWATCH" = "yes"; then
39085 cat >>confdefs.h <<\_ACEOF
39086#define wxUSE_STOPWATCH 1
39087_ACEOF
39088
39089fi
39090
39091if test "$wxUSE_DATETIME" = "yes"; then
39092 cat >>confdefs.h <<\_ACEOF
39093#define wxUSE_DATETIME 1
39094_ACEOF
39095
39096fi
39097
39098if test "$wxUSE_FILE" = "yes"; then
39099 cat >>confdefs.h <<\_ACEOF
39100#define wxUSE_FILE 1
39101_ACEOF
39102
39103fi
39104
39105if test "$wxUSE_FFILE" = "yes"; then
39106 cat >>confdefs.h <<\_ACEOF
39107#define wxUSE_FFILE 1
39108_ACEOF
39109
39110fi
39111
39112if test "$wxUSE_FILESYSTEM" = "yes"; then
39113 cat >>confdefs.h <<\_ACEOF
39114#define wxUSE_FILESYSTEM 1
39115_ACEOF
39116
39117fi
39118
39119if test "$wxUSE_FS_ZIP" = "yes"; then
39120 cat >>confdefs.h <<\_ACEOF
39121#define wxUSE_FS_ZIP 1
39122_ACEOF
39123
39124fi
39125
9e8e867f 39126if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 39127 cat >>confdefs.h <<\_ACEOF
9e8e867f 39128#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
39129_ACEOF
39130
39131fi
39132
39133if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 39134 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
39135 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
39136echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
39137 elif test "$wxUSE_ZLIB" = "no"; then
39138 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
39139echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
39140 else
39141 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39142#define wxUSE_ZIPSTREAM 1
39143_ACEOF
39144
81f90336 39145 fi
a848cd7e
SC
39146fi
39147
a848cd7e 39148if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
39149 if test "$USE_UNIX" != 1; then
39150 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
39151echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
39152 wxUSE_ON_FATAL_EXCEPTION=no
39153 else
39154 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39155#define wxUSE_ON_FATAL_EXCEPTION 1
39156_ACEOF
39157
18228ab4 39158 fi
a848cd7e
SC
39159fi
39160
eaff0f0d
VZ
39161if test "$wxUSE_STACKWALKER" = "yes"; then
39162 cat >>confdefs.h <<\_ACEOF
39163#define wxUSE_STACKWALKER 1
39164_ACEOF
39165
39166fi
39167
36b6448c 39168if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
39169 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
39170 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
39171echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
39172 wxUSE_DEBUGREPORT=no
39173 else
39174 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
39175#define wxUSE_DEBUGREPORT 1
39176_ACEOF
39177
21dfc162
MW
39178 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
39180 fi
dfe0c803 39181 fi
36b6448c
VZ
39182fi
39183
a848cd7e
SC
39184if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39185 cat >>confdefs.h <<\_ACEOF
39186#define wxUSE_SNGLINST_CHECKER 1
39187_ACEOF
39188
39189fi
39190
39191if test "$wxUSE_BUSYINFO" = "yes"; then
39192 cat >>confdefs.h <<\_ACEOF
39193#define wxUSE_BUSYINFO 1
39194_ACEOF
39195
39196fi
39197
39198if test "$wxUSE_STD_IOSTREAM" = "yes"; then
39199 cat >>confdefs.h <<\_ACEOF
39200#define wxUSE_STD_IOSTREAM 1
39201_ACEOF
39202
39203fi
39204
59746b65
MW
39205if test "$wxUSE_STD_STRING" = "yes"; then
39206 cat >>confdefs.h <<\_ACEOF
39207#define wxUSE_STD_STRING 1
39208_ACEOF
39209
39210fi
39211
07158944
VZ
39212if test "$wxUSE_STDPATHS" = "yes"; then
39213 cat >>confdefs.h <<\_ACEOF
39214#define wxUSE_STDPATHS 1
39215_ACEOF
39216
39217fi
39218
a848cd7e
SC
39219if test "$wxUSE_TEXTBUFFER" = "yes"; then
39220 cat >>confdefs.h <<\_ACEOF
39221#define wxUSE_TEXTBUFFER 1
39222_ACEOF
39223
39224fi
39225
39226if test "$wxUSE_TEXTFILE" = "yes"; then
39227 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
39228 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
39229echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
39230 else
39231 cat >>confdefs.h <<\_ACEOF
39232#define wxUSE_TEXTFILE 1
39233_ACEOF
39234
39235 fi
39236fi
39237
39238if test "$wxUSE_CONFIG" = "yes" ; then
39239 if test "$wxUSE_TEXTFILE" != "yes"; then
39240 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
39241echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
39242 else
39243 cat >>confdefs.h <<\_ACEOF
39244#define wxUSE_CONFIG 1
89be85c2
VS
39245_ACEOF
39246
39247 cat >>confdefs.h <<\_ACEOF
39248#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
39249_ACEOF
39250
39251 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
39252 fi
39253fi
39254
39255if test "$wxUSE_INTL" = "yes" ; then
39256 if test "$wxUSE_FILE" != "yes"; then
39257 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
39258echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
39259 else
39260 cat >>confdefs.h <<\_ACEOF
39261#define wxUSE_INTL 1
39262_ACEOF
39263
39264 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
39265 GUIDIST="$GUIDIST INTL_DIST"
39266 fi
39267fi
39268
39269if test "$wxUSE_LOG" = "yes"; then
39270 cat >>confdefs.h <<\_ACEOF
39271#define wxUSE_LOG 1
39272_ACEOF
39273
39274
39275 if test "$wxUSE_LOGGUI" = "yes"; then
39276 cat >>confdefs.h <<\_ACEOF
39277#define wxUSE_LOGGUI 1
39278_ACEOF
39279
39280 fi
39281
39282 if test "$wxUSE_LOGWINDOW" = "yes"; then
39283 cat >>confdefs.h <<\_ACEOF
39284#define wxUSE_LOGWINDOW 1
39285_ACEOF
39286
39287 fi
39288
39289 if test "$wxUSE_LOGDIALOG" = "yes"; then
39290 cat >>confdefs.h <<\_ACEOF
39291#define wxUSE_LOG_DIALOG 1
39292_ACEOF
39293
39294 fi
0b78747f
MW
39295
39296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
39297fi
39298
39299if test "$wxUSE_LONGLONG" = "yes"; then
39300 cat >>confdefs.h <<\_ACEOF
39301#define wxUSE_LONGLONG 1
39302_ACEOF
39303
39304fi
39305
39306if test "$wxUSE_GEOMETRY" = "yes"; then
39307 cat >>confdefs.h <<\_ACEOF
39308#define wxUSE_GEOMETRY 1
39309_ACEOF
39310
39311fi
39312
a848cd7e
SC
39313if test "$wxUSE_STREAMS" = "yes" ; then
39314 cat >>confdefs.h <<\_ACEOF
39315#define wxUSE_STREAMS 1
39316_ACEOF
39317
39318fi
39319
39320
39321if test "$wxUSE_DATETIME" = "yes"; then
39322
39323for ac_func in strptime
39324do
39325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39326echo "$as_me:$LINENO: checking for $ac_func" >&5
39327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39328if eval "test \"\${$as_ac_var+set}\" = set"; then
39329 echo $ECHO_N "(cached) $ECHO_C" >&6
39330else
39331 cat >conftest.$ac_ext <<_ACEOF
39332/* confdefs.h. */
39333_ACEOF
39334cat confdefs.h >>conftest.$ac_ext
39335cat >>conftest.$ac_ext <<_ACEOF
39336/* end confdefs.h. */
ac1cb8d3
VS
39337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39339#define $ac_func innocuous_$ac_func
39340
a848cd7e
SC
39341/* System header to define __stub macros and hopefully few prototypes,
39342 which can conflict with char $ac_func (); below.
39343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39344 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39345
a848cd7e
SC
39346#ifdef __STDC__
39347# include <limits.h>
39348#else
39349# include <assert.h>
39350#endif
ac1cb8d3
VS
39351
39352#undef $ac_func
39353
a848cd7e
SC
39354/* Override any gcc2 internal prototype to avoid an error. */
39355#ifdef __cplusplus
39356extern "C"
39357{
39358#endif
39359/* We use char because int might match the return type of a gcc2
39360 builtin and then its argument prototype would still apply. */
39361char $ac_func ();
39362/* The GNU C library defines this for functions which it implements
39363 to always fail with ENOSYS. Some functions are actually named
39364 something starting with __ and the normal name is an alias. */
39365#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39366choke me
39367#else
39368char (*f) () = $ac_func;
39369#endif
39370#ifdef __cplusplus
39371}
39372#endif
39373
39374int
39375main ()
39376{
39377return f != $ac_func;
39378 ;
39379 return 0;
39380}
39381_ACEOF
39382rm -f conftest.$ac_objext conftest$ac_exeext
39383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39384 (eval $ac_link) 2>conftest.er1
a848cd7e 39385 ac_status=$?
ac1cb8d3
VS
39386 grep -v '^ *+' conftest.er1 >conftest.err
39387 rm -f conftest.er1
39388 cat conftest.err >&5
a848cd7e
SC
39389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39390 (exit $ac_status); } &&
6ebeb4c7 39391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39393 (eval $ac_try) 2>&5
39394 ac_status=$?
39395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39396 (exit $ac_status); }; } &&
39397 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39399 (eval $ac_try) 2>&5
39400 ac_status=$?
39401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39402 (exit $ac_status); }; }; then
39403 eval "$as_ac_var=yes"
39404else
39405 echo "$as_me: failed program was:" >&5
39406sed 's/^/| /' conftest.$ac_ext >&5
39407
39408eval "$as_ac_var=no"
39409fi
ac1cb8d3
VS
39410rm -f conftest.err conftest.$ac_objext \
39411 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39412fi
39413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39414echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39415if test `eval echo '${'$as_ac_var'}'` = yes; then
39416 cat >>confdefs.h <<_ACEOF
39417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39418_ACEOF
39419
39420fi
39421done
39422
f536f005
VZ
39423 if test "$ac_cv_func_strptime" = "yes"; then
39424 echo "$as_me:$LINENO: checking for strptime declaration" >&5
39425echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
39426if test "${wx_cv_func_strptime_decl+set}" = set; then
39427 echo $ECHO_N "(cached) $ECHO_C" >&6
39428else
39429
39430
39431
39432 ac_ext=cc
39433ac_cpp='$CXXCPP $CPPFLAGS'
39434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39437
39438 cat >conftest.$ac_ext <<_ACEOF
39439/* confdefs.h. */
39440_ACEOF
39441cat confdefs.h >>conftest.$ac_ext
39442cat >>conftest.$ac_ext <<_ACEOF
39443/* end confdefs.h. */
39444
39445 #include <time.h>
39446
39447int
39448main ()
39449{
39450
39451 struct tm t;
39452 strptime("foo", "bar", &t);
39453
39454 ;
39455 return 0;
39456}
39457_ACEOF
39458rm -f conftest.$ac_objext
39459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39460 (eval $ac_compile) 2>conftest.er1
39461 ac_status=$?
39462 grep -v '^ *+' conftest.er1 >conftest.err
39463 rm -f conftest.er1
39464 cat conftest.err >&5
39465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39466 (exit $ac_status); } &&
39467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39469 (eval $ac_try) 2>&5
39470 ac_status=$?
39471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39472 (exit $ac_status); }; } &&
39473 { ac_try='test -s conftest.$ac_objext'
39474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39475 (eval $ac_try) 2>&5
39476 ac_status=$?
39477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39478 (exit $ac_status); }; }; then
39479 wx_cv_func_strptime_decl=yes
39480else
39481 echo "$as_me: failed program was:" >&5
39482sed 's/^/| /' conftest.$ac_ext >&5
39483
39484wx_cv_func_strptime_decl=no
39485
39486fi
39487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39488 ac_ext=c
39489ac_cpp='$CPP $CPPFLAGS'
39490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39492ac_compiler_gnu=$ac_cv_c_compiler_gnu
39493
39494
39495
39496fi
39497echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
39498echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
39499 fi
39500 if test "$wx_cv_func_strptime_decl" = "yes"; then
39501 cat >>confdefs.h <<\_ACEOF
39502#define HAVE_STRPTIME_DECL 1
39503_ACEOF
39504
39505 fi
a848cd7e
SC
39506
39507 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
39508echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
39509if test "${wx_cv_var_timezone+set}" = set; then
39510 echo $ECHO_N "(cached) $ECHO_C" >&6
39511else
39512
39513 cat >conftest.$ac_ext <<_ACEOF
39514/* confdefs.h. */
39515_ACEOF
39516cat confdefs.h >>conftest.$ac_ext
39517cat >>conftest.$ac_ext <<_ACEOF
39518/* end confdefs.h. */
39519
39520 #include <time.h>
39521
39522int
39523main ()
39524{
39525
39526 int tz;
39527 tz = timezone;
39528
39529 ;
39530 return 0;
39531}
39532_ACEOF
39533rm -f conftest.$ac_objext
39534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39535 (eval $ac_compile) 2>conftest.er1
a848cd7e 39536 ac_status=$?
ac1cb8d3
VS
39537 grep -v '^ *+' conftest.er1 >conftest.err
39538 rm -f conftest.er1
39539 cat conftest.err >&5
a848cd7e
SC
39540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541 (exit $ac_status); } &&
6ebeb4c7 39542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39544 (eval $ac_try) 2>&5
39545 ac_status=$?
39546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547 (exit $ac_status); }; } &&
39548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39550 (eval $ac_try) 2>&5
39551 ac_status=$?
39552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39553 (exit $ac_status); }; }; then
39554
39555 wx_cv_var_timezone=timezone
39556
39557else
39558 echo "$as_me: failed program was:" >&5
39559sed 's/^/| /' conftest.$ac_ext >&5
39560
39561
39562 cat >conftest.$ac_ext <<_ACEOF
39563/* confdefs.h. */
39564_ACEOF
39565cat confdefs.h >>conftest.$ac_ext
39566cat >>conftest.$ac_ext <<_ACEOF
39567/* end confdefs.h. */
39568
39569 #include <time.h>
39570
39571int
39572main ()
39573{
39574
39575 int tz;
39576 tz = _timezone;
39577
39578 ;
39579 return 0;
39580}
39581_ACEOF
39582rm -f conftest.$ac_objext
39583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39584 (eval $ac_compile) 2>conftest.er1
a848cd7e 39585 ac_status=$?
ac1cb8d3
VS
39586 grep -v '^ *+' conftest.er1 >conftest.err
39587 rm -f conftest.er1
39588 cat conftest.err >&5
a848cd7e
SC
39589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590 (exit $ac_status); } &&
6ebeb4c7 39591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39593 (eval $ac_try) 2>&5
39594 ac_status=$?
39595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39596 (exit $ac_status); }; } &&
39597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39599 (eval $ac_try) 2>&5
39600 ac_status=$?
39601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39602 (exit $ac_status); }; }; then
39603
39604 wx_cv_var_timezone=_timezone
39605
39606else
39607 echo "$as_me: failed program was:" >&5
39608sed 's/^/| /' conftest.$ac_ext >&5
39609
39610
39611 cat >conftest.$ac_ext <<_ACEOF
39612/* confdefs.h. */
39613_ACEOF
39614cat confdefs.h >>conftest.$ac_ext
39615cat >>conftest.$ac_ext <<_ACEOF
39616/* end confdefs.h. */
39617
39618 #include <time.h>
39619
39620int
39621main ()
39622{
39623
39624 int tz;
39625 tz = __timezone;
39626
39627 ;
39628 return 0;
39629}
39630_ACEOF
39631rm -f conftest.$ac_objext
39632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39633 (eval $ac_compile) 2>conftest.er1
a848cd7e 39634 ac_status=$?
ac1cb8d3
VS
39635 grep -v '^ *+' conftest.er1 >conftest.err
39636 rm -f conftest.er1
39637 cat conftest.err >&5
a848cd7e
SC
39638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639 (exit $ac_status); } &&
6ebeb4c7 39640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39642 (eval $ac_try) 2>&5
39643 ac_status=$?
39644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39645 (exit $ac_status); }; } &&
39646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39648 (eval $ac_try) 2>&5
39649 ac_status=$?
39650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39651 (exit $ac_status); }; }; then
39652
39653 wx_cv_var_timezone=__timezone
39654
39655else
39656 echo "$as_me: failed program was:" >&5
39657sed 's/^/| /' conftest.$ac_ext >&5
39658
39659
39660 if test "$USE_DOS" = 0 ; then
39661 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39662echo "$as_me: WARNING: no timezone variable" >&2;}
39663 fi
39664
39665
39666fi
ac1cb8d3 39667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39668
39669
39670fi
ac1cb8d3 39671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39672
39673
39674fi
ac1cb8d3 39675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39676
39677
39678fi
39679echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39680echo "${ECHO_T}$wx_cv_var_timezone" >&6
39681
39682 if test "x$wx_cv_var_timezone" != x ; then
39683 cat >>confdefs.h <<_ACEOF
39684#define WX_TIMEZONE $wx_cv_var_timezone
39685_ACEOF
39686
39687 fi
39688
39689
39690for ac_func in localtime
39691do
39692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39693echo "$as_me:$LINENO: checking for $ac_func" >&5
39694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39695if eval "test \"\${$as_ac_var+set}\" = set"; then
39696 echo $ECHO_N "(cached) $ECHO_C" >&6
39697else
39698 cat >conftest.$ac_ext <<_ACEOF
39699/* confdefs.h. */
39700_ACEOF
39701cat confdefs.h >>conftest.$ac_ext
39702cat >>conftest.$ac_ext <<_ACEOF
39703/* end confdefs.h. */
ac1cb8d3
VS
39704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39706#define $ac_func innocuous_$ac_func
39707
a848cd7e
SC
39708/* System header to define __stub macros and hopefully few prototypes,
39709 which can conflict with char $ac_func (); below.
39710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39711 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39712
a848cd7e
SC
39713#ifdef __STDC__
39714# include <limits.h>
39715#else
39716# include <assert.h>
39717#endif
ac1cb8d3
VS
39718
39719#undef $ac_func
39720
a848cd7e
SC
39721/* Override any gcc2 internal prototype to avoid an error. */
39722#ifdef __cplusplus
39723extern "C"
39724{
39725#endif
39726/* We use char because int might match the return type of a gcc2
39727 builtin and then its argument prototype would still apply. */
39728char $ac_func ();
39729/* The GNU C library defines this for functions which it implements
39730 to always fail with ENOSYS. Some functions are actually named
39731 something starting with __ and the normal name is an alias. */
39732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39733choke me
39734#else
39735char (*f) () = $ac_func;
39736#endif
39737#ifdef __cplusplus
39738}
39739#endif
39740
39741int
39742main ()
39743{
39744return f != $ac_func;
39745 ;
39746 return 0;
39747}
39748_ACEOF
39749rm -f conftest.$ac_objext conftest$ac_exeext
39750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39751 (eval $ac_link) 2>conftest.er1
a848cd7e 39752 ac_status=$?
ac1cb8d3
VS
39753 grep -v '^ *+' conftest.er1 >conftest.err
39754 rm -f conftest.er1
39755 cat conftest.err >&5
a848cd7e
SC
39756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39757 (exit $ac_status); } &&
6ebeb4c7 39758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39760 (eval $ac_try) 2>&5
39761 ac_status=$?
39762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763 (exit $ac_status); }; } &&
39764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39766 (eval $ac_try) 2>&5
39767 ac_status=$?
39768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769 (exit $ac_status); }; }; then
39770 eval "$as_ac_var=yes"
39771else
39772 echo "$as_me: failed program was:" >&5
39773sed 's/^/| /' conftest.$ac_ext >&5
39774
39775eval "$as_ac_var=no"
39776fi
ac1cb8d3
VS
39777rm -f conftest.err conftest.$ac_objext \
39778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39779fi
39780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39782if test `eval echo '${'$as_ac_var'}'` = yes; then
39783 cat >>confdefs.h <<_ACEOF
39784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39785_ACEOF
39786
39787fi
39788done
39789
39790
39791 if test "$ac_cv_func_localtime" = "yes"; then
39792 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
39793echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
39794if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
39795 echo $ECHO_N "(cached) $ECHO_C" >&6
39796else
39797
39798 cat >conftest.$ac_ext <<_ACEOF
39799/* confdefs.h. */
39800_ACEOF
39801cat confdefs.h >>conftest.$ac_ext
39802cat >>conftest.$ac_ext <<_ACEOF
39803/* end confdefs.h. */
39804
39805 #include <time.h>
39806
39807int
39808main ()
39809{
39810
39811 struct tm tm;
39812 tm.tm_gmtoff++;
39813
39814 ;
39815 return 0;
39816}
39817_ACEOF
39818rm -f conftest.$ac_objext
39819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39820 (eval $ac_compile) 2>conftest.er1
a848cd7e 39821 ac_status=$?
ac1cb8d3
VS
39822 grep -v '^ *+' conftest.er1 >conftest.err
39823 rm -f conftest.er1
39824 cat conftest.err >&5
a848cd7e
SC
39825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39826 (exit $ac_status); } &&
6ebeb4c7 39827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39829 (eval $ac_try) 2>&5
39830 ac_status=$?
39831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832 (exit $ac_status); }; } &&
39833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39835 (eval $ac_try) 2>&5
39836 ac_status=$?
39837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838 (exit $ac_status); }; }; then
39839
39840 wx_cv_struct_tm_has_gmtoff=yes
39841
39842else
39843 echo "$as_me: failed program was:" >&5
39844sed 's/^/| /' conftest.$ac_ext >&5
39845
39846wx_cv_struct_tm_has_gmtoff=no
39847
39848fi
ac1cb8d3 39849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39850
39851fi
39852echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
39853echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
39854 fi
39855
39856 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
39857 cat >>confdefs.h <<\_ACEOF
39858#define WX_GMTOFF_IN_TM 1
39859_ACEOF
39860
39861 fi
39862
39863
39864
39865for ac_func in gettimeofday ftime
39866do
39867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39868echo "$as_me:$LINENO: checking for $ac_func" >&5
39869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39870if eval "test \"\${$as_ac_var+set}\" = set"; then
39871 echo $ECHO_N "(cached) $ECHO_C" >&6
39872else
39873 cat >conftest.$ac_ext <<_ACEOF
39874/* confdefs.h. */
39875_ACEOF
39876cat confdefs.h >>conftest.$ac_ext
39877cat >>conftest.$ac_ext <<_ACEOF
39878/* end confdefs.h. */
ac1cb8d3
VS
39879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39881#define $ac_func innocuous_$ac_func
39882
a848cd7e
SC
39883/* System header to define __stub macros and hopefully few prototypes,
39884 which can conflict with char $ac_func (); below.
39885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39886 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39887
a848cd7e
SC
39888#ifdef __STDC__
39889# include <limits.h>
39890#else
39891# include <assert.h>
39892#endif
ac1cb8d3
VS
39893
39894#undef $ac_func
39895
a848cd7e
SC
39896/* Override any gcc2 internal prototype to avoid an error. */
39897#ifdef __cplusplus
39898extern "C"
39899{
39900#endif
39901/* We use char because int might match the return type of a gcc2
39902 builtin and then its argument prototype would still apply. */
39903char $ac_func ();
39904/* The GNU C library defines this for functions which it implements
39905 to always fail with ENOSYS. Some functions are actually named
39906 something starting with __ and the normal name is an alias. */
39907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39908choke me
39909#else
39910char (*f) () = $ac_func;
39911#endif
39912#ifdef __cplusplus
39913}
39914#endif
39915
39916int
39917main ()
39918{
39919return f != $ac_func;
39920 ;
39921 return 0;
39922}
39923_ACEOF
39924rm -f conftest.$ac_objext conftest$ac_exeext
39925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39926 (eval $ac_link) 2>conftest.er1
a848cd7e 39927 ac_status=$?
ac1cb8d3
VS
39928 grep -v '^ *+' conftest.er1 >conftest.err
39929 rm -f conftest.er1
39930 cat conftest.err >&5
a848cd7e
SC
39931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39932 (exit $ac_status); } &&
6ebeb4c7 39933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39935 (eval $ac_try) 2>&5
39936 ac_status=$?
39937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938 (exit $ac_status); }; } &&
39939 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39941 (eval $ac_try) 2>&5
39942 ac_status=$?
39943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944 (exit $ac_status); }; }; then
39945 eval "$as_ac_var=yes"
39946else
39947 echo "$as_me: failed program was:" >&5
39948sed 's/^/| /' conftest.$ac_ext >&5
39949
39950eval "$as_ac_var=no"
39951fi
ac1cb8d3
VS
39952rm -f conftest.err conftest.$ac_objext \
39953 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39954fi
39955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39956echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39957if test `eval echo '${'$as_ac_var'}'` = yes; then
39958 cat >>confdefs.h <<_ACEOF
39959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39960_ACEOF
39961 break
39962fi
39963done
39964
39965
39966 if test "$ac_cv_func_gettimeofday" = "yes"; then
39967 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
39968echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
39969if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
39970 echo $ECHO_N "(cached) $ECHO_C" >&6
39971else
39972
39973
39974
39975 ac_ext=cc
39976ac_cpp='$CXXCPP $CPPFLAGS'
39977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39980
39981
39982 cat >conftest.$ac_ext <<_ACEOF
39983/* confdefs.h. */
39984_ACEOF
39985cat confdefs.h >>conftest.$ac_ext
39986cat >>conftest.$ac_ext <<_ACEOF
39987/* end confdefs.h. */
39988
39989 #include <sys/time.h>
39990 #include <unistd.h>
39991
39992int
39993main ()
39994{
39995
39996 struct timeval tv;
39997 gettimeofday(&tv, NULL);
39998
39999 ;
40000 return 0;
40001}
40002_ACEOF
40003rm -f conftest.$ac_objext
40004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40005 (eval $ac_compile) 2>conftest.er1
a848cd7e 40006 ac_status=$?
ac1cb8d3
VS
40007 grep -v '^ *+' conftest.er1 >conftest.err
40008 rm -f conftest.er1
40009 cat conftest.err >&5
a848cd7e
SC
40010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40011 (exit $ac_status); } &&
6ebeb4c7 40012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40014 (eval $ac_try) 2>&5
40015 ac_status=$?
40016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017 (exit $ac_status); }; } &&
40018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40020 (eval $ac_try) 2>&5
40021 ac_status=$?
40022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40023 (exit $ac_status); }; }; then
40024 wx_cv_func_gettimeofday_has_2_args=yes
40025else
40026 echo "$as_me: failed program was:" >&5
40027sed 's/^/| /' conftest.$ac_ext >&5
40028
40029cat >conftest.$ac_ext <<_ACEOF
40030/* confdefs.h. */
40031_ACEOF
40032cat confdefs.h >>conftest.$ac_ext
40033cat >>conftest.$ac_ext <<_ACEOF
40034/* end confdefs.h. */
40035
40036 #include <sys/time.h>
40037 #include <unistd.h>
40038
40039int
40040main ()
40041{
40042
40043 struct timeval tv;
40044 gettimeofday(&tv);
40045
40046 ;
40047 return 0;
40048}
40049_ACEOF
40050rm -f conftest.$ac_objext
40051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40052 (eval $ac_compile) 2>conftest.er1
a848cd7e 40053 ac_status=$?
ac1cb8d3
VS
40054 grep -v '^ *+' conftest.er1 >conftest.err
40055 rm -f conftest.er1
40056 cat conftest.err >&5
a848cd7e
SC
40057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058 (exit $ac_status); } &&
6ebeb4c7 40059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40061 (eval $ac_try) 2>&5
40062 ac_status=$?
40063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40064 (exit $ac_status); }; } &&
40065 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40067 (eval $ac_try) 2>&5
40068 ac_status=$?
40069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40070 (exit $ac_status); }; }; then
40071 wx_cv_func_gettimeofday_has_2_args=no
40072else
40073 echo "$as_me: failed program was:" >&5
40074sed 's/^/| /' conftest.$ac_ext >&5
40075
40076
40077 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
40078echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
40079 wx_cv_func_gettimeofday_has_2_args=unknown
40080
40081
40082fi
ac1cb8d3 40083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40084
40085fi
ac1cb8d3 40086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40087 ac_ext=c
40088ac_cpp='$CPP $CPPFLAGS'
40089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40091ac_compiler_gnu=$ac_cv_c_compiler_gnu
40092
40093
40094fi
40095echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
40096echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
40097
40098 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
40099 cat >>confdefs.h <<\_ACEOF
40100#define WX_GETTIMEOFDAY_NO_TZ 1
40101_ACEOF
40102
40103 fi
40104 fi
40105
40106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
40107fi
40108
40109
40110if test "$wxUSE_SOCKETS" = "yes"; then
40111 if test "$wxUSE_MGL" = "1"; then
40112 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
40113echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
40114 wxUSE_SOCKETS="no"
40115 fi
40116fi
40117
40118if test "$wxUSE_SOCKETS" = "yes"; then
40119 if test "$TOOLKIT" != "MSW"; then
40120 echo "$as_me:$LINENO: checking for socket" >&5
40121echo $ECHO_N "checking for socket... $ECHO_C" >&6
40122if test "${ac_cv_func_socket+set}" = set; then
40123 echo $ECHO_N "(cached) $ECHO_C" >&6
40124else
40125 cat >conftest.$ac_ext <<_ACEOF
40126/* confdefs.h. */
40127_ACEOF
40128cat confdefs.h >>conftest.$ac_ext
40129cat >>conftest.$ac_ext <<_ACEOF
40130/* end confdefs.h. */
ac1cb8d3
VS
40131/* Define socket to an innocuous variant, in case <limits.h> declares socket.
40132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40133#define socket innocuous_socket
40134
a848cd7e
SC
40135/* System header to define __stub macros and hopefully few prototypes,
40136 which can conflict with char socket (); below.
40137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40138 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40139
a848cd7e
SC
40140#ifdef __STDC__
40141# include <limits.h>
40142#else
40143# include <assert.h>
40144#endif
ac1cb8d3
VS
40145
40146#undef socket
40147
a848cd7e
SC
40148/* Override any gcc2 internal prototype to avoid an error. */
40149#ifdef __cplusplus
40150extern "C"
40151{
40152#endif
40153/* We use char because int might match the return type of a gcc2
40154 builtin and then its argument prototype would still apply. */
40155char socket ();
40156/* The GNU C library defines this for functions which it implements
40157 to always fail with ENOSYS. Some functions are actually named
40158 something starting with __ and the normal name is an alias. */
40159#if defined (__stub_socket) || defined (__stub___socket)
40160choke me
40161#else
40162char (*f) () = socket;
40163#endif
40164#ifdef __cplusplus
40165}
40166#endif
40167
40168int
40169main ()
40170{
40171return f != socket;
40172 ;
40173 return 0;
40174}
40175_ACEOF
40176rm -f conftest.$ac_objext conftest$ac_exeext
40177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40178 (eval $ac_link) 2>conftest.er1
a848cd7e 40179 ac_status=$?
ac1cb8d3
VS
40180 grep -v '^ *+' conftest.er1 >conftest.err
40181 rm -f conftest.er1
40182 cat conftest.err >&5
a848cd7e
SC
40183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184 (exit $ac_status); } &&
6ebeb4c7 40185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40187 (eval $ac_try) 2>&5
40188 ac_status=$?
40189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40190 (exit $ac_status); }; } &&
40191 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40193 (eval $ac_try) 2>&5
40194 ac_status=$?
40195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40196 (exit $ac_status); }; }; then
40197 ac_cv_func_socket=yes
40198else
40199 echo "$as_me: failed program was:" >&5
40200sed 's/^/| /' conftest.$ac_ext >&5
40201
40202ac_cv_func_socket=no
40203fi
ac1cb8d3
VS
40204rm -f conftest.err conftest.$ac_objext \
40205 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40206fi
40207echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
40208echo "${ECHO_T}$ac_cv_func_socket" >&6
40209if test $ac_cv_func_socket = yes; then
40210 :
40211else
40212
40213 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
40214echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
40215if test "${ac_cv_lib_socket_socket+set}" = set; then
40216 echo $ECHO_N "(cached) $ECHO_C" >&6
40217else
40218 ac_check_lib_save_LIBS=$LIBS
40219LIBS="-lsocket $LIBS"
40220cat >conftest.$ac_ext <<_ACEOF
40221/* confdefs.h. */
40222_ACEOF
40223cat confdefs.h >>conftest.$ac_ext
40224cat >>conftest.$ac_ext <<_ACEOF
40225/* end confdefs.h. */
40226
40227/* Override any gcc2 internal prototype to avoid an error. */
40228#ifdef __cplusplus
40229extern "C"
40230#endif
40231/* We use char because int might match the return type of a gcc2
40232 builtin and then its argument prototype would still apply. */
40233char socket ();
40234int
40235main ()
40236{
40237socket ();
40238 ;
40239 return 0;
40240}
40241_ACEOF
40242rm -f conftest.$ac_objext conftest$ac_exeext
40243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40244 (eval $ac_link) 2>conftest.er1
a848cd7e 40245 ac_status=$?
ac1cb8d3
VS
40246 grep -v '^ *+' conftest.er1 >conftest.err
40247 rm -f conftest.er1
40248 cat conftest.err >&5
a848cd7e
SC
40249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40250 (exit $ac_status); } &&
6ebeb4c7 40251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40253 (eval $ac_try) 2>&5
40254 ac_status=$?
40255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40256 (exit $ac_status); }; } &&
40257 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40259 (eval $ac_try) 2>&5
40260 ac_status=$?
40261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40262 (exit $ac_status); }; }; then
40263 ac_cv_lib_socket_socket=yes
40264else
40265 echo "$as_me: failed program was:" >&5
40266sed 's/^/| /' conftest.$ac_ext >&5
40267
40268ac_cv_lib_socket_socket=no
40269fi
ac1cb8d3
VS
40270rm -f conftest.err conftest.$ac_objext \
40271 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40272LIBS=$ac_check_lib_save_LIBS
40273fi
40274echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
40275echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
40276if test $ac_cv_lib_socket_socket = yes; then
40277 if test "$INET_LINK" != " -lsocket"; then
40278 INET_LINK="$INET_LINK -lsocket"
40279 fi
40280else
40281
40282 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
40283echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
40284 wxUSE_SOCKETS=no
40285
40286
40287fi
40288
40289
40290
40291fi
40292
40293 fi
40294fi
40295
40296if test "$wxUSE_SOCKETS" = "yes" ; then
40297 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
40298 ac_ext=cc
40299ac_cpp='$CXXCPP $CPPFLAGS'
40300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40303
40304 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
40305echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
40306if test "${wx_cv_type_getsockname3+set}" = set; then
40307 echo $ECHO_N "(cached) $ECHO_C" >&6
40308else
40309
40310 cat >conftest.$ac_ext <<_ACEOF
40311/* confdefs.h. */
40312_ACEOF
40313cat confdefs.h >>conftest.$ac_ext
40314cat >>conftest.$ac_ext <<_ACEOF
40315/* end confdefs.h. */
40316
40317 #include <sys/types.h>
40318 #include <sys/socket.h>
40319
40320int
40321main ()
40322{
40323
40324 socklen_t len;
40325 getsockname(0, 0, &len);
40326
40327 ;
40328 return 0;
40329}
40330_ACEOF
40331rm -f conftest.$ac_objext
40332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40333 (eval $ac_compile) 2>conftest.er1
a848cd7e 40334 ac_status=$?
ac1cb8d3
VS
40335 grep -v '^ *+' conftest.er1 >conftest.err
40336 rm -f conftest.er1
40337 cat conftest.err >&5
a848cd7e
SC
40338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40339 (exit $ac_status); } &&
6ebeb4c7 40340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40342 (eval $ac_try) 2>&5
40343 ac_status=$?
40344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40345 (exit $ac_status); }; } &&
40346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40348 (eval $ac_try) 2>&5
40349 ac_status=$?
40350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40351 (exit $ac_status); }; }; then
40352 wx_cv_type_getsockname3=socklen_t
40353else
40354 echo "$as_me: failed program was:" >&5
40355sed 's/^/| /' conftest.$ac_ext >&5
40356
40357
6459a506 40358 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 40359 if test "$GCC" = yes ; then
6459a506 40360 CXXFLAGS="$CXXFLAGS -Werror"
a848cd7e
SC
40361 fi
40362
40363 cat >conftest.$ac_ext <<_ACEOF
40364/* confdefs.h. */
40365_ACEOF
40366cat confdefs.h >>conftest.$ac_ext
40367cat >>conftest.$ac_ext <<_ACEOF
40368/* end confdefs.h. */
40369
40370 #include <sys/types.h>
40371 #include <sys/socket.h>
40372
40373int
40374main ()
40375{
40376
40377 size_t len;
40378 getsockname(0, 0, &len);
40379
40380 ;
40381 return 0;
40382}
40383_ACEOF
40384rm -f conftest.$ac_objext
40385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40386 (eval $ac_compile) 2>conftest.er1
a848cd7e 40387 ac_status=$?
ac1cb8d3
VS
40388 grep -v '^ *+' conftest.er1 >conftest.err
40389 rm -f conftest.er1
40390 cat conftest.err >&5
a848cd7e
SC
40391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40392 (exit $ac_status); } &&
6ebeb4c7 40393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40395 (eval $ac_try) 2>&5
40396 ac_status=$?
40397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40398 (exit $ac_status); }; } &&
40399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40401 (eval $ac_try) 2>&5
40402 ac_status=$?
40403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404 (exit $ac_status); }; }; then
40405 wx_cv_type_getsockname3=size_t
40406else
40407 echo "$as_me: failed program was:" >&5
40408sed 's/^/| /' conftest.$ac_ext >&5
40409
40410cat >conftest.$ac_ext <<_ACEOF
40411/* confdefs.h. */
40412_ACEOF
40413cat confdefs.h >>conftest.$ac_ext
40414cat >>conftest.$ac_ext <<_ACEOF
40415/* end confdefs.h. */
40416
40417 #include <sys/types.h>
40418 #include <sys/socket.h>
40419
40420int
40421main ()
40422{
40423
40424 int len;
40425 getsockname(0, 0, &len);
40426
40427 ;
40428 return 0;
40429}
40430_ACEOF
40431rm -f conftest.$ac_objext
40432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40433 (eval $ac_compile) 2>conftest.er1
a848cd7e 40434 ac_status=$?
ac1cb8d3
VS
40435 grep -v '^ *+' conftest.er1 >conftest.err
40436 rm -f conftest.er1
40437 cat conftest.err >&5
a848cd7e
SC
40438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40439 (exit $ac_status); } &&
6ebeb4c7 40440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40442 (eval $ac_try) 2>&5
40443 ac_status=$?
40444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40445 (exit $ac_status); }; } &&
40446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40448 (eval $ac_try) 2>&5
40449 ac_status=$?
40450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451 (exit $ac_status); }; }; then
40452 wx_cv_type_getsockname3=int
40453else
40454 echo "$as_me: failed program was:" >&5
40455sed 's/^/| /' conftest.$ac_ext >&5
40456
40457wx_cv_type_getsockname3=unknown
40458
40459fi
ac1cb8d3 40460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40461
40462fi
ac1cb8d3 40463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40464
6459a506 40465 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40466
40467
40468fi
ac1cb8d3 40469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40470
40471fi
40472echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
40473echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
40474
40475 if test "$wx_cv_type_getsockname3" = "unknown"; then
40476 wxUSE_SOCKETS=no
40477 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40478echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40479 else
40480 cat >>confdefs.h <<_ACEOF
9e03e02d 40481#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
40482_ACEOF
40483
40484 fi
40485 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
40486echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
40487if test "${wx_cv_type_getsockopt5+set}" = set; then
40488 echo $ECHO_N "(cached) $ECHO_C" >&6
40489else
40490
40491 cat >conftest.$ac_ext <<_ACEOF
40492/* confdefs.h. */
40493_ACEOF
40494cat confdefs.h >>conftest.$ac_ext
40495cat >>conftest.$ac_ext <<_ACEOF
40496/* end confdefs.h. */
40497
40498 #include <sys/types.h>
40499 #include <sys/socket.h>
40500
40501int
40502main ()
40503{
40504
40505 socklen_t len;
40506 getsockopt(0, 0, 0, 0, &len);
40507
40508 ;
40509 return 0;
40510}
40511_ACEOF
40512rm -f conftest.$ac_objext
40513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40514 (eval $ac_compile) 2>conftest.er1
40515 ac_status=$?
40516 grep -v '^ *+' conftest.er1 >conftest.err
40517 rm -f conftest.er1
40518 cat conftest.err >&5
40519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40520 (exit $ac_status); } &&
6ebeb4c7 40521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40523 (eval $ac_try) 2>&5
40524 ac_status=$?
40525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526 (exit $ac_status); }; } &&
40527 { ac_try='test -s conftest.$ac_objext'
40528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40529 (eval $ac_try) 2>&5
40530 ac_status=$?
40531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40532 (exit $ac_status); }; }; then
40533 wx_cv_type_getsockopt5=socklen_t
40534else
40535 echo "$as_me: failed program was:" >&5
40536sed 's/^/| /' conftest.$ac_ext >&5
40537
40538
6459a506 40539 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 40540 if test "$GCC" = yes ; then
6459a506 40541 CXXFLAGS="$CXXFLAGS -Werror"
5b674b9d
DE
40542 fi
40543
40544 cat >conftest.$ac_ext <<_ACEOF
40545/* confdefs.h. */
40546_ACEOF
40547cat confdefs.h >>conftest.$ac_ext
40548cat >>conftest.$ac_ext <<_ACEOF
40549/* end confdefs.h. */
40550
40551 #include <sys/types.h>
40552 #include <sys/socket.h>
40553
40554int
40555main ()
40556{
40557
40558 size_t len;
40559 getsockopt(0, 0, 0, 0, &len);
40560
40561 ;
40562 return 0;
40563}
40564_ACEOF
40565rm -f conftest.$ac_objext
40566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40567 (eval $ac_compile) 2>conftest.er1
40568 ac_status=$?
40569 grep -v '^ *+' conftest.er1 >conftest.err
40570 rm -f conftest.er1
40571 cat conftest.err >&5
40572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40573 (exit $ac_status); } &&
6ebeb4c7 40574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40576 (eval $ac_try) 2>&5
40577 ac_status=$?
40578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40579 (exit $ac_status); }; } &&
40580 { ac_try='test -s conftest.$ac_objext'
40581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40582 (eval $ac_try) 2>&5
40583 ac_status=$?
40584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40585 (exit $ac_status); }; }; then
40586 wx_cv_type_getsockopt5=size_t
40587else
40588 echo "$as_me: failed program was:" >&5
40589sed 's/^/| /' conftest.$ac_ext >&5
40590
40591cat >conftest.$ac_ext <<_ACEOF
40592/* confdefs.h. */
40593_ACEOF
40594cat confdefs.h >>conftest.$ac_ext
40595cat >>conftest.$ac_ext <<_ACEOF
40596/* end confdefs.h. */
40597
40598 #include <sys/types.h>
40599 #include <sys/socket.h>
40600
40601int
40602main ()
40603{
40604
40605 int len;
40606 getsockopt(0, 0, 0, 0, &len);
40607
40608 ;
40609 return 0;
40610}
40611_ACEOF
40612rm -f conftest.$ac_objext
40613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40614 (eval $ac_compile) 2>conftest.er1
40615 ac_status=$?
40616 grep -v '^ *+' conftest.er1 >conftest.err
40617 rm -f conftest.er1
40618 cat conftest.err >&5
40619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40620 (exit $ac_status); } &&
6ebeb4c7 40621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40623 (eval $ac_try) 2>&5
40624 ac_status=$?
40625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40626 (exit $ac_status); }; } &&
40627 { ac_try='test -s conftest.$ac_objext'
40628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40629 (eval $ac_try) 2>&5
40630 ac_status=$?
40631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632 (exit $ac_status); }; }; then
40633 wx_cv_type_getsockopt5=int
40634else
40635 echo "$as_me: failed program was:" >&5
40636sed 's/^/| /' conftest.$ac_ext >&5
40637
40638wx_cv_type_getsockopt5=unknown
40639
40640fi
40641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40642
40643fi
40644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40645
6459a506 40646 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
40647
40648
40649fi
40650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40651
40652fi
40653echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40654echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40655
40656 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40657 wxUSE_SOCKETS=no
40658 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40659echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40660 else
40661 cat >>confdefs.h <<_ACEOF
40662#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
40663_ACEOF
40664
40665 fi
4d4ff94c
VZ
40666 ac_ext=c
40667ac_cpp='$CPP $CPPFLAGS'
40668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40670ac_compiler_gnu=$ac_cv_c_compiler_gnu
40671
a848cd7e
SC
40672 fi
40673fi
40674
40675if test "$wxUSE_SOCKETS" = "yes" ; then
40676 cat >>confdefs.h <<\_ACEOF
40677#define wxUSE_SOCKETS 1
40678_ACEOF
40679
40680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40681fi
40682
40683if test "$wxUSE_PROTOCOL" = "yes"; then
40684 if test "$wxUSE_SOCKETS" != "yes"; then
40685 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40686echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40687 wxUSE_PROTOCOL=no
40688 fi
40689fi
40690
40691if test "$wxUSE_PROTOCOL" = "yes"; then
40692 cat >>confdefs.h <<\_ACEOF
40693#define wxUSE_PROTOCOL 1
40694_ACEOF
40695
40696
40697 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40698 cat >>confdefs.h <<\_ACEOF
40699#define wxUSE_PROTOCOL_HTTP 1
40700_ACEOF
40701
40702 fi
40703 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
40704 cat >>confdefs.h <<\_ACEOF
40705#define wxUSE_PROTOCOL_FTP 1
40706_ACEOF
40707
40708 fi
40709 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
40710 cat >>confdefs.h <<\_ACEOF
40711#define wxUSE_PROTOCOL_FILE 1
40712_ACEOF
40713
40714 fi
40715else
40716 if test "$wxUSE_FS_INET" = "yes"; then
40717 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
40718echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
40719 wxUSE_FS_INET="no"
40720 fi
40721fi
40722
40723if test "$wxUSE_URL" = "yes"; then
40724 if test "$wxUSE_PROTOCOL" != "yes"; then
40725 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
40726echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
40727 wxUSE_URL=no
40728 fi
40729 if test "$wxUSE_URL" = "yes"; then
40730 cat >>confdefs.h <<\_ACEOF
40731#define wxUSE_URL 1
40732_ACEOF
40733
40734 fi
40735fi
40736
40737if test "$wxUSE_FS_INET" = "yes"; then
40738 cat >>confdefs.h <<\_ACEOF
40739#define wxUSE_FS_INET 1
40740_ACEOF
40741
40742fi
40743
40744
ee45c548
MW
40745if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
40746 wxUSE_JOYSTICK=no
40747
40748 if test "$TOOLKIT" = "MSW"; then
40749 wxUSE_JOYSTICK=yes
40750
40751 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
40752 if test "$USE_DARWIN" = 1; then
40753 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
40754echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
40755 ac_ext=cc
40756ac_cpp='$CXXCPP $CPPFLAGS'
40757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40760
40761 cat >conftest.$ac_ext <<_ACEOF
40762/* confdefs.h. */
40763_ACEOF
40764cat confdefs.h >>conftest.$ac_ext
40765cat >>conftest.$ac_ext <<_ACEOF
40766/* end confdefs.h. */
40767 #include <IOKit/hid/IOHIDLib.h>
40768int
40769main ()
40770{
40771 IOHIDQueueInterface *qi = NULL;
40772 IOHIDCallbackFunction cb = NULL;
40773 qi->setEventCallout(NULL, cb, NULL, NULL);
40774 ;
40775 return 0;
40776}
40777_ACEOF
40778rm -f conftest.$ac_objext
40779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40780 (eval $ac_compile) 2>conftest.er1
40781 ac_status=$?
40782 grep -v '^ *+' conftest.er1 >conftest.err
40783 rm -f conftest.er1
40784 cat conftest.err >&5
40785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40786 (exit $ac_status); } &&
6ebeb4c7 40787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
40788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40789 (eval $ac_try) 2>&5
40790 ac_status=$?
40791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40792 (exit $ac_status); }; } &&
40793 { ac_try='test -s conftest.$ac_objext'
40794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40795 (eval $ac_try) 2>&5
40796 ac_status=$?
40797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40798 (exit $ac_status); }; }; then
40799 wxUSE_JOYSTICK=yes
a848cd7e 40800
ee45c548
MW
40801else
40802 echo "$as_me: failed program was:" >&5
40803sed 's/^/| /' conftest.$ac_ext >&5
40804
40805fi
40806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40807 ac_ext=c
40808ac_cpp='$CPP $CPPFLAGS'
40809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40811ac_compiler_gnu=$ac_cv_c_compiler_gnu
40812
40813 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
40814echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
40815 fi
40816
40817 else
a848cd7e
SC
40818
40819for ac_header in linux/joystick.h
40820do
40821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40822if eval "test \"\${$as_ac_Header+set}\" = set"; then
40823 echo "$as_me:$LINENO: checking for $ac_header" >&5
40824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40825if eval "test \"\${$as_ac_Header+set}\" = set"; then
40826 echo $ECHO_N "(cached) $ECHO_C" >&6
40827fi
40828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40830else
40831 # Is the header compilable?
40832echo "$as_me:$LINENO: checking $ac_header usability" >&5
40833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40834cat >conftest.$ac_ext <<_ACEOF
40835/* confdefs.h. */
40836_ACEOF
40837cat confdefs.h >>conftest.$ac_ext
40838cat >>conftest.$ac_ext <<_ACEOF
40839/* end confdefs.h. */
40840$ac_includes_default
40841#include <$ac_header>
40842_ACEOF
40843rm -f conftest.$ac_objext
40844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40845 (eval $ac_compile) 2>conftest.er1
a848cd7e 40846 ac_status=$?
ac1cb8d3
VS
40847 grep -v '^ *+' conftest.er1 >conftest.err
40848 rm -f conftest.er1
40849 cat conftest.err >&5
a848cd7e
SC
40850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40851 (exit $ac_status); } &&
6ebeb4c7 40852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40854 (eval $ac_try) 2>&5
40855 ac_status=$?
40856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857 (exit $ac_status); }; } &&
40858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40860 (eval $ac_try) 2>&5
40861 ac_status=$?
40862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40863 (exit $ac_status); }; }; then
40864 ac_header_compiler=yes
40865else
40866 echo "$as_me: failed program was:" >&5
40867sed 's/^/| /' conftest.$ac_ext >&5
40868
40869ac_header_compiler=no
40870fi
ac1cb8d3 40871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40872echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40873echo "${ECHO_T}$ac_header_compiler" >&6
40874
40875# Is the header present?
40876echo "$as_me:$LINENO: checking $ac_header presence" >&5
40877echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40878cat >conftest.$ac_ext <<_ACEOF
40879/* confdefs.h. */
40880_ACEOF
40881cat confdefs.h >>conftest.$ac_ext
40882cat >>conftest.$ac_ext <<_ACEOF
40883/* end confdefs.h. */
40884#include <$ac_header>
40885_ACEOF
40886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40888 ac_status=$?
40889 grep -v '^ *+' conftest.er1 >conftest.err
40890 rm -f conftest.er1
40891 cat conftest.err >&5
40892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40893 (exit $ac_status); } >/dev/null; then
40894 if test -s conftest.err; then
40895 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 40896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
40897 else
40898 ac_cpp_err=
40899 fi
40900else
40901 ac_cpp_err=yes
40902fi
40903if test -z "$ac_cpp_err"; then
40904 ac_header_preproc=yes
40905else
40906 echo "$as_me: failed program was:" >&5
40907sed 's/^/| /' conftest.$ac_ext >&5
40908
40909 ac_header_preproc=no
40910fi
40911rm -f conftest.err conftest.$ac_ext
40912echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40913echo "${ECHO_T}$ac_header_preproc" >&6
40914
40915# So? What about this header?
ac1cb8d3
VS
40916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40917 yes:no: )
a848cd7e
SC
40918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40922 ac_header_preproc=yes
a848cd7e 40923 ;;
ac1cb8d3 40924 no:yes:* )
a848cd7e
SC
40925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40937 (
40938 cat <<\_ASBOX
ac1cb8d3
VS
40939## ----------------------------------------- ##
40940## Report this to wx-dev@lists.wxwidgets.org ##
40941## ----------------------------------------- ##
a848cd7e
SC
40942_ASBOX
40943 ) |
40944 sed "s/^/$as_me: WARNING: /" >&2
40945 ;;
40946esac
40947echo "$as_me:$LINENO: checking for $ac_header" >&5
40948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40949if eval "test \"\${$as_ac_Header+set}\" = set"; then
40950 echo $ECHO_N "(cached) $ECHO_C" >&6
40951else
ac1cb8d3 40952 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40953fi
40954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40956
40957fi
40958if test `eval echo '${'$as_ac_Header'}'` = yes; then
40959 cat >>confdefs.h <<_ACEOF
40960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40961_ACEOF
ee45c548 40962 wxUSE_JOYSTICK=yes
a848cd7e
SC
40963fi
40964
40965done
40966
ee45c548 40967 fi
4cb1d3da 40968
ee45c548
MW
40969 if test "$wxUSE_JOYSTICK" = "yes"; then
40970 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40971#define wxUSE_JOYSTICK 1
40972_ACEOF
40973
ee45c548
MW
40974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
40975 else
40976 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
40977echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
40978 fi
40979fi
40980
40981
40982
40983if test "$wxUSE_FONTMAP" = "yes" ; then
40984 cat >>confdefs.h <<\_ACEOF
40985#define wxUSE_FONTMAP 1
40986_ACEOF
40987
40988fi
40989
40990if test "$wxUSE_UNICODE" = "yes" ; then
40991 cat >>confdefs.h <<\_ACEOF
40992#define wxUSE_UNICODE 1
40993_ACEOF
40994
40995
40996 if test "$USE_WIN32" != 1; then
40997 wxUSE_UNICODE_MSLU=no
40998 fi
40999
41000 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
41001 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
41002echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
41003if test "${ac_cv_lib_unicows_main+set}" = set; then
41004 echo $ECHO_N "(cached) $ECHO_C" >&6
41005else
41006 ac_check_lib_save_LIBS=$LIBS
41007LIBS="-lunicows $LIBS"
41008cat >conftest.$ac_ext <<_ACEOF
41009/* confdefs.h. */
41010_ACEOF
41011cat confdefs.h >>conftest.$ac_ext
41012cat >>conftest.$ac_ext <<_ACEOF
41013/* end confdefs.h. */
41014
41015
41016int
41017main ()
41018{
41019main ();
41020 ;
41021 return 0;
41022}
41023_ACEOF
41024rm -f conftest.$ac_objext conftest$ac_exeext
41025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41026 (eval $ac_link) 2>conftest.er1
a848cd7e 41027 ac_status=$?
ac1cb8d3
VS
41028 grep -v '^ *+' conftest.er1 >conftest.err
41029 rm -f conftest.er1
41030 cat conftest.err >&5
a848cd7e
SC
41031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032 (exit $ac_status); } &&
6ebeb4c7 41033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41035 (eval $ac_try) 2>&5
41036 ac_status=$?
41037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41038 (exit $ac_status); }; } &&
41039 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41041 (eval $ac_try) 2>&5
41042 ac_status=$?
41043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41044 (exit $ac_status); }; }; then
41045 ac_cv_lib_unicows_main=yes
41046else
41047 echo "$as_me: failed program was:" >&5
41048sed 's/^/| /' conftest.$ac_ext >&5
41049
41050ac_cv_lib_unicows_main=no
41051fi
ac1cb8d3
VS
41052rm -f conftest.err conftest.$ac_objext \
41053 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41054LIBS=$ac_check_lib_save_LIBS
41055fi
41056echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
41057echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
41058if test $ac_cv_lib_unicows_main = yes; then
41059
41060 cat >>confdefs.h <<\_ACEOF
41061#define wxUSE_UNICODE_MSLU 1
41062_ACEOF
41063
41064
41065else
41066
41067 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41068 Applications will only run on Windows NT/2000/XP!" >&5
41069echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41070 Applications will only run on Windows NT/2000/XP!" >&2;}
41071 wxUSE_UNICODE_MSLU=no
41072
41073fi
41074
41075 fi
41076fi
41077
41078if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
41079 cat >>confdefs.h <<\_ACEOF
41080#define wxUSE_EXPERIMENTAL_PRINTF 1
41081_ACEOF
41082
41083fi
41084
41085
41086if test "$wxUSE_POSTSCRIPT" = "yes" ; then
41087 cat >>confdefs.h <<\_ACEOF
41088#define wxUSE_POSTSCRIPT 1
41089_ACEOF
41090
41091fi
41092
41093cat >>confdefs.h <<\_ACEOF
41094#define wxUSE_AFM_FOR_POSTSCRIPT 1
41095_ACEOF
41096
41097
41098cat >>confdefs.h <<\_ACEOF
41099#define wxUSE_NORMALIZED_PS_FONTS 1
41100_ACEOF
41101
41102
41103
41104if test "$wxUSE_CONSTRAINTS" = "yes"; then
41105 cat >>confdefs.h <<\_ACEOF
41106#define wxUSE_CONSTRAINTS 1
41107_ACEOF
41108
41109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
41110fi
41111
8a7b1113
VZ
41112if test "$wxUSE_MDI" = "yes"; then
41113 cat >>confdefs.h <<\_ACEOF
41114#define wxUSE_MDI 1
41115_ACEOF
41116
41117
41118 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41119 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41120#define wxUSE_MDI_ARCHITECTURE 1
41121_ACEOF
41122
8a7b1113
VZ
41123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
41124 fi
a848cd7e
SC
41125fi
41126
41127if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
41128 cat >>confdefs.h <<\_ACEOF
41129#define wxUSE_DOC_VIEW_ARCHITECTURE 1
41130_ACEOF
41131
41132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
41133 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
41135 fi
41136fi
41137
41138if test "$wxUSE_HELP" = "yes"; then
41139 cat >>confdefs.h <<\_ACEOF
41140#define wxUSE_HELP 1
41141_ACEOF
41142
41143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
41144
41145 if test "$wxUSE_MSW" = 1; then
41146 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
41147 cat >>confdefs.h <<\_ACEOF
41148#define wxUSE_MS_HTML_HELP 1
41149_ACEOF
41150
41151 fi
41152 fi
41153
41154 if test "$wxUSE_WXHTML_HELP" = "yes"; then
41155 if test "$wxUSE_HTML" = "yes"; then
41156 cat >>confdefs.h <<\_ACEOF
41157#define wxUSE_WXHTML_HELP 1
41158_ACEOF
41159
41160 else
41161 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
41162echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
41163 wxUSE_WXHTML_HELP=no
41164 fi
41165 fi
41166fi
41167
41168if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41169 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41170 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
41171echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
41172 else
41173 cat >>confdefs.h <<\_ACEOF
41174#define wxUSE_PRINTING_ARCHITECTURE 1
41175_ACEOF
41176
41177 fi
41178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
41179fi
41180
41181if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
41182 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
41183echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
41184 { (exit 1); exit 1; }; }
41185fi
41186
41187
efdf6afe
VZ
41188if test "$wxUSE_METAFILE" = "yes"; then
41189 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
41190 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
41191echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
41192 wxUSE_METAFILE=no
41193 fi
41194fi
41195
41196
a848cd7e
SC
41197if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
41198 -o "$wxUSE_CLIPBOARD" = "yes" \
41199 -o "$wxUSE_OLE" = "yes" \
41200 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
41201
41202for ac_header in ole2.h
41203do
41204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41205if eval "test \"\${$as_ac_Header+set}\" = set"; then
41206 echo "$as_me:$LINENO: checking for $ac_header" >&5
41207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41208if eval "test \"\${$as_ac_Header+set}\" = set"; then
41209 echo $ECHO_N "(cached) $ECHO_C" >&6
41210fi
41211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41213else
41214 # Is the header compilable?
41215echo "$as_me:$LINENO: checking $ac_header usability" >&5
41216echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41217cat >conftest.$ac_ext <<_ACEOF
41218/* confdefs.h. */
41219_ACEOF
41220cat confdefs.h >>conftest.$ac_ext
41221cat >>conftest.$ac_ext <<_ACEOF
41222/* end confdefs.h. */
41223$ac_includes_default
41224#include <$ac_header>
41225_ACEOF
41226rm -f conftest.$ac_objext
41227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41228 (eval $ac_compile) 2>conftest.er1
a848cd7e 41229 ac_status=$?
ac1cb8d3
VS
41230 grep -v '^ *+' conftest.er1 >conftest.err
41231 rm -f conftest.er1
41232 cat conftest.err >&5
a848cd7e
SC
41233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234 (exit $ac_status); } &&
6ebeb4c7 41235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41237 (eval $ac_try) 2>&5
41238 ac_status=$?
41239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41240 (exit $ac_status); }; } &&
41241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41243 (eval $ac_try) 2>&5
41244 ac_status=$?
41245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41246 (exit $ac_status); }; }; then
41247 ac_header_compiler=yes
41248else
41249 echo "$as_me: failed program was:" >&5
41250sed 's/^/| /' conftest.$ac_ext >&5
41251
41252ac_header_compiler=no
41253fi
ac1cb8d3 41254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41256echo "${ECHO_T}$ac_header_compiler" >&6
41257
41258# Is the header present?
41259echo "$as_me:$LINENO: checking $ac_header presence" >&5
41260echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41261cat >conftest.$ac_ext <<_ACEOF
41262/* confdefs.h. */
41263_ACEOF
41264cat confdefs.h >>conftest.$ac_ext
41265cat >>conftest.$ac_ext <<_ACEOF
41266/* end confdefs.h. */
41267#include <$ac_header>
41268_ACEOF
41269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41271 ac_status=$?
41272 grep -v '^ *+' conftest.er1 >conftest.err
41273 rm -f conftest.er1
41274 cat conftest.err >&5
41275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41276 (exit $ac_status); } >/dev/null; then
41277 if test -s conftest.err; then
41278 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41280 else
41281 ac_cpp_err=
41282 fi
41283else
41284 ac_cpp_err=yes
41285fi
41286if test -z "$ac_cpp_err"; then
41287 ac_header_preproc=yes
41288else
41289 echo "$as_me: failed program was:" >&5
41290sed 's/^/| /' conftest.$ac_ext >&5
41291
41292 ac_header_preproc=no
41293fi
41294rm -f conftest.err conftest.$ac_ext
41295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41296echo "${ECHO_T}$ac_header_preproc" >&6
41297
41298# So? What about this header?
ac1cb8d3
VS
41299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41300 yes:no: )
a848cd7e
SC
41301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41305 ac_header_preproc=yes
a848cd7e 41306 ;;
ac1cb8d3 41307 no:yes:* )
a848cd7e
SC
41308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41315echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41320 (
41321 cat <<\_ASBOX
ac1cb8d3
VS
41322## ----------------------------------------- ##
41323## Report this to wx-dev@lists.wxwidgets.org ##
41324## ----------------------------------------- ##
a848cd7e
SC
41325_ASBOX
41326 ) |
41327 sed "s/^/$as_me: WARNING: /" >&2
41328 ;;
41329esac
41330echo "$as_me:$LINENO: checking for $ac_header" >&5
41331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41332if eval "test \"\${$as_ac_Header+set}\" = set"; then
41333 echo $ECHO_N "(cached) $ECHO_C" >&6
41334else
ac1cb8d3 41335 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41336fi
41337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41339
41340fi
41341if test `eval echo '${'$as_ac_Header'}'` = yes; then
41342 cat >>confdefs.h <<_ACEOF
41343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41344_ACEOF
41345
41346fi
41347
41348done
41349
41350
41351 if test "$ac_cv_header_ole2_h" = "yes" ; then
41352 if test "$GCC" = yes ; then
41353
41354
41355 ac_ext=cc
41356ac_cpp='$CXXCPP $CPPFLAGS'
41357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41360
41361
41362 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
41363echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
41364 cat >conftest.$ac_ext <<_ACEOF
41365/* confdefs.h. */
41366_ACEOF
41367cat confdefs.h >>conftest.$ac_ext
41368cat >>conftest.$ac_ext <<_ACEOF
41369/* end confdefs.h. */
41370#include <windows.h>
41371 #include <ole2.h>
41372int
41373main ()
41374{
41375
41376 ;
41377 return 0;
41378}
41379_ACEOF
41380rm -f conftest.$ac_objext
41381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41382 (eval $ac_compile) 2>conftest.er1
a848cd7e 41383 ac_status=$?
ac1cb8d3
VS
41384 grep -v '^ *+' conftest.er1 >conftest.err
41385 rm -f conftest.er1
41386 cat conftest.err >&5
a848cd7e
SC
41387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41388 (exit $ac_status); } &&
6ebeb4c7 41389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41391 (eval $ac_try) 2>&5
41392 ac_status=$?
41393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41394 (exit $ac_status); }; } &&
41395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41397 (eval $ac_try) 2>&5
41398 ac_status=$?
41399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41400 (exit $ac_status); }; }; then
41401 echo "$as_me:$LINENO: result: no" >&5
41402echo "${ECHO_T}no" >&6
41403else
41404 echo "$as_me: failed program was:" >&5
41405sed 's/^/| /' conftest.$ac_ext >&5
41406
41407echo "$as_me:$LINENO: result: yes" >&5
41408echo "${ECHO_T}yes" >&6
41409 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
41410fi
ac1cb8d3 41411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41412 ac_ext=c
41413ac_cpp='$CPP $CPPFLAGS'
41414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41416ac_compiler_gnu=$ac_cv_c_compiler_gnu
41417
a848cd7e
SC
41418 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
41419 if test "$wxUSE_OLE" = "yes" ; then
41420 cat >>confdefs.h <<\_ACEOF
41421#define wxUSE_OLE 1
41422_ACEOF
41423
0b78747f 41424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
41425 fi
41426 fi
41427
41428 if test "$wxUSE_DATAOBJ" = "yes" ; then
41429 cat >>confdefs.h <<\_ACEOF
41430#define wxUSE_DATAOBJ 1
41431_ACEOF
41432
41433 fi
41434 else
41435 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
41436echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
41437
41438 wxUSE_CLIPBOARD=no
41439 wxUSE_DRAG_AND_DROP=no
41440 wxUSE_DATAOBJ=no
41441 wxUSE_OLE=no
41442 fi
41443
41444 if test "$wxUSE_METAFILE" = "yes"; then
41445 cat >>confdefs.h <<\_ACEOF
41446#define wxUSE_METAFILE 1
41447_ACEOF
41448
41449
41450 cat >>confdefs.h <<\_ACEOF
41451#define wxUSE_ENH_METAFILE 1
41452_ACEOF
41453
41454 fi
41455fi
41456
41457if test "$wxUSE_IPC" = "yes"; then
0b78747f 41458 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
41459 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
41460echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 41461 wxUSE_IPC=no
a848cd7e
SC
41462 fi
41463
0b78747f
MW
41464 if test "$wxUSE_IPC" = "yes"; then
41465 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41466#define wxUSE_IPC 1
41467_ACEOF
41468
0b78747f
MW
41469 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
41470 fi
a848cd7e
SC
41471fi
41472
eb730a0c 41473if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
41474 if test "$wxUSE_MGL" = 1; then
41475 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
41476echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
41477 wxUSE_DATAOBJ=no
41478 else
41479 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
41480#define wxUSE_DATAOBJ 1
41481_ACEOF
41482
2113bc77 41483 fi
eb730a0c
JS
41484else
41485 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
41486echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
41487 wxUSE_CLIPBOARD=no
41488 wxUSE_DRAG_AND_DROP=no
41489fi
41490
a848cd7e
SC
41491if test "$wxUSE_CLIPBOARD" = "yes"; then
41492 if test "$wxUSE_MGL" = 1; then
41493 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
41494echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
41495 wxUSE_CLIPBOARD=no
41496 fi
41497
41498 if test "$wxUSE_CLIPBOARD" = "yes"; then
41499 cat >>confdefs.h <<\_ACEOF
41500#define wxUSE_CLIPBOARD 1
41501_ACEOF
41502
a848cd7e
SC
41503 fi
41504fi
41505
41506if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
41507 if test "$wxUSE_GTK" = 1; then
41508 if test "$WXGTK12" != 1; then
41509 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
41510echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
41511 wxUSE_DRAG_AND_DROP=no
41512 fi
41513 fi
41514
41515 if test "$wxUSE_MOTIF" = 1; then
41516 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
41517echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
41518 wxUSE_DRAG_AND_DROP=no
41519 fi
41520
41521 if test "$wxUSE_X11" = 1; then
41522 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
41523echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
41524 wxUSE_DRAG_AND_DROP=no
41525 fi
41526
41527 if test "$wxUSE_MGL" = 1; then
41528 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
41529echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
41530 wxUSE_DRAG_AND_DROP=no
41531 fi
41532
41533 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
41534 cat >>confdefs.h <<\_ACEOF
41535#define wxUSE_DRAG_AND_DROP 1
41536_ACEOF
41537
41538 fi
41539
41540fi
41541
41542if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41544fi
41545
41546if test "$wxUSE_SPLINES" = "yes" ; then
41547 cat >>confdefs.h <<\_ACEOF
41548#define wxUSE_SPLINES 1
41549_ACEOF
41550
41551fi
41552
fbe2ca43
SN
41553if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41554 cat >>confdefs.h <<\_ACEOF
41555#define wxUSE_MOUSEWHEEL 1
41556_ACEOF
41557
41558fi
41559
a848cd7e
SC
41560
41561USES_CONTROLS=0
41562if test "$wxUSE_CONTROLS" = "yes"; then
41563 USES_CONTROLS=1
41564fi
41565
41566if test "$wxUSE_ACCEL" = "yes"; then
41567 cat >>confdefs.h <<\_ACEOF
41568#define wxUSE_ACCEL 1
41569_ACEOF
41570
41571 USES_CONTROLS=1
41572fi
41573
41574if test "$wxUSE_BUTTON" = "yes"; then
41575 cat >>confdefs.h <<\_ACEOF
41576#define wxUSE_BUTTON 1
41577_ACEOF
41578
41579 USES_CONTROLS=1
41580fi
41581
41582if test "$wxUSE_BMPBUTTON" = "yes"; then
41583 cat >>confdefs.h <<\_ACEOF
41584#define wxUSE_BMPBUTTON 1
41585_ACEOF
41586
41587 USES_CONTROLS=1
41588fi
41589
41590if test "$wxUSE_CALCTRL" = "yes"; then
41591 cat >>confdefs.h <<\_ACEOF
41592#define wxUSE_CALENDARCTRL 1
41593_ACEOF
41594
41595 USES_CONTROLS=1
41596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41597fi
41598
41599if test "$wxUSE_CARET" = "yes"; then
41600 cat >>confdefs.h <<\_ACEOF
41601#define wxUSE_CARET 1
41602_ACEOF
41603
41604 USES_CONTROLS=1
41605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41606fi
41607
41608if test "$wxUSE_COMBOBOX" = "yes"; then
41609 cat >>confdefs.h <<\_ACEOF
41610#define wxUSE_COMBOBOX 1
41611_ACEOF
41612
41613 USES_CONTROLS=1
41614fi
41615
41616if test "$wxUSE_CHOICE" = "yes"; then
41617 cat >>confdefs.h <<\_ACEOF
41618#define wxUSE_CHOICE 1
41619_ACEOF
41620
41621 USES_CONTROLS=1
41622fi
41623
92bbdbcd
WS
41624if test "$wxUSE_CHOICEBOOK" = "yes"; then
41625 cat >>confdefs.h <<\_ACEOF
41626#define wxUSE_CHOICEBOOK 1
41627_ACEOF
41628
41629 USES_CONTROLS=1
41630fi
41631
a848cd7e
SC
41632if test "$wxUSE_CHECKBOX" = "yes"; then
41633 cat >>confdefs.h <<\_ACEOF
41634#define wxUSE_CHECKBOX 1
41635_ACEOF
41636
41637 USES_CONTROLS=1
41638fi
41639
41640if test "$wxUSE_CHECKLST" = "yes"; then
41641 cat >>confdefs.h <<\_ACEOF
41642#define wxUSE_CHECKLISTBOX 1
41643_ACEOF
41644
41645 USES_CONTROLS=1
41646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41647fi
41648
da98e9be
VZ
41649if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41650 cat >>confdefs.h <<\_ACEOF
41651#define wxUSE_DATEPICKCTRL 1
41652_ACEOF
41653
41654 USES_CONTROLS=1
41655fi
41656
a848cd7e
SC
41657if test "$wxUSE_DISPLAY" = "yes"; then
41658 cat >>confdefs.h <<\_ACEOF
41659#define wxUSE_DISPLAY 1
41660_ACEOF
41661
0b78747f 41662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
41663fi
41664
41665if test "$wxUSE_GAUGE" = "yes"; then
41666 cat >>confdefs.h <<\_ACEOF
41667#define wxUSE_GAUGE 1
41668_ACEOF
41669
41670 USES_CONTROLS=1
41671fi
41672
41673if test "$wxUSE_GRID" = "yes"; then
41674 cat >>confdefs.h <<\_ACEOF
41675#define wxUSE_GRID 1
41676_ACEOF
41677
41678 USES_CONTROLS=1
41679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41680fi
41681
41682if test "$wxUSE_IMAGLIST" = "yes"; then
41683 cat >>confdefs.h <<\_ACEOF
41684#define wxUSE_IMAGLIST 1
41685_ACEOF
41686
41687fi
41688
41689if test "$wxUSE_LISTBOOK" = "yes"; then
41690 cat >>confdefs.h <<\_ACEOF
41691#define wxUSE_LISTBOOK 1
41692_ACEOF
41693
41694 USES_CONTROLS=1
41695fi
41696
41697if test "$wxUSE_LISTBOX" = "yes"; then
41698 cat >>confdefs.h <<\_ACEOF
41699#define wxUSE_LISTBOX 1
41700_ACEOF
41701
41702 USES_CONTROLS=1
0b78747f 41703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
41704fi
41705
41706if test "$wxUSE_LISTCTRL" = "yes"; then
41707 if test "$wxUSE_IMAGLIST" = "yes"; then
41708 cat >>confdefs.h <<\_ACEOF
41709#define wxUSE_LISTCTRL 1
41710_ACEOF
41711
41712 USES_CONTROLS=1
41713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
41714 else
41715 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
41716echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
41717 fi
41718fi
41719
41720if test "$wxUSE_NOTEBOOK" = "yes"; then
41721 cat >>confdefs.h <<\_ACEOF
41722#define wxUSE_NOTEBOOK 1
41723_ACEOF
41724
41725 USES_CONTROLS=1
41726 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
41727fi
41728
41729
41730if test "$wxUSE_RADIOBOX" = "yes"; then
41731 cat >>confdefs.h <<\_ACEOF
41732#define wxUSE_RADIOBOX 1
41733_ACEOF
41734
41735 USES_CONTROLS=1
41736fi
41737
41738if test "$wxUSE_RADIOBTN" = "yes"; then
41739 cat >>confdefs.h <<\_ACEOF
41740#define wxUSE_RADIOBTN 1
41741_ACEOF
41742
41743 USES_CONTROLS=1
41744fi
41745
41746if test "$wxUSE_SASH" = "yes"; then
41747 cat >>confdefs.h <<\_ACEOF
41748#define wxUSE_SASH 1
41749_ACEOF
41750
41751 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
41752fi
41753
41754if test "$wxUSE_SCROLLBAR" = "yes"; then
41755 cat >>confdefs.h <<\_ACEOF
41756#define wxUSE_SCROLLBAR 1
41757_ACEOF
41758
41759 USES_CONTROLS=1
41760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
41761fi
41762
41763if test "$wxUSE_SLIDER" = "yes"; then
41764 cat >>confdefs.h <<\_ACEOF
41765#define wxUSE_SLIDER 1
41766_ACEOF
41767
41768 USES_CONTROLS=1
41769fi
41770
41771if test "$wxUSE_SPINBTN" = "yes"; then
41772 cat >>confdefs.h <<\_ACEOF
41773#define wxUSE_SPINBTN 1
41774_ACEOF
41775
41776 USES_CONTROLS=1
41777fi
41778
41779if test "$wxUSE_SPINCTRL" = "yes"; then
41780 cat >>confdefs.h <<\_ACEOF
41781#define wxUSE_SPINCTRL 1
41782_ACEOF
41783
41784 USES_CONTROLS=1
41785fi
41786
41787if test "$wxUSE_SPLITTER" = "yes"; then
41788 cat >>confdefs.h <<\_ACEOF
41789#define wxUSE_SPLITTER 1
41790_ACEOF
41791
41792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
41793fi
41794
41795if test "$wxUSE_STATBMP" = "yes"; then
41796 cat >>confdefs.h <<\_ACEOF
41797#define wxUSE_STATBMP 1
41798_ACEOF
41799
41800 USES_CONTROLS=1
41801fi
41802
41803if test "$wxUSE_STATBOX" = "yes"; then
41804 cat >>confdefs.h <<\_ACEOF
41805#define wxUSE_STATBOX 1
41806_ACEOF
41807
41808 USES_CONTROLS=1
41809fi
41810
41811if test "$wxUSE_STATTEXT" = "yes"; then
41812 cat >>confdefs.h <<\_ACEOF
41813#define wxUSE_STATTEXT 1
41814_ACEOF
41815
41816 USES_CONTROLS=1
41817fi
41818
41819if test "$wxUSE_STATLINE" = "yes"; then
41820 cat >>confdefs.h <<\_ACEOF
41821#define wxUSE_STATLINE 1
41822_ACEOF
41823
41824 USES_CONTROLS=1
41825fi
41826
41827if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
41828 cat >>confdefs.h <<\_ACEOF
41829#define wxUSE_NATIVE_STATUSBAR 1
41830_ACEOF
41831
a848cd7e
SC
41832 cat >>confdefs.h <<\_ACEOF
41833#define wxUSE_STATUSBAR 1
41834_ACEOF
41835
41836 USES_CONTROLS=1
41837
41838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
41839fi
41840
41841if test "$wxUSE_TABDIALOG" = "yes"; then
41842 cat >>confdefs.h <<\_ACEOF
41843#define wxUSE_TAB_DIALOG 1
41844_ACEOF
41845
a848cd7e
SC
41846fi
41847
41848if test "$wxUSE_TEXTCTRL" = "yes"; then
41849 cat >>confdefs.h <<\_ACEOF
41850#define wxUSE_TEXTCTRL 1
41851_ACEOF
41852
41853 USES_CONTROLS=1
41854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
41855fi
41856
41857if test "$wxUSE_TOGGLEBTN" = "yes"; then
41858 if test "$wxUSE_COCOA" = 1 ; then
41859 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
41860echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
41861 wxUSE_TOGGLEBTN=no
41862 fi
41863 if test "$wxUSE_UNIVERSAL" = "yes"; then
41864 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
41865echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
41866 wxUSE_TOGGLEBTN=no
41867 fi
41868
41869 if test "$wxUSE_TOGGLEBTN" = "yes"; then
41870 cat >>confdefs.h <<\_ACEOF
41871#define wxUSE_TOGGLEBTN 1
41872_ACEOF
41873
41874 USES_CONTROLS=1
41875 fi
41876fi
41877
41878if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
41879 cat >>confdefs.h <<\_ACEOF
41880#define wxUSE_TOOLBAR_SIMPLE 1
41881_ACEOF
41882
41883 wxUSE_TOOLBAR="yes"
41884 USES_CONTROLS=1
41885fi
41886
41887if test "$wxUSE_TOOLBAR" = "yes"; then
41888 cat >>confdefs.h <<\_ACEOF
41889#define wxUSE_TOOLBAR 1
41890_ACEOF
41891
41892 USES_CONTROLS=1
41893
41894 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
41895 wxUSE_TOOLBAR_NATIVE="yes"
41896 fi
41897
41898 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
41899 cat >>confdefs.h <<\_ACEOF
41900#define wxUSE_TOOLBAR_NATIVE 1
41901_ACEOF
41902
41903 USES_CONTROLS=1
41904 fi
41905
41906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
41907fi
41908
41909if test "$wxUSE_TOOLTIPS" = "yes"; then
41910 if test "$wxUSE_MOTIF" = 1; then
41911 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
41912echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
41913 else
41914 if test "$wxUSE_UNIVERSAL" = "yes"; then
41915 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
41916echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
41917 else
41918 cat >>confdefs.h <<\_ACEOF
41919#define wxUSE_TOOLTIPS 1
41920_ACEOF
41921
41922 fi
41923 fi
41924fi
41925
41926if test "$wxUSE_TREECTRL" = "yes"; then
41927 if test "$wxUSE_IMAGLIST" = "yes"; then
41928 cat >>confdefs.h <<\_ACEOF
41929#define wxUSE_TREECTRL 1
41930_ACEOF
41931
41932 USES_CONTROLS=1
41933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
41934 else
41935 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
41936echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
41937 fi
41938fi
41939
41940if test "$wxUSE_POPUPWIN" = "yes"; then
41941 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
41942 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
41943echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
41944 else
41945 if test "$wxUSE_PM" = 1; then
41946 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
41947echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
41948 else
41949 cat >>confdefs.h <<\_ACEOF
41950#define wxUSE_POPUPWIN 1
41951_ACEOF
41952
0b78747f 41953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
41954
41955 USES_CONTROLS=1
41956 fi
41957 fi
41958fi
41959
0dcd06dd 41960if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
41961 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
41962 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
41963echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
41964 else
41965 cat >>confdefs.h <<\_ACEOF
41966#define wxUSE_DIALUP_MANAGER 1
41967_ACEOF
41968
41969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
41970 fi
41971fi
41972
a848cd7e
SC
41973if test "$wxUSE_TIPWINDOW" = "yes"; then
41974 if test "$wxUSE_PM" = 1; then
41975 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
41976echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
41977 else
41978 cat >>confdefs.h <<\_ACEOF
41979#define wxUSE_TIPWINDOW 1
41980_ACEOF
41981
41982 fi
41983fi
41984
41985if test "$USES_CONTROLS" = 1; then
41986 cat >>confdefs.h <<\_ACEOF
41987#define wxUSE_CONTROLS 1
41988_ACEOF
41989
41990fi
41991
41992
41993if test "$wxUSE_ACCESSIBILITY" = "yes"; then
41994 cat >>confdefs.h <<\_ACEOF
41995#define wxUSE_ACCESSIBILITY 1
41996_ACEOF
41997
41998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
41999fi
42000
38b4a946
VZ
42001if test "$wxUSE_DC_CACHEING" = "yes"; then
42002 cat >>confdefs.h <<\_ACEOF
42003#define wxUSE_DC_CACHEING 1
42004_ACEOF
42005
42006fi
42007
a848cd7e
SC
42008if test "$wxUSE_DRAGIMAGE" = "yes"; then
42009 cat >>confdefs.h <<\_ACEOF
42010#define wxUSE_DRAGIMAGE 1
42011_ACEOF
42012
42013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
42014fi
42015
42016if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
42017 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42018 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
42019echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
42020 else
42021 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42022#define wxUSE_EXCEPTIONS 1
42023_ACEOF
42024
07bea8f0
VS
42025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
42026 fi
a848cd7e
SC
42027fi
42028
42029USE_HTML=0
42030if test "$wxUSE_HTML" = "yes"; then
42031 cat >>confdefs.h <<\_ACEOF
42032#define wxUSE_HTML 1
42033_ACEOF
42034
42035 USE_HTML=1
42036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
42037 if test "$wxUSE_MAC" = 1; then
42038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
42039 fi
a848cd7e 42040fi
646b6ec1 42041if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 42042 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
42043 old_CPPFLAGS="$CPPFLAGS"
42044 CPPFLAGS="$CPPFLAGS -x objective-c++"
42045 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
42046echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
42047if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
42048 echo $ECHO_N "(cached) $ECHO_C" >&6
42049else
42050 cat >conftest.$ac_ext <<_ACEOF
42051/* confdefs.h. */
42052_ACEOF
42053cat confdefs.h >>conftest.$ac_ext
42054cat >>conftest.$ac_ext <<_ACEOF
42055/* end confdefs.h. */
42056#include <Carbon/Carbon.h>
42057
42058#include <WebKit/HIWebView.h>
42059_ACEOF
42060rm -f conftest.$ac_objext
42061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42062 (eval $ac_compile) 2>conftest.er1
42063 ac_status=$?
42064 grep -v '^ *+' conftest.er1 >conftest.err
42065 rm -f conftest.er1
42066 cat conftest.err >&5
42067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42068 (exit $ac_status); } &&
6ebeb4c7 42069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
42070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42071 (eval $ac_try) 2>&5
42072 ac_status=$?
42073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42074 (exit $ac_status); }; } &&
42075 { ac_try='test -s conftest.$ac_objext'
42076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42077 (eval $ac_try) 2>&5
42078 ac_status=$?
42079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42080 (exit $ac_status); }; }; then
42081 ac_cv_header_WebKit_HIWebView_h=yes
42082else
42083 echo "$as_me: failed program was:" >&5
42084sed 's/^/| /' conftest.$ac_ext >&5
42085
42086ac_cv_header_WebKit_HIWebView_h=no
42087fi
42088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42089fi
42090echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
42091echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
42092if test $ac_cv_header_WebKit_HIWebView_h = yes; then
42093
42094 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
42095#define wxUSE_WEBKIT 1
42096_ACEOF
42097
07bea8f0
VS
42098 WEBKIT_LINK="-framework WebKit"
42099
42100else
42101
42102 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
42103echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
42104 wxUSE_WEBKIT=no
42105
646b6ec1
VS
42106fi
42107
07bea8f0
VS
42108
42109 CPPFLAGS="$old_CPPFLAGS"
42110 elif test "$wxUSE_COCOA" = 1; then
42111 cat >>confdefs.h <<\_ACEOF
42112#define wxUSE_WEBKIT 1
42113_ACEOF
42114
42115 else
42116 wxUSE_WEBKIT=no
42117 fi
42118fi
42119
9a8f0513
VS
42120USE_XRC=0
42121if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
42122 if test "$wxUSE_XML" != "yes"; then
42123 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
42124echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
42125 wxUSE_XRC=no
42126 else
42127 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
42128#define wxUSE_XRC 1
42129_ACEOF
42130
d2ebf0b7
VS
42131 USE_XRC=1
42132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
42133 fi
9a8f0513 42134fi
07bea8f0 42135
a848cd7e
SC
42136if test "$wxUSE_MENUS" = "yes"; then
42137 cat >>confdefs.h <<\_ACEOF
42138#define wxUSE_MENUS 1
42139_ACEOF
42140
42141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
42142fi
42143
42144if test "$wxUSE_METAFILE" = "yes"; then
42145 cat >>confdefs.h <<\_ACEOF
42146#define wxUSE_METAFILE 1
42147_ACEOF
42148
42149fi
42150
42151if test "$wxUSE_MIMETYPE" = "yes"; then
42152 cat >>confdefs.h <<\_ACEOF
42153#define wxUSE_MIMETYPE 1
42154_ACEOF
42155
42156fi
42157
42158if test "$wxUSE_MINIFRAME" = "yes"; then
42159 cat >>confdefs.h <<\_ACEOF
42160#define wxUSE_MINIFRAME 1
42161_ACEOF
42162
42163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
42164fi
42165
42166if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
42167 cat >>confdefs.h <<\_ACEOF
42168#define wxUSE_SYSTEM_OPTIONS 1
42169_ACEOF
42170
42171 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 42172 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
42173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
42174 fi
42175fi
42176
42177
42178if test "$wxUSE_VALIDATORS" = "yes"; then
42179 cat >>confdefs.h <<\_ACEOF
42180#define wxUSE_VALIDATORS 1
42181_ACEOF
42182
42183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
42184fi
42185
42186if test "$wxUSE_PALETTE" = "yes" ; then
42187 cat >>confdefs.h <<\_ACEOF
42188#define wxUSE_PALETTE 1
42189_ACEOF
42190
42191fi
42192
42193if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
42194 LIBS=" -lunicows $LIBS"
42195fi
42196
42197
42198if test "$wxUSE_IMAGE" = "yes" ; then
42199 cat >>confdefs.h <<\_ACEOF
42200#define wxUSE_IMAGE 1
42201_ACEOF
42202
42203
42204 if test "$wxUSE_GIF" = "yes" ; then
42205 cat >>confdefs.h <<\_ACEOF
42206#define wxUSE_GIF 1
42207_ACEOF
42208
42209 fi
42210
42211 if test "$wxUSE_PCX" = "yes" ; then
42212 cat >>confdefs.h <<\_ACEOF
42213#define wxUSE_PCX 1
42214_ACEOF
42215
42216 fi
42217
42218 if test "$wxUSE_IFF" = "yes" ; then
42219 cat >>confdefs.h <<\_ACEOF
42220#define wxUSE_IFF 1
42221_ACEOF
42222
42223 fi
42224
42225 if test "$wxUSE_PNM" = "yes" ; then
42226 cat >>confdefs.h <<\_ACEOF
42227#define wxUSE_PNM 1
42228_ACEOF
42229
42230 fi
42231
42232 if test "$wxUSE_XPM" = "yes" ; then
42233 cat >>confdefs.h <<\_ACEOF
42234#define wxUSE_XPM 1
42235_ACEOF
42236
42237 fi
42238
42239 if test "$wxUSE_ICO_CUR" = "yes" ; then
42240 cat >>confdefs.h <<\_ACEOF
42241#define wxUSE_ICO_CUR 1
42242_ACEOF
42243
42244 fi
42245fi
42246
42247
42248if test "$wxUSE_CHOICEDLG" = "yes"; then
42249 cat >>confdefs.h <<\_ACEOF
42250#define wxUSE_CHOICEDLG 1
42251_ACEOF
42252
42253fi
42254
42255if test "$wxUSE_COLOURDLG" = "yes"; then
42256 cat >>confdefs.h <<\_ACEOF
42257#define wxUSE_COLOURDLG 1
42258_ACEOF
42259
42260fi
42261
42262if test "$wxUSE_FILEDLG" = "yes"; then
42263 cat >>confdefs.h <<\_ACEOF
42264#define wxUSE_FILEDLG 1
42265_ACEOF
42266
42267fi
42268
42269if test "$wxUSE_FINDREPLDLG" = "yes"; then
42270 cat >>confdefs.h <<\_ACEOF
42271#define wxUSE_FINDREPLDLG 1
42272_ACEOF
42273
42274fi
42275
42276if test "$wxUSE_FONTDLG" = "yes"; then
42277 cat >>confdefs.h <<\_ACEOF
42278#define wxUSE_FONTDLG 1
42279_ACEOF
42280
42281fi
42282
42283if test "$wxUSE_DIRDLG" = "yes"; then
42284 if test "$wxUSE_TREECTRL" != "yes"; then
42285 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
42286echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
42287 else
42288 cat >>confdefs.h <<\_ACEOF
42289#define wxUSE_DIRDLG 1
42290_ACEOF
42291
42292 fi
42293fi
42294
42295if test "$wxUSE_MSGDLG" = "yes"; then
42296 cat >>confdefs.h <<\_ACEOF
42297#define wxUSE_MSGDLG 1
42298_ACEOF
42299
42300fi
42301
42302if test "$wxUSE_NUMBERDLG" = "yes"; then
42303 cat >>confdefs.h <<\_ACEOF
42304#define wxUSE_NUMBERDLG 1
42305_ACEOF
42306
42307fi
42308
42309if test "$wxUSE_PROGRESSDLG" = "yes"; then
42310 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42311 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
42312echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
42313 else
42314 cat >>confdefs.h <<\_ACEOF
42315#define wxUSE_PROGRESSDLG 1
42316_ACEOF
42317
42318 fi
42319fi
42320
42321if test "$wxUSE_SPLASH" = "yes"; then
42322 cat >>confdefs.h <<\_ACEOF
42323#define wxUSE_SPLASH 1
42324_ACEOF
42325
2057db16 42326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
42327fi
42328
42329if test "$wxUSE_STARTUP_TIPS" = "yes"; then
42330 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42331 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
42332echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
42333 else
42334 cat >>confdefs.h <<\_ACEOF
42335#define wxUSE_STARTUP_TIPS 1
42336_ACEOF
42337
42338 fi
42339fi
42340
42341if test "$wxUSE_TEXTDLG" = "yes"; then
42342 cat >>confdefs.h <<\_ACEOF
42343#define wxUSE_TEXTDLG 1
42344_ACEOF
42345
42346fi
42347
42348if test "$wxUSE_WIZARDDLG" = "yes"; then
42349 cat >>confdefs.h <<\_ACEOF
42350#define wxUSE_WIZARDDLG 1
42351_ACEOF
42352
42353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
42354fi
42355
42356
ce756cb0 42357if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
42358 if test "$wxUSE_GTK" = 1; then
42359 wxUSE_GSTREAMER="yes"
42360
ce756cb0 42361
dae87f93 42362 succeeded=no
ce756cb0 42363
dae87f93
RN
42364 if test -z "$PKG_CONFIG"; then
42365 # Extract the first word of "pkg-config", so it can be a program name with args.
42366set dummy pkg-config; ac_word=$2
42367echo "$as_me:$LINENO: checking for $ac_word" >&5
42368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42369if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42370 echo $ECHO_N "(cached) $ECHO_C" >&6
42371else
42372 case $PKG_CONFIG in
42373 [\\/]* | ?:[\\/]*)
42374 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42375 ;;
42376 *)
42377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42378for as_dir in $PATH
42379do
42380 IFS=$as_save_IFS
42381 test -z "$as_dir" && as_dir=.
42382 for ac_exec_ext in '' $ac_executable_extensions; do
42383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42384 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42386 break 2
42387 fi
42388done
42389done
42390
42391 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
42392 ;;
42393esac
42394fi
42395PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42396
42397if test -n "$PKG_CONFIG"; then
42398 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42399echo "${ECHO_T}$PKG_CONFIG" >&6
42400else
42401 echo "$as_me:$LINENO: result: no" >&5
42402echo "${ECHO_T}no" >&6
42403fi
42404
42405 fi
42406
42407 if test "$PKG_CONFIG" = "no" ; then
42408 echo "*** The pkg-config script could not be found. Make sure it is"
42409 echo "*** in your path, or set the PKG_CONFIG environment variable"
42410 echo "*** to the full path to pkg-config."
42411 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
42412 else
42413 PKG_CONFIG_MIN_VERSION=0.9.0
42414 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
42415 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
42416echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
42417
42418 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
42419 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42420echo "${ECHO_T}yes" >&6
dae87f93 42421 succeeded=yes
ce756cb0 42422
dae87f93
RN
42423 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
42424echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
42425 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
42426 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
42427echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
42428
42429 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
42430echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
42431 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
42432 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
42433echo "${ECHO_T}$GSTREAMER_LIBS" >&6
42434 else
42435 GSTREAMER_CFLAGS=""
42436 GSTREAMER_LIBS=""
42437 ## If we have a custom action on failure, don't print errors, but
42438 ## do set a variable so people can do so.
42439 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 42440
dae87f93
RN
42441 fi
42442
42443
42444
42445 else
42446 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
42447 echo "*** See http://www.freedesktop.org/software/pkgconfig"
42448 fi
42449 fi
42450
42451 if test $succeeded = yes; then
42452
42453 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
42454 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 42455
ce756cb0 42456 else
dae87f93
RN
42457
42458 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
42459echo "$as_me: WARNING: GStreamer installation not found" >&2;}
42460 wxUSE_GSTREAMER="no"
42461
42462 fi
42463
42464
42465
42466
42467
42468 if test "x$GST_INSPECT" == "x"; then
42469 # Extract the first word of "gst-inspect", so it can be a program name with args.
42470set dummy gst-inspect; ac_word=$2
42471echo "$as_me:$LINENO: checking for $ac_word" >&5
42472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42473if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
42474 echo $ECHO_N "(cached) $ECHO_C" >&6
42475else
42476 if test -n "$GST_INSPECT"; then
42477 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
42478else
42479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42480for as_dir in $PATH
42481do
42482 IFS=$as_save_IFS
42483 test -z "$as_dir" && as_dir=.
42484 for ac_exec_ext in '' $ac_executable_extensions; do
42485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42486 ac_cv_prog_GST_INSPECT="gst-inspect"
42487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42488 break 2
ce756cb0 42489 fi
dae87f93
RN
42490done
42491done
42492
42493fi
42494fi
42495GST_INSPECT=$ac_cv_prog_GST_INSPECT
42496if test -n "$GST_INSPECT"; then
42497 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
42498echo "${ECHO_T}$GST_INSPECT" >&6
42499else
42500 echo "$as_me:$LINENO: result: no" >&5
42501echo "${ECHO_T}no" >&6
42502fi
42503
42504 fi
42505
42506 if test "x$GST_INSPECT" != "x"; then
42507 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
42508echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
42509 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
42510 echo "$as_me:$LINENO: result: found." >&5
42511echo "${ECHO_T}found." >&6
ce756cb0 42512
ce756cb0 42513 else
dae87f93
RN
42514 echo "$as_me:$LINENO: result: not found." >&5
42515echo "${ECHO_T}not found." >&6
42516
42517 wxUSE_GSTREAMER="no"
42518 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
42519echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
42520
42521 fi
42522 fi
42523
42524
42525 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
42526echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
42527if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
42528 echo $ECHO_N "(cached) $ECHO_C" >&6
42529else
42530 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
42531/* confdefs.h. */
42532_ACEOF
42533cat confdefs.h >>conftest.$ac_ext
42534cat >>conftest.$ac_ext <<_ACEOF
42535/* end confdefs.h. */
dae87f93 42536#include <gst/gst.h>
ce756cb0 42537
dae87f93 42538#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
42539_ACEOF
42540rm -f conftest.$ac_objext
42541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42542 (eval $ac_compile) 2>conftest.er1
42543 ac_status=$?
42544 grep -v '^ *+' conftest.er1 >conftest.err
42545 rm -f conftest.er1
42546 cat conftest.err >&5
42547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42548 (exit $ac_status); } &&
6ebeb4c7 42549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
42550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42551 (eval $ac_try) 2>&5
42552 ac_status=$?
42553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42554 (exit $ac_status); }; } &&
42555 { ac_try='test -s conftest.$ac_objext'
42556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42557 (eval $ac_try) 2>&5
42558 ac_status=$?
42559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560 (exit $ac_status); }; }; then
dae87f93 42561 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
42562else
42563 echo "$as_me: failed program was:" >&5
42564sed 's/^/| /' conftest.$ac_ext >&5
42565
dae87f93 42566ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
42567fi
42568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
42569fi
42570echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42571echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42572if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42573 :
42574else
ce756cb0 42575
dae87f93
RN
42576 wxUSE_GSTREAMER="no"
42577 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42578echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 42579
dae87f93 42580fi
ce756cb0 42581
dae87f93
RN
42582
42583
42584 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
42585echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42586
0ad5d837
VZ
42587 ac_find_libraries=
42588 for ac_dir in $SEARCH_LIB;
ce756cb0 42589 do
3eca31dc 42590 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
42591 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42592 ac_find_libraries=$ac_dir
42593 break 2
42594 fi
42595 done
42596 done
42597
ce756cb0 42598
dae87f93
RN
42599 if test "$ac_find_libraries" = "" ; then
42600 echo "$as_me:$LINENO: result: no" >&5
42601echo "${ECHO_T}no" >&6
42602 wxUSE_GSTREAMER="no"
42603 else
42604 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42605echo "${ECHO_T}yes" >&6
dae87f93 42606 fi
ce756cb0 42607
dae87f93
RN
42608 if test "$wxUSE_GSTREAMER" = "yes"; then
42609 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
42610#define wxUSE_GSTREAMER 1
42611_ACEOF
42612
dae87f93
RN
42613 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42614echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
42615 fi
42616 fi
42617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42618 cat >>confdefs.h <<\_ACEOF
42619#define wxUSE_MEDIACTRL 1
42620_ACEOF
42621
42622fi
42623
42624
a848cd7e
SC
42625if test "$cross_compiling" = "yes"; then
42626 OSINFO="\"$host\""
42627else
42628 OSINFO=`uname -s -r -m`
42629 OSINFO="\"$OSINFO\""
42630fi
42631
42632cat >>confdefs.h <<_ACEOF
42633#define WXWIN_OS_DESCRIPTION $OSINFO
42634_ACEOF
42635
42636
42637
42638if test "x$prefix" != "xNONE"; then
42639 wxPREFIX=$prefix
42640else
42641 wxPREFIX=$ac_default_prefix
42642fi
42643
42644cat >>confdefs.h <<_ACEOF
42645#define wxINSTALL_PREFIX "$wxPREFIX"
42646_ACEOF
42647
42648
a848cd7e
SC
42649
42650
42651CORE_BASE_LIBS="net base"
42652CORE_GUI_LIBS="adv core"
42653
42654if test "$wxUSE_XML" = "yes" ; then
42655 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42656fi
42657if test "$wxUSE_ODBC" != "no" ; then
42658 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42659 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42660fi
42661if test "$wxUSE_HTML" = "yes" ; then
42662 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42663fi
61639efb
VZ
42664if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42665 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42666fi
9a8f0513
VS
42667if test "$wxUSE_XRC" = "yes" ; then
42668 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42669fi
a848cd7e
SC
42670
42671if test "$wxUSE_GUI" != "yes"; then
42672 CORE_GUI_LIBS=""
42673fi
42674
42675
42676
42677
42678
42679
42680
42681
42682if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 42683 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
42684 if test "$USE_DARWIN" = 1; then
42685 LDFLAGS="$LDFLAGS -framework QuickTime"
42686 else
42687 LDFLAGS="$LDFLAGS -lQuickTimeLib"
42688 fi
07bea8f0 42689 fi
5dcf30a0 42690 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
42691 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
42692 else
42693 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 42694 fi
a848cd7e
SC
42695fi
42696if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 42697 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
42698 if test "$wxUSE_MEDIACTRL" = "yes"; then
42699 LDFLAGS="$LDFLAGS -framework QuickTime"
42700 fi
a848cd7e 42701fi
19b27e78
MW
42702if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
42703 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
42704fi
a848cd7e
SC
42705
42706
42707LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
42708
42709have_cos=0
42710have_floor=0
42711
42712for ac_func in cos
42713do
42714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42715echo "$as_me:$LINENO: checking for $ac_func" >&5
42716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42717if eval "test \"\${$as_ac_var+set}\" = set"; then
42718 echo $ECHO_N "(cached) $ECHO_C" >&6
42719else
42720 cat >conftest.$ac_ext <<_ACEOF
42721/* confdefs.h. */
42722_ACEOF
42723cat confdefs.h >>conftest.$ac_ext
42724cat >>conftest.$ac_ext <<_ACEOF
42725/* end confdefs.h. */
ac1cb8d3
VS
42726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42728#define $ac_func innocuous_$ac_func
42729
a848cd7e
SC
42730/* System header to define __stub macros and hopefully few prototypes,
42731 which can conflict with char $ac_func (); below.
42732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42733 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42734
a848cd7e
SC
42735#ifdef __STDC__
42736# include <limits.h>
42737#else
42738# include <assert.h>
42739#endif
ac1cb8d3
VS
42740
42741#undef $ac_func
42742
a848cd7e
SC
42743/* Override any gcc2 internal prototype to avoid an error. */
42744#ifdef __cplusplus
42745extern "C"
42746{
42747#endif
42748/* We use char because int might match the return type of a gcc2
42749 builtin and then its argument prototype would still apply. */
42750char $ac_func ();
42751/* The GNU C library defines this for functions which it implements
42752 to always fail with ENOSYS. Some functions are actually named
42753 something starting with __ and the normal name is an alias. */
42754#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42755choke me
42756#else
42757char (*f) () = $ac_func;
42758#endif
42759#ifdef __cplusplus
42760}
42761#endif
42762
42763int
42764main ()
42765{
42766return f != $ac_func;
42767 ;
42768 return 0;
42769}
42770_ACEOF
42771rm -f conftest.$ac_objext conftest$ac_exeext
42772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42773 (eval $ac_link) 2>conftest.er1
a848cd7e 42774 ac_status=$?
ac1cb8d3
VS
42775 grep -v '^ *+' conftest.er1 >conftest.err
42776 rm -f conftest.er1
42777 cat conftest.err >&5
a848cd7e
SC
42778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42779 (exit $ac_status); } &&
6ebeb4c7 42780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42782 (eval $ac_try) 2>&5
42783 ac_status=$?
42784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42785 (exit $ac_status); }; } &&
42786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42788 (eval $ac_try) 2>&5
42789 ac_status=$?
42790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42791 (exit $ac_status); }; }; then
42792 eval "$as_ac_var=yes"
42793else
42794 echo "$as_me: failed program was:" >&5
42795sed 's/^/| /' conftest.$ac_ext >&5
42796
42797eval "$as_ac_var=no"
42798fi
ac1cb8d3
VS
42799rm -f conftest.err conftest.$ac_objext \
42800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42801fi
42802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42803echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42804if test `eval echo '${'$as_ac_var'}'` = yes; then
42805 cat >>confdefs.h <<_ACEOF
42806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42807_ACEOF
42808 have_cos=1
42809fi
42810done
42811
42812
42813for ac_func in floor
42814do
42815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42816echo "$as_me:$LINENO: checking for $ac_func" >&5
42817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42818if eval "test \"\${$as_ac_var+set}\" = set"; then
42819 echo $ECHO_N "(cached) $ECHO_C" >&6
42820else
42821 cat >conftest.$ac_ext <<_ACEOF
42822/* confdefs.h. */
42823_ACEOF
42824cat confdefs.h >>conftest.$ac_ext
42825cat >>conftest.$ac_ext <<_ACEOF
42826/* end confdefs.h. */
ac1cb8d3
VS
42827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42829#define $ac_func innocuous_$ac_func
42830
a848cd7e
SC
42831/* System header to define __stub macros and hopefully few prototypes,
42832 which can conflict with char $ac_func (); below.
42833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42834 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42835
a848cd7e
SC
42836#ifdef __STDC__
42837# include <limits.h>
42838#else
42839# include <assert.h>
42840#endif
ac1cb8d3
VS
42841
42842#undef $ac_func
42843
a848cd7e
SC
42844/* Override any gcc2 internal prototype to avoid an error. */
42845#ifdef __cplusplus
42846extern "C"
42847{
42848#endif
42849/* We use char because int might match the return type of a gcc2
42850 builtin and then its argument prototype would still apply. */
42851char $ac_func ();
42852/* The GNU C library defines this for functions which it implements
42853 to always fail with ENOSYS. Some functions are actually named
42854 something starting with __ and the normal name is an alias. */
42855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42856choke me
42857#else
42858char (*f) () = $ac_func;
42859#endif
42860#ifdef __cplusplus
42861}
42862#endif
42863
42864int
42865main ()
42866{
42867return f != $ac_func;
42868 ;
42869 return 0;
42870}
42871_ACEOF
42872rm -f conftest.$ac_objext conftest$ac_exeext
42873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42874 (eval $ac_link) 2>conftest.er1
a848cd7e 42875 ac_status=$?
ac1cb8d3
VS
42876 grep -v '^ *+' conftest.er1 >conftest.err
42877 rm -f conftest.er1
42878 cat conftest.err >&5
a848cd7e
SC
42879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42880 (exit $ac_status); } &&
6ebeb4c7 42881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42883 (eval $ac_try) 2>&5
42884 ac_status=$?
42885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42886 (exit $ac_status); }; } &&
42887 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42889 (eval $ac_try) 2>&5
42890 ac_status=$?
42891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42892 (exit $ac_status); }; }; then
42893 eval "$as_ac_var=yes"
42894else
42895 echo "$as_me: failed program was:" >&5
42896sed 's/^/| /' conftest.$ac_ext >&5
42897
42898eval "$as_ac_var=no"
42899fi
ac1cb8d3
VS
42900rm -f conftest.err conftest.$ac_objext \
42901 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42902fi
42903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42904echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42905if test `eval echo '${'$as_ac_var'}'` = yes; then
42906 cat >>confdefs.h <<_ACEOF
42907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42908_ACEOF
42909 have_floor=1
42910fi
42911done
42912
42913echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
42914echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
42915if test "$have_cos" = 1 -a "$have_floor" = 1; then
42916 echo "$as_me:$LINENO: result: yes" >&5
42917echo "${ECHO_T}yes" >&6
42918else
42919 echo "$as_me:$LINENO: result: no" >&5
42920echo "${ECHO_T}no" >&6
42921 LIBS="$LIBS -lm"
42922 # use different functions to avoid configure caching
42923 have_sin=0
42924 have_ceil=0
42925
42926for ac_func in sin
42927do
42928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42929echo "$as_me:$LINENO: checking for $ac_func" >&5
42930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42931if eval "test \"\${$as_ac_var+set}\" = set"; then
42932 echo $ECHO_N "(cached) $ECHO_C" >&6
42933else
42934 cat >conftest.$ac_ext <<_ACEOF
42935/* confdefs.h. */
42936_ACEOF
42937cat confdefs.h >>conftest.$ac_ext
42938cat >>conftest.$ac_ext <<_ACEOF
42939/* end confdefs.h. */
ac1cb8d3
VS
42940/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42942#define $ac_func innocuous_$ac_func
42943
a848cd7e
SC
42944/* System header to define __stub macros and hopefully few prototypes,
42945 which can conflict with char $ac_func (); below.
42946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42947 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42948
a848cd7e
SC
42949#ifdef __STDC__
42950# include <limits.h>
42951#else
42952# include <assert.h>
42953#endif
ac1cb8d3
VS
42954
42955#undef $ac_func
42956
a848cd7e
SC
42957/* Override any gcc2 internal prototype to avoid an error. */
42958#ifdef __cplusplus
42959extern "C"
42960{
42961#endif
42962/* We use char because int might match the return type of a gcc2
42963 builtin and then its argument prototype would still apply. */
42964char $ac_func ();
42965/* The GNU C library defines this for functions which it implements
42966 to always fail with ENOSYS. Some functions are actually named
42967 something starting with __ and the normal name is an alias. */
42968#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42969choke me
42970#else
42971char (*f) () = $ac_func;
42972#endif
42973#ifdef __cplusplus
42974}
42975#endif
42976
42977int
42978main ()
42979{
42980return f != $ac_func;
42981 ;
42982 return 0;
42983}
42984_ACEOF
42985rm -f conftest.$ac_objext conftest$ac_exeext
42986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42987 (eval $ac_link) 2>conftest.er1
a848cd7e 42988 ac_status=$?
ac1cb8d3
VS
42989 grep -v '^ *+' conftest.er1 >conftest.err
42990 rm -f conftest.er1
42991 cat conftest.err >&5
a848cd7e
SC
42992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42993 (exit $ac_status); } &&
6ebeb4c7 42994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42996 (eval $ac_try) 2>&5
42997 ac_status=$?
42998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42999 (exit $ac_status); }; } &&
43000 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43002 (eval $ac_try) 2>&5
43003 ac_status=$?
43004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43005 (exit $ac_status); }; }; then
43006 eval "$as_ac_var=yes"
43007else
43008 echo "$as_me: failed program was:" >&5
43009sed 's/^/| /' conftest.$ac_ext >&5
43010
43011eval "$as_ac_var=no"
43012fi
ac1cb8d3
VS
43013rm -f conftest.err conftest.$ac_objext \
43014 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43015fi
43016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43017echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43018if test `eval echo '${'$as_ac_var'}'` = yes; then
43019 cat >>confdefs.h <<_ACEOF
43020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43021_ACEOF
43022 have_sin=1
43023fi
43024done
43025
43026
43027for ac_func in ceil
43028do
43029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43030echo "$as_me:$LINENO: checking for $ac_func" >&5
43031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43032if eval "test \"\${$as_ac_var+set}\" = set"; then
43033 echo $ECHO_N "(cached) $ECHO_C" >&6
43034else
43035 cat >conftest.$ac_ext <<_ACEOF
43036/* confdefs.h. */
43037_ACEOF
43038cat confdefs.h >>conftest.$ac_ext
43039cat >>conftest.$ac_ext <<_ACEOF
43040/* end confdefs.h. */
ac1cb8d3
VS
43041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43043#define $ac_func innocuous_$ac_func
43044
a848cd7e
SC
43045/* System header to define __stub macros and hopefully few prototypes,
43046 which can conflict with char $ac_func (); below.
43047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43048 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43049
a848cd7e
SC
43050#ifdef __STDC__
43051# include <limits.h>
43052#else
43053# include <assert.h>
43054#endif
ac1cb8d3
VS
43055
43056#undef $ac_func
43057
a848cd7e
SC
43058/* Override any gcc2 internal prototype to avoid an error. */
43059#ifdef __cplusplus
43060extern "C"
43061{
43062#endif
43063/* We use char because int might match the return type of a gcc2
43064 builtin and then its argument prototype would still apply. */
43065char $ac_func ();
43066/* The GNU C library defines this for functions which it implements
43067 to always fail with ENOSYS. Some functions are actually named
43068 something starting with __ and the normal name is an alias. */
43069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43070choke me
43071#else
43072char (*f) () = $ac_func;
43073#endif
43074#ifdef __cplusplus
43075}
43076#endif
43077
43078int
43079main ()
43080{
43081return f != $ac_func;
43082 ;
43083 return 0;
43084}
43085_ACEOF
43086rm -f conftest.$ac_objext conftest$ac_exeext
43087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43088 (eval $ac_link) 2>conftest.er1
a848cd7e 43089 ac_status=$?
ac1cb8d3
VS
43090 grep -v '^ *+' conftest.er1 >conftest.err
43091 rm -f conftest.er1
43092 cat conftest.err >&5
a848cd7e
SC
43093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43094 (exit $ac_status); } &&
6ebeb4c7 43095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43097 (eval $ac_try) 2>&5
43098 ac_status=$?
43099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43100 (exit $ac_status); }; } &&
43101 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43103 (eval $ac_try) 2>&5
43104 ac_status=$?
43105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43106 (exit $ac_status); }; }; then
43107 eval "$as_ac_var=yes"
43108else
43109 echo "$as_me: failed program was:" >&5
43110sed 's/^/| /' conftest.$ac_ext >&5
43111
43112eval "$as_ac_var=no"
43113fi
ac1cb8d3
VS
43114rm -f conftest.err conftest.$ac_objext \
43115 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43116fi
43117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43118echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43119if test `eval echo '${'$as_ac_var'}'` = yes; then
43120 cat >>confdefs.h <<_ACEOF
43121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43122_ACEOF
43123 have_ceil=1
43124fi
43125done
43126
43127 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
43128echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
43129 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
43130 echo "$as_me:$LINENO: result: yes" >&5
43131echo "${ECHO_T}yes" >&6
43132 else
43133 echo "$as_me:$LINENO: result: no" >&5
43134echo "${ECHO_T}no" >&6
43135 # not sure we should warn the user, crash, etc.
43136 fi
43137fi
43138
43139if test "$wxUSE_GUI" = "yes"; then
43140
43141
8bce5cda
MW
43142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
43143 dynamic erase event exec font image minimal mobile \
43144 mobile/wxedit mobile/styles propsize render \
43145 richedit rotate shaped vscroll widgets"
a848cd7e
SC
43146
43147 if test "$wxUSE_MONOLITHIC" != "yes"; then
43148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
43149 fi
0b78747f 43150 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
43151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
43152 if test "$wxUSE_UNIVERSAL" != "yes"; then
43153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
43154 fi
43155 fi
43156 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
43157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 43158 fi
a848cd7e
SC
43159else
43160 SAMPLES_SUBDIRS="console"
43161fi
43162
43163
ceec2216 43164INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
43165-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
43166
48f625bc 43167if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
43168 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
43169elif test "$GCC" = yes ; then
43170 CWARNINGS="-Wall -Wundef"
43171fi
43172
48f625bc 43173if test "x$INTELCXX" = "xyes" ; then
7f47faf4 43174 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
43175elif test "$GXX" = yes ; then
43176 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 43177fi
a848cd7e
SC
43178
43179EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
43180
0c3c69fc 43181CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 43182CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 43183CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 43184
95986553
DE
43185if test "x$MWCC" = "xyes"; then
43186
43187 CC="$CC -cwd source -I-"
43188 CXX="$CXX -cwd source -I-"
43189fi
43190
a848cd7e 43191
0c3c69fc 43192LIBS=`echo $LIBS`
a848cd7e
SC
43193EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
43194EXTRALIBS_XML="$EXPAT_LINK"
43195EXTRALIBS_HTML="$MSPACK_LINK"
43196EXTRALIBS_ODBC="$ODBC_LINK"
43197if test "$wxUSE_GUI" = "yes"; then
2e350179 43198 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
43199fi
43200if test "$wxUSE_OPENGL" = "yes"; then
43201 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
43202fi
43203
43204LDFLAGS="$LDFLAGS $PROFILE"
43205
43206if test "$wxUSE_GTK" = 1; then
43207 WXCONFIG_INCLUDE=
43208else
43209 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
43210fi
43211
43212WXCONFIG_EXTRALIBS="$LIBS"
43213
43214if test "$wxUSE_REGEX" = "builtin" ; then
74802184 43215 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
43216fi
43217if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 43218 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
43219fi
43220if test "$wxUSE_ODBC" = "builtin" ; then
74802184 43221 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
43222fi
43223if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 43224 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
43225fi
43226if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 43227 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
43228fi
43229if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 43230 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
43231fi
43232if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 43233 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
43234fi
43235
43236for i in $wxconfig_3rdparty ; do
74802184 43237 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
43238done
43239
43240
43241if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
43242 WXUNIV=1
43243else
43244 WXUNIV=0
43245fi
43246
43247
43248
43249
43250
43251
43252
43253
43254
43255if test $wxUSE_MONOLITHIC = "yes" ; then
43256 MONOLITHIC=1
43257else
43258 MONOLITHIC=0
43259fi
43260
43261if test $wxUSE_PLUGINS = "yes" ; then
43262 USE_PLUGINS=1
43263else
43264 USE_PLUGINS=0
43265fi
43266
43267if test $wxUSE_ODBC != "no" ; then
43268 USE_ODBC=1
43269else
43270 USE_ODBC=0
43271fi
43272
16358932
VZ
43273if test "$wxUSE_DEBUGREPORT" = "yes" ; then
43274 USE_QA=1
43275else
43276 USE_QA=0
43277fi
43278
a848cd7e
SC
43279if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
43280 OFFICIAL_BUILD=1
43281else
43282 OFFICIAL_BUILD=0
43283fi
43284
43285
43286
43287
43288
43289
43290
43291
43292
43293
43294
43295
43296
43297
43298
43299
43300
43301
43302
ceec2216 43303
d1c38808 43304
a848cd7e
SC
43305
43306
43307TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
43308
43309
43310
43311
43312
43313
43314
43315
4d4ff94c
VZ
43316case "$TOOLKIT" in
43317 GTK)
43318 TOOLKIT_USER="GTK+"
43319 if test "$WXGTK20" = 1; then
43320 TOOLKIT_USER="$TOOLKIT_USER 2"
43321 fi
9a8f0513 43322 ;;
4d4ff94c
VZ
43323
43324 *)
43325 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 43326 ;;
4d4ff94c 43327esac
a848cd7e 43328
fb00f58d
JS
43329if test "$wxUSE_WINE" = "yes"; then
43330 BAKEFILE_FORCE_PLATFORM=win32
43331fi
43332
9a8f0513 43333
1e9e8aba
DE
43334
43335
a848cd7e
SC
43336 if test "x$BAKEFILE_HOST" = "x"; then
43337 BAKEFILE_HOST="${host}"
43338 fi
43339
43340 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
43341
43342 if test -n "$ac_tool_prefix"; then
43343 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
43344set dummy ${ac_tool_prefix}ranlib; ac_word=$2
43345echo "$as_me:$LINENO: checking for $ac_word" >&5
43346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43347if test "${ac_cv_prog_RANLIB+set}" = set; then
43348 echo $ECHO_N "(cached) $ECHO_C" >&6
43349else
43350 if test -n "$RANLIB"; then
43351 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
43352else
43353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43354for as_dir in $PATH
43355do
43356 IFS=$as_save_IFS
43357 test -z "$as_dir" && as_dir=.
43358 for ac_exec_ext in '' $ac_executable_extensions; do
43359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43360 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
43361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43362 break 2
43363 fi
43364done
43365done
43366
43367fi
43368fi
43369RANLIB=$ac_cv_prog_RANLIB
43370if test -n "$RANLIB"; then
43371 echo "$as_me:$LINENO: result: $RANLIB" >&5
43372echo "${ECHO_T}$RANLIB" >&6
43373else
43374 echo "$as_me:$LINENO: result: no" >&5
43375echo "${ECHO_T}no" >&6
43376fi
43377
43378fi
43379if test -z "$ac_cv_prog_RANLIB"; then
43380 ac_ct_RANLIB=$RANLIB
43381 # Extract the first word of "ranlib", so it can be a program name with args.
43382set dummy ranlib; ac_word=$2
43383echo "$as_me:$LINENO: checking for $ac_word" >&5
43384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43385if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
43386 echo $ECHO_N "(cached) $ECHO_C" >&6
43387else
43388 if test -n "$ac_ct_RANLIB"; then
43389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
43390else
43391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43392for as_dir in $PATH
43393do
43394 IFS=$as_save_IFS
43395 test -z "$as_dir" && as_dir=.
43396 for ac_exec_ext in '' $ac_executable_extensions; do
43397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43398 ac_cv_prog_ac_ct_RANLIB="ranlib"
43399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43400 break 2
43401 fi
43402done
43403done
43404
43405 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
43406fi
43407fi
43408ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
43409if test -n "$ac_ct_RANLIB"; then
43410 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
43411echo "${ECHO_T}$ac_ct_RANLIB" >&6
43412else
43413 echo "$as_me:$LINENO: result: no" >&5
43414echo "${ECHO_T}no" >&6
43415fi
43416
43417 RANLIB=$ac_ct_RANLIB
43418else
43419 RANLIB="$ac_cv_prog_RANLIB"
43420fi
43421
43422 # Find a good install program. We prefer a C program (faster),
43423# so one script is as good as another. But avoid the broken or
43424# incompatible versions:
43425# SysV /etc/install, /usr/sbin/install
43426# SunOS /usr/etc/install
43427# IRIX /sbin/install
43428# AIX /bin/install
43429# AmigaOS /C/install, which installs bootblocks on floppy discs
43430# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
43431# AFS /usr/afsws/bin/install, which mishandles nonexistent args
43432# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 43433# OS/2's system install, which has a completely different semantic
a848cd7e
SC
43434# ./install, which can be erroneously created by make from ./install.sh.
43435echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
43436echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
43437if test -z "$INSTALL"; then
43438if test "${ac_cv_path_install+set}" = set; then
43439 echo $ECHO_N "(cached) $ECHO_C" >&6
43440else
43441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43442for as_dir in $PATH
43443do
43444 IFS=$as_save_IFS
43445 test -z "$as_dir" && as_dir=.
43446 # Account for people who put trailing slashes in PATH elements.
43447case $as_dir/ in
43448 ./ | .// | /cC/* | \
43449 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 43450 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
43451 /usr/ucb/* ) ;;
43452 *)
43453 # OSF1 and SCO ODT 3.0 have their own names for install.
43454 # Don't use installbsd from OSF since it installs stuff as root
43455 # by default.
43456 for ac_prog in ginstall scoinst install; do
43457 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
43458 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
43459 if test $ac_prog = install &&
43460 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43461 # AIX install. It has an incompatible calling convention.
43462 :
43463 elif test $ac_prog = install &&
43464 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43465 # program-specific install script used by HP pwplus--don't use.
43466 :
43467 else
43468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
43469 break 3
43470 fi
43471 fi
a848cd7e
SC
43472 done
43473 done
43474 ;;
43475esac
43476done
43477
43478
43479fi
43480 if test "${ac_cv_path_install+set}" = set; then
43481 INSTALL=$ac_cv_path_install
43482 else
43483 # As a last resort, use the slow shell script. We don't cache a
43484 # path for INSTALL within a source directory, because that will
43485 # break other packages using the cache if that directory is
43486 # removed, or if the path is relative.
43487 INSTALL=$ac_install_sh
43488 fi
43489fi
43490echo "$as_me:$LINENO: result: $INSTALL" >&5
43491echo "${ECHO_T}$INSTALL" >&6
43492
43493# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
43494# It thinks the first close brace ends the variable substitution.
43495test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
43496
43497test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
43498
43499test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
43500
43501 echo "$as_me:$LINENO: checking whether ln -s works" >&5
43502echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
43503LN_S=$as_ln_s
43504if test "$LN_S" = "ln -s"; then
43505 echo "$as_me:$LINENO: result: yes" >&5
43506echo "${ECHO_T}yes" >&6
43507else
43508 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
43509echo "${ECHO_T}no, using $LN_S" >&6
43510fi
43511
43512
43513 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43514echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43515set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43516if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43517 echo $ECHO_N "(cached) $ECHO_C" >&6
43518else
43519 cat >conftest.make <<\_ACEOF
43520all:
43521 @echo 'ac_maketemp="$(MAKE)"'
43522_ACEOF
43523# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43524eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43525if test -n "$ac_maketemp"; then
43526 eval ac_cv_prog_make_${ac_make}_set=yes
43527else
43528 eval ac_cv_prog_make_${ac_make}_set=no
43529fi
43530rm -f conftest.make
43531fi
43532if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43533 echo "$as_me:$LINENO: result: yes" >&5
43534echo "${ECHO_T}yes" >&6
43535 SET_MAKE=
43536else
43537 echo "$as_me:$LINENO: result: no" >&5
43538echo "${ECHO_T}no" >&6
43539 SET_MAKE="MAKE=${MAKE-make}"
43540fi
43541
43542
43543
43544 if test -n "$ac_tool_prefix"; then
43545 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43546set dummy ${ac_tool_prefix}ar; ac_word=$2
43547echo "$as_me:$LINENO: checking for $ac_word" >&5
43548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43549if test "${ac_cv_prog_AR+set}" = set; then
43550 echo $ECHO_N "(cached) $ECHO_C" >&6
43551else
43552 if test -n "$AR"; then
43553 ac_cv_prog_AR="$AR" # Let the user override the test.
43554else
43555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43556for as_dir in $PATH
43557do
43558 IFS=$as_save_IFS
43559 test -z "$as_dir" && as_dir=.
43560 for ac_exec_ext in '' $ac_executable_extensions; do
43561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43562 ac_cv_prog_AR="${ac_tool_prefix}ar"
43563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43564 break 2
43565 fi
43566done
43567done
43568
43569fi
43570fi
43571AR=$ac_cv_prog_AR
43572if test -n "$AR"; then
43573 echo "$as_me:$LINENO: result: $AR" >&5
43574echo "${ECHO_T}$AR" >&6
43575else
43576 echo "$as_me:$LINENO: result: no" >&5
43577echo "${ECHO_T}no" >&6
43578fi
43579
43580fi
43581if test -z "$ac_cv_prog_AR"; then
43582 ac_ct_AR=$AR
43583 # Extract the first word of "ar", so it can be a program name with args.
43584set dummy ar; ac_word=$2
43585echo "$as_me:$LINENO: checking for $ac_word" >&5
43586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43587if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43588 echo $ECHO_N "(cached) $ECHO_C" >&6
43589else
43590 if test -n "$ac_ct_AR"; then
43591 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43592else
43593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43594for as_dir in $PATH
43595do
43596 IFS=$as_save_IFS
43597 test -z "$as_dir" && as_dir=.
43598 for ac_exec_ext in '' $ac_executable_extensions; do
43599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43600 ac_cv_prog_ac_ct_AR="ar"
43601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43602 break 2
43603 fi
43604done
43605done
43606
43607 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43608fi
43609fi
43610ac_ct_AR=$ac_cv_prog_ac_ct_AR
43611if test -n "$ac_ct_AR"; then
43612 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43613echo "${ECHO_T}$ac_ct_AR" >&6
43614else
43615 echo "$as_me:$LINENO: result: no" >&5
43616echo "${ECHO_T}no" >&6
43617fi
43618
43619 AR=$ac_ct_AR
43620else
43621 AR="$ac_cv_prog_AR"
43622fi
43623
43624 if test -n "$ac_tool_prefix"; then
43625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43626set dummy ${ac_tool_prefix}strip; ac_word=$2
43627echo "$as_me:$LINENO: checking for $ac_word" >&5
43628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43629if test "${ac_cv_prog_STRIP+set}" = set; then
43630 echo $ECHO_N "(cached) $ECHO_C" >&6
43631else
43632 if test -n "$STRIP"; then
43633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43634else
43635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43636for as_dir in $PATH
43637do
43638 IFS=$as_save_IFS
43639 test -z "$as_dir" && as_dir=.
43640 for ac_exec_ext in '' $ac_executable_extensions; do
43641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43644 break 2
43645 fi
43646done
43647done
43648
43649fi
43650fi
43651STRIP=$ac_cv_prog_STRIP
43652if test -n "$STRIP"; then
43653 echo "$as_me:$LINENO: result: $STRIP" >&5
43654echo "${ECHO_T}$STRIP" >&6
43655else
43656 echo "$as_me:$LINENO: result: no" >&5
43657echo "${ECHO_T}no" >&6
43658fi
43659
43660fi
43661if test -z "$ac_cv_prog_STRIP"; then
43662 ac_ct_STRIP=$STRIP
43663 # Extract the first word of "strip", so it can be a program name with args.
43664set dummy strip; ac_word=$2
43665echo "$as_me:$LINENO: checking for $ac_word" >&5
43666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43667if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43668 echo $ECHO_N "(cached) $ECHO_C" >&6
43669else
43670 if test -n "$ac_ct_STRIP"; then
43671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43672else
43673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43674for as_dir in $PATH
43675do
43676 IFS=$as_save_IFS
43677 test -z "$as_dir" && as_dir=.
43678 for ac_exec_ext in '' $ac_executable_extensions; do
43679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43680 ac_cv_prog_ac_ct_STRIP="strip"
43681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43682 break 2
43683 fi
43684done
43685done
43686
43687 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
43688fi
43689fi
43690ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43691if test -n "$ac_ct_STRIP"; then
43692 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43693echo "${ECHO_T}$ac_ct_STRIP" >&6
43694else
43695 echo "$as_me:$LINENO: result: no" >&5
43696echo "${ECHO_T}no" >&6
43697fi
43698
43699 STRIP=$ac_ct_STRIP
43700else
43701 STRIP="$ac_cv_prog_STRIP"
43702fi
43703
43704 if test -n "$ac_tool_prefix"; then
43705 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
43706set dummy ${ac_tool_prefix}nm; ac_word=$2
43707echo "$as_me:$LINENO: checking for $ac_word" >&5
43708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43709if test "${ac_cv_prog_NM+set}" = set; then
43710 echo $ECHO_N "(cached) $ECHO_C" >&6
43711else
43712 if test -n "$NM"; then
43713 ac_cv_prog_NM="$NM" # Let the user override the test.
43714else
43715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43716for as_dir in $PATH
43717do
43718 IFS=$as_save_IFS
43719 test -z "$as_dir" && as_dir=.
43720 for ac_exec_ext in '' $ac_executable_extensions; do
43721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43722 ac_cv_prog_NM="${ac_tool_prefix}nm"
43723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43724 break 2
43725 fi
43726done
43727done
43728
43729fi
43730fi
43731NM=$ac_cv_prog_NM
43732if test -n "$NM"; then
43733 echo "$as_me:$LINENO: result: $NM" >&5
43734echo "${ECHO_T}$NM" >&6
43735else
43736 echo "$as_me:$LINENO: result: no" >&5
43737echo "${ECHO_T}no" >&6
43738fi
43739
43740fi
43741if test -z "$ac_cv_prog_NM"; then
43742 ac_ct_NM=$NM
43743 # Extract the first word of "nm", so it can be a program name with args.
43744set dummy nm; ac_word=$2
43745echo "$as_me:$LINENO: checking for $ac_word" >&5
43746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43747if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
43748 echo $ECHO_N "(cached) $ECHO_C" >&6
43749else
43750 if test -n "$ac_ct_NM"; then
43751 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
43752else
43753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43754for as_dir in $PATH
43755do
43756 IFS=$as_save_IFS
43757 test -z "$as_dir" && as_dir=.
43758 for ac_exec_ext in '' $ac_executable_extensions; do
43759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43760 ac_cv_prog_ac_ct_NM="nm"
43761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43762 break 2
43763 fi
43764done
43765done
43766
43767 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
43768fi
43769fi
43770ac_ct_NM=$ac_cv_prog_ac_ct_NM
43771if test -n "$ac_ct_NM"; then
43772 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
43773echo "${ECHO_T}$ac_ct_NM" >&6
43774else
43775 echo "$as_me:$LINENO: result: no" >&5
43776echo "${ECHO_T}no" >&6
43777fi
43778
43779 NM=$ac_ct_NM
43780else
43781 NM="$ac_cv_prog_NM"
43782fi
43783
43784
43785 case ${BAKEFILE_HOST} in
43786 *-hp-hpux* )
1e9e8aba 43787 INSTALL_DIR="mkdir -p"
a848cd7e
SC
43788 ;;
43789 *) INSTALL_DIR="$INSTALL -d"
43790 ;;
43791 esac
43792
43793
43794 LDFLAGS_GUI=
43795 case ${BAKEFILE_HOST} in
43796 *-*-cygwin* | *-*-mingw32* )
43797 LDFLAGS_GUI="-mwindows"
43798 esac
43799
43800
43801 fi
43802
43803 echo "$as_me:$LINENO: checking if make is GNU make" >&5
43804echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
43805if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
43806 echo $ECHO_N "(cached) $ECHO_C" >&6
43807else
43808
43809 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
43810 egrep -s GNU > /dev/null); then
43811 bakefile_cv_prog_makeisgnu="yes"
43812 else
43813 bakefile_cv_prog_makeisgnu="no"
43814 fi
43815
43816fi
43817echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
43818echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
43819
43820 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
43821 IF_GNU_MAKE=""
43822 else
43823 IF_GNU_MAKE="#"
43824 fi
43825
43826
43827
43828 PLATFORM_UNIX=0
43829 PLATFORM_WIN32=0
43830 PLATFORM_MSDOS=0
43831 PLATFORM_MAC=0
1e9e8aba 43832 PLATFORM_MACOS=0
a848cd7e
SC
43833 PLATFORM_MACOSX=0
43834 PLATFORM_OS2=0
1e9e8aba 43835 PLATFORM_BEOS=0
a848cd7e
SC
43836
43837 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
43838 case "${BAKEFILE_HOST}" in
810b94f0 43839 *-*-mingw32* )
a848cd7e
SC
43840 PLATFORM_WIN32=1
43841 ;;
43842 *-pc-msdosdjgpp )
43843 PLATFORM_MSDOS=1
43844 ;;
43845 *-pc-os2_emx | *-pc-os2-emx )
43846 PLATFORM_OS2=1
43847 ;;
47bd5406 43848 *-*-darwin* )
a848cd7e
SC
43849 PLATFORM_MAC=1
43850 PLATFORM_MACOSX=1
43851 ;;
1e9e8aba
DE
43852 *-*-beos* )
43853 PLATFORM_BEOS=1
43854 ;;
43855 powerpc-apple-macos* )
43856 PLATFORM_MAC=1
43857 PLATFORM_MACOS=1
43858 ;;
a848cd7e
SC
43859 * )
43860 PLATFORM_UNIX=1
43861 ;;
43862 esac
43863 else
43864 case "$BAKEFILE_FORCE_PLATFORM" in
43865 win32 )
43866 PLATFORM_WIN32=1
43867 ;;
43868 msdos )
43869 PLATFORM_MSDOS=1
43870 ;;
43871 os2 )
43872 PLATFORM_OS2=1
43873 ;;
43874 darwin )
43875 PLATFORM_MAC=1
43876 PLATFORM_MACOSX=1
43877 ;;
43878 unix )
43879 PLATFORM_UNIX=1
43880 ;;
1e9e8aba
DE
43881 beos )
43882 PLATFORM_BEOS=1
43883 ;;
a848cd7e
SC
43884 * )
43885 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
43886echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
43887 { (exit 1); exit 1; }; }
43888 ;;
43889 esac
43890 fi
43891
43892
43893
43894
43895
43896
43897
43898
43899
1e9e8aba
DE
43900
43901
a848cd7e
SC
43902 # Check whether --enable-omf or --disable-omf was given.
43903if test "${enable_omf+set}" = set; then
43904 enableval="$enable_omf"
43905 bk_os2_use_omf="$enableval"
43906fi;
43907
43908 case "${BAKEFILE_HOST}" in
43909 *-*-darwin* )
47bd5406
VZ
43910 if test "x$GCC" = "xyes"; then
43911 CFLAGS="$CFLAGS -fno-common"
43912 CXXFLAGS="$CXXFLAGS -fno-common"
43913 fi
43914 if test "x$XLCC" = "xyes"; then
43915 CFLAGS="$CFLAGS -qnocommon"
43916 CXXFLAGS="$CXXFLAGS -qnocommon"
43917 fi
a848cd7e
SC
43918 ;;
43919
43920 *-pc-os2_emx | *-pc-os2-emx )
43921 if test "x$bk_os2_use_omf" = "xyes" ; then
43922 AR=emxomfar
43923 RANLIB=:
43924 LDFLAGS="-Zomf $LDFLAGS"
43925 CFLAGS="-Zomf $CFLAGS"
43926 CXXFLAGS="-Zomf $CXXFLAGS"
43927 OS2_LIBEXT="lib"
43928 else
43929 OS2_LIBEXT="a"
43930 fi
43931 ;;
1e9e8aba
DE
43932
43933 i*86-*-beos* )
43934 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
43935 ;;
a848cd7e
SC
43936 esac
43937
43938
43939 SO_SUFFIX="so"
43940 SO_SUFFIX_MODULE="so"
43941 EXEEXT=""
43942 LIBPREFIX="lib"
43943 LIBEXT=".a"
43944 DLLPREFIX="lib"
43945 DLLPREFIX_MODULE=""
43946 DLLIMP_SUFFIX=""
810b94f0 43947 dlldir="$libdir"
a848cd7e
SC
43948
43949 case "${BAKEFILE_HOST}" in
43950 *-hp-hpux* )
43951 SO_SUFFIX="sl"
43952 SO_SUFFIX_MODULE="sl"
43953 ;;
43954 *-*-aix* )
43955 SO_SUFFIX="a"
43956 SO_SUFFIX_MODULE="a"
43957 ;;
810b94f0
MW
43958 *-*-cygwin* )
43959 SO_SUFFIX="dll"
43960 SO_SUFFIX_MODULE="dll"
43961 DLLIMP_SUFFIX="dll.a"
43962 EXEEXT=".exe"
43963 DLLPREFIX="cyg"
43964 dlldir="$bindir"
43965 ;;
43966 *-*-mingw32* )
a848cd7e
SC
43967 SO_SUFFIX="dll"
43968 SO_SUFFIX_MODULE="dll"
43969 DLLIMP_SUFFIX="dll.a"
43970 EXEEXT=".exe"
43971 DLLPREFIX=""
810b94f0 43972 dlldir="$bindir"
a848cd7e
SC
43973 ;;
43974 *-pc-msdosdjgpp )
43975 EXEEXT=".exe"
43976 DLLPREFIX=""
810b94f0 43977 dlldir="$bindir"
a848cd7e
SC
43978 ;;
43979 *-pc-os2_emx | *-pc-os2-emx )
43980 SO_SUFFIX="dll"
43981 SO_SUFFIX_MODULE="dll"
43982 DLLIMP_SUFFIX=$OS2_LIBEXT
43983 EXEEXT=".exe"
43984 DLLPREFIX=""
43985 LIBPREFIX=""
43986 LIBEXT=".$OS2_LIBEXT"
810b94f0 43987 dlldir="$bindir"
a848cd7e 43988 ;;
47bd5406 43989 *-*-darwin* )
a848cd7e
SC
43990 SO_SUFFIX="dylib"
43991 SO_SUFFIX_MODULE="bundle"
43992 ;;
43993 esac
43994
43995 if test "x$DLLIMP_SUFFIX" = "x" ; then
43996 DLLIMP_SUFFIX="$SO_SUFFIX"
43997 fi
43998
43999
44000
44001
44002
44003
44004
44005
44006
44007
44008
810b94f0 44009
1e9e8aba
DE
44010 PIC_FLAG=""
44011 if test "x$GCC" = "xyes"; then
a848cd7e
SC
44012 PIC_FLAG="-fPIC"
44013 fi
44014
1e9e8aba
DE
44015 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
44016 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 44017 WINDOWS_IMPLIB=0
1e9e8aba 44018
a848cd7e
SC
44019 case "${BAKEFILE_HOST}" in
44020 *-hp-hpux* )
1e9e8aba 44021 if test "x$GCC" != "xyes"; then
a848cd7e
SC
44022 LDFLAGS="$LDFLAGS -L/usr/lib"
44023
44024 SHARED_LD_CC="${CC} -b -o"
44025 SHARED_LD_CXX="${CXX} -b -o"
44026 PIC_FLAG="+Z"
44027 fi
44028 ;;
44029
44030 *-*-linux* )
44031 if test "x$GCC" != "xyes"; then
44032 echo "$as_me:$LINENO: checking for Intel compiler" >&5
44033echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
44034if test "${bakefile_cv_prog_icc+set}" = set; then
44035 echo $ECHO_N "(cached) $ECHO_C" >&6
44036else
44037
44038 cat >conftest.$ac_ext <<_ACEOF
44039/* confdefs.h. */
44040_ACEOF
44041cat confdefs.h >>conftest.$ac_ext
44042cat >>conftest.$ac_ext <<_ACEOF
44043/* end confdefs.h. */
44044
44045int
44046main ()
44047{
44048
44049 #ifndef __INTEL_COMPILER
44050 #error Not icc
44051 #endif
44052
44053 ;
44054 return 0;
44055}
44056_ACEOF
44057rm -f conftest.$ac_objext
44058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44059 (eval $ac_compile) 2>conftest.er1
a848cd7e 44060 ac_status=$?
ac1cb8d3
VS
44061 grep -v '^ *+' conftest.er1 >conftest.err
44062 rm -f conftest.er1
44063 cat conftest.err >&5
a848cd7e
SC
44064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44065 (exit $ac_status); } &&
6ebeb4c7 44066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44068 (eval $ac_try) 2>&5
44069 ac_status=$?
44070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44071 (exit $ac_status); }; } &&
44072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44074 (eval $ac_try) 2>&5
44075 ac_status=$?
44076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44077 (exit $ac_status); }; }; then
44078 bakefile_cv_prog_icc=yes
44079else
44080 echo "$as_me: failed program was:" >&5
44081sed 's/^/| /' conftest.$ac_ext >&5
44082
44083bakefile_cv_prog_icc=no
44084
44085fi
ac1cb8d3 44086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44087
44088fi
44089echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
44090echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
44091 if test "$bakefile_cv_prog_icc" = "yes"; then
44092 PIC_FLAG="-KPIC"
44093 fi
44094 fi
44095 ;;
44096
44097 *-*-solaris2* )
44098 if test "x$GCC" != xyes ; then
44099 SHARED_LD_CC="${CC} -G -o"
44100 SHARED_LD_CXX="${CXX} -G -o"
44101 PIC_FLAG="-KPIC"
44102 fi
44103 ;;
44104
44105 *-*-darwin* )
44106
44107 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
44108echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
44109if test "${wx_cv_gcc31+set}" = set; then
44110 echo $ECHO_N "(cached) $ECHO_C" >&6
44111else
44112
44113 cat >conftest.$ac_ext <<_ACEOF
44114/* confdefs.h. */
44115_ACEOF
44116cat confdefs.h >>conftest.$ac_ext
44117cat >>conftest.$ac_ext <<_ACEOF
44118/* end confdefs.h. */
44119
44120int
44121main ()
44122{
44123
44124 #if (__GNUC__ < 3) || \
44125 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
44126 #error old gcc
44127 #endif
44128
44129 ;
44130 return 0;
44131}
44132_ACEOF
44133rm -f conftest.$ac_objext
44134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44135 (eval $ac_compile) 2>conftest.er1
a848cd7e 44136 ac_status=$?
ac1cb8d3
VS
44137 grep -v '^ *+' conftest.er1 >conftest.err
44138 rm -f conftest.er1
44139 cat conftest.err >&5
a848cd7e
SC
44140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44141 (exit $ac_status); } &&
6ebeb4c7 44142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44144 (eval $ac_try) 2>&5
44145 ac_status=$?
44146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44147 (exit $ac_status); }; } &&
44148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44150 (eval $ac_try) 2>&5
44151 ac_status=$?
44152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44153 (exit $ac_status); }; }; then
44154
44155 wx_cv_gcc31=yes
44156
44157else
44158 echo "$as_me: failed program was:" >&5
44159sed 's/^/| /' conftest.$ac_ext >&5
44160
44161
44162 wx_cv_gcc31=no
44163
44164
44165fi
ac1cb8d3 44166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44167
44168fi
44169echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
44170echo "${ECHO_T}$wx_cv_gcc31" >&6
44171 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
44172
44173D='$'
44174cat <<EOF >shared-ld-sh
a848cd7e
SC
44175#!/bin/sh
44176#-----------------------------------------------------------------------------
44177#-- Name: distrib/mac/shared-ld-sh
44178#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
44179#-- Author: Gilles Depeyrot
44180#-- Copyright: (c) 2002 Gilles Depeyrot
44181#-- Licence: any use permitted
44182#-----------------------------------------------------------------------------
44183
44184verbose=0
44185args=""
44186objects=""
44187linking_flag="-dynamiclib"
810b94f0 44188ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 44189
473276a9
VS
44190while test ${D}# -gt 0; do
44191 case ${D}1 in
a848cd7e
SC
44192
44193 -v)
44194 verbose=1
44195 ;;
44196
44197 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
44198 # collect these options and values
473276a9 44199 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
44200 shift
44201 ;;
44202
810b94f0
MW
44203 -s|-Wl,*)
44204 # collect these load args
44205 ldargs="${D}{ldargs} ${D}1"
2113bc77 44206 ;;
810b94f0
MW
44207
44208 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 44209 # collect these options
473276a9 44210 args="${D}{args} ${D}1"
a848cd7e
SC
44211 ;;
44212
44213 -dynamiclib|-bundle)
473276a9 44214 linking_flag="${D}1"
a848cd7e
SC
44215 ;;
44216
44217 -*)
473276a9 44218 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
44219 exit 1
44220 ;;
44221
44222 *.o | *.a | *.dylib)
44223 # collect object files
473276a9 44224 objects="${D}{objects} ${D}1"
a848cd7e
SC
44225 ;;
44226
44227 *)
473276a9 44228 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
44229 exit 1
44230 ;;
44231
44232 esac
44233 shift
44234done
44235
810b94f0
MW
44236status=0
44237
a848cd7e
SC
44238#
44239# Link one module containing all the others
44240#
473276a9 44241if test ${D}{verbose} = 1; then
810b94f0 44242 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 44243fi
810b94f0 44244c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 44245status=${D}?
a848cd7e
SC
44246
44247#
810b94f0
MW
44248# Link the shared library from the single module created, but only if the
44249# previous command didn't fail:
a848cd7e 44250#
810b94f0
MW
44251if test ${D}{status} = 0; then
44252 if test ${D}{verbose} = 1; then
44253 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
44254 fi
44255 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
44256 status=${D}?
a848cd7e
SC
44257fi
44258
44259#
44260# Remove intermediate module
44261#
473276a9 44262rm -f master.${D}${D}.o
a848cd7e 44263
810b94f0 44264exit ${D}status
a848cd7e 44265EOF
473276a9 44266
a848cd7e
SC
44267 chmod +x shared-ld-sh
44268
44269 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
44270 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
44271 SHARED_LD_CXX="$SHARED_LD_CC"
44272 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
44273 else
44274 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
44275 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
44276 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
44277 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
44278 fi
44279
47bd5406
VZ
44280 if test "x$GCC" == "xyes"; then
44281 PIC_FLAG="-dynamic -fPIC"
44282 fi
44283 if test "x$XLCC" = "xyes"; then
44284 PIC_FLAG="-dynamic -DPIC"
44285 fi
a848cd7e
SC
44286 ;;
44287
44288 *-*-aix* )
f6b50c59
VZ
44289 if test "x$GCC" = "xyes"; then
44290 PIC_FLAG=""
44291
44292 case "${BAKEFILE_HOST}" in
44293 *-*-aix5* )
44294 LD_EXPFULL="-Wl,-bexpfull"
44295 ;;
44296 esac
44297
7b94a67c
VZ
44298 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
44299 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
0ad5d837 44300 else
f6b50c59 44301 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
44302set dummy makeC++SharedLib; ac_word=$2
44303echo "$as_me:$LINENO: checking for $ac_word" >&5
44304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44305if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
44306 echo $ECHO_N "(cached) $ECHO_C" >&6
44307else
44308 if test -n "$AIX_CXX_LD"; then
44309 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
44310else
44311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44312for as_dir in $PATH
44313do
44314 IFS=$as_save_IFS
44315 test -z "$as_dir" && as_dir=.
44316 for ac_exec_ext in '' $ac_executable_extensions; do
44317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44318 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
44319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44320 break 2
44321 fi
44322done
44323done
44324
44325 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
44326fi
44327fi
44328AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
44329if test -n "$AIX_CXX_LD"; then
44330 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
44331echo "${ECHO_T}$AIX_CXX_LD" >&6
44332else
44333 echo "$as_me:$LINENO: result: no" >&5
44334echo "${ECHO_T}no" >&6
44335fi
44336
f6b50c59 44337 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
44338 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
44339 fi
44340 ;;
44341
44342 *-*-beos* )
1e9e8aba
DE
44343 SHARED_LD_CC="${LD} -nostart -o"
44344 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
44345 ;;
44346
44347 *-*-irix* )
44348 if test "x$GCC" != "xyes"; then
44349 PIC_FLAG="-KPIC"
44350 fi
44351 ;;
44352
44353 *-*-cygwin* | *-*-mingw32* )
44354 PIC_FLAG=""
1e9e8aba
DE
44355 SHARED_LD_CC="\$(CC) -shared -o"
44356 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 44357 WINDOWS_IMPLIB=1
a848cd7e
SC
44358 ;;
44359
44360 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
44361 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44362 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 44363 PIC_FLAG=""
473276a9
VS
44364
44365D='$'
44366cat <<EOF >dllar.sh
44367#!/bin/sh
44368#
44369# dllar - a tool to build both a .dll and an .a file
44370# from a set of object (.o) files for EMX/OS2.
44371#
44372# Written by Andrew Zabolotny, bit@freya.etu.ru
44373# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
44374#
44375# This script will accept a set of files on the command line.
44376# All the public symbols from the .o files will be exported into
44377# a .DEF file, then linker will be run (through gcc) against them to
44378# build a shared library consisting of all given .o files. All libraries
44379# (.a) will be first decompressed into component .o files then act as
44380# described above. You can optionally give a description (-d "description")
44381# which will be put into .DLL. To see the list of accepted options (as well
44382# as command-line format) simply run this program without options. The .DLL
44383# is built to be imported by name (there is no guarantee that new versions
44384# of the library you build will have same ordinals for same symbols).
44385#
44386# dllar is free software; you can redistribute it and/or modify
44387# it under the terms of the GNU General Public License as published by
44388# the Free Software Foundation; either version 2, or (at your option)
44389# any later version.
44390#
44391# dllar is distributed in the hope that it will be useful,
44392# but WITHOUT ANY WARRANTY; without even the implied warranty of
44393# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44394# GNU General Public License for more details.
44395#
44396# You should have received a copy of the GNU General Public License
44397# along with dllar; see the file COPYING. If not, write to the Free
44398# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
44399# 02111-1307, USA.
44400
44401# To successfuly run this program you will need:
44402# - Current drive should have LFN support (HPFS, ext2, network, etc)
44403# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
44404# - gcc
44405# (used to build the .dll)
44406# - emxexp
44407# (used to create .def file from .o files)
44408# - emximp
44409# (used to create .a file from .def file)
44410# - GNU text utilites (cat, sort, uniq)
44411# used to process emxexp output
44412# - GNU file utilities (mv, rm)
44413# - GNU sed
44414# - lxlite (optional, see flag below)
44415# (used for general .dll cleanup)
44416#
44417
44418flag_USE_LXLITE=1;
44419
44420#
44421# helper functions
44422# basnam, variant of basename, which does _not_ remove the path, _iff_
44423# second argument (suffix to remove) is given
44424basnam(){
44425 case ${D}# in
44426 1)
1e9e8aba 44427 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
44428 ;;
44429 2)
44430 echo ${D}1 | sed 's/'${D}2'${D}//'
44431 ;;
44432 *)
44433 echo "error in basnam ${D}*"
44434 exit 8
44435 ;;
44436 esac
44437}
44438
44439# Cleanup temporary files and output
44440CleanUp() {
44441 cd ${D}curDir
44442 for i in ${D}inputFiles ; do
44443 case ${D}i in
44444 *!)
44445 rm -rf \`basnam ${D}i !\`
44446 ;;
44447 *)
44448 ;;
44449 esac
44450 done
44451
44452 # Kill result in case of failure as there is just to many stupid make/nmake
44453 # things out there which doesn't do this.
1e9e8aba 44454 if [ ${D}# -eq 0 ]; then
473276a9
VS
44455 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
44456 fi
44457}
44458
44459# Print usage and exit script with rc=1.
44460PrintHelp() {
b1d22ded
DE
44461 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
44462 echo ' [-name-mangler-script script.sh]'
44463 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
44464 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
44465 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 44466 echo ' [*.o] [*.a]'
473276a9
VS
44467 echo '*> "output_file" should have no extension.'
44468 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
44469 echo ' The import library name is derived from this and is set to "name".a,'
44470 echo ' unless overridden by -import'
44471 echo '*> "importlib_name" should have no extension.'
44472 echo ' If it has the .o, or .a extension, it is automatically removed.'
44473 echo ' This name is used as the import library name and may be longer and'
44474 echo ' more descriptive than the DLL name which has to follow the old '
44475 echo ' 8.3 convention of FAT.'
b1d22ded
DE
44476 echo '*> "script.sh may be given to override the output_file name by a'
44477 echo ' different name. It is mainly useful if the regular make process'
44478 echo ' of some package does not take into account OS/2 restriction of'
44479 echo ' DLL name lengths. It takes the importlib name as input and is'
44480 echo ' supposed to procude a shorter name as output. The script should'
44481 echo ' expect to get importlib_name without extension and should produce'
44482 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
44483 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
44484 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
44485 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
44486 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
44487 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
44488 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
44489 echo ' If the last character of a symbol is "*", all symbols beginning'
44490 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 44491 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 44492 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 44493 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 44494 echo ' C runtime DLLs.'
b1d22ded 44495 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
44496 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
44497 echo ' unchanged to GCC at the end of command line.'
44498 echo '*> If you create a DLL from a library and you do not specify -o,'
44499 echo ' the basename for DLL and import library will be set to library name,'
44500 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
44501 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
44502 echo ' library will be renamed into gcc_s.a.'
44503 echo '--------'
44504 echo 'Example:'
44505 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
44506 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
44507 CleanUp
44508 exit 1
44509}
44510
44511# Execute a command.
44512# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
44513# @Uses Whatever CleanUp() uses.
44514doCommand() {
44515 echo "${D}*"
44516 eval ${D}*
44517 rcCmd=${D}?
44518
1e9e8aba 44519 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
44520 echo "command failed, exit code="${D}rcCmd
44521 CleanUp
44522 exit ${D}rcCmd
44523 fi
44524}
44525
44526# main routine
44527# setup globals
44528cmdLine=${D}*
44529outFile=""
44530outimpFile=""
44531inputFiles=""
b1d22ded 44532renameScript=""
473276a9
VS
44533description=""
44534CC=gcc.exe
44535CFLAGS="-s -Zcrtdll"
44536EXTRA_CFLAGS=""
44537EXPORT_BY_ORDINALS=0
44538exclude_symbols=""
44539library_flags=""
44540curDir=\`pwd\`
44541curDirS=curDir
44542case ${D}curDirS in
44543*/)
44544 ;;
44545*)
44546 curDirS=${D}{curDirS}"/"
44547 ;;
44548esac
44549# Parse commandline
44550libsToLink=0
b1d22ded 44551omfLinking=0
1e9e8aba 44552while [ ${D}1 ]; do
473276a9
VS
44553 case ${D}1 in
44554 -ord*)
44555 EXPORT_BY_ORDINALS=1;
44556 ;;
44557 -o*)
44558 shift
44559 outFile=${D}1
44560 ;;
44561 -i*)
44562 shift
44563 outimpFile=${D}1
44564 ;;
b1d22ded
DE
44565 -name-mangler-script)
44566 shift
44567 renameScript=${D}1
44568 ;;
473276a9
VS
44569 -d*)
44570 shift
44571 description=${D}1
44572 ;;
44573 -f*)
44574 shift
44575 CFLAGS=${D}1
44576 ;;
44577 -c*)
44578 shift
44579 CC=${D}1
44580 ;;
44581 -h*)
44582 PrintHelp
44583 ;;
44584 -ex*)
44585 shift
44586 exclude_symbols=${D}{exclude_symbols}${D}1" "
44587 ;;
44588 -libf*)
44589 shift
44590 library_flags=${D}{library_flags}${D}1" "
44591 ;;
44592 -nocrt*)
44593 CFLAGS="-s"
44594 ;;
44595 -nolxl*)
44596 flag_USE_LXLITE=0
44597 ;;
44598 -* | /*)
44599 case ${D}1 in
44600 -L* | -l*)
44601 libsToLink=1
44602 ;;
b1d22ded
DE
44603 -Zomf)
44604 omfLinking=1
44605 ;;
473276a9
VS
44606 *)
44607 ;;
44608 esac
44609 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44610 ;;
b1d22ded
DE
44611 *.dll)
44612 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44613 if [ ${D}omfLinking -eq 1 ]; then
44614 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44615 else
44616 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44617 fi
44618 ;;
473276a9
VS
44619 *)
44620 found=0;
1e9e8aba 44621 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
44622 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44623 else
44624 for file in ${D}1 ; do
1e9e8aba 44625 if [ -f ${D}file ]; then
473276a9
VS
44626 inputFiles="${D}{inputFiles} ${D}file"
44627 found=1
44628 fi
44629 done
1e9e8aba 44630 if [ ${D}found -eq 0 ]; then
473276a9
VS
44631 echo "ERROR: No file(s) found: "${D}1
44632 exit 8
44633 fi
44634 fi
44635 ;;
44636 esac
44637 shift
44638done # iterate cmdline words
44639
44640#
1e9e8aba 44641if [ -z "${D}inputFiles" ]; then
473276a9
VS
44642 echo "dllar: no input files"
44643 PrintHelp
44644fi
44645
44646# Now extract all .o files from .a files
44647newInputFiles=""
44648for file in ${D}inputFiles ; do
44649 case ${D}file in
44650 *.a | *.lib)
44651 case ${D}file in
44652 *.a)
44653 suffix=".a"
44654 AR="ar"
44655 ;;
44656 *.lib)
44657 suffix=".lib"
44658 AR="emxomfar"
44659 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44660 ;;
44661 *)
44662 ;;
44663 esac
44664 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44665 mkdir ${D}dirname
1e9e8aba 44666 if [ ${D}? -ne 0 ]; then
473276a9
VS
44667 echo "Failed to create subdirectory ./${D}dirname"
44668 CleanUp
44669 exit 8;
44670 fi
44671 # Append '!' to indicate archive
44672 newInputFiles="${D}newInputFiles ${D}{dirname}!"
44673 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44674 cd ${D}curDir
44675 found=0;
44676 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 44677 if [ -f ${D}subfile ]; then
473276a9 44678 found=1
1e9e8aba 44679 if [ -s ${D}subfile ]; then
473276a9
VS
44680 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44681 newInputFiles="${D}newInputFiles ${D}subfile"
44682 fi
44683 fi
44684 done
1e9e8aba
DE
44685 if [ ${D}found -eq 0 ]; then
44686 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
44687 fi
44688 ;;
44689 *)
44690 newInputFiles="${D}{newInputFiles} ${D}file"
44691 ;;
44692 esac
44693done
44694inputFiles="${D}newInputFiles"
44695
44696# Output filename(s).
44697do_backup=0;
1e9e8aba 44698if [ -z ${D}outFile ]; then
473276a9
VS
44699 do_backup=1;
44700 set outFile ${D}inputFiles; outFile=${D}2
44701fi
44702
44703# If it is an archive, remove the '!' and the '_%' suffixes
44704case ${D}outFile in
44705*_%!)
44706 outFile=\`basnam ${D}outFile _%!\`
44707 ;;
44708*)
44709 ;;
44710esac
44711case ${D}outFile in
44712*.dll)
44713 outFile=\`basnam ${D}outFile .dll\`
44714 ;;
44715*.DLL)
44716 outFile=\`basnam ${D}outFile .DLL\`
44717 ;;
44718*.o)
44719 outFile=\`basnam ${D}outFile .o\`
44720 ;;
44721*.obj)
44722 outFile=\`basnam ${D}outFile .obj\`
44723 ;;
44724*.a)
44725 outFile=\`basnam ${D}outFile .a\`
44726 ;;
44727*.lib)
44728 outFile=\`basnam ${D}outFile .lib\`
44729 ;;
44730*)
44731 ;;
44732esac
44733case ${D}outimpFile in
44734*.a)
44735 outimpFile=\`basnam ${D}outimpFile .a\`
44736 ;;
44737*.lib)
44738 outimpFile=\`basnam ${D}outimpFile .lib\`
44739 ;;
44740*)
44741 ;;
44742esac
1e9e8aba 44743if [ -z ${D}outimpFile ]; then
473276a9
VS
44744 outimpFile=${D}outFile
44745fi
44746defFile="${D}{outFile}.def"
44747arcFile="${D}{outimpFile}.a"
44748arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
44749
44750#create ${D}dllFile as something matching 8.3 restrictions,
44751if [ -z ${D}renameScript ] ; then
44752 dllFile="${D}outFile"
44753else
44754 dllFile=\`${D}renameScript ${D}outimpFile\`
44755fi
473276a9 44756
1e9e8aba
DE
44757if [ ${D}do_backup -ne 0 ] ; then
44758 if [ -f ${D}arcFile ] ; then
473276a9
VS
44759 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
44760 fi
1e9e8aba 44761 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
44762 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
44763 fi
44764fi
44765
44766# Extract public symbols from all the object files.
44767tmpdefFile=${D}{defFile}_%
44768rm -f ${D}tmpdefFile
44769for file in ${D}inputFiles ; do
44770 case ${D}file in
44771 *!)
44772 ;;
44773 *)
44774 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
44775 ;;
44776 esac
44777done
44778
44779# Create the def file.
44780rm -f ${D}defFile
44781echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
44782dllFile="${D}{dllFile}.dll"
44783if [ ! -z ${D}description ]; then
1e9e8aba 44784 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
44785fi
44786echo "EXPORTS" >> ${D}defFile
44787
44788doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
44789grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
44790
44791# Checks if the export is ok or not.
44792for word in ${D}exclude_symbols; do
44793 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
44794 mv ${D}{tmpdefFile}% ${D}tmpdefFile
44795done
44796
44797
1e9e8aba
DE
44798if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
44799 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
44800 sed '
44801 N
44802 : loop
1e9e8aba 44803 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
44804 t loop
44805 ' > ${D}{tmpdefFile}%
44806 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
44807else
44808 rm -f ${D}{tmpdefFile}%
44809fi
44810cat ${D}tmpdefFile >> ${D}defFile
44811rm -f ${D}tmpdefFile
44812
44813# Do linking, create implib, and apply lxlite.
44814gccCmdl="";
44815for file in ${D}inputFiles ; do
44816 case ${D}file in
44817 *!)
44818 ;;
44819 *)
44820 gccCmdl="${D}gccCmdl ${D}file"
44821 ;;
44822 esac
44823done
44824doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
44825touch "${D}{outFile}.dll"
44826
44827doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 44828if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 44829 add_flags="";
1e9e8aba 44830 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
44831 add_flags="-ynd"
44832 fi
44833 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
44834fi
44835doCommand "emxomf -s -l ${D}arcFile"
44836
44837# Successful exit.
44838CleanUp 1
44839exit 0
44840EOF
44841
44842 chmod +x dllar.sh
a848cd7e
SC
44843 ;;
44844
1e9e8aba 44845 powerpc-apple-macos* | \
0ad5d837 44846 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
44847 *-*-sunos4* | \
44848 *-*-osf* | \
44849 *-*-dgux5* | \
47a7e797
MW
44850 *-*-sysv5* | \
44851 *-pc-msdosdjgpp )
a848cd7e
SC
44852 ;;
44853
44854 *)
44855 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
44856echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
44857 { (exit 1); exit 1; }; }
44858 esac
44859
2057db16
VS
44860 if test "x$PIC_FLAG" != "x" ; then
44861 PIC_FLAG="$PIC_FLAG -DPIC"
44862 fi
44863
a848cd7e
SC
44864 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
44865 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
44866 fi
44867 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
44868 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
44869 fi
44870
44871
44872
44873
44874
44875
44876
44877
810b94f0 44878
a848cd7e
SC
44879 USE_SOVERSION=0
44880 USE_SOVERLINUX=0
44881 USE_SOVERSOLARIS=0
810b94f0 44882 USE_SOVERCYGWIN=0
a848cd7e
SC
44883 USE_SOSYMLINKS=0
44884 USE_MACVERSION=0
44885 SONAME_FLAG=
44886
44887 case "${BAKEFILE_HOST}" in
0ad5d837 44888 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
44889 SONAME_FLAG="-Wl,-soname,"
44890 USE_SOVERSION=1
44891 USE_SOVERLINUX=1
44892 USE_SOSYMLINKS=1
44893 ;;
44894
a848cd7e
SC
44895 *-*-solaris2* )
44896 SONAME_FLAG="-h "
44897 USE_SOVERSION=1
44898 USE_SOVERSOLARIS=1
44899 USE_SOSYMLINKS=1
44900 ;;
44901
44902 *-*-darwin* )
44903 USE_MACVERSION=1
44904 USE_SOVERSION=1
44905 USE_SOSYMLINKS=1
44906 ;;
810b94f0
MW
44907
44908 *-*-cygwin* )
44909 USE_SOVERSION=1
44910 USE_SOVERCYGWIN=1
44911 ;;
a848cd7e
SC
44912 esac
44913
44914
44915
44916
44917
44918
44919
44920
44921
810b94f0 44922
a848cd7e
SC
44923 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
44924echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 44925 DEPS_TRACKING=1
a848cd7e
SC
44926
44927 if test "x$GCC" = "xyes"; then
44928 DEPSMODE=gcc
a848cd7e 44929 case "${BAKEFILE_HOST}" in
47bd5406 44930 *-*-darwin* )
0ad5d837 44931 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
44932 ;;
44933 * )
0ad5d837 44934 DEPSFLAG="-MMD"
a848cd7e
SC
44935 ;;
44936 esac
44937 echo "$as_me:$LINENO: result: gcc" >&5
44938echo "${ECHO_T}gcc" >&6
b1d22ded 44939 elif test "x$MWCC" = "xyes"; then
81f90336 44940 DEPSMODE=mwcc
0ad5d837 44941 DEPSFLAG="-MM"
b1d22ded
DE
44942 echo "$as_me:$LINENO: result: mwcc" >&5
44943echo "${ECHO_T}mwcc" >&6
a9e5b1f0 44944 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
44945 DEPSMODE=unixcc
44946 DEPSFLAG="-xM1"
44947 echo "$as_me:$LINENO: result: Sun cc" >&5
44948echo "${ECHO_T}Sun cc" >&6
44949 elif test "x$SGICC" = "xyes"; then
44950 DEPSMODE=unixcc
44951 DEPSFLAG="-M"
44952 echo "$as_me:$LINENO: result: SGI cc" >&5
44953echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
44954 elif test "x$HPCC" = "xyes"; then
44955 DEPSMODE=unixcc
44956 DEPSFLAG="+make"
44957 echo "$as_me:$LINENO: result: HP cc" >&5
44958echo "${ECHO_T}HP cc" >&6
a848cd7e 44959 else
3006edc0 44960 DEPS_TRACKING=0
a848cd7e
SC
44961 echo "$as_me:$LINENO: result: none" >&5
44962echo "${ECHO_T}none" >&6
44963 fi
44964
44965 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
44966
44967D='$'
44968cat <<EOF >bk-deps
a848cd7e
SC
44969#!/bin/sh
44970
44971# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
44972# script. It is used to track C/C++ files dependencies in portable way.
44973#
44974# Permission is given to use this file in any way.
44975
473276a9 44976DEPSMODE=${DEPSMODE}
a848cd7e 44977DEPSDIR=.deps
0ad5d837 44978DEPSFLAG="${DEPSFLAG}"
a848cd7e 44979
473276a9 44980mkdir -p ${D}DEPSDIR
a848cd7e 44981
473276a9 44982if test ${D}DEPSMODE = gcc ; then
0ad5d837 44983 ${D}* ${D}{DEPSFLAG}
473276a9
VS
44984 status=${D}?
44985 if test ${D}{status} != 0 ; then
44986 exit ${D}{status}
a848cd7e
SC
44987 fi
44988 # move created file to the location we want it in:
473276a9
VS
44989 while test ${D}# -gt 0; do
44990 case "${D}1" in
a848cd7e
SC
44991 -o )
44992 shift
473276a9 44993 objfile=${D}1
a848cd7e
SC
44994 ;;
44995 -* )
44996 ;;
44997 * )
473276a9 44998 srcfile=${D}1
a848cd7e
SC
44999 ;;
45000 esac
45001 shift
45002 done
1e9e8aba
DE
45003 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
45004 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
45005 if test -f ${D}depfile ; then
45006 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45007 rm -f ${D}depfile
a848cd7e 45008 else
1e9e8aba 45009 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
45010 if test -f ${D}depfile ; then
45011 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45012 rm -f ${D}depfile
a848cd7e
SC
45013 fi
45014 fi
45015 exit 0
81f90336 45016elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 45017 ${D}* || exit ${D}?
81f90336
MW
45018 # Run mwcc again with -MM and redirect into the dep file we want
45019 # NOTE: We can't use shift here because we need ${D}* to be valid
45020 prevarg=
45021 for arg in ${D}* ; do
45022 if test "${D}prevarg" = "-o"; then
45023 objfile=${D}arg
45024 else
45025 case "${D}arg" in
45026 -* )
45027 ;;
45028 * )
45029 srcfile=${D}arg
45030 ;;
45031 esac
45032 fi
45033 prevarg="${D}arg"
45034 done
0ad5d837 45035 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 45036 exit 0
0ad5d837 45037elif test ${D}DEPSMODE = unixcc; then
f6b50c59 45038 ${D}* || exit ${D}?
a9e5b1f0
MW
45039 # Run compiler again with deps flag and redirect into the dep file.
45040 # It doesn't work if the '-o FILE' option is used, but without it the
45041 # dependency file will contain the wrong name for the object. So it is
45042 # removed from the command line, and the dep file is fixed with sed.
45043 cmd=""
45044 while test ${D}# -gt 0; do
45045 case "${D}1" in
45046 -o )
45047 shift
45048 objfile=${D}1
45049 ;;
45050 * )
45051 eval arg${D}#=\\${D}1
45052 cmd="${D}cmd \\${D}arg${D}#"
45053 ;;
45054 esac
45055 shift
45056 done
0ad5d837 45057 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 45058 exit 0
a848cd7e 45059else
473276a9
VS
45060 ${D}*
45061 exit ${D}?
a848cd7e
SC
45062fi
45063EOF
473276a9 45064
a848cd7e
SC
45065 chmod +x bk-deps
45066 fi
45067
45068
45069
45070
45071 RESCOMP=
45072 SETFILE=
45073
45074 case ${BAKEFILE_HOST} in
45075 *-*-cygwin* | *-*-mingw32* )
45076 if test "$build" != "$host" ; then
45077 RESCOMP=$host_alias-windres
45078 else
45079 # Extract the first word of "windres", so it can be a program name with args.
45080set dummy windres; ac_word=$2
45081echo "$as_me:$LINENO: checking for $ac_word" >&5
45082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45083if test "${ac_cv_prog_RESCOMP+set}" = set; then
45084 echo $ECHO_N "(cached) $ECHO_C" >&6
45085else
45086 if test -n "$RESCOMP"; then
45087 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45088else
45089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45090for as_dir in $PATH
45091do
45092 IFS=$as_save_IFS
45093 test -z "$as_dir" && as_dir=.
45094 for ac_exec_ext in '' $ac_executable_extensions; do
45095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45096 ac_cv_prog_RESCOMP="windres"
45097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45098 break 2
45099 fi
45100done
45101done
45102
45103 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
45104fi
45105fi
45106RESCOMP=$ac_cv_prog_RESCOMP
45107if test -n "$RESCOMP"; then
45108 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45109echo "${ECHO_T}$RESCOMP" >&6
45110else
45111 echo "$as_me:$LINENO: result: no" >&5
45112echo "${ECHO_T}no" >&6
45113fi
45114
45115 fi
45116 ;;
45117
1e9e8aba 45118 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
45119 # Extract the first word of "Rez", so it can be a program name with args.
45120set dummy Rez; ac_word=$2
45121echo "$as_me:$LINENO: checking for $ac_word" >&5
45122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45123if test "${ac_cv_prog_RESCOMP+set}" = set; then
45124 echo $ECHO_N "(cached) $ECHO_C" >&6
45125else
45126 if test -n "$RESCOMP"; then
45127 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45128else
45129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45130for as_dir in $PATH
45131do
45132 IFS=$as_save_IFS
45133 test -z "$as_dir" && as_dir=.
45134 for ac_exec_ext in '' $ac_executable_extensions; do
45135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45136 ac_cv_prog_RESCOMP="Rez"
45137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45138 break 2
45139 fi
45140done
45141done
45142
45143 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
45144fi
45145fi
45146RESCOMP=$ac_cv_prog_RESCOMP
45147if test -n "$RESCOMP"; then
45148 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45149echo "${ECHO_T}$RESCOMP" >&6
45150else
45151 echo "$as_me:$LINENO: result: no" >&5
45152echo "${ECHO_T}no" >&6
45153fi
45154
45155 # Extract the first word of "SetFile", so it can be a program name with args.
45156set dummy SetFile; ac_word=$2
45157echo "$as_me:$LINENO: checking for $ac_word" >&5
45158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45159if test "${ac_cv_prog_SETFILE+set}" = set; then
45160 echo $ECHO_N "(cached) $ECHO_C" >&6
45161else
45162 if test -n "$SETFILE"; then
45163 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
45164else
45165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45166for as_dir in $PATH
45167do
45168 IFS=$as_save_IFS
45169 test -z "$as_dir" && as_dir=.
45170 for ac_exec_ext in '' $ac_executable_extensions; do
45171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45172 ac_cv_prog_SETFILE="SetFile"
45173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45174 break 2
45175 fi
45176done
45177done
45178
45179 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
45180fi
45181fi
45182SETFILE=$ac_cv_prog_SETFILE
45183if test -n "$SETFILE"; then
45184 echo "$as_me:$LINENO: result: $SETFILE" >&5
45185echo "${ECHO_T}$SETFILE" >&6
45186else
45187 echo "$as_me:$LINENO: result: no" >&5
45188echo "${ECHO_T}no" >&6
45189fi
45190
45191 ;;
45192 esac
45193
45194
45195
45196
45197
c9469659 45198 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 45199
dcc1b6ad 45200
c9469659 45201BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 45202
646b6ec1 45203
74b84332 45204
a848cd7e
SC
45205 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
45206if test "${enable_precomp_headers+set}" = set; then
45207 enableval="$enable_precomp_headers"
45208 bk_use_pch="$enableval"
45209fi;
45210
45211 GCC_PCH=0
45212
45213 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
45214 if test "x$GCC" = "xyes"; then
45215 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
45216echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
45217 cat >conftest.$ac_ext <<_ACEOF
45218/* confdefs.h. */
45219_ACEOF
45220cat confdefs.h >>conftest.$ac_ext
45221cat >>conftest.$ac_ext <<_ACEOF
45222/* end confdefs.h. */
45223
45224int
45225main ()
45226{
45227
45228 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
45229 #error "no pch support"
45230 #endif
45231 #if (__GNUC__ < 3)
45232 #error "no pch support"
45233 #endif
45234 #if (__GNUC__ == 3) && \
45235 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
45236 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
45237 #error "no pch support"
45238 #endif
45239
45240 ;
45241 return 0;
45242}
45243_ACEOF
45244rm -f conftest.$ac_objext
45245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45246 (eval $ac_compile) 2>conftest.er1
a848cd7e 45247 ac_status=$?
ac1cb8d3
VS
45248 grep -v '^ *+' conftest.er1 >conftest.err
45249 rm -f conftest.er1
45250 cat conftest.err >&5
a848cd7e
SC
45251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45252 (exit $ac_status); } &&
6ebeb4c7 45253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45255 (eval $ac_try) 2>&5
45256 ac_status=$?
45257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45258 (exit $ac_status); }; } &&
45259 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45261 (eval $ac_try) 2>&5
45262 ac_status=$?
45263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45264 (exit $ac_status); }; }; then
45265
45266 echo "$as_me:$LINENO: result: yes" >&5
45267echo "${ECHO_T}yes" >&6
a848cd7e
SC
45268 GCC_PCH=1
45269
45270else
45271 echo "$as_me: failed program was:" >&5
45272sed 's/^/| /' conftest.$ac_ext >&5
45273
45274
45275 echo "$as_me:$LINENO: result: no" >&5
45276echo "${ECHO_T}no" >&6
45277
45278fi
ac1cb8d3 45279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45280 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
45281
45282D='$'
45283cat <<EOF >bk-make-pch
a848cd7e
SC
45284#!/bin/sh
45285
45286# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45287# script. It is used to generated precompiled headers.
45288#
45289# Permission is given to use this file in any way.
45290
1e9e8aba
DE
45291outfile="${D}{1}"
45292header="${D}{2}"
a848cd7e
SC
45293shift
45294shift
45295
45296compiler=
45297headerfile=
1e9e8aba
DE
45298while test ${D}{#} -gt 0; do
45299 case "${D}{1}" in
a848cd7e 45300 -I* )
1e9e8aba
DE
45301 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
45302 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
45303 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
45304 fi
45305 ;;
45306 esac
1e9e8aba 45307 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
45308 shift
45309done
45310
1e9e8aba
DE
45311if test "x${D}{headerfile}" = "x" ; then
45312 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 45313else
1e9e8aba
DE
45314 if test -f ${D}{outfile} ; then
45315 rm -f ${D}{outfile}
a848cd7e 45316 else
1e9e8aba 45317 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 45318 fi
1e9e8aba 45319 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
45320 mkdir -p .deps
45321 # can do this because gcc is >= 3.4:
1e9e8aba
DE
45322 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
45323 exit ${D}{?}
a848cd7e
SC
45324fi
45325EOF
1e9e8aba 45326
a848cd7e
SC
45327 chmod +x bk-make-pch
45328 fi
45329 fi
45330 fi
45331
45332
45333
a848cd7e
SC
45334 COND_BUILD_DEBUG="#"
45335 if test "x$BUILD" = "xdebug" ; then
45336 COND_BUILD_DEBUG=""
45337 fi
45338
45339 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
45340 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
45341 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
45342 fi
45343
45344 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
45345 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
45346 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
45347 fi
45348
45349 COND_BUILD_DEBUG_UNICODE_0="#"
45350 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
45351 COND_BUILD_DEBUG_UNICODE_0=""
45352 fi
45353
45354 COND_BUILD_DEBUG_UNICODE_1="#"
45355 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
45356 COND_BUILD_DEBUG_UNICODE_1=""
45357 fi
45358
45359 COND_BUILD_RELEASE="#"
45360 if test "x$BUILD" = "xrelease" ; then
45361 COND_BUILD_RELEASE=""
45362 fi
45363
45364 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
45365 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
45366 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
45367 fi
45368
45369 COND_BUILD_RELEASE_UNICODE_0="#"
45370 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
45371 COND_BUILD_RELEASE_UNICODE_0=""
45372 fi
45373
45374 COND_BUILD_RELEASE_UNICODE_1="#"
45375 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
45376 COND_BUILD_RELEASE_UNICODE_1=""
45377 fi
45378
45379 COND_DEBUG_FLAG_1="#"
45380 if test "x$DEBUG_FLAG" = "x1" ; then
45381 COND_DEBUG_FLAG_1=""
45382 fi
45383
45384 COND_DEBUG_INFO_0="#"
45385 if test "x$DEBUG_INFO" = "x0" ; then
45386 COND_DEBUG_INFO_0=""
45387 fi
45388
45389 COND_DEBUG_INFO_1="#"
45390 if test "x$DEBUG_INFO" = "x1" ; then
45391 COND_DEBUG_INFO_1=""
45392 fi
45393
45394 COND_DEPS_TRACKING_0="#"
45395 if test "x$DEPS_TRACKING" = "x0" ; then
45396 COND_DEPS_TRACKING_0=""
45397 fi
45398
45399 COND_DEPS_TRACKING_1="#"
45400 if test "x$DEPS_TRACKING" = "x1" ; then
45401 COND_DEPS_TRACKING_1=""
45402 fi
45403
45404 COND_GCC_PCH_1="#"
45405 if test "x$GCC_PCH" = "x1" ; then
45406 COND_GCC_PCH_1=""
45407 fi
45408
45409 COND_MONOLITHIC_0="#"
45410 if test "x$MONOLITHIC" = "x0" ; then
45411 COND_MONOLITHIC_0=""
45412 fi
45413
45414 COND_MONOLITHIC_0_SHARED_0="#"
45415 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
45416 COND_MONOLITHIC_0_SHARED_0=""
45417 fi
45418
45419 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
45420 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
45421 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
45422 fi
45423
90970d69
DE
45424 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
45425 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45426 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
45427 fi
45428
a848cd7e
SC
45429 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
45430 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45431 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
45432 fi
45433
6671c68b
VZ
45434 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
45435 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45436 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
45437 fi
45438
a848cd7e
SC
45439 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
45440 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
45441 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
45442 fi
45443
ceec2216
RL
45444 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
45445 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45446 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
45447 fi
45448
a848cd7e
SC
45449 COND_MONOLITHIC_0_SHARED_1="#"
45450 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
45451 COND_MONOLITHIC_0_SHARED_1=""
45452 fi
45453
45454 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
45455 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
45456 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
45457 fi
45458
90970d69
DE
45459 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
45460 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45461 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
45462 fi
45463
a848cd7e
SC
45464 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
45465 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45466 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
45467 fi
45468
6671c68b
VZ
45469 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
45470 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45471 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
45472 fi
45473
a848cd7e
SC
45474 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
45475 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
45476 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
45477 fi
45478
ceec2216
RL
45479 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
45480 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45481 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
45482 fi
45483
a848cd7e
SC
45484 COND_MONOLITHIC_0_USE_ODBC_1="#"
45485 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
45486 COND_MONOLITHIC_0_USE_ODBC_1=""
45487 fi
45488
45489 COND_MONOLITHIC_1="#"
45490 if test "x$MONOLITHIC" = "x1" ; then
45491 COND_MONOLITHIC_1=""
45492 fi
45493
45494 COND_MONOLITHIC_1_SHARED_0="#"
45495 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
45496 COND_MONOLITHIC_1_SHARED_0=""
45497 fi
45498
45499 COND_MONOLITHIC_1_SHARED_1="#"
45500 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
45501 COND_MONOLITHIC_1_SHARED_1=""
45502 fi
45503
45504 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
45505 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
45506 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
45507 fi
45508
45509 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
45510 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
45511 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
45512 fi
45513
eb730a0c
JS
45514 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
45515 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45516 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
45517 fi
45518
a848cd7e
SC
45519 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
45520 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45521 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
45522 fi
45523
45524 COND_PLATFORM_MACOSX_1="#"
45525 if test "x$PLATFORM_MACOSX" = "x1" ; then
45526 COND_PLATFORM_MACOSX_1=""
45527 fi
45528
a30f955f
VS
45529 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
45530 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
45531 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
45532 fi
45533
a848cd7e
SC
45534 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
45535 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
45536 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
45537 fi
45538
45539 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
45540 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
45541 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
45542 fi
45543
45544 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
45545 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
45546 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
45547 fi
45548
fc480dc1
DE
45549 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45550 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45551 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45552 fi
45553
1e9e8aba
DE
45554 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45555 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45556 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45557 fi
45558
ebee3cd0
VS
45559 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45560 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45561 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45562 fi
45563
45564 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45565 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45566 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45567 fi
45568
a848cd7e
SC
45569 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45570 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45571 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45572 fi
45573
45574 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45575 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45576 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45577 fi
45578
b48a2016
DE
45579 COND_PLATFORM_MACOS_1="#"
45580 if test "x$PLATFORM_MACOS" = "x1" ; then
45581 COND_PLATFORM_MACOS_1=""
45582 fi
45583
083508af
MW
45584 COND_PLATFORM_MAC_1="#"
45585 if test "x$PLATFORM_MAC" = "x1" ; then
45586 COND_PLATFORM_MAC_1=""
45587 fi
45588
83d8eb47
MW
45589 COND_PLATFORM_MSDOS_1="#"
45590 if test "x$PLATFORM_MSDOS" = "x1" ; then
45591 COND_PLATFORM_MSDOS_1=""
45592 fi
45593
a848cd7e
SC
45594 COND_PLATFORM_OS2_1="#"
45595 if test "x$PLATFORM_OS2" = "x1" ; then
45596 COND_PLATFORM_OS2_1=""
45597 fi
45598
45599 COND_PLATFORM_UNIX_0="#"
45600 if test "x$PLATFORM_UNIX" = "x0" ; then
45601 COND_PLATFORM_UNIX_0=""
45602 fi
45603
45604 COND_PLATFORM_UNIX_1="#"
45605 if test "x$PLATFORM_UNIX" = "x1" ; then
45606 COND_PLATFORM_UNIX_1=""
45607 fi
45608
45609 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45610 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45611 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45612 fi
45613
45614 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45615 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45616 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45617 fi
45618
45619 COND_PLATFORM_WIN32_0="#"
45620 if test "x$PLATFORM_WIN32" = "x0" ; then
45621 COND_PLATFORM_WIN32_0=""
45622 fi
45623
45624 COND_PLATFORM_WIN32_1="#"
45625 if test "x$PLATFORM_WIN32" = "x1" ; then
45626 COND_PLATFORM_WIN32_1=""
45627 fi
45628
45629 COND_SHARED_0="#"
45630 if test "x$SHARED" = "x0" ; then
45631 COND_SHARED_0=""
45632 fi
45633
083508af
MW
45634 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45635 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45636 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45637 fi
45638
45639 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45640 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45641 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45642 fi
45643
45644 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45645 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45646 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45647 fi
45648
a848cd7e
SC
45649 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45650 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45651 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45652 fi
45653
45654 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45655 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45656 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45657 fi
45658
45659 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45660 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45661 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45662 fi
45663
45664 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45665 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45666 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45667 fi
45668
083508af
MW
45669 COND_SHARED_0_USE_XRC_1="#"
45670 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45671 COND_SHARED_0_USE_XRC_1=""
45672 fi
45673
a848cd7e
SC
45674 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
45675 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
45676 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
45677 fi
45678
45679 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
45680 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
45681 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
45682 fi
45683
45684 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
45685 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
45686 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
45687 fi
45688
45689 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
45690 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
45691 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
45692 fi
45693
45694 COND_SHARED_1="#"
45695 if test "x$SHARED" = "x1" ; then
45696 COND_SHARED_1=""
45697 fi
45698
45699 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
45700 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45701 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
45702 fi
45703
083508af
MW
45704 COND_SHARED_1_USE_XRC_1="#"
45705 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45706 COND_SHARED_1_USE_XRC_1=""
45707 fi
45708
a30f955f
VS
45709 COND_TOOLKIT_="#"
45710 if test "x$TOOLKIT" = "x" ; then
45711 COND_TOOLKIT_=""
45712 fi
45713
a848cd7e
SC
45714 COND_TOOLKIT_COCOA="#"
45715 if test "x$TOOLKIT" = "xCOCOA" ; then
45716 COND_TOOLKIT_COCOA=""
45717 fi
45718
a49baeab
DE
45719 COND_TOOLKIT_COCOA_USE_GUI_1="#"
45720 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
45721 COND_TOOLKIT_COCOA_USE_GUI_1=""
45722 fi
45723
a848cd7e
SC
45724 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
45725 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45726 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
45727 fi
45728
45729 COND_TOOLKIT_GTK="#"
45730 if test "x$TOOLKIT" = "xGTK" ; then
45731 COND_TOOLKIT_GTK=""
45732 fi
45733
45734 COND_TOOLKIT_GTK_USE_GUI_1="#"
45735 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
45736 COND_TOOLKIT_GTK_USE_GUI_1=""
45737 fi
45738
45739 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
45740 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45741 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
45742 fi
45743
45744 COND_TOOLKIT_MAC="#"
45745 if test "x$TOOLKIT" = "xMAC" ; then
45746 COND_TOOLKIT_MAC=""
45747 fi
45748
45749 COND_TOOLKIT_MAC_USE_GUI_1="#"
45750 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45751 COND_TOOLKIT_MAC_USE_GUI_1=""
45752 fi
45753
45754 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45755 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45756 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45757 fi
45758
45759 COND_TOOLKIT_MGL="#"
45760 if test "x$TOOLKIT" = "xMGL" ; then
45761 COND_TOOLKIT_MGL=""
45762 fi
45763
45764 COND_TOOLKIT_MGL_USE_GUI_1="#"
45765 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
45766 COND_TOOLKIT_MGL_USE_GUI_1=""
45767 fi
45768
45769 COND_TOOLKIT_MOTIF="#"
45770 if test "x$TOOLKIT" = "xMOTIF" ; then
45771 COND_TOOLKIT_MOTIF=""
45772 fi
45773
45774 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
45775 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
45776 COND_TOOLKIT_MOTIF_USE_GUI_1=""
45777 fi
45778
45779 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
45780 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45781 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
45782 fi
45783
45784 COND_TOOLKIT_MSW="#"
45785 if test "x$TOOLKIT" = "xMSW" ; then
45786 COND_TOOLKIT_MSW=""
45787 fi
45788
45789 COND_TOOLKIT_MSW_USE_GUI_1="#"
45790 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
45791 COND_TOOLKIT_MSW_USE_GUI_1=""
45792 fi
45793
45794 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
45795 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45796 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
45797 fi
45798
0ee4059d
DE
45799 COND_TOOLKIT_MSW_WXUNIV_0="#"
45800 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45801 COND_TOOLKIT_MSW_WXUNIV_0=""
45802 fi
45803
a848cd7e
SC
45804 COND_TOOLKIT_PM="#"
45805 if test "x$TOOLKIT" = "xPM" ; then
45806 COND_TOOLKIT_PM=""
45807 fi
45808
45809 COND_TOOLKIT_PM_USE_GUI_1="#"
45810 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
45811 COND_TOOLKIT_PM_USE_GUI_1=""
45812 fi
45813
45814 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
45815 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45816 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
45817 fi
45818
3fd9c298
DE
45819 COND_TOOLKIT_WINCE="#"
45820 if test "x$TOOLKIT" = "xWINCE" ; then
45821 COND_TOOLKIT_WINCE=""
45822 fi
45823
45824 COND_TOOLKIT_WINCE_USE_GUI_1="#"
45825 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
45826 COND_TOOLKIT_WINCE_USE_GUI_1=""
45827 fi
45828
45829 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
45830 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45831 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
45832 fi
45833
0ee4059d
DE
45834 COND_TOOLKIT_WINCE_WXUNIV_0="#"
45835 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
45836 COND_TOOLKIT_WINCE_WXUNIV_0=""
45837 fi
45838
a848cd7e
SC
45839 COND_TOOLKIT_X11="#"
45840 if test "x$TOOLKIT" = "xX11" ; then
45841 COND_TOOLKIT_X11=""
45842 fi
45843
45844 COND_TOOLKIT_X11_USE_GUI_1="#"
45845 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
45846 COND_TOOLKIT_X11_USE_GUI_1=""
45847 fi
45848
45849 COND_UNICODE_1="#"
45850 if test "x$UNICODE" = "x1" ; then
45851 COND_UNICODE_1=""
45852 fi
45853
45854 COND_USE_EXCEPTIONS_0="#"
45855 if test "x$USE_EXCEPTIONS" = "x0" ; then
45856 COND_USE_EXCEPTIONS_0=""
45857 fi
45858
45859 COND_USE_EXCEPTIONS_1="#"
45860 if test "x$USE_EXCEPTIONS" = "x1" ; then
45861 COND_USE_EXCEPTIONS_1=""
45862 fi
45863
45864 COND_USE_GUI_0="#"
45865 if test "x$USE_GUI" = "x0" ; then
45866 COND_USE_GUI_0=""
45867 fi
45868
45869 COND_USE_GUI_1="#"
45870 if test "x$USE_GUI" = "x1" ; then
45871 COND_USE_GUI_1=""
45872 fi
45873
45874 COND_USE_GUI_1_WXUNIV_0="#"
45875 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45876 COND_USE_GUI_1_WXUNIV_0=""
45877 fi
45878
45879 COND_USE_GUI_1_WXUNIV_1="#"
45880 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
45881 COND_USE_GUI_1_WXUNIV_1=""
45882 fi
45883
45884 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45885 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45886 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45887 fi
45888
45889 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45890 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45891 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45892 fi
45893
45894 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45895 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45896 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45897 fi
45898
083508af
MW
45899 COND_USE_ODBC_1="#"
45900 if test "x$USE_ODBC" = "x1" ; then
45901 COND_USE_ODBC_1=""
45902 fi
45903
45904 COND_USE_OPENGL_1="#"
45905 if test "x$USE_OPENGL" = "x1" ; then
45906 COND_USE_OPENGL_1=""
45907 fi
45908
a848cd7e
SC
45909 COND_USE_PLUGINS_0="#"
45910 if test "x$USE_PLUGINS" = "x0" ; then
45911 COND_USE_PLUGINS_0=""
45912 fi
45913
0b78747f
MW
45914 COND_USE_RTTI_0="#"
45915 if test "x$USE_RTTI" = "x0" ; then
45916 COND_USE_RTTI_0=""
45917 fi
45918
45919 COND_USE_RTTI_1="#"
45920 if test "x$USE_RTTI" = "x1" ; then
45921 COND_USE_RTTI_1=""
45922 fi
45923
a848cd7e
SC
45924 COND_USE_SOSYMLINKS_1="#"
45925 if test "x$USE_SOSYMLINKS" = "x1" ; then
45926 COND_USE_SOSYMLINKS_1=""
45927 fi
45928
eb730a0c
JS
45929 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
45930 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45931 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
45932 fi
45933
a848cd7e
SC
45934 COND_USE_SOVERLINUX_1="#"
45935 if test "x$USE_SOVERLINUX" = "x1" ; then
45936 COND_USE_SOVERLINUX_1=""
45937 fi
45938
45939 COND_USE_SOVERSION_0="#"
45940 if test "x$USE_SOVERSION" = "x0" ; then
45941 COND_USE_SOVERSION_0=""
45942 fi
45943
45944 COND_USE_SOVERSOLARIS_1="#"
45945 if test "x$USE_SOVERSOLARIS" = "x1" ; then
45946 COND_USE_SOVERSOLARIS_1=""
45947 fi
45948
0b78747f
MW
45949 COND_USE_THREADS_0="#"
45950 if test "x$USE_THREADS" = "x0" ; then
45951 COND_USE_THREADS_0=""
45952 fi
45953
45954 COND_USE_THREADS_1="#"
45955 if test "x$USE_THREADS" = "x1" ; then
45956 COND_USE_THREADS_1=""
45957 fi
45958
a13a7f89
RL
45959 COND_USE_XRC_1="#"
45960 if test "x$USE_XRC" = "x1" ; then
45961 COND_USE_XRC_1=""
45962 fi
45963
eb730a0c
JS
45964 COND_WINDOWS_IMPLIB_1="#"
45965 if test "x$WINDOWS_IMPLIB" = "x1" ; then
45966 COND_WINDOWS_IMPLIB_1=""
45967 fi
45968
a848cd7e
SC
45969 COND_WITH_PLUGIN_SDL_1="#"
45970 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
45971 COND_WITH_PLUGIN_SDL_1=""
45972 fi
45973
1e6eb025
VZ
45974 COND_WXUNIV_0="#"
45975 if test "x$WXUNIV" = "x0" ; then
45976 COND_WXUNIV_0=""
45977 fi
45978
a848cd7e
SC
45979 COND_WXUNIV_1="#"
45980 if test "x$WXUNIV" = "x1" ; then
45981 COND_WXUNIV_1=""
45982 fi
45983
45984 COND_WXUSE_EXPAT_BUILTIN="#"
45985 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
45986 COND_WXUSE_EXPAT_BUILTIN=""
45987 fi
45988
45989 COND_WXUSE_LIBJPEG_BUILTIN="#"
45990 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45991 COND_WXUSE_LIBJPEG_BUILTIN=""
45992 fi
45993
45994 COND_WXUSE_LIBPNG_BUILTIN="#"
45995 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45996 COND_WXUSE_LIBPNG_BUILTIN=""
45997 fi
45998
45999 COND_WXUSE_LIBTIFF_BUILTIN="#"
46000 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46001 COND_WXUSE_LIBTIFF_BUILTIN=""
46002 fi
46003
46004 COND_WXUSE_ODBC_BUILTIN="#"
46005 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
46006 COND_WXUSE_ODBC_BUILTIN=""
46007 fi
46008
46009 COND_WXUSE_REGEX_BUILTIN="#"
46010 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
46011 COND_WXUSE_REGEX_BUILTIN=""
46012 fi
46013
46014 COND_WXUSE_ZLIB_BUILTIN="#"
46015 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
46016 COND_WXUSE_ZLIB_BUILTIN=""
46017 fi
46018
46019
46020
810b94f0
MW
46021 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
46022 { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
46023echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
46024 { (exit 1); exit 1; }; }
46025 fi
46026
2057db16
VS
46027 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
46028 { { 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
46029echo "$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;}
46030 { (exit 1); exit 1; }; }
46031 fi
46032
a848cd7e 46033
ceec2216
RL
46034if test "$wxUSE_SHARED" = "yes"; then
46035
46036 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
46037 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
46038
5b674b9d
DE
46039 case "${host}" in
46040 *-pc-os2_emx | *-pc-os2-emx )
46041 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46042 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46043 cp -p ${srcdir}/src/os2/dllnames.sh .
46044 cp -p ${srcdir}/src/os2/dllar.sh .
46045 ;;
46046 esac
ceec2216
RL
46047else
46048
46049 EXE_LINKER="$CXX -o"
46050
46051fi
69120ee4
VZ
46052if test "$wxUSE_OMF" = "yes"; then
46053 case "${host}" in
46054 *-pc-os2_emx | *-pc-os2-emx )
46055 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
46056 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46057 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46058 ;;
46059 esac
46060fi
a848cd7e 46061
c08ebc62 46062if test $GCC_PCH = 1 ; then
254e8e29 46063 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 46064fi
a848cd7e
SC
46065
46066
46067SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
46068
46069
46070
46071
46072
46073
46074
46075
46076
46077
46078
46079
46080
46081
46082
46083
46084
46085
46086
46087
46088
46089
46090
46091
46092
46093
46094
46095
46096
46097
46098
46099
46100
46101
46102
46103
46104
46105
46106
46107
46108
46109
a848cd7e
SC
46110
46111
46112
46113
46114
46115
46116
46117
46118
46119
46120
46121
46122
46123
46124
46125
46126
46127
ddd14b14 46128
a848cd7e
SC
46129
46130
46131echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46132echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46133set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46134if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46135 echo $ECHO_N "(cached) $ECHO_C" >&6
46136else
46137 cat >conftest.make <<\_ACEOF
46138all:
46139 @echo 'ac_maketemp="$(MAKE)"'
46140_ACEOF
46141# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46142eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46143if test -n "$ac_maketemp"; then
46144 eval ac_cv_prog_make_${ac_make}_set=yes
46145else
46146 eval ac_cv_prog_make_${ac_make}_set=no
46147fi
46148rm -f conftest.make
46149fi
46150if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46151 echo "$as_me:$LINENO: result: yes" >&5
46152echo "${ECHO_T}yes" >&6
46153 SET_MAKE=
46154else
46155 echo "$as_me:$LINENO: result: no" >&5
46156echo "${ECHO_T}no" >&6
46157 SET_MAKE="MAKE=${MAKE-make}"
46158fi
46159
46160
a848cd7e 46161
ceec2216
RL
46162 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
46163
a848cd7e 46164
ceec2216 46165 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 46166
a848cd7e 46167
ceec2216 46168 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 46169
ceec2216
RL
46170
46171 ac_config_files="$ac_config_files version-script Makefile"
46172
46173
46174 ac_config_commands="$ac_config_commands wx-config
46175 "
a848cd7e
SC
46176
46177
9103d280 46178
1c14217d 46179if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
46180if test "$wxUSE_GUI" = "yes"; then
46181 SUBDIRS="samples demos utils contrib"
46182else SUBDIRS="samples utils"
46183fi
46184
46185
46186
46187# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
46188if test "${with_cppunit_prefix+set}" = set; then
46189 withval="$with_cppunit_prefix"
46190 cppunit_config_prefix="$withval"
46191else
46192 cppunit_config_prefix=""
46193fi;
46194
46195# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
46196if test "${with_cppunit_exec_prefix+set}" = set; then
46197 withval="$with_cppunit_exec_prefix"
46198 cppunit_config_exec_prefix="$withval"
46199else
46200 cppunit_config_exec_prefix=""
46201fi;
46202
46203 if test x$cppunit_config_exec_prefix != x ; then
46204 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
46205 if test x${CPPUNIT_CONFIG+set} != xset ; then
46206 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
46207 fi
46208 fi
46209 if test x$cppunit_config_prefix != x ; then
46210 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
46211 if test x${CPPUNIT_CONFIG+set} != xset ; then
46212 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
46213 fi
46214 fi
46215
46216 # Extract the first word of "cppunit-config", so it can be a program name with args.
46217set dummy cppunit-config; ac_word=$2
46218echo "$as_me:$LINENO: checking for $ac_word" >&5
46219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46220if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
46221 echo $ECHO_N "(cached) $ECHO_C" >&6
46222else
46223 case $CPPUNIT_CONFIG in
46224 [\\/]* | ?:[\\/]*)
46225 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
46226 ;;
46227 *)
46228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46229for as_dir in $PATH
46230do
46231 IFS=$as_save_IFS
46232 test -z "$as_dir" && as_dir=.
46233 for ac_exec_ext in '' $ac_executable_extensions; do
46234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46235 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46237 break 2
46238 fi
46239done
46240done
46241
46242 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
46243 ;;
46244esac
46245fi
46246CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
46247
46248if test -n "$CPPUNIT_CONFIG"; then
46249 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
46250echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
46251else
46252 echo "$as_me:$LINENO: result: no" >&5
46253echo "${ECHO_T}no" >&6
46254fi
46255
46256 cppunit_version_min=1.8.0
46257
46258 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
46259echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
46260 no_cppunit=""
46261 if test "$CPPUNIT_CONFIG" = "no" ; then
46262 no_cppunit=yes
46263 else
46264 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
46265 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
46266 cppunit_version=`$CPPUNIT_CONFIG --version`
46267
46268 cppunit_major_version=`echo $cppunit_version | \
46269 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46270 cppunit_minor_version=`echo $cppunit_version | \
46271 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46272 cppunit_micro_version=`echo $cppunit_version | \
46273 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46274
46275 cppunit_major_min=`echo $cppunit_version_min | \
46276 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46277 cppunit_minor_min=`echo $cppunit_version_min | \
46278 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46279 cppunit_micro_min=`echo $cppunit_version_min | \
46280 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46281
46282 cppunit_version_proper=`expr \
46283 $cppunit_major_version \> $cppunit_major_min \| \
46284 $cppunit_major_version \= $cppunit_major_min \& \
46285 $cppunit_minor_version \> $cppunit_minor_min \| \
46286 $cppunit_major_version \= $cppunit_major_min \& \
46287 $cppunit_minor_version \= $cppunit_minor_min \& \
46288 $cppunit_micro_version \>= $cppunit_micro_min `
46289
46290 if test "$cppunit_version_proper" = "1" ; then
46291 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
46292echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
46293 else
46294 echo "$as_me:$LINENO: result: no" >&5
46295echo "${ECHO_T}no" >&6
46296 no_cppunit=yes
46297 fi
46298 fi
46299
46300 if test "x$no_cppunit" = x ; then
c2218763 46301 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
46302 else
46303 CPPUNIT_CFLAGS=""
46304 CPPUNIT_LIBS=""
c2218763 46305 :
a848cd7e
SC
46306 fi
46307
46308
46309
46310
46311
46312for subdir in `echo $SUBDIRS`; do
46313 if test -d ${srcdir}/${subdir} ; then
46314 if test "$wxUSE_GUI" = "yes"; then
46315 if test ${subdir} = "samples"; then
46316 makefiles="samples/Makefile.in $makefiles"
46317 for sample in `echo $SAMPLES_SUBDIRS`; do
46318 if test -d $srcdir/samples/$sample; then
46319 makefiles="samples/$sample/Makefile.in $makefiles"
46320 fi
46321 done
9c112555
MW
46322 else
46323 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
46324 eval "disabled=\$$disabled_var"
46325 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
46326 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
46327 fi
46328 else if test ${subdir} = "samples"; then
46329 makefiles="samples/Makefile.in samples/console/Makefile.in"
46330 elif test ${subdir} = "utils"; then
6537ccf8
VS
46331 makefiles=""
46332 for util in HelpGen tex2rtf ; do
46333 if test -d $srcdir/utils/$util ; then
46334 makefiles="utils/$util/Makefile.in \
46335 utils/$util/src/Makefile.in \
46336 $makefiles"
46337 fi
46338 done
a848cd7e
SC
46339 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
46340 fi
46341 fi
46342
46343 for mkin in $makefiles ; do
46344 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
46345 ac_config_files="$ac_config_files $mk"
46346
46347 done
46348 fi
46349done
1c14217d 46350fi
a848cd7e
SC
46351cat >confcache <<\_ACEOF
46352# This file is a shell script that caches the results of configure
46353# tests run on this system so they can be shared between configure
46354# scripts and configure runs, see configure's option --config-cache.
46355# It is not useful on other systems. If it contains results you don't
46356# want to keep, you may remove or edit it.
46357#
46358# config.status only pays attention to the cache file if you give it
46359# the --recheck option to rerun configure.
46360#
46361# `ac_cv_env_foo' variables (set or unset) will be overridden when
46362# loading this file, other *unset* `ac_cv_foo' will be assigned the
46363# following values.
46364
46365_ACEOF
46366
46367# The following way of writing the cache mishandles newlines in values,
46368# but we know of no workaround that is simple, portable, and efficient.
46369# So, don't put newlines in cache variables' values.
46370# Ultrix sh set writes to stderr and can't be redirected directly,
46371# and sets the high bit in the cache file unless we assign to the vars.
46372{
46373 (set) 2>&1 |
46374 case `(ac_space=' '; set | grep ac_space) 2>&1` in
46375 *ac_space=\ *)
46376 # `set' does not quote correctly, so add quotes (double-quote
46377 # substitution turns \\\\ into \\, and sed turns \\ into \).
46378 sed -n \
ac1cb8d3
VS
46379 "s/'/'\\\\''/g;
46380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
46381 ;;
46382 *)
46383 # `set' quotes correctly as required by POSIX, so do not add quotes.
46384 sed -n \
ac1cb8d3 46385 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
46386 ;;
46387 esac;
46388} |
46389 sed '
46390 t clear
46391 : clear
46392 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46393 t end
46394 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46395 : end' >>confcache
46396if diff $cache_file confcache >/dev/null 2>&1; then :; else
46397 if test -w $cache_file; then
46398 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46399 cat confcache >$cache_file
46400 else
46401 echo "not updating unwritable cache $cache_file"
46402 fi
46403fi
46404rm -f confcache
46405
46406test "x$prefix" = xNONE && prefix=$ac_default_prefix
46407# Let make expand exec_prefix.
46408test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46409
46410# VPATH may cause trouble with some makes, so we remove $(srcdir),
46411# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46412# trailing colons and then remove the whole line if VPATH becomes empty
46413# (actually we leave an empty line to preserve line numbers).
46414if test "x$srcdir" = x.; then
ac1cb8d3 46415 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
46416s/:*\$(srcdir):*/:/;
46417s/:*\${srcdir}:*/:/;
46418s/:*@srcdir@:*/:/;
ac1cb8d3 46419s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 46420s/:*$//;
ac1cb8d3 46421s/^[^=]*=[ ]*$//;
a848cd7e
SC
46422}'
46423fi
46424
46425DEFS=-DHAVE_CONFIG_H
46426
46427ac_libobjs=
46428ac_ltlibobjs=
46429for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46430 # 1. Remove the extension, and $U if already installed.
46431 ac_i=`echo "$ac_i" |
ac1cb8d3 46432 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
46433 # 2. Add them.
46434 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46435 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46436done
46437LIBOBJS=$ac_libobjs
46438
46439LTLIBOBJS=$ac_ltlibobjs
46440
46441
46442
46443: ${CONFIG_STATUS=./config.status}
46444ac_clean_files_save=$ac_clean_files
46445ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46446{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46447echo "$as_me: creating $CONFIG_STATUS" >&6;}
46448cat >$CONFIG_STATUS <<_ACEOF
46449#! $SHELL
46450# Generated by $as_me.
46451# Run this file to recreate the current configuration.
46452# Compiler output produced by configure, useful for debugging
46453# configure, is in config.log if it exists.
46454
46455debug=false
46456ac_cs_recheck=false
46457ac_cs_silent=false
46458SHELL=\${CONFIG_SHELL-$SHELL}
46459_ACEOF
46460
46461cat >>$CONFIG_STATUS <<\_ACEOF
46462## --------------------- ##
46463## M4sh Initialization. ##
46464## --------------------- ##
46465
46466# Be Bourne compatible
46467if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46468 emulate sh
46469 NULLCMD=:
46470 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46471 # is contrary to our usage. Disable this feature.
46472 alias -g '${1+"$@"}'='"$@"'
46473elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46474 set -o posix
46475fi
ac1cb8d3 46476DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
46477
46478# Support unset when possible.
ac1cb8d3 46479if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
46480 as_unset=unset
46481else
46482 as_unset=false
46483fi
46484
46485
46486# Work around bugs in pre-3.0 UWIN ksh.
46487$as_unset ENV MAIL MAILPATH
46488PS1='$ '
46489PS2='> '
46490PS4='+ '
46491
46492# NLS nuisances.
46493for as_var in \
46494 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46495 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46496 LC_TELEPHONE LC_TIME
46497do
ac1cb8d3 46498 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
46499 eval $as_var=C; export $as_var
46500 else
46501 $as_unset $as_var
46502 fi
46503done
46504
46505# Required to use basename.
46506if expr a : '\(a\)' >/dev/null 2>&1; then
46507 as_expr=expr
46508else
46509 as_expr=false
46510fi
46511
46512if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46513 as_basename=basename
46514else
46515 as_basename=false
46516fi
46517
46518
46519# Name of the executable.
46520as_me=`$as_basename "$0" ||
46521$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46522 X"$0" : 'X\(//\)$' \| \
46523 X"$0" : 'X\(/\)$' \| \
46524 . : '\(.\)' 2>/dev/null ||
46525echo X/"$0" |
46526 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46527 /^X\/\(\/\/\)$/{ s//\1/; q; }
46528 /^X\/\(\/\).*/{ s//\1/; q; }
46529 s/.*/./; q'`
46530
46531
46532# PATH needs CR, and LINENO needs CR and PATH.
46533# Avoid depending upon Character Ranges.
46534as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46535as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46536as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46537as_cr_digits='0123456789'
46538as_cr_alnum=$as_cr_Letters$as_cr_digits
46539
46540# The user is always right.
46541if test "${PATH_SEPARATOR+set}" != set; then
46542 echo "#! /bin/sh" >conf$$.sh
46543 echo "exit 0" >>conf$$.sh
46544 chmod +x conf$$.sh
46545 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46546 PATH_SEPARATOR=';'
46547 else
46548 PATH_SEPARATOR=:
46549 fi
46550 rm -f conf$$.sh
46551fi
46552
46553
46554 as_lineno_1=$LINENO
46555 as_lineno_2=$LINENO
46556 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46557 test "x$as_lineno_1" != "x$as_lineno_2" &&
46558 test "x$as_lineno_3" = "x$as_lineno_2" || {
46559 # Find who we are. Look in the path if we contain no path at all
46560 # relative or not.
46561 case $0 in
46562 *[\\/]* ) as_myself=$0 ;;
46563 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46564for as_dir in $PATH
46565do
46566 IFS=$as_save_IFS
46567 test -z "$as_dir" && as_dir=.
46568 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46569done
46570
46571 ;;
46572 esac
46573 # We did not find ourselves, most probably we were run as `sh COMMAND'
46574 # in which case we are not to be found in the path.
46575 if test "x$as_myself" = x; then
46576 as_myself=$0
46577 fi
46578 if test ! -f "$as_myself"; then
46579 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46580echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46581 { (exit 1); exit 1; }; }
46582 fi
46583 case $CONFIG_SHELL in
46584 '')
46585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46586for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46587do
46588 IFS=$as_save_IFS
46589 test -z "$as_dir" && as_dir=.
46590 for as_base in sh bash ksh sh5; do
46591 case $as_dir in
46592 /*)
46593 if ("$as_dir/$as_base" -c '
46594 as_lineno_1=$LINENO
46595 as_lineno_2=$LINENO
46596 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46597 test "x$as_lineno_1" != "x$as_lineno_2" &&
46598 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46599 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46600 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46601 CONFIG_SHELL=$as_dir/$as_base
46602 export CONFIG_SHELL
46603 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46604 fi;;
46605 esac
46606 done
46607done
46608;;
46609 esac
46610
46611 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46612 # uniformly replaced by the line number. The first 'sed' inserts a
46613 # line-number line before each line; the second 'sed' does the real
46614 # work. The second script uses 'N' to pair each line-number line
46615 # with the numbered line, and appends trailing '-' during
46616 # substitution so that $LINENO is not a special case at line end.
46617 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46618 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46619 sed '=' <$as_myself |
46620 sed '
46621 N
46622 s,$,-,
46623 : loop
46624 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46625 t loop
46626 s,-$,,
46627 s,^['$as_cr_digits']*\n,,
46628 ' >$as_me.lineno &&
46629 chmod +x $as_me.lineno ||
46630 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46631echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46632 { (exit 1); exit 1; }; }
46633
46634 # Don't try to exec as it changes $[0], causing all sort of problems
46635 # (the dirname of $[0] is not the place where we might find the
46636 # original and so on. Autoconf is especially sensible to this).
46637 . ./$as_me.lineno
46638 # Exit status is that of the last command.
46639 exit
46640}
46641
46642
46643case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46644 *c*,-n*) ECHO_N= ECHO_C='
46645' ECHO_T=' ' ;;
46646 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46647 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46648esac
46649
46650if expr a : '\(a\)' >/dev/null 2>&1; then
46651 as_expr=expr
46652else
46653 as_expr=false
46654fi
46655
46656rm -f conf$$ conf$$.exe conf$$.file
46657echo >conf$$.file
46658if ln -s conf$$.file conf$$ 2>/dev/null; then
46659 # We could just check for DJGPP; but this test a) works b) is more generic
46660 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46661 if test -f conf$$.exe; then
46662 # Don't use ln at all; we don't have any links
46663 as_ln_s='cp -p'
46664 else
46665 as_ln_s='ln -s'
46666 fi
46667elif ln conf$$.file conf$$ 2>/dev/null; then
46668 as_ln_s=ln
46669else
46670 as_ln_s='cp -p'
46671fi
46672rm -f conf$$ conf$$.exe conf$$.file
46673
46674if mkdir -p . 2>/dev/null; then
46675 as_mkdir_p=:
46676else
ac1cb8d3 46677 test -d ./-p && rmdir ./-p
a848cd7e
SC
46678 as_mkdir_p=false
46679fi
46680
46681as_executable_p="test -f"
46682
46683# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 46684as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46685
46686# Sed expression to map a string onto a valid variable name.
ac1cb8d3 46687as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46688
46689
46690# IFS
46691# We need space, tab and new line, in precisely that order.
46692as_nl='
46693'
46694IFS=" $as_nl"
46695
46696# CDPATH.
46697$as_unset CDPATH
46698
46699exec 6>&1
46700
46701# Open the log real soon, to keep \$[0] and so on meaningful, and to
46702# report actual input values of CONFIG_FILES etc. instead of their
46703# values after options handling. Logging --version etc. is OK.
46704exec 5>>config.log
46705{
46706 echo
46707 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46708## Running $as_me. ##
46709_ASBOX
46710} >&5
46711cat >&5 <<_CSEOF
46712
dd8df4fc 46713This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 46714generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
46715
46716 CONFIG_FILES = $CONFIG_FILES
46717 CONFIG_HEADERS = $CONFIG_HEADERS
46718 CONFIG_LINKS = $CONFIG_LINKS
46719 CONFIG_COMMANDS = $CONFIG_COMMANDS
46720 $ $0 $@
46721
46722_CSEOF
46723echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
46724echo >&5
46725_ACEOF
46726
46727# Files that config.status was made for.
46728if test -n "$ac_config_files"; then
46729 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
46730fi
46731
46732if test -n "$ac_config_headers"; then
46733 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
46734fi
46735
46736if test -n "$ac_config_links"; then
46737 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
46738fi
46739
46740if test -n "$ac_config_commands"; then
46741 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
46742fi
46743
46744cat >>$CONFIG_STATUS <<\_ACEOF
46745
46746ac_cs_usage="\
46747\`$as_me' instantiates files from templates according to the
46748current configuration.
46749
46750Usage: $0 [OPTIONS] [FILE]...
46751
46752 -h, --help print this help, then exit
46753 -V, --version print version number, then exit
46754 -q, --quiet do not print progress messages
46755 -d, --debug don't remove temporary files
46756 --recheck update $as_me by reconfiguring in the same conditions
46757 --file=FILE[:TEMPLATE]
ac1cb8d3 46758 instantiate the configuration file FILE
a848cd7e 46759 --header=FILE[:TEMPLATE]
ac1cb8d3 46760 instantiate the configuration header FILE
a848cd7e
SC
46761
46762Configuration files:
46763$config_files
46764
46765Configuration headers:
46766$config_headers
46767
46768Configuration commands:
46769$config_commands
46770
46771Report bugs to <bug-autoconf@gnu.org>."
46772_ACEOF
46773
46774cat >>$CONFIG_STATUS <<_ACEOF
46775ac_cs_version="\\
dd8df4fc 46776wxWidgets config.status 2.7.0
ac1cb8d3 46777configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
46778 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
46779
ac1cb8d3 46780Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
46781This config.status script is free software; the Free Software Foundation
46782gives unlimited permission to copy, distribute and modify it."
46783srcdir=$srcdir
46784INSTALL="$INSTALL"
46785_ACEOF
46786
46787cat >>$CONFIG_STATUS <<\_ACEOF
46788# If no file are specified by the user, then we need to provide default
46789# value. By we need to know if files were specified by the user.
46790ac_need_defaults=:
46791while test $# != 0
46792do
46793 case $1 in
46794 --*=*)
46795 ac_option=`expr "x$1" : 'x\([^=]*\)='`
46796 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
46797 ac_shift=:
46798 ;;
46799 -*)
46800 ac_option=$1
46801 ac_optarg=$2
46802 ac_shift=shift
46803 ;;
46804 *) # This is not an option, so the user has probably given explicit
46805 # arguments.
46806 ac_option=$1
46807 ac_need_defaults=false;;
46808 esac
46809
46810 case $ac_option in
46811 # Handling of the options.
46812_ACEOF
46813cat >>$CONFIG_STATUS <<\_ACEOF
46814 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46815 ac_cs_recheck=: ;;
46816 --version | --vers* | -V )
46817 echo "$ac_cs_version"; exit 0 ;;
46818 --he | --h)
46819 # Conflict between --help and --header
46820 { { echo "$as_me:$LINENO: error: ambiguous option: $1
46821Try \`$0 --help' for more information." >&5
46822echo "$as_me: error: ambiguous option: $1
46823Try \`$0 --help' for more information." >&2;}
46824 { (exit 1); exit 1; }; };;
46825 --help | --hel | -h )
46826 echo "$ac_cs_usage"; exit 0 ;;
46827 --debug | --d* | -d )
46828 debug=: ;;
46829 --file | --fil | --fi | --f )
46830 $ac_shift
46831 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
46832 ac_need_defaults=false;;
46833 --header | --heade | --head | --hea )
46834 $ac_shift
46835 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
46836 ac_need_defaults=false;;
46837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46838 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46839 ac_cs_silent=: ;;
46840
46841 # This is an error.
46842 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
46843Try \`$0 --help' for more information." >&5
46844echo "$as_me: error: unrecognized option: $1
46845Try \`$0 --help' for more information." >&2;}
46846 { (exit 1); exit 1; }; } ;;
46847
46848 *) ac_config_targets="$ac_config_targets $1" ;;
46849
46850 esac
46851 shift
46852done
46853
46854ac_configure_extra_args=
46855
46856if $ac_cs_silent; then
46857 exec 6>/dev/null
46858 ac_configure_extra_args="$ac_configure_extra_args --silent"
46859fi
46860
46861_ACEOF
46862cat >>$CONFIG_STATUS <<_ACEOF
46863if \$ac_cs_recheck; then
46864 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
46865 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46866fi
46867
46868_ACEOF
46869
46870cat >>$CONFIG_STATUS <<_ACEOF
46871#
46872# INIT-COMMANDS section.
46873#
46874
ceec2216
RL
46875 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46876 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46877 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46878 LN_S="${LN_S}"
a848cd7e
SC
46879
46880
46881_ACEOF
46882
46883
46884
46885cat >>$CONFIG_STATUS <<\_ACEOF
46886for ac_config_target in $ac_config_targets
46887do
46888 case "$ac_config_target" in
46889 # Handling of arguments.
ceec2216
RL
46890 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
46891 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
46892 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
46893 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46894 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
46895 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
46896 "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
46897 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46898echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46899 { (exit 1); exit 1; }; };;
46900 esac
46901done
46902
46903# If the user did not use the arguments to specify the items to instantiate,
46904# then the envvar interface is used. Set only those that are not.
46905# We use the long form for the default assignment because of an extremely
46906# bizarre bug on SunOS 4.1.3.
46907if $ac_need_defaults; then
46908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46910 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46911fi
46912
46913# Have a temporary directory for convenience. Make it in the build tree
46914# simply because there is no reason to put it here, and in addition,
46915# creating and moving files from /tmp can sometimes cause problems.
46916# Create a temporary directory, and hook for its removal unless debugging.
46917$debug ||
46918{
46919 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
46920 trap '{ (exit 1); exit 1; }' 1 2 13 15
46921}
46922
46923# Create a (secure) tmp directory for tmp files.
46924
46925{
46926 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
46927 test -n "$tmp" && test -d "$tmp"
46928} ||
46929{
46930 tmp=./confstat$$-$RANDOM
46931 (umask 077 && mkdir $tmp)
46932} ||
46933{
46934 echo "$me: cannot create a temporary directory in ." >&2
46935 { (exit 1); exit 1; }
46936}
46937
46938_ACEOF
46939
46940cat >>$CONFIG_STATUS <<_ACEOF
46941
46942#
46943# CONFIG_FILES section.
46944#
46945
46946# No need to generate the scripts if there are no CONFIG_FILES.
46947# This happens for instance when ./config.status config.h
46948if test -n "\$CONFIG_FILES"; then
46949 # Protect against being on the right side of a sed subst in config.status.
46950 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
46951 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
46952s,@SHELL@,$SHELL,;t t
46953s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
46954s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
46955s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
46956s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
46957s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
46958s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
46959s,@exec_prefix@,$exec_prefix,;t t
46960s,@prefix@,$prefix,;t t
46961s,@program_transform_name@,$program_transform_name,;t t
46962s,@bindir@,$bindir,;t t
46963s,@sbindir@,$sbindir,;t t
46964s,@libexecdir@,$libexecdir,;t t
46965s,@datadir@,$datadir,;t t
46966s,@sysconfdir@,$sysconfdir,;t t
46967s,@sharedstatedir@,$sharedstatedir,;t t
46968s,@localstatedir@,$localstatedir,;t t
46969s,@libdir@,$libdir,;t t
46970s,@includedir@,$includedir,;t t
46971s,@oldincludedir@,$oldincludedir,;t t
46972s,@infodir@,$infodir,;t t
46973s,@mandir@,$mandir,;t t
46974s,@build_alias@,$build_alias,;t t
46975s,@host_alias@,$host_alias,;t t
46976s,@target_alias@,$target_alias,;t t
46977s,@DEFS@,$DEFS,;t t
46978s,@ECHO_C@,$ECHO_C,;t t
46979s,@ECHO_N@,$ECHO_N,;t t
46980s,@ECHO_T@,$ECHO_T,;t t
46981s,@LIBS@,$LIBS,;t t
46982s,@build@,$build,;t t
46983s,@build_cpu@,$build_cpu,;t t
46984s,@build_vendor@,$build_vendor,;t t
46985s,@build_os@,$build_os,;t t
46986s,@host@,$host,;t t
46987s,@host_cpu@,$host_cpu,;t t
46988s,@host_vendor@,$host_vendor,;t t
46989s,@host_os@,$host_os,;t t
46990s,@target@,$target,;t t
46991s,@target_cpu@,$target_cpu,;t t
46992s,@target_vendor@,$target_vendor,;t t
46993s,@target_os@,$target_os,;t t
46994s,@CC@,$CC,;t t
46995s,@CFLAGS@,$CFLAGS,;t t
46996s,@LDFLAGS@,$LDFLAGS,;t t
46997s,@CPPFLAGS@,$CPPFLAGS,;t t
46998s,@ac_ct_CC@,$ac_ct_CC,;t t
46999s,@EXEEXT@,$EXEEXT,;t t
47000s,@OBJEXT@,$OBJEXT,;t t
47001s,@CPP@,$CPP,;t t
47002s,@EGREP@,$EGREP,;t t
47003s,@CXX@,$CXX,;t t
47004s,@CXXFLAGS@,$CXXFLAGS,;t t
47005s,@ac_ct_CXX@,$ac_ct_CXX,;t t
47006s,@RANLIB@,$RANLIB,;t t
47007s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
47008s,@AR@,$AR,;t t
8c80d384 47009s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
47010s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
47011s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
47012s,@INSTALL_DATA@,$INSTALL_DATA,;t t
47013s,@STRIP@,$STRIP,;t t
8c80d384
DE
47014s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
47015s,@RESCOMP@,$RESCOMP,;t t
47016s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
47017s,@DLLTOOL@,$DLLTOOL,;t t
47018s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
47019s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
47020s,@LN_S@,$LN_S,;t t
47021s,@CXXCPP@,$CXXCPP,;t t
47022s,@subdirs@,$subdirs,;t t
47023s,@PKG_CONFIG@,$PKG_CONFIG,;t t
47024s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
47025s,@GTK_LIBS@,$GTK_LIBS,;t t
47026s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
47027s,@X_CFLAGS@,$X_CFLAGS,;t t
47028s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
47029s,@X_LIBS@,$X_LIBS,;t t
47030s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
47031s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
47032s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
47033s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
47034s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
47035s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
47036s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
47037s,@DEREZ@,$DEREZ,;t t
47038s,@SETFILE@,$SETFILE,;t t
47039s,@LIBICONV@,$LIBICONV,;t t
47040s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
47041s,@SDL_CONFIG@,$SDL_CONFIG,;t t
47042s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
47043s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
47044s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
47045s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
47046s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
47047s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
47048s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
47049s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
47050s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
47051s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
47052s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
47053s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
47054s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
47055s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
47056s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
47057s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
47058s,@VENDOR@,$VENDOR,;t t
47059s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
47060s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
47061s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
47062s,@WXUNIV@,$WXUNIV,;t t
47063s,@MONOLITHIC@,$MONOLITHIC,;t t
47064s,@USE_PLUGINS@,$USE_PLUGINS,;t t
47065s,@EXTRALIBS@,$EXTRALIBS,;t t
47066s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
47067s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
47068s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
47069s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
47070s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
47071s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
47072s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 47073s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
47074s,@UNICODE@,$UNICODE,;t t
47075s,@BUILD@,$BUILD,;t t
47076s,@DEBUG_INFO@,$DEBUG_INFO,;t t
47077s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
47078s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
47079s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
47080s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
47081s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
47082s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
47083s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
47084s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
47085s,@SET_MAKE@,$SET_MAKE,;t t
47086s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
47087s,@NM@,$NM,;t t
47088s,@ac_ct_NM@,$ac_ct_NM,;t t
47089s,@INSTALL_DIR@,$INSTALL_DIR,;t t
47090s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
47091s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
47092s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
47093s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
47094s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 47095s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
47096s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
47097s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 47098s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
47099s,@SO_SUFFIX@,$SO_SUFFIX,;t t
47100s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
47101s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
47102s,@LIBPREFIX@,$LIBPREFIX,;t t
47103s,@LIBEXT@,$LIBEXT,;t t
47104s,@DLLPREFIX@,$DLLPREFIX,;t t
47105s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 47106s,@dlldir@,$dlldir,;t t
a848cd7e
SC
47107s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
47108s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
47109s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
47110s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
47111s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
47112s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 47113s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
47114s,@USE_SOVERSION@,$USE_SOVERSION,;t t
47115s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
47116s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 47117s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
47118s,@USE_MACVERSION@,$USE_MACVERSION,;t t
47119s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
47120s,@SONAME_FLAG@,$SONAME_FLAG,;t t
47121s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
47122s,@GCC_PCH@,$GCC_PCH,;t t
47123s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
47124s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
47125s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
47126s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
47127s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
47128s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
47129s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
47130s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
47131s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
47132s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
47133s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
47134s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
47135s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
47136s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
47137s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
47138s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
47139s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
47140s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 47141s,@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 47142s,@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 47143s,@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 47144s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 47145s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47146s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
47147s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 47148s,@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 47149s,@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 47150s,@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 47151s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 47152s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
47153s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
47154s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
47155s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
47156s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
47157s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
47158s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 47159s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
47160s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
47161s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 47162s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
47163s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
47164s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
47165s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 47166s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 47167s,@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
47168s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
47169s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
47170s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
47171s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 47172s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 47173s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 47174s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
47175s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
47176s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
47177s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
47178s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
47179s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
47180s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
47181s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
47182s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
47183s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
47184s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
47185s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
47186s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
47187s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47188s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47189s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 47190s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47191s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
47192s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
47193s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
47194s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
47195s,@COND_SHARED_1@,$COND_SHARED_1,;t t
47196s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 47197s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 47198s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 47199s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 47200s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
47201s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
47202s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
47203s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
47204s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
47205s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
47206s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
47207s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
47208s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
47209s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
47210s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
47211s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
47212s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
47213s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
47214s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
47215s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47216s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
47217s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
47218s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
47219s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
47220s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
47221s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
47222s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47223s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
47224s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
47225s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
47226s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
47227s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
47228s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
47229s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
47230s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
47231s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
47232s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
47233s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47234s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47235s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
47236s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
47237s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 47238s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
47239s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
47240s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 47241s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 47242s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
47243s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
47244s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
47245s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
47246s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
47247s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 47248s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 47249s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 47250s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 47251s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
47252s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
47253s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
47254s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
47255s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
47256s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
47257s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
47258s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
47259s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 47260s,@SHARED@,$SHARED,;t t
a848cd7e
SC
47261s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
47262s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
47263s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
47264s,@USE_GUI@,$USE_GUI,;t t
47265s,@AFMINSTALL@,$AFMINSTALL,;t t
47266s,@WIN32INSTALL@,$WIN32INSTALL,;t t
47267s,@TOOLKIT@,$TOOLKIT,;t t
47268s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 47269s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 47270s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
47271s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
47272s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 47273s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
47274s,@WIDGET_SET@,$WIDGET_SET,;t t
47275s,@WX_RELEASE@,$WX_RELEASE,;t t
47276s,@WX_VERSION@,$WX_VERSION,;t t
47277s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
47278s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
47279s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 47280s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
47281s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
47282s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
47283s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
47284s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 47285s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
47286s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
47287s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 47288s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 47289s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
47290s,@DISTDIR@,$DISTDIR,;t t
47291s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
47292s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
47293s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
47294s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
47295s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
47296s,@RESFLAGS@,$RESFLAGS,;t t
47297s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
47298s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
47299s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
47300s,@LIBWXMACRES@,$LIBWXMACRES,;t t
47301s,@MACRESCOMP@,$MACRESCOMP,;t t
47302s,@MACSETFILE@,$MACSETFILE,;t t
47303s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
47304s,@GCC@,$GCC,;t t
a848cd7e
SC
47305s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
47306s,@LIBOBJS@,$LIBOBJS,;t t
47307s,@LTLIBOBJS@,$LTLIBOBJS,;t t
47308CEOF
47309
47310_ACEOF
47311
47312 cat >>$CONFIG_STATUS <<\_ACEOF
47313 # Split the substitutions into bite-sized pieces for seds with
47314 # small command number limits, like on Digital OSF/1 and HP-UX.
47315 ac_max_sed_lines=48
47316 ac_sed_frag=1 # Number of current file.
47317 ac_beg=1 # First line for current file.
47318 ac_end=$ac_max_sed_lines # Line after last line for current file.
47319 ac_more_lines=:
47320 ac_sed_cmds=
47321 while $ac_more_lines; do
47322 if test $ac_beg -gt 1; then
47323 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47324 else
47325 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47326 fi
47327 if test ! -s $tmp/subs.frag; then
47328 ac_more_lines=false
47329 else
47330 # The purpose of the label and of the branching condition is to
47331 # speed up the sed processing (if there are no `@' at all, there
47332 # is no need to browse any of the substitutions).
47333 # These are the two extra sed commands mentioned above.
47334 (echo ':t
47335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
47336 if test -z "$ac_sed_cmds"; then
ac1cb8d3 47337 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 47338 else
ac1cb8d3 47339 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
47340 fi
47341 ac_sed_frag=`expr $ac_sed_frag + 1`
47342 ac_beg=$ac_end
47343 ac_end=`expr $ac_end + $ac_max_sed_lines`
47344 fi
47345 done
47346 if test -z "$ac_sed_cmds"; then
47347 ac_sed_cmds=cat
47348 fi
47349fi # test -n "$CONFIG_FILES"
47350
47351_ACEOF
47352cat >>$CONFIG_STATUS <<\_ACEOF
47353for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
47354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47355 case $ac_file in
47356 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47357 cat >$tmp/stdin
47358 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47360 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47362 * ) ac_file_in=$ac_file.in ;;
47363 esac
47364
47365 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
47366 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47367$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47368 X"$ac_file" : 'X\(//\)[^/]' \| \
47369 X"$ac_file" : 'X\(//\)$' \| \
47370 X"$ac_file" : 'X\(/\)' \| \
47371 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47372echo X"$ac_file" |
47373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47375 /^X\(\/\/\)$/{ s//\1/; q; }
47376 /^X\(\/\).*/{ s//\1/; q; }
47377 s/.*/./; q'`
47378 { if $as_mkdir_p; then
47379 mkdir -p "$ac_dir"
47380 else
47381 as_dir="$ac_dir"
47382 as_dirs=
47383 while test ! -d "$as_dir"; do
47384 as_dirs="$as_dir $as_dirs"
47385 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47387 X"$as_dir" : 'X\(//\)[^/]' \| \
47388 X"$as_dir" : 'X\(//\)$' \| \
47389 X"$as_dir" : 'X\(/\)' \| \
47390 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47391echo X"$as_dir" |
47392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47394 /^X\(\/\/\)$/{ s//\1/; q; }
47395 /^X\(\/\).*/{ s//\1/; q; }
47396 s/.*/./; q'`
47397 done
47398 test ! -n "$as_dirs" || mkdir $as_dirs
47399 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47400echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47401 { (exit 1); exit 1; }; }; }
47402
47403 ac_builddir=.
47404
47405if test "$ac_dir" != .; then
47406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47407 # A "../" for each directory in $ac_dir_suffix.
47408 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47409else
47410 ac_dir_suffix= ac_top_builddir=
47411fi
47412
47413case $srcdir in
47414 .) # No --srcdir option. We are building in place.
47415 ac_srcdir=.
47416 if test -z "$ac_top_builddir"; then
47417 ac_top_srcdir=.
47418 else
47419 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47420 fi ;;
47421 [\\/]* | ?:[\\/]* ) # Absolute path.
47422 ac_srcdir=$srcdir$ac_dir_suffix;
47423 ac_top_srcdir=$srcdir ;;
47424 *) # Relative path.
47425 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47426 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47427esac
ac1cb8d3
VS
47428
47429# Do not use `cd foo && pwd` to compute absolute paths, because
47430# the directories may not exist.
47431case `pwd` in
47432.) ac_abs_builddir="$ac_dir";;
47433*)
47434 case "$ac_dir" in
47435 .) ac_abs_builddir=`pwd`;;
47436 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47437 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47438 esac;;
47439esac
47440case $ac_abs_builddir in
47441.) ac_abs_top_builddir=${ac_top_builddir}.;;
47442*)
47443 case ${ac_top_builddir}. in
47444 .) ac_abs_top_builddir=$ac_abs_builddir;;
47445 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47446 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47447 esac;;
47448esac
47449case $ac_abs_builddir in
47450.) ac_abs_srcdir=$ac_srcdir;;
47451*)
47452 case $ac_srcdir in
47453 .) ac_abs_srcdir=$ac_abs_builddir;;
47454 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47455 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47456 esac;;
47457esac
47458case $ac_abs_builddir in
47459.) ac_abs_top_srcdir=$ac_top_srcdir;;
47460*)
47461 case $ac_top_srcdir in
47462 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47463 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47464 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47465 esac;;
47466esac
a848cd7e
SC
47467
47468
47469 case $INSTALL in
47470 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47471 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47472 esac
47473
a848cd7e
SC
47474 # Let's still pretend it is `configure' which instantiates (i.e., don't
47475 # use $as_me), people would be surprised to read:
47476 # /* config.h. Generated by config.status. */
47477 if test x"$ac_file" = x-; then
47478 configure_input=
47479 else
47480 configure_input="$ac_file. "
47481 fi
47482 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 47483 sed 's,.*/,,'` by configure."
a848cd7e
SC
47484
47485 # First look for the input files in the build tree, otherwise in the
47486 # src tree.
47487 ac_file_inputs=`IFS=:
47488 for f in $ac_file_in; do
47489 case $f in
47490 -) echo $tmp/stdin ;;
47491 [\\/$]*)
ac1cb8d3
VS
47492 # Absolute (can't be DOS-style, as IFS=:)
47493 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47494echo "$as_me: error: cannot find input file: $f" >&2;}
47495 { (exit 1); exit 1; }; }
ac1cb8d3 47496 echo "$f";;
a848cd7e 47497 *) # Relative
ac1cb8d3
VS
47498 if test -f "$f"; then
47499 # Build tree
47500 echo "$f"
47501 elif test -f "$srcdir/$f"; then
47502 # Source tree
47503 echo "$srcdir/$f"
47504 else
47505 # /dev/null tree
47506 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47507echo "$as_me: error: cannot find input file: $f" >&2;}
47508 { (exit 1); exit 1; }; }
ac1cb8d3 47509 fi;;
a848cd7e
SC
47510 esac
47511 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
47512
47513 if test x"$ac_file" != x-; then
47514 { echo "$as_me:$LINENO: creating $ac_file" >&5
47515echo "$as_me: creating $ac_file" >&6;}
47516 rm -f "$ac_file"
47517 fi
a848cd7e
SC
47518_ACEOF
47519cat >>$CONFIG_STATUS <<_ACEOF
47520 sed "$ac_vpsub
47521$extrasub
47522_ACEOF
47523cat >>$CONFIG_STATUS <<\_ACEOF
47524:t
47525/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47526s,@configure_input@,$configure_input,;t t
47527s,@srcdir@,$ac_srcdir,;t t
47528s,@abs_srcdir@,$ac_abs_srcdir,;t t
47529s,@top_srcdir@,$ac_top_srcdir,;t t
47530s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47531s,@builddir@,$ac_builddir,;t t
47532s,@abs_builddir@,$ac_abs_builddir,;t t
47533s,@top_builddir@,$ac_top_builddir,;t t
47534s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47535s,@INSTALL@,$ac_INSTALL,;t t
47536" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47537 rm -f $tmp/stdin
47538 if test x"$ac_file" != x-; then
47539 mv $tmp/out $ac_file
47540 else
47541 cat $tmp/out
47542 rm -f $tmp/out
47543 fi
47544
ceec2216
RL
47545 # Run the commands associated with the file.
47546 case $ac_file in
47547 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
47548 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
47549 esac
a848cd7e
SC
47550done
47551_ACEOF
47552cat >>$CONFIG_STATUS <<\_ACEOF
47553
47554#
47555# CONFIG_HEADER section.
47556#
47557
47558# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47559# NAME is the cpp macro being defined and VALUE is the value it is being given.
47560#
47561# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
47562ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47563ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
47564ac_dC=' '
47565ac_dD=',;t'
47566# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 47567ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
47568ac_uB='$,\1#\2define\3'
47569ac_uC=' '
47570ac_uD=',;t'
47571
47572for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47573 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47574 case $ac_file in
47575 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47576 cat >$tmp/stdin
47577 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47578 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47579 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47580 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47581 * ) ac_file_in=$ac_file.in ;;
47582 esac
47583
47584 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47585echo "$as_me: creating $ac_file" >&6;}
47586
47587 # First look for the input files in the build tree, otherwise in the
47588 # src tree.
47589 ac_file_inputs=`IFS=:
47590 for f in $ac_file_in; do
47591 case $f in
47592 -) echo $tmp/stdin ;;
47593 [\\/$]*)
ac1cb8d3
VS
47594 # Absolute (can't be DOS-style, as IFS=:)
47595 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47596echo "$as_me: error: cannot find input file: $f" >&2;}
47597 { (exit 1); exit 1; }; }
ac1cb8d3
VS
47598 # Do quote $f, to prevent DOS paths from being IFS'd.
47599 echo "$f";;
a848cd7e 47600 *) # Relative
ac1cb8d3
VS
47601 if test -f "$f"; then
47602 # Build tree
47603 echo "$f"
47604 elif test -f "$srcdir/$f"; then
47605 # Source tree
47606 echo "$srcdir/$f"
47607 else
47608 # /dev/null tree
47609 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47610echo "$as_me: error: cannot find input file: $f" >&2;}
47611 { (exit 1); exit 1; }; }
ac1cb8d3 47612 fi;;
a848cd7e
SC
47613 esac
47614 done` || { (exit 1); exit 1; }
47615 # Remove the trailing spaces.
ac1cb8d3 47616 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
47617
47618_ACEOF
47619
47620# Transform confdefs.h into two sed scripts, `conftest.defines' and
47621# `conftest.undefs', that substitutes the proper values into
47622# config.h.in to produce config.h. The first handles `#define'
47623# templates, and the second `#undef' templates.
47624# And first: Protect against being on the right side of a sed subst in
47625# config.status. Protect against being in an unquoted here document
47626# in config.status.
47627rm -f conftest.defines conftest.undefs
47628# Using a here document instead of a string reduces the quoting nightmare.
47629# Putting comments in sed scripts is not portable.
47630#
47631# `end' is used to avoid that the second main sed command (meant for
47632# 0-ary CPP macros) applies to n-ary macro definitions.
47633# See the Autoconf documentation for `clear'.
47634cat >confdef2sed.sed <<\_ACEOF
47635s/[\\&,]/\\&/g
47636s,[\\$`],\\&,g
47637t clear
47638: clear
ac1cb8d3 47639s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 47640t end
ac1cb8d3 47641s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
47642: end
47643_ACEOF
47644# If some macros were called several times there might be several times
47645# the same #defines, which is useless. Nevertheless, we may not want to
47646# sort them, since we want the *last* AC-DEFINE to be honored.
47647uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47648sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47649rm -f confdef2sed.sed
47650
47651# This sed command replaces #undef with comments. This is necessary, for
47652# example, in the case of _POSIX_SOURCE, which is predefined and required
47653# on some systems where configure will not decide to define it.
47654cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 47655s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
47656_ACEOF
47657
47658# Break up conftest.defines because some shells have a limit on the size
47659# of here documents, and old seds have small limits too (100 cmds).
47660echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 47661echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
47662echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47663echo ' :' >>$CONFIG_STATUS
47664rm -f conftest.tail
47665while grep . conftest.defines >/dev/null
47666do
47667 # Write a limited-size here document to $tmp/defines.sed.
47668 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47669 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 47670 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
47671 # Work around the forget-to-reset-the-flag bug.
47672 echo 't clr' >>$CONFIG_STATUS
47673 echo ': clr' >>$CONFIG_STATUS
47674 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47675 echo 'CEOF
47676 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47677 rm -f $tmp/in
47678 mv $tmp/out $tmp/in
47679' >>$CONFIG_STATUS
47680 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47681 rm -f conftest.defines
47682 mv conftest.tail conftest.defines
47683done
47684rm -f conftest.defines
47685echo ' fi # grep' >>$CONFIG_STATUS
47686echo >>$CONFIG_STATUS
47687
47688# Break up conftest.undefs because some shells have a limit on the size
47689# of here documents, and old seds have small limits too (100 cmds).
47690echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47691rm -f conftest.tail
47692while grep . conftest.undefs >/dev/null
47693do
47694 # Write a limited-size here document to $tmp/undefs.sed.
47695 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47696 # Speed up: don't consider the non `#undef'
ac1cb8d3 47697 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
47698 # Work around the forget-to-reset-the-flag bug.
47699 echo 't clr' >>$CONFIG_STATUS
47700 echo ': clr' >>$CONFIG_STATUS
47701 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47702 echo 'CEOF
47703 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47704 rm -f $tmp/in
47705 mv $tmp/out $tmp/in
47706' >>$CONFIG_STATUS
47707 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47708 rm -f conftest.undefs
47709 mv conftest.tail conftest.undefs
47710done
47711rm -f conftest.undefs
47712
47713cat >>$CONFIG_STATUS <<\_ACEOF
47714 # Let's still pretend it is `configure' which instantiates (i.e., don't
47715 # use $as_me), people would be surprised to read:
47716 # /* config.h. Generated by config.status. */
47717 if test x"$ac_file" = x-; then
47718 echo "/* Generated by configure. */" >$tmp/config.h
47719 else
47720 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
47721 fi
47722 cat $tmp/in >>$tmp/config.h
47723 rm -f $tmp/in
47724 if test x"$ac_file" != x-; then
47725 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47726 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47727echo "$as_me: $ac_file is unchanged" >&6;}
47728 else
47729 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47730$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47731 X"$ac_file" : 'X\(//\)[^/]' \| \
47732 X"$ac_file" : 'X\(//\)$' \| \
47733 X"$ac_file" : 'X\(/\)' \| \
47734 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47735echo X"$ac_file" |
47736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47738 /^X\(\/\/\)$/{ s//\1/; q; }
47739 /^X\(\/\).*/{ s//\1/; q; }
47740 s/.*/./; q'`
47741 { if $as_mkdir_p; then
47742 mkdir -p "$ac_dir"
47743 else
47744 as_dir="$ac_dir"
47745 as_dirs=
47746 while test ! -d "$as_dir"; do
47747 as_dirs="$as_dir $as_dirs"
47748 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47749$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47750 X"$as_dir" : 'X\(//\)[^/]' \| \
47751 X"$as_dir" : 'X\(//\)$' \| \
47752 X"$as_dir" : 'X\(/\)' \| \
47753 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47754echo X"$as_dir" |
47755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47757 /^X\(\/\/\)$/{ s//\1/; q; }
47758 /^X\(\/\).*/{ s//\1/; q; }
47759 s/.*/./; q'`
47760 done
47761 test ! -n "$as_dirs" || mkdir $as_dirs
47762 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47763echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47764 { (exit 1); exit 1; }; }; }
47765
47766 rm -f $ac_file
47767 mv $tmp/config.h $ac_file
47768 fi
47769 else
47770 cat $tmp/config.h
47771 rm -f $tmp/config.h
47772 fi
47773done
47774_ACEOF
47775cat >>$CONFIG_STATUS <<\_ACEOF
47776
47777#
47778# CONFIG_COMMANDS section.
47779#
47780for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
47781 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
47782 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
47783 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
47784$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47785 X"$ac_dest" : 'X\(//\)[^/]' \| \
47786 X"$ac_dest" : 'X\(//\)$' \| \
47787 X"$ac_dest" : 'X\(/\)' \| \
47788 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47789echo X"$ac_dest" |
47790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47792 /^X\(\/\/\)$/{ s//\1/; q; }
47793 /^X\(\/\).*/{ s//\1/; q; }
47794 s/.*/./; q'`
ac1cb8d3
VS
47795 { if $as_mkdir_p; then
47796 mkdir -p "$ac_dir"
47797 else
47798 as_dir="$ac_dir"
47799 as_dirs=
47800 while test ! -d "$as_dir"; do
47801 as_dirs="$as_dir $as_dirs"
47802 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47803$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47804 X"$as_dir" : 'X\(//\)[^/]' \| \
47805 X"$as_dir" : 'X\(//\)$' \| \
47806 X"$as_dir" : 'X\(/\)' \| \
47807 . : '\(.\)' 2>/dev/null ||
47808echo X"$as_dir" |
47809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47811 /^X\(\/\/\)$/{ s//\1/; q; }
47812 /^X\(\/\).*/{ s//\1/; q; }
47813 s/.*/./; q'`
47814 done
47815 test ! -n "$as_dirs" || mkdir $as_dirs
47816 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47817echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47818 { (exit 1); exit 1; }; }; }
47819
a848cd7e
SC
47820 ac_builddir=.
47821
47822if test "$ac_dir" != .; then
47823 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47824 # A "../" for each directory in $ac_dir_suffix.
47825 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47826else
47827 ac_dir_suffix= ac_top_builddir=
47828fi
47829
47830case $srcdir in
47831 .) # No --srcdir option. We are building in place.
47832 ac_srcdir=.
47833 if test -z "$ac_top_builddir"; then
47834 ac_top_srcdir=.
47835 else
47836 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47837 fi ;;
47838 [\\/]* | ?:[\\/]* ) # Absolute path.
47839 ac_srcdir=$srcdir$ac_dir_suffix;
47840 ac_top_srcdir=$srcdir ;;
47841 *) # Relative path.
47842 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47843 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47844esac
ac1cb8d3
VS
47845
47846# Do not use `cd foo && pwd` to compute absolute paths, because
47847# the directories may not exist.
47848case `pwd` in
47849.) ac_abs_builddir="$ac_dir";;
47850*)
47851 case "$ac_dir" in
47852 .) ac_abs_builddir=`pwd`;;
47853 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47854 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47855 esac;;
47856esac
47857case $ac_abs_builddir in
47858.) ac_abs_top_builddir=${ac_top_builddir}.;;
47859*)
47860 case ${ac_top_builddir}. in
47861 .) ac_abs_top_builddir=$ac_abs_builddir;;
47862 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47863 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47864 esac;;
47865esac
47866case $ac_abs_builddir in
47867.) ac_abs_srcdir=$ac_srcdir;;
47868*)
47869 case $ac_srcdir in
47870 .) ac_abs_srcdir=$ac_abs_builddir;;
47871 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47872 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47873 esac;;
47874esac
47875case $ac_abs_builddir in
47876.) ac_abs_top_srcdir=$ac_top_srcdir;;
47877*)
47878 case $ac_top_srcdir in
47879 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47880 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47881 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47882 esac;;
47883esac
a848cd7e
SC
47884
47885
47886 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
47887echo "$as_me: executing $ac_dest commands" >&6;}
47888 case $ac_dest in
ceec2216
RL
47889 wx-config ) rm -f wx-config
47890 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
47891 ;;
a848cd7e
SC
47892 esac
47893done
47894_ACEOF
47895
47896cat >>$CONFIG_STATUS <<\_ACEOF
47897
47898{ (exit 0); exit 0; }
47899_ACEOF
47900chmod +x $CONFIG_STATUS
47901ac_clean_files=$ac_clean_files_save
47902
47903
47904# configure is writing to config.log, and then calls config.status.
47905# config.status does its own redirection, appending to config.log.
47906# Unfortunately, on DOS this fails, as config.log is still kept open
47907# by configure, so config.status won't be able to write to it; its
47908# output is simply discarded. So we exec the FD to /dev/null,
47909# effectively closing config.log, so it can be properly (re)opened and
47910# appended to by config.status. When coming back to configure, we
47911# need to make the FD available again.
47912if test "$no_create" != yes; then
47913 ac_cs_success=:
47914 ac_config_status_args=
47915 test "$silent" = yes &&
47916 ac_config_status_args="$ac_config_status_args --quiet"
47917 exec 5>/dev/null
47918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47919 exec 5>>config.log
47920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47921 # would make configure fail if this is the last instruction.
47922 $ac_cs_success || { (exit 1); exit 1; }
47923fi
47924
47925#
47926# CONFIG_SUBDIRS section.
47927#
47928if test "$no_recursion" != yes; then
47929
47930 # Remove --cache-file and --srcdir arguments so they do not pile up.
47931 ac_sub_configure_args=
47932 ac_prev=
47933 for ac_arg in $ac_configure_args; do
47934 if test -n "$ac_prev"; then
47935 ac_prev=
47936 continue
47937 fi
47938 case $ac_arg in
47939 -cache-file | --cache-file | --cache-fil | --cache-fi \
47940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
47941 ac_prev=cache_file ;;
47942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
47943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
47944 | --c=*)
47945 ;;
47946 --config-cache | -C)
47947 ;;
47948 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
47949 ac_prev=srcdir ;;
47950 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47951 ;;
47952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
47953 ac_prev=prefix ;;
47954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47955 ;;
47956 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
47957 esac
47958 done
47959
47960 # Always prepend --prefix to ensure using the same prefix
47961 # in subdir configurations.
47962 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
47963
47964 ac_popdir=`pwd`
47965 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
47966
47967 # Do not complain, so a configure script can configure whichever
47968 # parts of a large source tree are present.
47969 test -d $srcdir/$ac_dir || continue
47970
47971 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
47972echo "$as_me: configuring in $ac_dir" >&6;}
47973 { if $as_mkdir_p; then
47974 mkdir -p "$ac_dir"
47975 else
47976 as_dir="$ac_dir"
47977 as_dirs=
47978 while test ! -d "$as_dir"; do
47979 as_dirs="$as_dir $as_dirs"
47980 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47981$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47982 X"$as_dir" : 'X\(//\)[^/]' \| \
47983 X"$as_dir" : 'X\(//\)$' \| \
47984 X"$as_dir" : 'X\(/\)' \| \
47985 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47986echo X"$as_dir" |
47987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47989 /^X\(\/\/\)$/{ s//\1/; q; }
47990 /^X\(\/\).*/{ s//\1/; q; }
47991 s/.*/./; q'`
47992 done
47993 test ! -n "$as_dirs" || mkdir $as_dirs
47994 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47995echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47996 { (exit 1); exit 1; }; }; }
47997
47998 ac_builddir=.
47999
48000if test "$ac_dir" != .; then
48001 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48002 # A "../" for each directory in $ac_dir_suffix.
48003 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48004else
48005 ac_dir_suffix= ac_top_builddir=
48006fi
48007
48008case $srcdir in
48009 .) # No --srcdir option. We are building in place.
48010 ac_srcdir=.
48011 if test -z "$ac_top_builddir"; then
48012 ac_top_srcdir=.
48013 else
48014 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48015 fi ;;
48016 [\\/]* | ?:[\\/]* ) # Absolute path.
48017 ac_srcdir=$srcdir$ac_dir_suffix;
48018 ac_top_srcdir=$srcdir ;;
48019 *) # Relative path.
48020 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48021 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48022esac
ac1cb8d3
VS
48023
48024# Do not use `cd foo && pwd` to compute absolute paths, because
48025# the directories may not exist.
48026case `pwd` in
48027.) ac_abs_builddir="$ac_dir";;
48028*)
48029 case "$ac_dir" in
48030 .) ac_abs_builddir=`pwd`;;
48031 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48032 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48033 esac;;
48034esac
48035case $ac_abs_builddir in
48036.) ac_abs_top_builddir=${ac_top_builddir}.;;
48037*)
48038 case ${ac_top_builddir}. in
48039 .) ac_abs_top_builddir=$ac_abs_builddir;;
48040 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48041 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48042 esac;;
48043esac
48044case $ac_abs_builddir in
48045.) ac_abs_srcdir=$ac_srcdir;;
48046*)
48047 case $ac_srcdir in
48048 .) ac_abs_srcdir=$ac_abs_builddir;;
48049 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48050 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48051 esac;;
48052esac
48053case $ac_abs_builddir in
48054.) ac_abs_top_srcdir=$ac_top_srcdir;;
48055*)
48056 case $ac_top_srcdir in
48057 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48058 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48059 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48060 esac;;
48061esac
a848cd7e
SC
48062
48063
48064 cd $ac_dir
48065
48066 # Check for guested configure; otherwise get Cygnus style configure.
48067 if test -f $ac_srcdir/configure.gnu; then
48068 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
48069 elif test -f $ac_srcdir/configure; then
48070 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
48071 elif test -f $ac_srcdir/configure.in; then
48072 ac_sub_configure=$ac_configure
48073 else
48074 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
48075echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
48076 ac_sub_configure=
48077 fi
48078
48079 # The recursion is here.
48080 if test -n "$ac_sub_configure"; then
48081 # Make the cache file name correct relative to the subdirectory.
48082 case $cache_file in
48083 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
48084 *) # Relative path.
ac1cb8d3 48085 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
48086 esac
48087
48088 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
48089echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
48090 # The eval makes quoting arguments work.
48091 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
48092 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
48093 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
48094echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
48095 { (exit 1); exit 1; }; }
48096 fi
48097
6ebeb4c7 48098 cd "$ac_popdir"
a848cd7e
SC
48099 done
48100fi
48101
48102
48103echo
77ffb593 48104echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 48105echo ""
4d4ff94c 48106echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 48107echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 48108
77ffb593
JS
48109echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
48110echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
48111echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 48112
77ffb593
JS
48113echo " What level of wxWidgets compatibility should be enabled?"
48114echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
48115echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 48116
77ffb593 48117echo " Which libraries should wxWidgets use?"
a848cd7e
SC
48118echo " jpeg ${wxUSE_LIBJPEG-none}"
48119echo " png ${wxUSE_LIBPNG-none}"
48120echo " regex ${wxUSE_REGEX}"
48121echo " tiff ${wxUSE_LIBTIFF-none}"
48122if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
48123echo " xpm ${wxUSE_LIBXPM-none}"
48124fi
48125echo " zlib ${wxUSE_ZLIB}"
48126echo " odbc ${wxUSE_ODBC}"
48127echo " expat ${wxUSE_EXPAT}"
48128echo " libmspack ${wxUSE_LIBMSPACK}"
48129echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 48130echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
48131
48132echo ""
48133