]> git.saurik.com Git - wxWidgets.git/blame - configure
Include order is wxprec.h=>defs.h=>platform.h=>setup.h so remove explicit setup.h...
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
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"
d044deea 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 WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S LNDIR 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 REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS HILDON_CFLAGS HILDON_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 EXTRALIBS_HILDON 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_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 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 USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE 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
dee1a63f
MB
892 --enable-compat24 enable wxWidgets 2.4 compatibility
893 --disable-compat26 disable wxWidgets 2.6 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)
91dea314 962 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
963 --enable-postscript use wxPostscriptDC device context (default for gtk+)
964 --enable-prologio not available; see contrib
965 --enable-resources not available; see contrib
966 --enable-clipboard use wxClipboard class
967 --enable-dnd use Drag'n'Drop classes
968 --enable-metafile use win32 metafiles
969 --enable-controls use all usual controls
970 --enable-accel use accelerators
971 --enable-button use wxButton class
972 --enable-bmpbutton use wxBitmapButton class
973 --enable-calendar use wxCalendarCtrl class
974 --enable-caret use wxCaret class
975 --enable-checkbox use wxCheckBox class
976 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
977 --enable-choice use wxChoice class
92bbdbcd 978 --enable-choicebook use wxChoicebook class
a848cd7e 979 --enable-combobox use wxComboBox class
da98e9be 980 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
981 --enable-display use wxDisplay class
982 --enable-gauge use wxGauge class
983 --enable-grid use wxGrid class
20e34ecc 984 --enable-dataviewctrl, use wxDataViewCtrl class
a848cd7e
SC
985 --enable-imaglist use wxImageList class
986 --enable-listbook use wxListbook class
987 --enable-listbox use wxListBox class
988 --enable-listctrl use wxListCtrl class
989 --enable-notebook use wxNotebook class
990 --enable-radiobox use wxRadioBox class
991 --enable-radiobtn use wxRadioButton class
992 --enable-sash use wxSashWindow class
993 --enable-scrollbar use wxScrollBar class and scrollable windows
994 --enable-slider use wxSlider class
995 --enable-spinbtn use wxSpinButton class
996 --enable-spinctrl use wxSpinCtrl class
997 --enable-splitter use wxSplitterWindow class
998 --enable-statbmp use wxStaticBitmap class
999 --enable-statbox use wxStaticBox class
1000 --enable-statline use wxStaticLine class
1001 --enable-stattext use wxStaticText class
1002 --enable-statusbar use wxStatusBar class
1003 --enable-tabdialog use wxTabControl class
1004 --enable-textctrl use wxTextCtrl class
1005 --enable-togglebtn use wxToggleButton class
1006 --enable-toolbar use wxToolBar class
1007 --enable-tbarnative use native wxToolBar class
1008 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1009 --enable-treebook use wxTreebook class
a848cd7e
SC
1010 --enable-treectrl use wxTreeCtrl class
1011 --enable-tipwindow use wxTipWindow class
1012 --enable-popupwin use wxPopUpWindow class
1013 --enable-commondlg use all common dialogs
1014 --enable-choicedlg use wxChoiceDialog
1015 --enable-coldlg use wxColourDialog
1016 --enable-filedlg use wxFileDialog
1017 --enable-finddlg use wxFindReplaceDialog
1018 --enable-fontdlg use wxFontDialog
1019 --enable-dirdlg use wxDirDialog
1020 --enable-msgdlg use wxMessageDialog
1021 --enable-numberdlg use wxNumberEntryDialog
1022 --enable-splash use wxSplashScreen
1023 --enable-textdlg use wxTextDialog
1024 --enable-tipdlg use startup tips
1025 --enable-progressdlg use wxProgressDialog
1026 --enable-wizarddlg use wxWizard
1027 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1028 --enable-miniframe use wxMiniFrame class
1029 --enable-tooltips use wxToolTip class
1030 --enable-splines use spline drawing code
fbe2ca43 1031 --enable-mousewheel use mousewheel
a848cd7e
SC
1032 --enable-validators use wxValidator and derived classes
1033 --enable-busyinfo use wxBusyInfo
4cb1d3da 1034 --enable-joystick use wxJoystick
38b4a946 1035 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1036 --enable-dragimage use wxDragImage
1037 --enable-accessibility enable accessibility support
38b4a946 1038 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1039 --enable-palette use wxPalette class
1040 --enable-image use wxImage class
1041 --enable-gif use gif images (GIF file format)
1042 --enable-pcx use pcx images (PCX file format)
1043 --enable-iff use iff images (IFF file format)
1044 --enable-pnm use pnm images (PNM file format)
1045 --enable-xpm use xpm images (XPM file format)
1046 --enable-icocur use Windows ICO and CUR formats
77ffb593 1047 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1048 --enable-vendor=VENDOR vendor name (win32 DLL only)
1049 --disable-largefile omit support for large files
1050 --disable-gtktest do not try to compile and run a test GTK+ program
1051 --disable-gtktest Do not try to compile and run a test GTK program
1052 --disable-sdltest Do not try to compile and run a test SDL program
1053 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1054 --disable-precomp-headers
1055 don't use precompiled headers even if compiler can
a848cd7e
SC
1056
1057Optional Packages:
1058 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1059 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1060 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1061 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1062 --with-motif use Motif/Lesstif
1063 --with-mac use Mac OS X
1064 --with-cocoa use Cocoa
1065 --with-wine use Wine
1066 --with-msw use MS-Windows
1067 --with-pm use OS/2 Presentation Manager
1068 --with-mgl use SciTech MGL
1069 --with-microwin use MicroWindows
1070 --with-x11 use X11
1071 --with-libpng use libpng (PNG image format)
1072 --with-libjpeg use libjpeg (JPEG file format)
1073 --with-libtiff use libtiff (TIFF file format)
1074 --with-libxpm use libxpm (XPM file format)
1075 --with-libmspack use libmspack (CHM help files loading)
1076 --with-sdl use SDL for audio on Unix
d51253e8 1077 --with-gnomeprint use GNOME print for printing under Unix
3565d135 1078 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1079 --with-opengl use OpenGL (or Mesa)
1080 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1081 --with-regex enable support for wxRegEx class
1082 --with-zlib use zlib for LZW compression
1083 --with-odbc use the IODBC and wxODBC classes
1084 --with-expat enable XML support using expat parser
ceec2216 1085 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1086 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1087 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1088 --with-x use the X Window System
1089 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1090 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1091 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1092 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1093 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1094
1095Some influential environment variables:
dcc1b6ad
VS
1096 CC C compiler command
1097 CFLAGS C compiler flags
1098 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1099 nonstandard directory <lib dir>
1100 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1101 headers in a nonstandard directory <include dir>
1102 CPP C preprocessor
1103 CXX C++ compiler command
1104 CXXFLAGS C++ compiler flags
1105 CXXCPP C++ preprocessor
a848cd7e
SC
1106
1107Use these variables to override the choices made by `configure' or to help
1108it to find libraries and programs with nonstandard names/locations.
1109
77ffb593 1110Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1111_ACEOF
1112fi
1113
1114if test "$ac_init_help" = "recursive"; then
1115 # If there are subdirs, report their specific --help.
1116 ac_popdir=`pwd`
1117 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1118 test -d $ac_dir || continue
1119 ac_builddir=.
1120
1121if test "$ac_dir" != .; then
1122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1123 # A "../" for each directory in $ac_dir_suffix.
1124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125else
1126 ac_dir_suffix= ac_top_builddir=
1127fi
1128
1129case $srcdir in
1130 .) # No --srcdir option. We are building in place.
1131 ac_srcdir=.
1132 if test -z "$ac_top_builddir"; then
1133 ac_top_srcdir=.
1134 else
1135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136 fi ;;
1137 [\\/]* | ?:[\\/]* ) # Absolute path.
1138 ac_srcdir=$srcdir$ac_dir_suffix;
1139 ac_top_srcdir=$srcdir ;;
1140 *) # Relative path.
1141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1143esac
ac1cb8d3
VS
1144
1145# Do not use `cd foo && pwd` to compute absolute paths, because
1146# the directories may not exist.
1147case `pwd` in
1148.) ac_abs_builddir="$ac_dir";;
1149*)
1150 case "$ac_dir" in
1151 .) ac_abs_builddir=`pwd`;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1153 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1154 esac;;
1155esac
1156case $ac_abs_builddir in
1157.) ac_abs_top_builddir=${ac_top_builddir}.;;
1158*)
1159 case ${ac_top_builddir}. in
1160 .) ac_abs_top_builddir=$ac_abs_builddir;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1163 esac;;
1164esac
1165case $ac_abs_builddir in
1166.) ac_abs_srcdir=$ac_srcdir;;
1167*)
1168 case $ac_srcdir in
1169 .) ac_abs_srcdir=$ac_abs_builddir;;
1170 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1171 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1172 esac;;
1173esac
1174case $ac_abs_builddir in
1175.) ac_abs_top_srcdir=$ac_top_srcdir;;
1176*)
1177 case $ac_top_srcdir in
1178 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1179 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1181 esac;;
1182esac
a848cd7e
SC
1183
1184 cd $ac_dir
1185 # Check for guested configure; otherwise get Cygnus style configure.
1186 if test -f $ac_srcdir/configure.gnu; then
1187 echo
1188 $SHELL $ac_srcdir/configure.gnu --help=recursive
1189 elif test -f $ac_srcdir/configure; then
1190 echo
1191 $SHELL $ac_srcdir/configure --help=recursive
1192 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1193 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1194 echo
1195 $ac_configure --help
1196 else
1197 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1198 fi
3565d135 1199 cd $ac_popdir
a848cd7e
SC
1200 done
1201fi
1202
1203test -n "$ac_init_help" && exit 0
1204if $ac_init_version; then
1205 cat <<\_ACEOF
dd8df4fc 1206wxWidgets configure 2.7.0
ac1cb8d3 1207generated by GNU Autoconf 2.59
a848cd7e 1208
ac1cb8d3 1209Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1210This configure script is free software; the Free Software Foundation
1211gives unlimited permission to copy, distribute and modify it.
1212_ACEOF
1213 exit 0
1214fi
1215exec 5>config.log
1216cat >&5 <<_ACEOF
1217This file contains any messages produced by compilers while
1218running configure, to aid debugging if configure makes a mistake.
1219
dd8df4fc 1220It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1221generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1222
1223 $ $0 $@
1224
1225_ACEOF
1226{
1227cat <<_ASUNAME
1228## --------- ##
1229## Platform. ##
1230## --------- ##
1231
1232hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1233uname -m = `(uname -m) 2>/dev/null || echo unknown`
1234uname -r = `(uname -r) 2>/dev/null || echo unknown`
1235uname -s = `(uname -s) 2>/dev/null || echo unknown`
1236uname -v = `(uname -v) 2>/dev/null || echo unknown`
1237
1238/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1239/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1240
1241/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1242/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1243/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1244hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1245/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1246/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1247/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1248
1249_ASUNAME
1250
1251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1252for as_dir in $PATH
1253do
1254 IFS=$as_save_IFS
1255 test -z "$as_dir" && as_dir=.
1256 echo "PATH: $as_dir"
1257done
1258
1259} >&5
1260
1261cat >&5 <<_ACEOF
1262
1263
1264## ----------- ##
1265## Core tests. ##
1266## ----------- ##
1267
1268_ACEOF
1269
1270
1271# Keep a trace of the command line.
1272# Strip out --no-create and --no-recursion so they do not pile up.
1273# Strip out --silent because we don't want to record it for future runs.
1274# Also quote any args containing shell meta-characters.
1275# Make two passes to allow for proper duplicate-argument suppression.
1276ac_configure_args=
1277ac_configure_args0=
1278ac_configure_args1=
1279ac_sep=
1280ac_must_keep_next=false
1281for ac_pass in 1 2
1282do
1283 for ac_arg
1284 do
1285 case $ac_arg in
1286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288 | -silent | --silent | --silen | --sile | --sil)
1289 continue ;;
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 esac
1293 case $ac_pass in
1294 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1295 2)
1296 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1297 if test $ac_must_keep_next = true; then
ac1cb8d3 1298 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1299 else
ac1cb8d3
VS
1300 case $ac_arg in
1301 *=* | --config-cache | -C | -disable-* | --disable-* \
1302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1304 | -with-* | --with-* | -without-* | --without-* | --x)
1305 case "$ac_configure_args0 " in
1306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1307 esac
1308 ;;
1309 -* ) ac_must_keep_next=true ;;
1310 esac
a848cd7e
SC
1311 fi
1312 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1313 # Get rid of the leading space.
1314 ac_sep=" "
1315 ;;
1316 esac
1317 done
1318done
1319$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1320$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1321
1322# When interrupted or exit'd, cleanup temporary files, and complete
1323# config.log. We remove comments because anyway the quotes in there
1324# would cause problems or look ugly.
1325# WARNING: Be sure not to use single quotes in there, as some shells,
1326# such as our DU 5.0 friend, will then `close' the trap.
1327trap 'exit_status=$?
1328 # Save into config.log some information that might help in debugging.
1329 {
1330 echo
1331
1332 cat <<\_ASBOX
1333## ---------------- ##
1334## Cache variables. ##
1335## ---------------- ##
1336_ASBOX
1337 echo
1338 # The following way of writing the cache mishandles newlines in values,
1339{
1340 (set) 2>&1 |
1341 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1342 *ac_space=\ *)
1343 sed -n \
ac1cb8d3
VS
1344 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1346 ;;
1347 *)
1348 sed -n \
ac1cb8d3 1349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1350 ;;
1351 esac;
1352}
1353 echo
1354
1355 cat <<\_ASBOX
1356## ----------------- ##
1357## Output variables. ##
1358## ----------------- ##
1359_ASBOX
1360 echo
1361 for ac_var in $ac_subst_vars
1362 do
1363 eval ac_val=$`echo $ac_var`
1364 echo "$ac_var='"'"'$ac_val'"'"'"
1365 done | sort
1366 echo
1367
1368 if test -n "$ac_subst_files"; then
1369 cat <<\_ASBOX
1370## ------------- ##
1371## Output files. ##
1372## ------------- ##
1373_ASBOX
1374 echo
1375 for ac_var in $ac_subst_files
1376 do
1377 eval ac_val=$`echo $ac_var`
ac1cb8d3 1378 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1379 done | sort
1380 echo
1381 fi
1382
1383 if test -s confdefs.h; then
1384 cat <<\_ASBOX
1385## ----------- ##
1386## confdefs.h. ##
1387## ----------- ##
1388_ASBOX
1389 echo
1390 sed "/^$/d" confdefs.h | sort
1391 echo
1392 fi
1393 test "$ac_signal" != 0 &&
1394 echo "$as_me: caught signal $ac_signal"
1395 echo "$as_me: exit $exit_status"
1396 } >&5
ac1cb8d3 1397 rm -f core *.core &&
a848cd7e
SC
1398 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1399 exit $exit_status
1400 ' 0
1401for ac_signal in 1 2 13 15; do
1402 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1403done
1404ac_signal=0
1405
1406# confdefs.h avoids OS command line length limits that DEFS can exceed.
1407rm -rf conftest* confdefs.h
1408# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1409echo >confdefs.h
1410
1411# Predefined preprocessor variables.
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_NAME "$PACKAGE_NAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_VERSION "$PACKAGE_VERSION"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_STRING "$PACKAGE_STRING"
1430_ACEOF
1431
1432
1433cat >>confdefs.h <<_ACEOF
1434#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1435_ACEOF
1436
1437
1438# Let the site file select an alternate cache file if it wants to.
1439# Prefer explicitly selected file to automatically selected ones.
1440if test -z "$CONFIG_SITE"; then
1441 if test "x$prefix" != xNONE; then
1442 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1443 else
1444 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1445 fi
1446fi
1447for ac_site_file in $CONFIG_SITE; do
1448 if test -r "$ac_site_file"; then
1449 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450echo "$as_me: loading site script $ac_site_file" >&6;}
1451 sed 's/^/| /' "$ac_site_file" >&5
1452 . "$ac_site_file"
1453 fi
1454done
1455
1456if test -r "$cache_file"; then
1457 # Some versions of bash will fail to source /dev/null (special
1458 # files actually), so we avoid doing that.
1459 if test -f "$cache_file"; then
1460 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1461echo "$as_me: loading cache $cache_file" >&6;}
1462 case $cache_file in
1463 [\\/]* | ?:[\\/]* ) . $cache_file;;
1464 *) . ./$cache_file;;
1465 esac
1466 fi
1467else
1468 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1469echo "$as_me: creating cache $cache_file" >&6;}
1470 >$cache_file
1471fi
1472
1473# Check that the precious variables saved in the cache have kept the same
1474# value.
1475ac_cache_corrupted=false
1476for ac_var in `(set) 2>&1 |
ac1cb8d3 1477 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1478 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1479 eval ac_new_set=\$ac_env_${ac_var}_set
1480 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1481 eval ac_new_val="\$ac_env_${ac_var}_value"
1482 case $ac_old_set,$ac_new_set in
1483 set,)
1484 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1485echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1486 ac_cache_corrupted=: ;;
1487 ,set)
1488 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1489echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1490 ac_cache_corrupted=: ;;
1491 ,);;
1492 *)
1493 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1494 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1495echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1496 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1497echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1498 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1499echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1500 ac_cache_corrupted=:
a848cd7e
SC
1501 fi;;
1502 esac
1503 # Pass precious variables to config.status.
1504 if test "$ac_new_set" = set; then
1505 case $ac_new_val in
1506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1507 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1508 *) ac_arg=$ac_var=$ac_new_val ;;
1509 esac
1510 case " $ac_configure_args " in
1511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1512 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1513 esac
1514 fi
1515done
1516if $ac_cache_corrupted; then
1517 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1518echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1519 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1520echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1521 { (exit 1); exit 1; }; }
1522fi
1523
1524ac_ext=c
1525ac_cpp='$CPP $CPPFLAGS'
1526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1528ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1555
1556
1557
1558
1559ac_aux_dir=
1560for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1561 if 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/install.sh; then
1566 ac_aux_dir=$ac_dir
1567 ac_install_sh="$ac_aux_dir/install.sh -c"
1568 break
1569 elif test -f $ac_dir/shtool; then
1570 ac_aux_dir=$ac_dir
1571 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 break
1573 fi
1574done
1575if test -z "$ac_aux_dir"; then
1576 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1577echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1578 { (exit 1); exit 1; }; }
1579fi
1580ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1581ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1582ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583
1584# Make sure we can run config.sub.
1585$ac_config_sub sun4 >/dev/null 2>&1 ||
1586 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1587echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1588 { (exit 1); exit 1; }; }
1589
1590echo "$as_me:$LINENO: checking build system type" >&5
1591echo $ECHO_N "checking build system type... $ECHO_C" >&6
1592if test "${ac_cv_build+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595 ac_cv_build_alias=$build_alias
1596test -z "$ac_cv_build_alias" &&
1597 ac_cv_build_alias=`$ac_config_guess`
1598test -z "$ac_cv_build_alias" &&
1599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1600echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1601 { (exit 1); exit 1; }; }
1602ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1604echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1606
1607fi
1608echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1609echo "${ECHO_T}$ac_cv_build" >&6
1610build=$ac_cv_build
1611build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614
1615
1616echo "$as_me:$LINENO: checking host system type" >&5
1617echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 ac_cv_host_alias=$host_alias
1622test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias=$ac_cv_build_alias
1624ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629fi
1630echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631echo "${ECHO_T}$ac_cv_host" >&6
1632host=$ac_cv_host
1633host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638echo "$as_me:$LINENO: checking target system type" >&5
1639echo $ECHO_N "checking target system type... $ECHO_C" >&6
1640if test "${ac_cv_target+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 ac_cv_target_alias=$target_alias
1644test "x$ac_cv_target_alias" = "x" &&
1645 ac_cv_target_alias=$ac_cv_host_alias
1646ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1647 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1648echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1649 { (exit 1); exit 1; }; }
1650
1651fi
1652echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1653echo "${ECHO_T}$ac_cv_target" >&6
1654target=$ac_cv_target
1655target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1656target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1657target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1658
1659
1660# The aliases save the names the user supplied, while $host etc.
1661# will get canonicalized.
1662test -n "$target_alias" &&
1663 test "$program_prefix$program_suffix$program_transform_name" = \
1664 NONENONEs,x,x, &&
1665 program_prefix=${target_alias}-
1666
1667
1668
ceec2216 1669wx_major_version_number=2
dd8df4fc
VZ
1670wx_minor_version_number=7
1671wx_release_number=0
1672wx_subrelease_number=0
a848cd7e 1673
ceec2216
RL
1674WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1675WX_VERSION=$WX_RELEASE.$wx_release_number
1676WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1677
ceec2216 1678WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1679
a848cd7e
SC
1680
1681
1682
1683USE_UNIX=1
1684USE_OS2=0
1685USE_WIN32=0
1686USE_DOS=0
1687USE_BEOS=0
1688USE_MAC=0
1689
1690USE_AIX=
1691USE_BSD= USE_DARWIN= USE_FREEBSD=
1692USE_GNU= USE_HPUX=
1693USE_LINUX=
1694USE_NETBSD=
1695USE_OPENBSD=
1696USE_OSF= USE_SGI=
1697USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1698USE_ULTRIX=
1699USE_UNIXWARE=
1700
1701USE_ALPHA=
1702
1703NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1704
1705ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1706
1707DEFAULT_wxUSE_COCOA=0
1708DEFAULT_wxUSE_GTK=0
1709DEFAULT_wxUSE_MAC=0
1710DEFAULT_wxUSE_MGL=0
1711DEFAULT_wxUSE_MICROWIN=0
1712DEFAULT_wxUSE_MOTIF=0
1713DEFAULT_wxUSE_MSW=0
1714DEFAULT_wxUSE_PM=0
1715DEFAULT_wxUSE_X11=0
1716
1717DEFAULT_DEFAULT_wxUSE_COCOA=0
1718DEFAULT_DEFAULT_wxUSE_GTK=0
1719DEFAULT_DEFAULT_wxUSE_MAC=0
1720DEFAULT_DEFAULT_wxUSE_MGL=0
1721DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1722DEFAULT_DEFAULT_wxUSE_MOTIF=0
1723DEFAULT_DEFAULT_wxUSE_MSW=0
1724DEFAULT_DEFAULT_wxUSE_PM=0
1725DEFAULT_DEFAULT_wxUSE_X11=0
1726
1727PROGRAM_EXT=
1728SO_SUFFIX=so
1729SAMPLES_RPATH_FLAG=
1730SAMPLES_RPATH_POSTLINK=
1731
a03b8b04
RD
1732DEFAULT_STD_FLAG=yes
1733
a848cd7e
SC
1734case "${host}" in
1735 *-hp-hpux* )
1736 USE_HPUX=1
1737 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1738 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1739 SO_SUFFIX=sl
1740 cat >>confdefs.h <<\_ACEOF
1741#define __HPUX__ 1
1742_ACEOF
1743
2eef8513 1744
c92ad099 1745 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1746 ;;
1747 *-*-linux* )
1748 USE_LINUX=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __LINUX__ 1
1751_ACEOF
1752
1753 TMP=`uname -m`
1754 if test "x$TMP" = "xalpha"; then
1755 USE_ALPHA=1
1756 cat >>confdefs.h <<\_ACEOF
1757#define __ALPHA__ 1
1758_ACEOF
1759
1760 fi
1761 DEFAULT_DEFAULT_wxUSE_GTK=1
1762 ;;
1763 *-*-gnu* | *-*-k*bsd*-gnu )
1764 USE_GNU=1
1765 TMP=`uname -m`
1766 if test "x$TMP" = "xalpha"; then
1767 USE_ALPHA=1
1768 cat >>confdefs.h <<\_ACEOF
1769#define __ALPHA__ 1
1770_ACEOF
1771
1772 fi
1773 DEFAULT_DEFAULT_wxUSE_GTK=1
1774 ;;
1775 *-*-irix5* | *-*-irix6* )
1776 USE_SGI=1
1777 USE_SVR4=1
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SGI__ 1
1780_ACEOF
1781
1782 cat >>confdefs.h <<\_ACEOF
1783#define __SVR4__ 1
1784_ACEOF
1785
1786 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1787 ;;
1788 *-*-solaris2* )
1789 USE_SUN=1
1790 USE_SOLARIS=1
1791 USE_SVR4=1
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SUN__ 1
1794_ACEOF
1795
1796 cat >>confdefs.h <<\_ACEOF
1797#define __SOLARIS__ 1
1798_ACEOF
1799
1800 cat >>confdefs.h <<\_ACEOF
1801#define __SVR4__ 1
1802_ACEOF
1803
1804 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1805 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1806 ;;
1807 *-*-sunos4* )
1808 USE_SUN=1
1809 USE_SUNOS=1
1810 USE_BSD=1
1811 cat >>confdefs.h <<\_ACEOF
1812#define __SUN__ 1
1813_ACEOF
1814
1815 cat >>confdefs.h <<\_ACEOF
1816#define __SUNOS__ 1
1817_ACEOF
1818
1819 cat >>confdefs.h <<\_ACEOF
1820#define __BSD__ 1
1821_ACEOF
1822
1823 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1824 ;;
1825 *-*-freebsd*)
1826 USE_BSD=1
1827 USE_FREEBSD=1
1828 cat >>confdefs.h <<\_ACEOF
1829#define __FREEBSD__ 1
1830_ACEOF
1831
1832 cat >>confdefs.h <<\_ACEOF
1833#define __BSD__ 1
1834_ACEOF
1835
1836 DEFAULT_DEFAULT_wxUSE_GTK=1
1837 ;;
1838 *-*-openbsd*)
1839 USE_BSD=1
1840 USE_OPENBSD=1
1841 cat >>confdefs.h <<\_ACEOF
1842#define __OPENBSD__ 1
1843_ACEOF
1844
1845 cat >>confdefs.h <<\_ACEOF
1846#define __BSD__ 1
1847_ACEOF
1848
1849 DEFAULT_DEFAULT_wxUSE_GTK=1
1850 ;;
1851 *-*-netbsd*)
1852 USE_BSD=1
1853 USE_NETBSD=1
1854 cat >>confdefs.h <<\_ACEOF
1855#define __NETBSD__ 1
1856_ACEOF
1857
1858 cat >>confdefs.h <<\_ACEOF
1859#define __BSD__ 1
1860_ACEOF
1861
1862 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1863 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a
SN
1864
1865
1866 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1867 ;;
1868 *-*-osf* )
1869 USE_ALPHA=1
1870 USE_OSF=1
1871 cat >>confdefs.h <<\_ACEOF
1872#define __ALPHA__ 1
1873_ACEOF
1874
1875 cat >>confdefs.h <<\_ACEOF
1876#define __OSF__ 1
1877_ACEOF
1878
1879 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1880 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1881 ;;
1882 *-*-dgux5* )
1883 USE_ALPHA=1
1884 USE_SVR4=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __ALPHA__ 1
1887_ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SVR4__ 1
1891_ACEOF
1892
1893 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1894 ;;
1895 *-*-sysv5* )
1896 USE_SYSV=1
1897 USE_SVR4=1
1898 cat >>confdefs.h <<\_ACEOF
1899#define __SYSV__ 1
1900_ACEOF
1901
1902 cat >>confdefs.h <<\_ACEOF
1903#define __SVR4__ 1
1904_ACEOF
1905
1906 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1907 ;;
1908 *-*-aix* )
1909 USE_AIX=1
1910 USE_SYSV=1
1911 USE_SVR4=1
1912 SO_SUFFIX=a
1913 cat >>confdefs.h <<\_ACEOF
1914#define __AIX__ 1
1915_ACEOF
1916
1917 cat >>confdefs.h <<\_ACEOF
1918#define __SYSV__ 1
1919_ACEOF
1920
1921 cat >>confdefs.h <<\_ACEOF
1922#define __SVR4__ 1
1923_ACEOF
1924
1925 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1926 ;;
1927
1928 *-*-*UnixWare*)
1929 USE_SYSV=1
1930 USE_SVR4=1
1931 USE_UNIXWARE=1
1932 cat >>confdefs.h <<\_ACEOF
1933#define __UNIXWARE__ 1
1934_ACEOF
1935
1936 ;;
1937
1938 *-*-cygwin* | *-*-mingw32* )
1939 SO_SUFFIX=dll
1940 PROGRAM_EXT=".exe"
a848cd7e 1941 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1942 DEFAULT_STD_FLAG=no
a848cd7e
SC
1943 ;;
1944
1945 *-pc-msdosdjgpp )
1946 USE_UNIX=0
1947 USE_DOS=1
1948 cat >>confdefs.h <<\_ACEOF
1949#define __DOS__ 1
1950_ACEOF
1951
1952 PROGRAM_EXT=".exe"
1953 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1954 ;;
1955
1956 *-pc-os2_emx | *-pc-os2-emx )
1957 cat >>confdefs.h <<\_ACEOF
1958#define __EMX__ 1
1959_ACEOF
1960
1961 USE_OS2=1
1962 cat >>confdefs.h <<\_ACEOF
1963#define __OS2__ 1
1964_ACEOF
1965
1966 PROGRAM_EXT=".exe"
1967 DEFAULT_DEFAULT_wxUSE_PM=1
1968 CXX=gcc
1969 LDFLAGS="$LDFLAGS -Zcrtdll"
1970 ac_executable_extensions=".exe"
1971 export ac_executable_extensions
1972 ac_save_IFS="$IFS"
1973 IFS='\\'
1974 ac_TEMP_PATH=
1975 for ac_dir in $PATH; do
1976 IFS=$ac_save_IFS
1977 if test -z "$ac_TEMP_PATH"; then
1978 ac_TEMP_PATH="$ac_dir"
1979 else
1980 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1981 fi
1982 done
1983 export PATH="$ac_TEMP_PATH"
1984 unset ac_TEMP_PATH
a03b8b04 1985 DEFAULT_STD_FLAG=no
a848cd7e
SC
1986 ;;
1987
cfda0ea8 1988 *-*-darwin* )
a848cd7e
SC
1989 USE_BSD=1
1990 USE_DARWIN=1
1991 SO_SUFFIX=dylib
1992 cat >>confdefs.h <<\_ACEOF
1993#define __BSD__ 1
1994_ACEOF
1995
1996 cat >>confdefs.h <<\_ACEOF
1997#define __DARWIN__ 1
a848cd7e
SC
1998_ACEOF
1999
2000 cat >>confdefs.h <<\_ACEOF
2001#define TARGET_CARBON 1
2002_ACEOF
2003
2004 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2005 DEFAULT_STD_FLAG=no
a848cd7e 2006 ;;
1e9e8aba
DE
2007 powerpc-apple-macos* )
2008 USE_UNIX=0
2009 ac_cv_c_bigendian=yes
2010 SO_SUFFIX=shlib
2011 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2012 DEFAULT_STD_FLAG=no
1e9e8aba 2013 ;;
a848cd7e
SC
2014
2015 *-*-beos* )
2016 USE_BEOS=1
2017 cat >>confdefs.h <<\_ACEOF
2018#define __BEOS__ 1
2019_ACEOF
2020
2021 ;;
2022
2023 *)
2024 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2025echo "$as_me: error: unknown system type ${host}." >&2;}
2026 { (exit 1); exit 1; }; }
2027esac
2028
2029
2030
2031
2032 wx_arg_cache_file="configarg.cache"
2033 echo "loading argument cache $wx_arg_cache_file"
2034 rm -f ${wx_arg_cache_file}.tmp
2035 touch ${wx_arg_cache_file}.tmp
2036 touch ${wx_arg_cache_file}
2037
2038
2039DEBUG_CONFIGURE=0
2040if test $DEBUG_CONFIGURE = 1; then
2041 DEFAULT_wxUSE_UNIVERSAL=no
2042 DEFAULT_wxUSE_STL=no
2043
2044 DEFAULT_wxUSE_NANOX=no
2045
2046 DEFAULT_wxUSE_THREADS=yes
2047
2048 DEFAULT_wxUSE_SHARED=yes
2049 DEFAULT_wxUSE_OPTIMISE=no
2050 DEFAULT_wxUSE_PROFILE=no
2051 DEFAULT_wxUSE_NO_DEPS=no
2052 DEFAULT_wxUSE_NO_RTTI=no
2053 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2054 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2055 DEFAULT_wxUSE_PERMISSIVE=no
2056 DEFAULT_wxUSE_DEBUG_FLAG=yes
2057 DEFAULT_wxUSE_DEBUG_INFO=yes
2058 DEFAULT_wxUSE_DEBUG_GDB=yes
2059 DEFAULT_wxUSE_MEM_TRACING=no
2060 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2061 DEFAULT_wxUSE_DMALLOC=no
2062 DEFAULT_wxUSE_APPLE_IEEE=no
2063
2064 DEFAULT_wxUSE_EXCEPTIONS=no
2065 DEFAULT_wxUSE_LOG=yes
2066 DEFAULT_wxUSE_LOGWINDOW=no
2067 DEFAULT_wxUSE_LOGGUI=no
2068 DEFAULT_wxUSE_LOGDIALOG=no
2069
2070 DEFAULT_wxUSE_GUI=yes
2071 DEFAULT_wxUSE_CONTROLS=no
2072
2073 DEFAULT_wxUSE_REGEX=no
2074 DEFAULT_wxUSE_XML=no
2075 DEFAULT_wxUSE_EXPAT=no
2076 DEFAULT_wxUSE_ZLIB=no
2077 DEFAULT_wxUSE_LIBPNG=no
2078 DEFAULT_wxUSE_LIBJPEG=no
2079 DEFAULT_wxUSE_LIBTIFF=no
2080 DEFAULT_wxUSE_LIBXPM=no
2081 DEFAULT_wxUSE_LIBMSPACK=no
2082 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2083 DEFAULT_wxUSE_LIBGNOMEPRINT=no
3565d135 2084 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2085 DEFAULT_wxUSE_ODBC=no
2086 DEFAULT_wxUSE_OPENGL=no
2087
2088 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2089 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2090 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2091 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2092 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2093 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2094 DEFAULT_wxUSE_CMDLINE_PARSER=no
2095 DEFAULT_wxUSE_DATETIME=no
2096 DEFAULT_wxUSE_TIMER=no
2097 DEFAULT_wxUSE_STOPWATCH=no
2098 DEFAULT_wxUSE_FILE=no
2099 DEFAULT_wxUSE_FFILE=no
07158944 2100 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2101 DEFAULT_wxUSE_TEXTBUFFER=no
2102 DEFAULT_wxUSE_TEXTFILE=no
2103 DEFAULT_wxUSE_SOUND=no
3b57de8b 2104 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2105 DEFAULT_wxUSE_INTL=no
2106 DEFAULT_wxUSE_CONFIG=no
2107 DEFAULT_wxUSE_FONTMAP=no
2108 DEFAULT_wxUSE_STREAMS=no
2109 DEFAULT_wxUSE_SOCKETS=no
2110 DEFAULT_wxUSE_OLE=no
2111 DEFAULT_wxUSE_DATAOBJ=no
2112 DEFAULT_wxUSE_DIALUP_MANAGER=no
2113 DEFAULT_wxUSE_JOYSTICK=no
2114 DEFAULT_wxUSE_DYNLIB_CLASS=no
2115 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2116 DEFAULT_wxUSE_LONGLONG=no
2117 DEFAULT_wxUSE_GEOMETRY=no
2118
2119 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2120 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2121 DEFAULT_wxUSE_POSTSCRIPT=no
2122
2123 DEFAULT_wxUSE_CLIPBOARD=no
2124 DEFAULT_wxUSE_TOOLTIPS=no
2125 DEFAULT_wxUSE_DRAG_AND_DROP=no
2126 DEFAULT_wxUSE_DRAGIMAGE=no
2127 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2128 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2129
8a7b1113 2130 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2131 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2132 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2133 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2134
2135 DEFAULT_wxUSE_RESOURCES=no
2136 DEFAULT_wxUSE_CONSTRAINTS=no
2137 DEFAULT_wxUSE_IPC=no
2138 DEFAULT_wxUSE_HELP=no
2139 DEFAULT_wxUSE_MS_HTML_HELP=no
2140 DEFAULT_wxUSE_WXHTML_HELP=no
2141 DEFAULT_wxUSE_TREELAYOUT=no
2142 DEFAULT_wxUSE_METAFILE=no
2143 DEFAULT_wxUSE_MIMETYPE=no
2144 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2145 DEFAULT_wxUSE_PROTOCOL=no
2146 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2147 DEFAULT_wxUSE_PROTOCOL_FTP=no
2148 DEFAULT_wxUSE_PROTOCOL_FILE=no
2149 DEFAULT_wxUSE_URL=no
2150
2151 DEFAULT_wxUSE_COMMONDLGS=no
2152 DEFAULT_wxUSE_CHOICEDLG=no
2153 DEFAULT_wxUSE_COLOURDLG=no
2154 DEFAULT_wxUSE_DIRDLG=no
2155 DEFAULT_wxUSE_FILEDLG=no
2156 DEFAULT_wxUSE_FINDREPLDLG=no
2157 DEFAULT_wxUSE_FONTDLG=no
2158 DEFAULT_wxUSE_MSGDLG=no
2159 DEFAULT_wxUSE_NUMBERDLG=no
2160 DEFAULT_wxUSE_TEXTDLG=no
2161 DEFAULT_wxUSE_SPLASH=no
2162 DEFAULT_wxUSE_STARTUP_TIPS=no
2163 DEFAULT_wxUSE_PROGRESSDLG=no
2164 DEFAULT_wxUSE_WIZARDDLG=no
2165
2166 DEFAULT_wxUSE_MENUS=no
2167 DEFAULT_wxUSE_MINIFRAME=no
2168 DEFAULT_wxUSE_HTML=no
91dea314 2169 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2170 DEFAULT_wxUSE_XRC=no
646b6ec1 2171 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2172 DEFAULT_wxUSE_FILESYSTEM=no
2173 DEFAULT_wxUSE_FS_INET=no
2174 DEFAULT_wxUSE_FS_ZIP=no
2175 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2176 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2177 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2178 DEFAULT_wxUSE_VALIDATORS=no
2179
2180 DEFAULT_wxUSE_ACCEL=no
2181 DEFAULT_wxUSE_BUTTON=no
2182 DEFAULT_wxUSE_BMPBUTTON=no
2183 DEFAULT_wxUSE_CALCTRL=no
2184 DEFAULT_wxUSE_CARET=no
2185 DEFAULT_wxUSE_CHECKBOX=no
2186 DEFAULT_wxUSE_CHECKLST=no
2187 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2188 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2189 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2190 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2191 DEFAULT_wxUSE_DISPLAY=no
2192 DEFAULT_wxUSE_GAUGE=no
2193 DEFAULT_wxUSE_GRID=no
20e34ecc 2194 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2195 DEFAULT_wxUSE_IMAGLIST=no
2196 DEFAULT_wxUSE_LISTBOOK=no
2197 DEFAULT_wxUSE_LISTBOX=no
2198 DEFAULT_wxUSE_LISTCTRL=no
2199 DEFAULT_wxUSE_NOTEBOOK=no
2200 DEFAULT_wxUSE_RADIOBOX=no
2201 DEFAULT_wxUSE_RADIOBTN=no
2202 DEFAULT_wxUSE_SASH=no
2203 DEFAULT_wxUSE_SCROLLBAR=no
2204 DEFAULT_wxUSE_SLIDER=no
2205 DEFAULT_wxUSE_SPINBTN=no
2206 DEFAULT_wxUSE_SPINCTRL=no
2207 DEFAULT_wxUSE_SPLITTER=no
2208 DEFAULT_wxUSE_STATBMP=no
2209 DEFAULT_wxUSE_STATBOX=no
2210 DEFAULT_wxUSE_STATLINE=no
2211 DEFAULT_wxUSE_STATTEXT=no
2212 DEFAULT_wxUSE_STATUSBAR=yes
2213 DEFAULT_wxUSE_TABDIALOG=no
2214 DEFAULT_wxUSE_TEXTCTRL=no
2215 DEFAULT_wxUSE_TOGGLEBTN=no
2216 DEFAULT_wxUSE_TOOLBAR=no
2217 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2218 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2219 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
2220 DEFAULT_wxUSE_TREECTRL=no
2221 DEFAULT_wxUSE_POPUPWIN=no
2222 DEFAULT_wxUSE_TIPWINDOW=no
2223
2224 DEFAULT_wxUSE_UNICODE=no
2225 DEFAULT_wxUSE_UNICODE_MSLU=no
2226 DEFAULT_wxUSE_WCSRTOMBS=no
2227
2228 DEFAULT_wxUSE_PALETTE=no
2229 DEFAULT_wxUSE_IMAGE=no
2230 DEFAULT_wxUSE_GIF=no
2231 DEFAULT_wxUSE_PCX=no
2232 DEFAULT_wxUSE_PNM=no
2233 DEFAULT_wxUSE_IFF=no
2234 DEFAULT_wxUSE_XPM=no
2235 DEFAULT_wxUSE_ICO_CUR=no
2236 DEFAULT_wxUSE_ACCESSIBILITY=no
2237
2238 DEFAULT_wxUSE_MONOLITHIC=no
2239 DEFAULT_wxUSE_PLUGINS=no
2240 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2241else
2242 DEFAULT_wxUSE_UNIVERSAL=no
2243 DEFAULT_wxUSE_STL=no
2244
2245 DEFAULT_wxUSE_NANOX=no
2246
2247 DEFAULT_wxUSE_THREADS=yes
2248
2249 DEFAULT_wxUSE_SHARED=yes
2250 DEFAULT_wxUSE_OPTIMISE=yes
2251 DEFAULT_wxUSE_PROFILE=no
2252 DEFAULT_wxUSE_NO_DEPS=no
2253 DEFAULT_wxUSE_NO_RTTI=no
2254 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2255 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2256 DEFAULT_wxUSE_PERMISSIVE=no
2257 DEFAULT_wxUSE_DEBUG_FLAG=no
2258 DEFAULT_wxUSE_DEBUG_INFO=no
2259 DEFAULT_wxUSE_DEBUG_GDB=no
2260 DEFAULT_wxUSE_MEM_TRACING=no
2261 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2262 DEFAULT_wxUSE_DMALLOC=no
2263 DEFAULT_wxUSE_APPLE_IEEE=yes
2264
2265 DEFAULT_wxUSE_EXCEPTIONS=yes
2266 DEFAULT_wxUSE_LOG=yes
2267 DEFAULT_wxUSE_LOGWINDOW=yes
2268 DEFAULT_wxUSE_LOGGUI=yes
2269 DEFAULT_wxUSE_LOGDIALOG=yes
2270
2271 DEFAULT_wxUSE_GUI=yes
2272
2273 DEFAULT_wxUSE_REGEX=yes
2274 DEFAULT_wxUSE_XML=yes
2275 DEFAULT_wxUSE_EXPAT=yes
2276 DEFAULT_wxUSE_ZLIB=yes
2277 DEFAULT_wxUSE_LIBPNG=yes
2278 DEFAULT_wxUSE_LIBJPEG=yes
2279 DEFAULT_wxUSE_LIBTIFF=yes
2280 DEFAULT_wxUSE_LIBXPM=yes
2281 DEFAULT_wxUSE_LIBMSPACK=yes
2282 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2283 DEFAULT_wxUSE_LIBGNOMEPRINT=no
3565d135 2284 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2285 DEFAULT_wxUSE_ODBC=no
52cb607e 2286 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2287
2288 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2289 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2290 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2291 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2292 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2293 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2294 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2295 DEFAULT_wxUSE_DATETIME=yes
2296 DEFAULT_wxUSE_TIMER=yes
2297 DEFAULT_wxUSE_STOPWATCH=yes
2298 DEFAULT_wxUSE_FILE=yes
2299 DEFAULT_wxUSE_FFILE=yes
07158944 2300 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2301 DEFAULT_wxUSE_TEXTBUFFER=yes
2302 DEFAULT_wxUSE_TEXTFILE=yes
2303 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2304 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2305 DEFAULT_wxUSE_INTL=yes
2306 DEFAULT_wxUSE_CONFIG=yes
2307 DEFAULT_wxUSE_FONTMAP=yes
2308 DEFAULT_wxUSE_STREAMS=yes
2309 DEFAULT_wxUSE_SOCKETS=yes
2310 DEFAULT_wxUSE_OLE=yes
2311 DEFAULT_wxUSE_DATAOBJ=yes
2312 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2313 DEFAULT_wxUSE_JOYSTICK=yes
2314 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2315 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2316 DEFAULT_wxUSE_LONGLONG=yes
2317 DEFAULT_wxUSE_GEOMETRY=yes
2318
2319 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2320 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2321 DEFAULT_wxUSE_POSTSCRIPT=yes
2322
2323 DEFAULT_wxUSE_CLIPBOARD=yes
2324 DEFAULT_wxUSE_TOOLTIPS=yes
2325 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2326 DEFAULT_wxUSE_DRAGIMAGE=yes
2327 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2328 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2329
8a7b1113 2330 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2331 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2332 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2333 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2334
2335 DEFAULT_wxUSE_RESOURCES=no
2336 DEFAULT_wxUSE_CONSTRAINTS=yes
2337 DEFAULT_wxUSE_IPC=yes
2338 DEFAULT_wxUSE_HELP=yes
2339 DEFAULT_wxUSE_MS_HTML_HELP=yes
2340 DEFAULT_wxUSE_WXHTML_HELP=yes
2341 DEFAULT_wxUSE_TREELAYOUT=yes
2342 DEFAULT_wxUSE_METAFILE=yes
2343 DEFAULT_wxUSE_MIMETYPE=yes
2344 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2345 DEFAULT_wxUSE_PROTOCOL=yes
2346 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2347 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2348 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2349 DEFAULT_wxUSE_URL=yes
2350
2351 DEFAULT_wxUSE_COMMONDLGS=yes
2352 DEFAULT_wxUSE_CHOICEDLG=yes
2353 DEFAULT_wxUSE_COLOURDLG=yes
2354 DEFAULT_wxUSE_DIRDLG=yes
2355 DEFAULT_wxUSE_FILEDLG=yes
2356 DEFAULT_wxUSE_FINDREPLDLG=yes
2357 DEFAULT_wxUSE_FONTDLG=yes
2358 DEFAULT_wxUSE_MSGDLG=yes
2359 DEFAULT_wxUSE_NUMBERDLG=yes
2360 DEFAULT_wxUSE_TEXTDLG=yes
2361 DEFAULT_wxUSE_SPLASH=yes
2362 DEFAULT_wxUSE_STARTUP_TIPS=yes
2363 DEFAULT_wxUSE_PROGRESSDLG=yes
2364 DEFAULT_wxUSE_WIZARDDLG=yes
2365
2366 DEFAULT_wxUSE_MENUS=yes
2367 DEFAULT_wxUSE_MINIFRAME=yes
2368 DEFAULT_wxUSE_HTML=yes
91dea314 2369 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2370 DEFAULT_wxUSE_XRC=yes
646b6ec1 2371 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2372 DEFAULT_wxUSE_FILESYSTEM=yes
2373 DEFAULT_wxUSE_FS_INET=yes
2374 DEFAULT_wxUSE_FS_ZIP=yes
2375 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2376 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2377 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2378 DEFAULT_wxUSE_VALIDATORS=yes
2379
2380 DEFAULT_wxUSE_ACCEL=yes
2381 DEFAULT_wxUSE_BUTTON=yes
2382 DEFAULT_wxUSE_BMPBUTTON=yes
2383 DEFAULT_wxUSE_CALCTRL=yes
2384 DEFAULT_wxUSE_CARET=yes
2385 DEFAULT_wxUSE_CHECKBOX=yes
2386 DEFAULT_wxUSE_CHECKLST=yes
2387 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2388 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2389 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2390 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2391 DEFAULT_wxUSE_DISPLAY=yes
2392 DEFAULT_wxUSE_GAUGE=yes
2393 DEFAULT_wxUSE_GRID=yes
20e34ecc 2394 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2395 DEFAULT_wxUSE_IMAGLIST=yes
2396 DEFAULT_wxUSE_LISTBOOK=yes
2397 DEFAULT_wxUSE_LISTBOX=yes
2398 DEFAULT_wxUSE_LISTCTRL=yes
2399 DEFAULT_wxUSE_NOTEBOOK=yes
2400 DEFAULT_wxUSE_RADIOBOX=yes
2401 DEFAULT_wxUSE_RADIOBTN=yes
2402 DEFAULT_wxUSE_SASH=yes
2403 DEFAULT_wxUSE_SCROLLBAR=yes
2404 DEFAULT_wxUSE_SLIDER=yes
2405 DEFAULT_wxUSE_SPINBTN=yes
2406 DEFAULT_wxUSE_SPINCTRL=yes
2407 DEFAULT_wxUSE_SPLITTER=yes
2408 DEFAULT_wxUSE_STATBMP=yes
2409 DEFAULT_wxUSE_STATBOX=yes
2410 DEFAULT_wxUSE_STATLINE=yes
2411 DEFAULT_wxUSE_STATTEXT=yes
2412 DEFAULT_wxUSE_STATUSBAR=yes
2413 DEFAULT_wxUSE_TABDIALOG=no
2414 DEFAULT_wxUSE_TEXTCTRL=yes
2415 DEFAULT_wxUSE_TOGGLEBTN=yes
2416 DEFAULT_wxUSE_TOOLBAR=yes
2417 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2418 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2419 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
2420 DEFAULT_wxUSE_TREECTRL=yes
2421 DEFAULT_wxUSE_POPUPWIN=yes
2422 DEFAULT_wxUSE_TIPWINDOW=yes
2423
78de529b 2424 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2425 DEFAULT_wxUSE_UNICODE_MSLU=yes
2426 DEFAULT_wxUSE_WCSRTOMBS=no
2427
2428 DEFAULT_wxUSE_PALETTE=yes
2429 DEFAULT_wxUSE_IMAGE=yes
2430 DEFAULT_wxUSE_GIF=yes
2431 DEFAULT_wxUSE_PCX=yes
2432 DEFAULT_wxUSE_IFF=no
2433 DEFAULT_wxUSE_PNM=yes
2434 DEFAULT_wxUSE_XPM=yes
2435 DEFAULT_wxUSE_ICO_CUR=yes
2436 DEFAULT_wxUSE_ACCESSIBILITY=no
2437
2438 DEFAULT_wxUSE_MONOLITHIC=no
2439 DEFAULT_wxUSE_PLUGINS=no
2440 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2441
f34ca037 2442 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2443fi
2444
2445
2446
f34ca037 2447
a848cd7e
SC
2448for toolkit in `echo $ALL_TOOLKITS`; do
2449 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2450 if test "x$LINE" != "x" ; then
2451 has_toolkit_in_cache=1
2452 eval "DEFAULT_$LINE"
2453 eval "CACHE_$toolkit=1"
f34ca037
MW
2454
2455 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2456 if test "x$LINE" != "x" ; then
2457 eval "DEFAULT_$LINE"
2458 fi
a848cd7e
SC
2459 fi
2460done
2461
2462
2463
2464 enablestring=
2465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2466echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2467 no_cache=0
2468 # Check whether --enable-gui or --disable-gui was given.
2469if test "${enable_gui+set}" = set; then
2470 enableval="$enable_gui"
2471
2472 if test "$enableval" = yes; then
2473 ac_cv_use_gui='wxUSE_GUI=yes'
2474 else
2475 ac_cv_use_gui='wxUSE_GUI=no'
2476 fi
2477
2478else
2479
2480 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2481 if test "x$LINE" != x ; then
2482 eval "DEFAULT_$LINE"
2483 else
2484 no_cache=1
2485 fi
2486
2487 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2488
2489fi;
2490
2491 eval "$ac_cv_use_gui"
2492 if test "$no_cache" != 1; then
2493 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2494 fi
2495
2496 if test "$wxUSE_GUI" = yes; then
2497 echo "$as_me:$LINENO: result: yes" >&5
2498echo "${ECHO_T}yes" >&6
2499 else
2500 echo "$as_me:$LINENO: result: no" >&5
2501echo "${ECHO_T}no" >&6
2502 fi
2503
2504
2505 enablestring=
2506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2507echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2508 no_cache=0
2509 # Check whether --enable-monolithic or --disable-monolithic was given.
2510if test "${enable_monolithic+set}" = set; then
2511 enableval="$enable_monolithic"
2512
2513 if test "$enableval" = yes; then
2514 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2515 else
2516 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2517 fi
2518
2519else
2520
2521 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2522 if test "x$LINE" != x ; then
2523 eval "DEFAULT_$LINE"
2524 else
2525 no_cache=1
2526 fi
2527
2528 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2529
2530fi;
2531
2532 eval "$ac_cv_use_monolithic"
2533 if test "$no_cache" != 1; then
2534 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2535 fi
2536
2537 if test "$wxUSE_MONOLITHIC" = yes; then
2538 echo "$as_me:$LINENO: result: yes" >&5
2539echo "${ECHO_T}yes" >&6
2540 else
2541 echo "$as_me:$LINENO: result: no" >&5
2542echo "${ECHO_T}no" >&6
2543 fi
2544
2545
2546 enablestring=
2547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2548echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2549 no_cache=0
2550 # Check whether --enable-plugins or --disable-plugins was given.
2551if test "${enable_plugins+set}" = set; then
2552 enableval="$enable_plugins"
2553
2554 if test "$enableval" = yes; then
2555 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2556 else
2557 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2558 fi
2559
2560else
2561
2562 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2563 if test "x$LINE" != x ; then
2564 eval "DEFAULT_$LINE"
2565 else
2566 no_cache=1
2567 fi
2568
2569 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2570
2571fi;
2572
2573 eval "$ac_cv_use_plugins"
2574 if test "$no_cache" != 1; then
2575 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2576 fi
2577
2578 if test "$wxUSE_PLUGINS" = yes; then
2579 echo "$as_me:$LINENO: result: yes" >&5
2580echo "${ECHO_T}yes" >&6
2581 else
2582 echo "$as_me:$LINENO: result: no" >&5
2583echo "${ECHO_T}no" >&6
2584 fi
2585
2586
1c14217d
VZ
2587 withstring=without
2588 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2589echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2590 no_cache=0
2591
2592# Check whether --with-subdirs or --without-subdirs was given.
2593if test "${with_subdirs+set}" = set; then
2594 withval="$with_subdirs"
2595
2596 if test "$withval" = yes; then
2597 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2598 else
2599 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2600 fi
2601
2602else
2603
2604 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2605 if test "x$LINE" != x ; then
2606 eval "DEFAULT_$LINE"
2607 else
2608 no_cache=1
2609 fi
2610
2611 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2612
2613fi;
2614
2615 eval "$ac_cv_use_subdirs"
2616 if test "$no_cache" != 1; then
2617 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2618 fi
2619
2620 if test "$wxWITH_SUBDIRS" = yes; then
2621 echo "$as_me:$LINENO: result: yes" >&5
2622echo "${ECHO_T}yes" >&6
2623 else
2624 echo "$as_me:$LINENO: result: no" >&5
2625echo "${ECHO_T}no" >&6
2626 fi
2627
2628
a848cd7e
SC
2629if test "$wxUSE_GUI" = "yes"; then
2630
2631
2632 enablestring=
2633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2634echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2635 no_cache=0
2636 # Check whether --enable-universal or --disable-universal was given.
2637if test "${enable_universal+set}" = set; then
2638 enableval="$enable_universal"
2639
2640 if test "$enableval" = yes; then
2641 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2642 else
2643 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2644 fi
2645
2646else
2647
2648 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2649 if test "x$LINE" != x ; then
2650 eval "DEFAULT_$LINE"
2651 else
2652 no_cache=1
2653 fi
2654
2655 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2656
2657fi;
2658
2659 eval "$ac_cv_use_universal"
2660 if test "$no_cache" != 1; then
2661 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2662 fi
2663
2664 if test "$wxUSE_UNIVERSAL" = yes; then
2665 echo "$as_me:$LINENO: result: yes" >&5
2666echo "${ECHO_T}yes" >&6
2667 else
2668 echo "$as_me:$LINENO: result: no" >&5
2669echo "${ECHO_T}no" >&6
2670 fi
2671
2672
2673# Check whether --with-gtk or --without-gtk was given.
2674if test "${with_gtk+set}" = set; then
2675 withval="$with_gtk"
2676 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2677fi;
2678
2679# Check whether --with-motif or --without-motif was given.
2680if test "${with_motif+set}" = set; then
2681 withval="$with_motif"
2682 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2683fi;
2684
2685# Check whether --with-mac or --without-mac was given.
2686if test "${with_mac+set}" = set; then
2687 withval="$with_mac"
c228d3a4 2688 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2689fi;
2690
2691# Check whether --with-cocoa or --without-cocoa was given.
2692if test "${with_cocoa+set}" = set; then
2693 withval="$with_cocoa"
c228d3a4 2694 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2695fi;
2696
2697# Check whether --with-wine or --without-wine was given.
2698if test "${with_wine+set}" = set; then
2699 withval="$with_wine"
2700 wxUSE_WINE="$withval" CACHE_WINE=1
2701fi;
2702
2703# Check whether --with-msw or --without-msw was given.
2704if test "${with_msw+set}" = set; then
2705 withval="$with_msw"
2706 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2707fi;
2708
2709# Check whether --with-pm or --without-pm was given.
2710if test "${with_pm+set}" = set; then
2711 withval="$with_pm"
2712 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2713fi;
2714
2715# Check whether --with-mgl or --without-mgl was given.
2716if test "${with_mgl+set}" = set; then
2717 withval="$with_mgl"
2718 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2719fi;
2720
2721# Check whether --with-microwin or --without-microwin was given.
2722if test "${with_microwin+set}" = set; then
2723 withval="$with_microwin"
2724 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2725fi;
2726
2727# Check whether --with-x11 or --without-x11 was given.
2728if test "${with_x11+set}" = set; then
2729 withval="$with_x11"
2730 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2731fi;
2732
2733 enablestring=
2734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2735echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2736 no_cache=0
2737 # Check whether --enable-nanox or --disable-nanox was given.
2738if test "${enable_nanox+set}" = set; then
2739 enableval="$enable_nanox"
2740
2741 if test "$enableval" = yes; then
2742 ac_cv_use_nanox='wxUSE_NANOX=yes'
2743 else
2744 ac_cv_use_nanox='wxUSE_NANOX=no'
2745 fi
2746
2747else
2748
2749 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2750 if test "x$LINE" != x ; then
2751 eval "DEFAULT_$LINE"
2752 else
2753 no_cache=1
2754 fi
2755
2756 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2757
2758fi;
2759
2760 eval "$ac_cv_use_nanox"
2761 if test "$no_cache" != 1; then
2762 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2763 fi
2764
2765 if test "$wxUSE_NANOX" = yes; then
2766 echo "$as_me:$LINENO: result: yes" >&5
2767echo "${ECHO_T}yes" >&6
2768 else
2769 echo "$as_me:$LINENO: result: no" >&5
2770echo "${ECHO_T}no" >&6
2771 fi
2772
2773
f34ca037
MW
2774# Check whether --enable-gtk2 or --disable-gtk2 was given.
2775if test "${enable_gtk2+set}" = set; then
2776 enableval="$enable_gtk2"
2777 wxUSE_GTK2="$enableval"
2778fi;
a848cd7e 2779
a848cd7e
SC
2780 enablestring=
2781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2782echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2783 no_cache=0
2784 # Check whether --enable-gpe or --disable-gpe was given.
2785if test "${enable_gpe+set}" = set; then
2786 enableval="$enable_gpe"
2787
2788 if test "$enableval" = yes; then
2789 ac_cv_use_gpe='wxUSE_GPE=yes'
2790 else
2791 ac_cv_use_gpe='wxUSE_GPE=no'
2792 fi
2793
2794else
2795
2796 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2797 if test "x$LINE" != x ; then
2798 eval "DEFAULT_$LINE"
2799 else
2800 no_cache=1
2801 fi
2802
2803 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2804
2805fi;
2806
2807 eval "$ac_cv_use_gpe"
2808 if test "$no_cache" != 1; then
2809 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2810 fi
2811
2812 if test "$wxUSE_GPE" = yes; then
2813 echo "$as_me:$LINENO: result: yes" >&5
2814echo "${ECHO_T}yes" >&6
2815 else
2816 echo "$as_me:$LINENO: result: no" >&5
2817echo "${ECHO_T}no" >&6
2818 fi
2819
2820
2821
2822 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2823echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2824 no_cache=0
2825
2826# Check whether --with-libpng or --without-libpng was given.
2827if test "${with_libpng+set}" = set; then
2828 withval="$with_libpng"
2829
2830 if test "$withval" = yes; then
2831 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2832 elif test "$withval" = no; then
2833 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2834 elif test "$withval" = sys; then
2835 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2836 elif test "$withval" = builtin; then
2837 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2838 else
2839 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2840echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2841 { (exit 1); exit 1; }; }
2842 fi
2843
2844else
2845
2846 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2847 if test "x$LINE" != x ; then
2848 eval "DEFAULT_$LINE"
2849 else
2850 no_cache=1
2851 fi
2852
2853 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2854
2855fi;
2856
2857 eval "$ac_cv_use_libpng"
2858 if test "$no_cache" != 1; then
2859 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2860 fi
2861
2862 if test "$wxUSE_LIBPNG" = yes; then
2863 echo "$as_me:$LINENO: result: yes" >&5
2864echo "${ECHO_T}yes" >&6
2865 elif test "$wxUSE_LIBPNG" = no; then
2866 echo "$as_me:$LINENO: result: no" >&5
2867echo "${ECHO_T}no" >&6
2868 elif test "$wxUSE_LIBPNG" = sys; then
2869 echo "$as_me:$LINENO: result: system version" >&5
2870echo "${ECHO_T}system version" >&6
2871 elif test "$wxUSE_LIBPNG" = builtin; then
2872 echo "$as_me:$LINENO: result: builtin version" >&5
2873echo "${ECHO_T}builtin version" >&6
2874 else
2875 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2876echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2877 { (exit 1); exit 1; }; }
2878 fi
2879
2880
2881 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2882echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2883 no_cache=0
2884
2885# Check whether --with-libjpeg or --without-libjpeg was given.
2886if test "${with_libjpeg+set}" = set; then
2887 withval="$with_libjpeg"
2888
2889 if test "$withval" = yes; then
2890 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2891 elif test "$withval" = no; then
2892 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2893 elif test "$withval" = sys; then
2894 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2895 elif test "$withval" = builtin; then
2896 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2897 else
2898 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2899echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2900 { (exit 1); exit 1; }; }
2901 fi
2902
2903else
2904
2905 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2913
2914fi;
2915
2916 eval "$ac_cv_use_libjpeg"
2917 if test "$no_cache" != 1; then
2918 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2919 fi
2920
2921 if test "$wxUSE_LIBJPEG" = yes; then
2922 echo "$as_me:$LINENO: result: yes" >&5
2923echo "${ECHO_T}yes" >&6
2924 elif test "$wxUSE_LIBJPEG" = no; then
2925 echo "$as_me:$LINENO: result: no" >&5
2926echo "${ECHO_T}no" >&6
2927 elif test "$wxUSE_LIBJPEG" = sys; then
2928 echo "$as_me:$LINENO: result: system version" >&5
2929echo "${ECHO_T}system version" >&6
2930 elif test "$wxUSE_LIBJPEG" = builtin; then
2931 echo "$as_me:$LINENO: result: builtin version" >&5
2932echo "${ECHO_T}builtin version" >&6
2933 else
2934 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2935echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2936 { (exit 1); exit 1; }; }
2937 fi
2938
2939
2940 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2941echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2942 no_cache=0
2943
2944# Check whether --with-libtiff or --without-libtiff was given.
2945if test "${with_libtiff+set}" = set; then
2946 withval="$with_libtiff"
2947
2948 if test "$withval" = yes; then
2949 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2950 elif test "$withval" = no; then
2951 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2952 elif test "$withval" = sys; then
2953 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2954 elif test "$withval" = builtin; then
2955 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2956 else
2957 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2958echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2959 { (exit 1); exit 1; }; }
2960 fi
2961
2962else
2963
2964 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2965 if test "x$LINE" != x ; then
2966 eval "DEFAULT_$LINE"
2967 else
2968 no_cache=1
2969 fi
2970
2971 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2972
2973fi;
2974
2975 eval "$ac_cv_use_libtiff"
2976 if test "$no_cache" != 1; then
2977 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2978 fi
2979
2980 if test "$wxUSE_LIBTIFF" = yes; then
2981 echo "$as_me:$LINENO: result: yes" >&5
2982echo "${ECHO_T}yes" >&6
2983 elif test "$wxUSE_LIBTIFF" = no; then
2984 echo "$as_me:$LINENO: result: no" >&5
2985echo "${ECHO_T}no" >&6
2986 elif test "$wxUSE_LIBTIFF" = sys; then
2987 echo "$as_me:$LINENO: result: system version" >&5
2988echo "${ECHO_T}system version" >&6
2989 elif test "$wxUSE_LIBTIFF" = builtin; then
2990 echo "$as_me:$LINENO: result: builtin version" >&5
2991echo "${ECHO_T}builtin version" >&6
2992 else
2993 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2994echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2995 { (exit 1); exit 1; }; }
2996 fi
2997
2998
2999 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3000echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3001 no_cache=0
3002
3003# Check whether --with-libxpm or --without-libxpm was given.
3004if test "${with_libxpm+set}" = set; then
3005 withval="$with_libxpm"
3006
3007 if test "$withval" = yes; then
3008 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3009 elif test "$withval" = no; then
3010 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3011 elif test "$withval" = sys; then
3012 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3013 elif test "$withval" = builtin; then
3014 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3015 else
3016 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3017echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3018 { (exit 1); exit 1; }; }
3019 fi
3020
3021else
3022
3023 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3024 if test "x$LINE" != x ; then
3025 eval "DEFAULT_$LINE"
3026 else
3027 no_cache=1
3028 fi
3029
3030 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3031
3032fi;
3033
3034 eval "$ac_cv_use_libxpm"
3035 if test "$no_cache" != 1; then
3036 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3037 fi
3038
3039 if test "$wxUSE_LIBXPM" = yes; then
3040 echo "$as_me:$LINENO: result: yes" >&5
3041echo "${ECHO_T}yes" >&6
3042 elif test "$wxUSE_LIBXPM" = no; then
3043 echo "$as_me:$LINENO: result: no" >&5
3044echo "${ECHO_T}no" >&6
3045 elif test "$wxUSE_LIBXPM" = sys; then
3046 echo "$as_me:$LINENO: result: system version" >&5
3047echo "${ECHO_T}system version" >&6
3048 elif test "$wxUSE_LIBXPM" = builtin; then
3049 echo "$as_me:$LINENO: result: builtin version" >&5
3050echo "${ECHO_T}builtin version" >&6
3051 else
3052 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3053echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3054 { (exit 1); exit 1; }; }
3055 fi
3056
3057
1c14217d
VZ
3058 withstring=
3059 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3060echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3061 no_cache=0
3062
3063# Check whether --with-libmspack or --without-libmspack was given.
3064if test "${with_libmspack+set}" = set; then
3065 withval="$with_libmspack"
3066
3067 if test "$withval" = yes; then
3068 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3069 else
3070 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3071 fi
3072
3073else
3074
3075 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3076 if test "x$LINE" != x ; then
3077 eval "DEFAULT_$LINE"
3078 else
3079 no_cache=1
3080 fi
3081
3082 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3083
3084fi;
3085
3086 eval "$ac_cv_use_libmspack"
3087 if test "$no_cache" != 1; then
3088 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3089 fi
3090
3091 if test "$wxUSE_LIBMSPACK" = yes; then
3092 echo "$as_me:$LINENO: result: yes" >&5
3093echo "${ECHO_T}yes" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6
3097 fi
3098
3099
1c14217d
VZ
3100 withstring=
3101 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3102echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3103 no_cache=0
3104
3105# Check whether --with-sdl or --without-sdl was given.
3106if test "${with_sdl+set}" = set; then
3107 withval="$with_sdl"
3108
3109 if test "$withval" = yes; then
3110 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3111 else
3112 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3113 fi
3114
3115else
3116
3117 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3118 if test "x$LINE" != x ; then
3119 eval "DEFAULT_$LINE"
3120 else
3121 no_cache=1
3122 fi
3123
3124 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3125
3126fi;
3127
3128 eval "$ac_cv_use_sdl"
3129 if test "$no_cache" != 1; then
3130 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3131 fi
3132
3133 if test "$wxUSE_LIBSDL" = yes; then
3134 echo "$as_me:$LINENO: result: yes" >&5
3135echo "${ECHO_T}yes" >&6
3136 else
3137 echo "$as_me:$LINENO: result: no" >&5
3138echo "${ECHO_T}no" >&6
3139 fi
3140
3141
1c14217d
VZ
3142 withstring=
3143 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3144echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3145 no_cache=0
3146
3147# Check whether --with-gnomeprint or --without-gnomeprint was given.
3148if test "${with_gnomeprint+set}" = set; then
3149 withval="$with_gnomeprint"
3150
3151 if test "$withval" = yes; then
3152 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3153 else
3154 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3155 fi
3156
3157else
3158
3159 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3160 if test "x$LINE" != x ; then
3161 eval "DEFAULT_$LINE"
3162 else
3163 no_cache=1
3164 fi
3165
3166 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3167
3168fi;
3169
3170 eval "$ac_cv_use_gnomeprint"
3171 if test "$no_cache" != 1; then
3172 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3173 fi
3174
3175 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3176 echo "$as_me:$LINENO: result: yes" >&5
3177echo "${ECHO_T}yes" >&6
3178 else
3179 echo "$as_me:$LINENO: result: no" >&5
3180echo "${ECHO_T}no" >&6
3181 fi
3182
3183
3565d135
RR
3184 withstring=
3185 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3186echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3187 no_cache=0
3188
3189# Check whether --with-hildon or --without-hildon was given.
3190if test "${with_hildon+set}" = set; then
3191 withval="$with_hildon"
3192
3193 if test "$withval" = yes; then
3194 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3195 else
3196 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3197 fi
3198
3199else
3200
3201 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3202 if test "x$LINE" != x ; then
3203 eval "DEFAULT_$LINE"
3204 else
3205 no_cache=1
3206 fi
3207
3208 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3209
3210fi;
3211
3212 eval "$ac_cv_use_hildon"
3213 if test "$no_cache" != 1; then
3214 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3215 fi
3216
3217 if test "$wxUSE_LIBHILDON" = yes; then
3218 echo "$as_me:$LINENO: result: yes" >&5
3219echo "${ECHO_T}yes" >&6
3220 else
3221 echo "$as_me:$LINENO: result: no" >&5
3222echo "${ECHO_T}no" >&6
3223 fi
3224
3225
1c14217d
VZ
3226 withstring=
3227 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3228echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3229 no_cache=0
3230
3231# Check whether --with-opengl or --without-opengl was given.
3232if test "${with_opengl+set}" = set; then
3233 withval="$with_opengl"
3234
3235 if test "$withval" = yes; then
3236 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3237 else
3238 ac_cv_use_opengl='wxUSE_OPENGL=no'
3239 fi
3240
3241else
3242
3243 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3244 if test "x$LINE" != x ; then
3245 eval "DEFAULT_$LINE"
3246 else
3247 no_cache=1
3248 fi
3249
3250 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3251
3252fi;
3253
3254 eval "$ac_cv_use_opengl"
3255 if test "$no_cache" != 1; then
3256 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3257 fi
3258
3259 if test "$wxUSE_OPENGL" = yes; then
3260 echo "$as_me:$LINENO: result: yes" >&5
3261echo "${ECHO_T}yes" >&6
3262 else
3263 echo "$as_me:$LINENO: result: no" >&5
3264echo "${ECHO_T}no" >&6
3265 fi
3266
3267
3268fi
3269
3270
1c14217d
VZ
3271 withstring=
3272 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3273echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3274 no_cache=0
3275
3276# Check whether --with-dmalloc or --without-dmalloc was given.
3277if test "${with_dmalloc+set}" = set; then
3278 withval="$with_dmalloc"
3279
3280 if test "$withval" = yes; then
3281 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3282 else
3283 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3284 fi
3285
3286else
3287
3288 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3296
3297fi;
3298
3299 eval "$ac_cv_use_dmalloc"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_DMALLOC" = yes; then
3305 echo "$as_me:$LINENO: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
3307 else
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310 fi
3311
3312
3313 echo "$as_me:$LINENO: checking for --with-regex" >&5
3314echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3315 no_cache=0
3316
3317# Check whether --with-regex or --without-regex was given.
3318if test "${with_regex+set}" = set; then
3319 withval="$with_regex"
3320
3321 if test "$withval" = yes; then
3322 ac_cv_use_regex='wxUSE_REGEX=yes'
3323 elif test "$withval" = no; then
3324 ac_cv_use_regex='wxUSE_REGEX=no'
3325 elif test "$withval" = sys; then
3326 ac_cv_use_regex='wxUSE_REGEX=sys'
3327 elif test "$withval" = builtin; then
3328 ac_cv_use_regex='wxUSE_REGEX=builtin'
3329 else
3330 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3331echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3332 { (exit 1); exit 1; }; }
3333 fi
3334
3335else
3336
3337 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3338 if test "x$LINE" != x ; then
3339 eval "DEFAULT_$LINE"
3340 else
3341 no_cache=1
3342 fi
3343
3344 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3345
3346fi;
3347
3348 eval "$ac_cv_use_regex"
3349 if test "$no_cache" != 1; then
3350 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3351 fi
3352
3353 if test "$wxUSE_REGEX" = yes; then
3354 echo "$as_me:$LINENO: result: yes" >&5
3355echo "${ECHO_T}yes" >&6
3356 elif test "$wxUSE_REGEX" = no; then
3357 echo "$as_me:$LINENO: result: no" >&5
3358echo "${ECHO_T}no" >&6
3359 elif test "$wxUSE_REGEX" = sys; then
3360 echo "$as_me:$LINENO: result: system version" >&5
3361echo "${ECHO_T}system version" >&6
3362 elif test "$wxUSE_REGEX" = builtin; then
3363 echo "$as_me:$LINENO: result: builtin version" >&5
3364echo "${ECHO_T}builtin version" >&6
3365 else
3366 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3367echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3368 { (exit 1); exit 1; }; }
3369 fi
3370
3371
3372 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3373echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3374 no_cache=0
3375
3376# Check whether --with-zlib or --without-zlib was given.
3377if test "${with_zlib+set}" = set; then
3378 withval="$with_zlib"
3379
3380 if test "$withval" = yes; then
3381 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3382 elif test "$withval" = no; then
3383 ac_cv_use_zlib='wxUSE_ZLIB=no'
3384 elif test "$withval" = sys; then
3385 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3386 elif test "$withval" = builtin; then
3387 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3388 else
3389 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3390echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3391 { (exit 1); exit 1; }; }
3392 fi
3393
3394else
3395
3396 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3397 if test "x$LINE" != x ; then
3398 eval "DEFAULT_$LINE"
3399 else
3400 no_cache=1
3401 fi
3402
3403 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3404
3405fi;
3406
3407 eval "$ac_cv_use_zlib"
3408 if test "$no_cache" != 1; then
3409 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3410 fi
3411
3412 if test "$wxUSE_ZLIB" = yes; then
3413 echo "$as_me:$LINENO: result: yes" >&5
3414echo "${ECHO_T}yes" >&6
3415 elif test "$wxUSE_ZLIB" = no; then
3416 echo "$as_me:$LINENO: result: no" >&5
3417echo "${ECHO_T}no" >&6
3418 elif test "$wxUSE_ZLIB" = sys; then
3419 echo "$as_me:$LINENO: result: system version" >&5
3420echo "${ECHO_T}system version" >&6
3421 elif test "$wxUSE_ZLIB" = builtin; then
3422 echo "$as_me:$LINENO: result: builtin version" >&5
3423echo "${ECHO_T}builtin version" >&6
3424 else
3425 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3426echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3427 { (exit 1); exit 1; }; }
3428 fi
3429
3430
3431 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3432echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3433 no_cache=0
3434
3435# Check whether --with-odbc or --without-odbc was given.
3436if test "${with_odbc+set}" = set; then
3437 withval="$with_odbc"
3438
3439 if test "$withval" = yes; then
3440 ac_cv_use_odbc='wxUSE_ODBC=yes'
3441 elif test "$withval" = no; then
3442 ac_cv_use_odbc='wxUSE_ODBC=no'
3443 elif test "$withval" = sys; then
3444 ac_cv_use_odbc='wxUSE_ODBC=sys'
3445 elif test "$withval" = builtin; then
3446 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3447 else
3448 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3449echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3450 { (exit 1); exit 1; }; }
3451 fi
3452
3453else
3454
3455 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3456 if test "x$LINE" != x ; then
3457 eval "DEFAULT_$LINE"
3458 else
3459 no_cache=1
3460 fi
3461
3462 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3463
3464fi;
3465
3466 eval "$ac_cv_use_odbc"
3467 if test "$no_cache" != 1; then
3468 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3469 fi
3470
3471 if test "$wxUSE_ODBC" = yes; then
3472 echo "$as_me:$LINENO: result: yes" >&5
3473echo "${ECHO_T}yes" >&6
3474 elif test "$wxUSE_ODBC" = no; then
3475 echo "$as_me:$LINENO: result: no" >&5
3476echo "${ECHO_T}no" >&6
3477 elif test "$wxUSE_ODBC" = sys; then
3478 echo "$as_me:$LINENO: result: system version" >&5
3479echo "${ECHO_T}system version" >&6
3480 elif test "$wxUSE_ODBC" = builtin; then
3481 echo "$as_me:$LINENO: result: builtin version" >&5
3482echo "${ECHO_T}builtin version" >&6
3483 else
3484 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3485echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3486 { (exit 1); exit 1; }; }
3487 fi
3488
3489
3490 echo "$as_me:$LINENO: checking for --with-expat" >&5
3491echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3492 no_cache=0
3493
3494# Check whether --with-expat or --without-expat was given.
3495if test "${with_expat+set}" = set; then
3496 withval="$with_expat"
3497
3498 if test "$withval" = yes; then
3499 ac_cv_use_expat='wxUSE_EXPAT=yes'
3500 elif test "$withval" = no; then
3501 ac_cv_use_expat='wxUSE_EXPAT=no'
3502 elif test "$withval" = sys; then
3503 ac_cv_use_expat='wxUSE_EXPAT=sys'
3504 elif test "$withval" = builtin; then
3505 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3506 else
3507 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3508echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3509 { (exit 1); exit 1; }; }
3510 fi
3511
3512else
3513
3514 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3515 if test "x$LINE" != x ; then
3516 eval "DEFAULT_$LINE"
3517 else
3518 no_cache=1
3519 fi
3520
3521 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3522
3523fi;
3524
3525 eval "$ac_cv_use_expat"
3526 if test "$no_cache" != 1; then
3527 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3528 fi
3529
3530 if test "$wxUSE_EXPAT" = yes; then
3531 echo "$as_me:$LINENO: result: yes" >&5
3532echo "${ECHO_T}yes" >&6
3533 elif test "$wxUSE_EXPAT" = no; then
3534 echo "$as_me:$LINENO: result: no" >&5
3535echo "${ECHO_T}no" >&6
3536 elif test "$wxUSE_EXPAT" = sys; then
3537 echo "$as_me:$LINENO: result: system version" >&5
3538echo "${ECHO_T}system version" >&6
3539 elif test "$wxUSE_EXPAT" = builtin; then
3540 echo "$as_me:$LINENO: result: builtin version" >&5
3541echo "${ECHO_T}builtin version" >&6
3542 else
3543 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3544echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3545 { (exit 1); exit 1; }; }
3546 fi
3547
3548
3549
3550
3551 enablestring=
3552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3553echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3554 no_cache=0
3555 # Check whether --enable-shared or --disable-shared was given.
3556if test "${enable_shared+set}" = set; then
3557 enableval="$enable_shared"
3558
3559 if test "$enableval" = yes; then
3560 ac_cv_use_shared='wxUSE_SHARED=yes'
3561 else
3562 ac_cv_use_shared='wxUSE_SHARED=no'
3563 fi
3564
3565else
3566
3567 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3568 if test "x$LINE" != x ; then
3569 eval "DEFAULT_$LINE"
3570 else
3571 no_cache=1
3572 fi
3573
3574 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3575
3576fi;
3577
3578 eval "$ac_cv_use_shared"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_SHARED" = yes; then
3584 echo "$as_me:$LINENO: result: yes" >&5
3585echo "${ECHO_T}yes" >&6
3586 else
3587 echo "$as_me:$LINENO: result: no" >&5
3588echo "${ECHO_T}no" >&6
3589 fi
3590
3591
3592 enablestring=
3593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3594echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3595 no_cache=0
3596 # Check whether --enable-optimise or --disable-optimise was given.
3597if test "${enable_optimise+set}" = set; then
3598 enableval="$enable_optimise"
3599
3600 if test "$enableval" = yes; then
3601 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3602 else
3603 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3604 fi
3605
3606else
3607
3608 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3609 if test "x$LINE" != x ; then
3610 eval "DEFAULT_$LINE"
3611 else
3612 no_cache=1
3613 fi
3614
3615 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3616
3617fi;
3618
3619 eval "$ac_cv_use_optimise"
3620 if test "$no_cache" != 1; then
3621 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3622 fi
3623
3624 if test "$wxUSE_OPTIMISE" = yes; then
3625 echo "$as_me:$LINENO: result: yes" >&5
3626echo "${ECHO_T}yes" >&6
3627 else
3628 echo "$as_me:$LINENO: result: no" >&5
3629echo "${ECHO_T}no" >&6
3630 fi
3631
3632
3633 enablestring=
3634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3635echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3636 no_cache=0
3637 # Check whether --enable-debug or --disable-debug was given.
3638if test "${enable_debug+set}" = set; then
3639 enableval="$enable_debug"
3640
3641 if test "$enableval" = yes; then
3642 ac_cv_use_debug='wxUSE_DEBUG=yes'
3643 else
3644 ac_cv_use_debug='wxUSE_DEBUG=no'
3645 fi
3646
3647else
3648
3649 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3650 if test "x$LINE" != x ; then
3651 eval "DEFAULT_$LINE"
3652 else
3653 no_cache=1
3654 fi
3655
3656 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3657
3658fi;
3659
3660 eval "$ac_cv_use_debug"
3661 if test "$no_cache" != 1; then
3662 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3663 fi
3664
3665 if test "$wxUSE_DEBUG" = yes; then
3666 echo "$as_me:$LINENO: result: yes" >&5
3667echo "${ECHO_T}yes" >&6
3668 else
3669 echo "$as_me:$LINENO: result: no" >&5
3670echo "${ECHO_T}no" >&6
3671 fi
3672
3673
3674 enablestring=
3675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3676echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3677 no_cache=0
3678 # Check whether --enable-stl or --disable-stl was given.
3679if test "${enable_stl+set}" = set; then
3680 enableval="$enable_stl"
3681
3682 if test "$enableval" = yes; then
3683 ac_cv_use_stl='wxUSE_STL=yes'
3684 else
3685 ac_cv_use_stl='wxUSE_STL=no'
3686 fi
3687
3688else
3689
3690 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
3697 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3698
3699fi;
3700
3701 eval "$ac_cv_use_stl"
3702 if test "$no_cache" != 1; then
3703 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3704 fi
3705
3706 if test "$wxUSE_STL" = yes; then
3707 echo "$as_me:$LINENO: result: yes" >&5
3708echo "${ECHO_T}yes" >&6
3709 else
3710 echo "$as_me:$LINENO: result: no" >&5
3711echo "${ECHO_T}no" >&6
3712 fi
3713
3714if test "$USE_OS2" = "1"; then
69120ee4 3715 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3716
3717 enablestring=
3718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3719echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3720 no_cache=0
3721 # Check whether --enable-omf or --disable-omf was given.
3722if test "${enable_omf+set}" = set; then
3723 enableval="$enable_omf"
3724
3725 if test "$enableval" = yes; then
3726 ac_cv_use_omf='wxUSE_OMF=yes'
3727 else
3728 ac_cv_use_omf='wxUSE_OMF=no'
3729 fi
3730
3731else
3732
3733 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3734 if test "x$LINE" != x ; then
3735 eval "DEFAULT_$LINE"
3736 else
3737 no_cache=1
3738 fi
3739
3740 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3741
3742fi;
3743
3744 eval "$ac_cv_use_omf"
3745 if test "$no_cache" != 1; then
3746 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3747 fi
3748
3749 if test "$wxUSE_OMF" = yes; then
3750 echo "$as_me:$LINENO: result: yes" >&5
3751echo "${ECHO_T}yes" >&6
3752 else
3753 echo "$as_me:$LINENO: result: no" >&5
3754echo "${ECHO_T}no" >&6
3755 fi
3756
3757fi
3758
3759if test "$wxUSE_DEBUG" = "yes"; then
3760 DEFAULT_wxUSE_DEBUG_FLAG=yes
3761 DEFAULT_wxUSE_DEBUG_INFO=yes
3762 BUILD=debug
3763elif test "$wxUSE_DEBUG" = "no"; then
3764 DEFAULT_wxUSE_DEBUG_FLAG=no
3765 DEFAULT_wxUSE_DEBUG_INFO=no
3766 BUILD=release
3767fi
3768
3769
3770 enablestring=
3771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3772echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3773 no_cache=0
3774 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3775if test "${enable_debug_flag+set}" = set; then
3776 enableval="$enable_debug_flag"
3777
3778 if test "$enableval" = yes; then
3779 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3780 else
3781 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3782 fi
3783
3784else
3785
3786 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3787 if test "x$LINE" != x ; then
3788 eval "DEFAULT_$LINE"
3789 else
3790 no_cache=1
3791 fi
3792
3793 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3794
3795fi;
3796
3797 eval "$ac_cv_use_debug_flag"
3798 if test "$no_cache" != 1; then
3799 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3800 fi
3801
3802 if test "$wxUSE_DEBUG_FLAG" = yes; then
3803 echo "$as_me:$LINENO: result: yes" >&5
3804echo "${ECHO_T}yes" >&6
3805 else
3806 echo "$as_me:$LINENO: result: no" >&5
3807echo "${ECHO_T}no" >&6
3808 fi
3809
3810
3811 enablestring=
3812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3813echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3814 no_cache=0
3815 # Check whether --enable-debug_info or --disable-debug_info was given.
3816if test "${enable_debug_info+set}" = set; then
3817 enableval="$enable_debug_info"
3818
3819 if test "$enableval" = yes; then
3820 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3821 else
3822 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3823 fi
3824
3825else
3826
3827 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3828 if test "x$LINE" != x ; then
3829 eval "DEFAULT_$LINE"
3830 else
3831 no_cache=1
3832 fi
3833
3834 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3835
3836fi;
3837
3838 eval "$ac_cv_use_debug_info"
3839 if test "$no_cache" != 1; then
3840 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3841 fi
3842
3843 if test "$wxUSE_DEBUG_INFO" = yes; then
3844 echo "$as_me:$LINENO: result: yes" >&5
3845echo "${ECHO_T}yes" >&6
3846 else
3847 echo "$as_me:$LINENO: result: no" >&5
3848echo "${ECHO_T}no" >&6
3849 fi
3850
3851
3852 enablestring=
3853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3854echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3855 no_cache=0
3856 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3857if test "${enable_debug_gdb+set}" = set; then
3858 enableval="$enable_debug_gdb"
3859
3860 if test "$enableval" = yes; then
3861 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3862 else
3863 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3864 fi
3865
3866else
3867
3868 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3869 if test "x$LINE" != x ; then
3870 eval "DEFAULT_$LINE"
3871 else
3872 no_cache=1
3873 fi
3874
3875 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3876
3877fi;
3878
3879 eval "$ac_cv_use_debug_gdb"
3880 if test "$no_cache" != 1; then
3881 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3882 fi
3883
3884 if test "$wxUSE_DEBUG_GDB" = yes; then
3885 echo "$as_me:$LINENO: result: yes" >&5
3886echo "${ECHO_T}yes" >&6
3887 else
3888 echo "$as_me:$LINENO: result: no" >&5
3889echo "${ECHO_T}no" >&6
3890 fi
3891
3892
3893 enablestring=
3894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3895echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3896 no_cache=0
3897 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3898if test "${enable_debug_cntxt+set}" = set; then
3899 enableval="$enable_debug_cntxt"
3900
3901 if test "$enableval" = yes; then
3902 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3903 else
3904 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3905 fi
3906
3907else
3908
3909 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3910 if test "x$LINE" != x ; then
3911 eval "DEFAULT_$LINE"
3912 else
3913 no_cache=1
3914 fi
3915
3916 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3917
3918fi;
3919
3920 eval "$ac_cv_use_debug_cntxt"
3921 if test "$no_cache" != 1; then
3922 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3923 fi
3924
3925 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3926 echo "$as_me:$LINENO: result: yes" >&5
3927echo "${ECHO_T}yes" >&6
3928 else
3929 echo "$as_me:$LINENO: result: no" >&5
3930echo "${ECHO_T}no" >&6
3931 fi
3932
3933
3934 enablestring=
3935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3936echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3937 no_cache=0
3938 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3939if test "${enable_mem_tracing+set}" = set; then
3940 enableval="$enable_mem_tracing"
3941
3942 if test "$enableval" = yes; then
3943 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3944 else
3945 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3946 fi
3947
3948else
3949
3950 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3951 if test "x$LINE" != x ; then
3952 eval "DEFAULT_$LINE"
3953 else
3954 no_cache=1
3955 fi
3956
3957 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3958
3959fi;
3960
3961 eval "$ac_cv_use_mem_tracing"
3962 if test "$no_cache" != 1; then
3963 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3964 fi
3965
3966 if test "$wxUSE_MEM_TRACING" = yes; then
3967 echo "$as_me:$LINENO: result: yes" >&5
3968echo "${ECHO_T}yes" >&6
3969 else
3970 echo "$as_me:$LINENO: result: no" >&5
3971echo "${ECHO_T}no" >&6
3972 fi
3973
3974
3975 enablestring=
3976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3977echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3978 no_cache=0
3979 # Check whether --enable-profile or --disable-profile was given.
3980if test "${enable_profile+set}" = set; then
3981 enableval="$enable_profile"
3982
3983 if test "$enableval" = yes; then
3984 ac_cv_use_profile='wxUSE_PROFILE=yes'
3985 else
3986 ac_cv_use_profile='wxUSE_PROFILE=no'
3987 fi
3988
3989else
3990
3991 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3992 if test "x$LINE" != x ; then
3993 eval "DEFAULT_$LINE"
3994 else
3995 no_cache=1
3996 fi
3997
3998 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3999
4000fi;
4001
4002 eval "$ac_cv_use_profile"
4003 if test "$no_cache" != 1; then
4004 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4005 fi
4006
4007 if test "$wxUSE_PROFILE" = yes; then
4008 echo "$as_me:$LINENO: result: yes" >&5
4009echo "${ECHO_T}yes" >&6
4010 else
4011 echo "$as_me:$LINENO: result: no" >&5
4012echo "${ECHO_T}no" >&6
4013 fi
4014
4015
4016 enablestring=
4017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4018echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4019 no_cache=0
4020 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4021if test "${enable_no_rtti+set}" = set; then
4022 enableval="$enable_no_rtti"
4023
4024 if test "$enableval" = yes; then
4025 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4026 else
4027 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4028 fi
4029
4030else
4031
4032 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4033 if test "x$LINE" != x ; then
4034 eval "DEFAULT_$LINE"
4035 else
4036 no_cache=1
4037 fi
4038
4039 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4040
4041fi;
4042
4043 eval "$ac_cv_use_no_rtti"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_NO_RTTI" = yes; then
4049 echo "$as_me:$LINENO: result: yes" >&5
4050echo "${ECHO_T}yes" >&6
4051 else
4052 echo "$as_me:$LINENO: result: no" >&5
4053echo "${ECHO_T}no" >&6
4054 fi
4055
4056
4057 enablestring=
4058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4059echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4060 no_cache=0
4061 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4062if test "${enable_no_exceptions+set}" = set; then
4063 enableval="$enable_no_exceptions"
4064
4065 if test "$enableval" = yes; then
4066 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4067 else
4068 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4069 fi
4070
4071else
4072
4073 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4081
4082fi;
4083
4084 eval "$ac_cv_use_no_exceptions"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4090 echo "$as_me:$LINENO: result: yes" >&5
4091echo "${ECHO_T}yes" >&6
4092 else
4093 echo "$as_me:$LINENO: result: no" >&5
4094echo "${ECHO_T}no" >&6
4095 fi
4096
4097
4098 enablestring=
4099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4100echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4101 no_cache=0
4102 # Check whether --enable-permissive or --disable-permissive was given.
4103if test "${enable_permissive+set}" = set; then
4104 enableval="$enable_permissive"
4105
4106 if test "$enableval" = yes; then
4107 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4108 else
4109 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4110 fi
4111
4112else
4113
4114 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4115 if test "x$LINE" != x ; then
4116 eval "DEFAULT_$LINE"
4117 else
4118 no_cache=1
4119 fi
4120
4121 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4122
4123fi;
4124
4125 eval "$ac_cv_use_permissive"
4126 if test "$no_cache" != 1; then
4127 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4128 fi
4129
4130 if test "$wxUSE_PERMISSIVE" = yes; then
4131 echo "$as_me:$LINENO: result: yes" >&5
4132echo "${ECHO_T}yes" >&6
4133 else
4134 echo "$as_me:$LINENO: result: no" >&5
4135echo "${ECHO_T}no" >&6
4136 fi
4137
4138
4139 enablestring=
4140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4141echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4142 no_cache=0
4143 # Check whether --enable-no_deps or --disable-no_deps was given.
4144if test "${enable_no_deps+set}" = set; then
4145 enableval="$enable_no_deps"
4146
4147 if test "$enableval" = yes; then
4148 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4149 else
4150 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4151 fi
4152
4153else
4154
4155 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4156 if test "x$LINE" != x ; then
4157 eval "DEFAULT_$LINE"
4158 else
4159 no_cache=1
4160 fi
4161
4162 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4163
4164fi;
4165
4166 eval "$ac_cv_use_no_deps"
4167 if test "$no_cache" != 1; then
4168 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4169 fi
4170
4171 if test "$wxUSE_NO_DEPS" = yes; then
4172 echo "$as_me:$LINENO: result: yes" >&5
4173echo "${ECHO_T}yes" >&6
4174 else
4175 echo "$as_me:$LINENO: result: no" >&5
4176echo "${ECHO_T}no" >&6
4177 fi
4178
4179
4180
dee1a63f
MB
4181 enablestring=enable
4182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4183echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4184 no_cache=0
dee1a63f
MB
4185 # Check whether --enable-compat24 or --disable-compat24 was given.
4186if test "${enable_compat24+set}" = set; then
4187 enableval="$enable_compat24"
a848cd7e
SC
4188
4189 if test "$enableval" = yes; then
dee1a63f 4190 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4191 else
dee1a63f 4192 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4193 fi
4194
4195else
4196
dee1a63f 4197 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4198 if test "x$LINE" != x ; then
4199 eval "DEFAULT_$LINE"
4200 else
4201 no_cache=1
4202 fi
4203
dee1a63f 4204 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4205
4206fi;
4207
dee1a63f 4208 eval "$ac_cv_use_compat24"
a848cd7e 4209 if test "$no_cache" != 1; then
dee1a63f 4210 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4211 fi
4212
dee1a63f 4213 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4214 echo "$as_me:$LINENO: result: yes" >&5
4215echo "${ECHO_T}yes" >&6
4216 else
4217 echo "$as_me:$LINENO: result: no" >&5
4218echo "${ECHO_T}no" >&6
4219 fi
4220
4221
4222 enablestring=disable
dee1a63f
MB
4223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4224echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4225 no_cache=0
dee1a63f
MB
4226 # Check whether --enable-compat26 or --disable-compat26 was given.
4227if test "${enable_compat26+set}" = set; then
4228 enableval="$enable_compat26"
a848cd7e
SC
4229
4230 if test "$enableval" = yes; then
dee1a63f 4231 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4232 else
dee1a63f 4233 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4234 fi
4235
4236else
4237
dee1a63f 4238 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4239 if test "x$LINE" != x ; then
4240 eval "DEFAULT_$LINE"
4241 else
4242 no_cache=1
4243 fi
4244
dee1a63f 4245 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4246
4247fi;
4248
dee1a63f 4249 eval "$ac_cv_use_compat26"
a848cd7e 4250 if test "$no_cache" != 1; then
dee1a63f 4251 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4252 fi
4253
dee1a63f 4254 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4255 echo "$as_me:$LINENO: result: yes" >&5
4256echo "${ECHO_T}yes" >&6
4257 else
4258 echo "$as_me:$LINENO: result: no" >&5
4259echo "${ECHO_T}no" >&6
4260 fi
4261
4262
ffa0583f
RL
4263
4264 enablestring=
4265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4266echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4267 no_cache=0
4268 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4269if test "${enable_rpath+set}" = set; then
4270 enableval="$enable_rpath"
ffa0583f
RL
4271
4272 if test "$enableval" = yes; then
4273 ac_cv_use_rpath='wxUSE_RPATH=yes'
4274 else
4275 ac_cv_use_rpath='wxUSE_RPATH=no'
4276 fi
4277
4278else
4279
4280 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4281 if test "x$LINE" != x ; then
4282 eval "DEFAULT_$LINE"
4283 else
4284 no_cache=1
4285 fi
4286
4287 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4288
a848cd7e
SC
4289fi;
4290
ffa0583f
RL
4291 eval "$ac_cv_use_rpath"
4292 if test "$no_cache" != 1; then
4293 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4294 fi
4295
4296 if test "$wxUSE_RPATH" = yes; then
4297 echo "$as_me:$LINENO: result: yes" >&5
4298echo "${ECHO_T}yes" >&6
4299 else
4300 echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6
4302 fi
4303
a848cd7e
SC
4304
4305
4306
4307
4308 enablestring=
4309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4310echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4311 no_cache=0
4312 # Check whether --enable-intl or --disable-intl was given.
4313if test "${enable_intl+set}" = set; then
4314 enableval="$enable_intl"
4315
4316 if test "$enableval" = yes; then
4317 ac_cv_use_intl='wxUSE_INTL=yes'
4318 else
4319 ac_cv_use_intl='wxUSE_INTL=no'
4320 fi
4321
4322else
4323
4324 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4325 if test "x$LINE" != x ; then
4326 eval "DEFAULT_$LINE"
4327 else
4328 no_cache=1
4329 fi
4330
4331 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4332
4333fi;
4334
4335 eval "$ac_cv_use_intl"
4336 if test "$no_cache" != 1; then
4337 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4338 fi
4339
4340 if test "$wxUSE_INTL" = yes; then
4341 echo "$as_me:$LINENO: result: yes" >&5
4342echo "${ECHO_T}yes" >&6
4343 else
4344 echo "$as_me:$LINENO: result: no" >&5
4345echo "${ECHO_T}no" >&6
4346 fi
4347
4348
4349 enablestring=
4350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4351echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4352 no_cache=0
4353 # Check whether --enable-config or --disable-config was given.
4354if test "${enable_config+set}" = set; then
4355 enableval="$enable_config"
4356
4357 if test "$enableval" = yes; then
4358 ac_cv_use_config='wxUSE_CONFIG=yes'
4359 else
4360 ac_cv_use_config='wxUSE_CONFIG=no'
4361 fi
4362
4363else
4364
4365 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4366 if test "x$LINE" != x ; then
4367 eval "DEFAULT_$LINE"
4368 else
4369 no_cache=1
4370 fi
4371
4372 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4373
4374fi;
4375
4376 eval "$ac_cv_use_config"
4377 if test "$no_cache" != 1; then
4378 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4379 fi
4380
4381 if test "$wxUSE_CONFIG" = yes; then
4382 echo "$as_me:$LINENO: result: yes" >&5
4383echo "${ECHO_T}yes" >&6
4384 else
4385 echo "$as_me:$LINENO: result: no" >&5
4386echo "${ECHO_T}no" >&6
4387 fi
4388
4389
4390
4391 enablestring=
4392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4393echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4394 no_cache=0
4395 # Check whether --enable-protocols or --disable-protocols was given.
4396if test "${enable_protocols+set}" = set; then
4397 enableval="$enable_protocols"
4398
4399 if test "$enableval" = yes; then
4400 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4401 else
4402 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4403 fi
4404
4405else
4406
4407 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4408 if test "x$LINE" != x ; then
4409 eval "DEFAULT_$LINE"
4410 else
4411 no_cache=1
4412 fi
4413
4414 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4415
4416fi;
4417
4418 eval "$ac_cv_use_protocols"
4419 if test "$no_cache" != 1; then
4420 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4421 fi
4422
4423 if test "$wxUSE_PROTOCOL" = yes; then
4424 echo "$as_me:$LINENO: result: yes" >&5
4425echo "${ECHO_T}yes" >&6
4426 else
4427 echo "$as_me:$LINENO: result: no" >&5
4428echo "${ECHO_T}no" >&6
4429 fi
4430
4431
4432 enablestring=
4433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4434echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4435 no_cache=0
4436 # Check whether --enable-ftp or --disable-ftp was given.
4437if test "${enable_ftp+set}" = set; then
4438 enableval="$enable_ftp"
4439
4440 if test "$enableval" = yes; then
4441 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4442 else
4443 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4444 fi
4445
4446else
4447
4448 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4449 if test "x$LINE" != x ; then
4450 eval "DEFAULT_$LINE"
4451 else
4452 no_cache=1
4453 fi
4454
4455 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4456
4457fi;
4458
4459 eval "$ac_cv_use_ftp"
4460 if test "$no_cache" != 1; then
4461 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4462 fi
4463
4464 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4465 echo "$as_me:$LINENO: result: yes" >&5
4466echo "${ECHO_T}yes" >&6
4467 else
4468 echo "$as_me:$LINENO: result: no" >&5
4469echo "${ECHO_T}no" >&6
4470 fi
4471
4472
4473 enablestring=
4474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4475echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4476 no_cache=0
4477 # Check whether --enable-http or --disable-http was given.
4478if test "${enable_http+set}" = set; then
4479 enableval="$enable_http"
4480
4481 if test "$enableval" = yes; then
4482 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4483 else
4484 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4485 fi
4486
4487else
4488
4489 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4490 if test "x$LINE" != x ; then
4491 eval "DEFAULT_$LINE"
4492 else
4493 no_cache=1
4494 fi
4495
4496 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4497
4498fi;
4499
4500 eval "$ac_cv_use_http"
4501 if test "$no_cache" != 1; then
4502 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4503 fi
4504
4505 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4506 echo "$as_me:$LINENO: result: yes" >&5
4507echo "${ECHO_T}yes" >&6
4508 else
4509 echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6
4511 fi
4512
4513
4514 enablestring=
4515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4516echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4517 no_cache=0
4518 # Check whether --enable-fileproto or --disable-fileproto was given.
4519if test "${enable_fileproto+set}" = set; then
4520 enableval="$enable_fileproto"
4521
4522 if test "$enableval" = yes; then
4523 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4524 else
4525 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4526 fi
4527
4528else
4529
4530 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4531 if test "x$LINE" != x ; then
4532 eval "DEFAULT_$LINE"
4533 else
4534 no_cache=1
4535 fi
4536
4537 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4538
4539fi;
4540
4541 eval "$ac_cv_use_fileproto"
4542 if test "$no_cache" != 1; then
4543 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4544 fi
4545
4546 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4547 echo "$as_me:$LINENO: result: yes" >&5
4548echo "${ECHO_T}yes" >&6
4549 else
4550 echo "$as_me:$LINENO: result: no" >&5
4551echo "${ECHO_T}no" >&6
4552 fi
4553
4554
4555 enablestring=
4556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4557echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4558 no_cache=0
4559 # Check whether --enable-sockets or --disable-sockets was given.
4560if test "${enable_sockets+set}" = set; then
4561 enableval="$enable_sockets"
4562
4563 if test "$enableval" = yes; then
4564 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4565 else
4566 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4567 fi
4568
4569else
4570
4571 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4572 if test "x$LINE" != x ; then
4573 eval "DEFAULT_$LINE"
4574 else
4575 no_cache=1
4576 fi
4577
4578 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4579
4580fi;
4581
4582 eval "$ac_cv_use_sockets"
4583 if test "$no_cache" != 1; then
4584 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4585 fi
4586
4587 if test "$wxUSE_SOCKETS" = yes; then
4588 echo "$as_me:$LINENO: result: yes" >&5
4589echo "${ECHO_T}yes" >&6
4590 else
4591 echo "$as_me:$LINENO: result: no" >&5
4592echo "${ECHO_T}no" >&6
4593 fi
4594
4595
4596 enablestring=
4597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4598echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4599 no_cache=0
4600 # Check whether --enable-ole or --disable-ole was given.
4601if test "${enable_ole+set}" = set; then
4602 enableval="$enable_ole"
4603
4604 if test "$enableval" = yes; then
4605 ac_cv_use_ole='wxUSE_OLE=yes'
4606 else
4607 ac_cv_use_ole='wxUSE_OLE=no'
4608 fi
4609
4610else
4611
4612 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4613 if test "x$LINE" != x ; then
4614 eval "DEFAULT_$LINE"
4615 else
4616 no_cache=1
4617 fi
4618
4619 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4620
4621fi;
4622
4623 eval "$ac_cv_use_ole"
4624 if test "$no_cache" != 1; then
4625 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4626 fi
4627
4628 if test "$wxUSE_OLE" = yes; then
4629 echo "$as_me:$LINENO: result: yes" >&5
4630echo "${ECHO_T}yes" >&6
4631 else
4632 echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6
4634 fi
4635
4636
4637 enablestring=
4638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4639echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4640 no_cache=0
4641 # Check whether --enable-dataobj or --disable-dataobj was given.
4642if test "${enable_dataobj+set}" = set; then
4643 enableval="$enable_dataobj"
4644
4645 if test "$enableval" = yes; then
4646 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4647 else
4648 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4649 fi
4650
4651else
4652
4653 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4654 if test "x$LINE" != x ; then
4655 eval "DEFAULT_$LINE"
4656 else
4657 no_cache=1
4658 fi
4659
4660 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4661
4662fi;
4663
4664 eval "$ac_cv_use_dataobj"
4665 if test "$no_cache" != 1; then
4666 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4667 fi
4668
4669 if test "$wxUSE_DATAOBJ" = yes; then
4670 echo "$as_me:$LINENO: result: yes" >&5
4671echo "${ECHO_T}yes" >&6
4672 else
4673 echo "$as_me:$LINENO: result: no" >&5
4674echo "${ECHO_T}no" >&6
4675 fi
4676
4677
4678
4679 enablestring=
4680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4681echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4682 no_cache=0
4683 # Check whether --enable-ipc or --disable-ipc was given.
4684if test "${enable_ipc+set}" = set; then
4685 enableval="$enable_ipc"
4686
4687 if test "$enableval" = yes; then
4688 ac_cv_use_ipc='wxUSE_IPC=yes'
4689 else
4690 ac_cv_use_ipc='wxUSE_IPC=no'
4691 fi
4692
4693else
4694
4695 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4696 if test "x$LINE" != x ; then
4697 eval "DEFAULT_$LINE"
4698 else
4699 no_cache=1
4700 fi
4701
4702 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4703
4704fi;
4705
4706 eval "$ac_cv_use_ipc"
4707 if test "$no_cache" != 1; then
4708 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4709 fi
4710
4711 if test "$wxUSE_IPC" = yes; then
4712 echo "$as_me:$LINENO: result: yes" >&5
4713echo "${ECHO_T}yes" >&6
4714 else
4715 echo "$as_me:$LINENO: result: no" >&5
4716echo "${ECHO_T}no" >&6
4717 fi
4718
4719
4720
4721 enablestring=
4722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4723echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4724 no_cache=0
4725 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4726if test "${enable_apple_ieee+set}" = set; then
4727 enableval="$enable_apple_ieee"
4728
4729 if test "$enableval" = yes; then
4730 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4731 else
4732 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4733 fi
4734
4735else
4736
4737 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4738 if test "x$LINE" != x ; then
4739 eval "DEFAULT_$LINE"
4740 else
4741 no_cache=1
4742 fi
4743
4744 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4745
4746fi;
4747
4748 eval "$ac_cv_use_apple_ieee"
4749 if test "$no_cache" != 1; then
4750 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4751 fi
4752
4753 if test "$wxUSE_APPLE_IEEE" = yes; then
4754 echo "$as_me:$LINENO: result: yes" >&5
4755echo "${ECHO_T}yes" >&6
4756 else
4757 echo "$as_me:$LINENO: result: no" >&5
4758echo "${ECHO_T}no" >&6
4759 fi
4760
4761
81f90336
MW
4762 enablestring=
4763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4764echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4765 no_cache=0
4766 # Check whether --enable-arcstream or --disable-arcstream was given.
4767if test "${enable_arcstream+set}" = set; then
4768 enableval="$enable_arcstream"
4769
4770 if test "$enableval" = yes; then
9e8e867f 4771 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4772 else
9e8e867f 4773 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4774 fi
4775
4776else
4777
9e8e867f 4778 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4779 if test "x$LINE" != x ; then
4780 eval "DEFAULT_$LINE"
4781 else
4782 no_cache=1
4783 fi
4784
9e8e867f 4785 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4786
4787fi;
4788
4789 eval "$ac_cv_use_arcstream"
4790 if test "$no_cache" != 1; then
4791 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4792 fi
4793
9e8e867f 4794 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4795 echo "$as_me:$LINENO: result: yes" >&5
4796echo "${ECHO_T}yes" >&6
4797 else
4798 echo "$as_me:$LINENO: result: no" >&5
4799echo "${ECHO_T}no" >&6
4800 fi
4801
4802
a848cd7e 4803 enablestring=
36b6448c
VZ
4804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4805echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4806 no_cache=0
36b6448c
VZ
4807 # Check whether --enable-backtrace or --disable-backtrace was given.
4808if test "${enable_backtrace+set}" = set; then
4809 enableval="$enable_backtrace"
a848cd7e
SC
4810
4811 if test "$enableval" = yes; then
36b6448c 4812 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4813 else
36b6448c 4814 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4815 fi
4816
4817else
4818
36b6448c 4819 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
36b6448c 4826 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4827
4828fi;
4829
36b6448c 4830 eval "$ac_cv_use_backtrace"
a848cd7e 4831 if test "$no_cache" != 1; then
36b6448c 4832 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4833 fi
4834
36b6448c 4835 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4836 echo "$as_me:$LINENO: result: yes" >&5
4837echo "${ECHO_T}yes" >&6
4838 else
4839 echo "$as_me:$LINENO: result: no" >&5
4840echo "${ECHO_T}no" >&6
4841 fi
4842
4843
eaff0f0d 4844 enablestring=
36b6448c
VZ
4845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4846echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4847 no_cache=0
36b6448c
VZ
4848 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4849if test "${enable_catch_segvs+set}" = set; then
4850 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4851
4852 if test "$enableval" = yes; then
36b6448c 4853 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4854 else
36b6448c 4855 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4856 fi
4857
4858else
4859
36b6448c 4860 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4861 if test "x$LINE" != x ; then
4862 eval "DEFAULT_$LINE"
4863 else
4864 no_cache=1
4865 fi
4866
36b6448c 4867 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4868
4869fi;
4870
36b6448c 4871 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4872 if test "$no_cache" != 1; then
36b6448c 4873 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4874 fi
4875
36b6448c 4876 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4877 echo "$as_me:$LINENO: result: yes" >&5
4878echo "${ECHO_T}yes" >&6
4879 else
4880 echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
4882 fi
4883
4884
a848cd7e
SC
4885 enablestring=
4886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4887echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4888 no_cache=0
4889 # Check whether --enable-cmdline or --disable-cmdline was given.
4890if test "${enable_cmdline+set}" = set; then
4891 enableval="$enable_cmdline"
4892
4893 if test "$enableval" = yes; then
4894 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4895 else
4896 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4897 fi
4898
4899else
4900
4901 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
4908 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4909
4910fi;
4911
4912 eval "$ac_cv_use_cmdline"
4913 if test "$no_cache" != 1; then
4914 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4915 fi
4916
4917 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4918 echo "$as_me:$LINENO: result: yes" >&5
4919echo "${ECHO_T}yes" >&6
4920 else
4921 echo "$as_me:$LINENO: result: no" >&5
4922echo "${ECHO_T}no" >&6
4923 fi
4924
4925
4926 enablestring=
4927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4928echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4929 no_cache=0
4930 # Check whether --enable-datetime or --disable-datetime was given.
4931if test "${enable_datetime+set}" = set; then
4932 enableval="$enable_datetime"
4933
4934 if test "$enableval" = yes; then
4935 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4936 else
4937 ac_cv_use_datetime='wxUSE_DATETIME=no'
4938 fi
4939
4940else
4941
4942 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4943 if test "x$LINE" != x ; then
4944 eval "DEFAULT_$LINE"
4945 else
4946 no_cache=1
4947 fi
4948
4949 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4950
4951fi;
4952
4953 eval "$ac_cv_use_datetime"
4954 if test "$no_cache" != 1; then
4955 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4956 fi
4957
4958 if test "$wxUSE_DATETIME" = yes; then
4959 echo "$as_me:$LINENO: result: yes" >&5
4960echo "${ECHO_T}yes" >&6
4961 else
4962 echo "$as_me:$LINENO: result: no" >&5
4963echo "${ECHO_T}no" >&6
4964 fi
4965
4966
36b6448c
VZ
4967 enablestring=
4968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4969echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4970 no_cache=0
4971 # Check whether --enable-debugreport or --disable-debugreport was given.
4972if test "${enable_debugreport+set}" = set; then
4973 enableval="$enable_debugreport"
4974
4975 if test "$enableval" = yes; then
4976 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4977 else
4978 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4979 fi
4980
4981else
4982
4983 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4984 if test "x$LINE" != x ; then
4985 eval "DEFAULT_$LINE"
4986 else
4987 no_cache=1
4988 fi
4989
4990 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4991
4992fi;
4993
4994 eval "$ac_cv_use_debugreport"
4995 if test "$no_cache" != 1; then
4996 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4997 fi
4998
4999 if test "$wxUSE_DEBUGREPORT" = yes; then
5000 echo "$as_me:$LINENO: result: yes" >&5
5001echo "${ECHO_T}yes" >&6
5002 else
5003 echo "$as_me:$LINENO: result: no" >&5
5004echo "${ECHO_T}no" >&6
5005 fi
5006
5007
a848cd7e
SC
5008 enablestring=
5009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5010echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5011 no_cache=0
5012 # Check whether --enable-dialupman or --disable-dialupman was given.
5013if test "${enable_dialupman+set}" = set; then
5014 enableval="$enable_dialupman"
5015
5016 if test "$enableval" = yes; then
5017 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5018 else
5019 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5020 fi
5021
5022else
5023
5024 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5032
5033fi;
5034
5035 eval "$ac_cv_use_dialupman"
5036 if test "$no_cache" != 1; then
5037 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5038 fi
5039
5040 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5041 echo "$as_me:$LINENO: result: yes" >&5
5042echo "${ECHO_T}yes" >&6
5043 else
5044 echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6
5046 fi
5047
5048
5049 enablestring=
5050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5051echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5052 no_cache=0
5053 # Check whether --enable-dynlib or --disable-dynlib was given.
5054if test "${enable_dynlib+set}" = set; then
5055 enableval="$enable_dynlib"
5056
5057 if test "$enableval" = yes; then
5058 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5059 else
5060 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5061 fi
5062
5063else
5064
5065 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5066 if test "x$LINE" != x ; then
5067 eval "DEFAULT_$LINE"
5068 else
5069 no_cache=1
5070 fi
5071
5072 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5073
5074fi;
5075
5076 eval "$ac_cv_use_dynlib"
5077 if test "$no_cache" != 1; then
5078 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5079 fi
5080
5081 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5082 echo "$as_me:$LINENO: result: yes" >&5
5083echo "${ECHO_T}yes" >&6
5084 else
5085 echo "$as_me:$LINENO: result: no" >&5
5086echo "${ECHO_T}no" >&6
5087 fi
5088
5089
5090 enablestring=
5091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5092echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5093 no_cache=0
5094 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5095if test "${enable_dynamicloader+set}" = set; then
5096 enableval="$enable_dynamicloader"
5097
5098 if test "$enableval" = yes; then
5099 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5100 else
5101 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5102 fi
5103
5104else
5105
5106 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5107 if test "x$LINE" != x ; then
5108 eval "DEFAULT_$LINE"
5109 else
5110 no_cache=1
5111 fi
5112
5113 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5114
5115fi;
5116
5117 eval "$ac_cv_use_dynamicloader"
5118 if test "$no_cache" != 1; then
5119 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5120 fi
5121
5122 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5123 echo "$as_me:$LINENO: result: yes" >&5
5124echo "${ECHO_T}yes" >&6
5125 else
5126 echo "$as_me:$LINENO: result: no" >&5
5127echo "${ECHO_T}no" >&6
5128 fi
5129
5130
5131 enablestring=
5132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5133echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5134 no_cache=0
5135 # Check whether --enable-exceptions or --disable-exceptions was given.
5136if test "${enable_exceptions+set}" = set; then
5137 enableval="$enable_exceptions"
5138
5139 if test "$enableval" = yes; then
5140 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5141 else
5142 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5143 fi
5144
5145else
5146
5147 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5148 if test "x$LINE" != x ; then
5149 eval "DEFAULT_$LINE"
5150 else
5151 no_cache=1
5152 fi
5153
5154 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5155
5156fi;
5157
5158 eval "$ac_cv_use_exceptions"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_EXCEPTIONS" = yes; then
5164 echo "$as_me:$LINENO: result: yes" >&5
5165echo "${ECHO_T}yes" >&6
5166 else
5167 echo "$as_me:$LINENO: result: no" >&5
5168echo "${ECHO_T}no" >&6
5169 fi
5170
5171
5172 enablestring=
5173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5174echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5175 no_cache=0
5176 # Check whether --enable-ffile or --disable-ffile was given.
5177if test "${enable_ffile+set}" = set; then
5178 enableval="$enable_ffile"
5179
5180 if test "$enableval" = yes; then
5181 ac_cv_use_ffile='wxUSE_FFILE=yes'
5182 else
5183 ac_cv_use_ffile='wxUSE_FFILE=no'
5184 fi
5185
5186else
5187
5188 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5189 if test "x$LINE" != x ; then
5190 eval "DEFAULT_$LINE"
5191 else
5192 no_cache=1
5193 fi
5194
5195 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5196
5197fi;
5198
5199 eval "$ac_cv_use_ffile"
5200 if test "$no_cache" != 1; then
5201 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5202 fi
5203
5204 if test "$wxUSE_FFILE" = yes; then
5205 echo "$as_me:$LINENO: result: yes" >&5
5206echo "${ECHO_T}yes" >&6
5207 else
5208 echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6
5210 fi
5211
5212
5213 enablestring=
5214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5215echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5216 no_cache=0
5217 # Check whether --enable-file or --disable-file was given.
5218if test "${enable_file+set}" = set; then
5219 enableval="$enable_file"
5220
5221 if test "$enableval" = yes; then
5222 ac_cv_use_file='wxUSE_FILE=yes'
5223 else
5224 ac_cv_use_file='wxUSE_FILE=no'
5225 fi
5226
5227else
5228
5229 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5230 if test "x$LINE" != x ; then
5231 eval "DEFAULT_$LINE"
5232 else
5233 no_cache=1
5234 fi
5235
5236 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5237
5238fi;
5239
5240 eval "$ac_cv_use_file"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_FILE" = yes; then
5246 echo "$as_me:$LINENO: result: yes" >&5
5247echo "${ECHO_T}yes" >&6
5248 else
5249 echo "$as_me:$LINENO: result: no" >&5
5250echo "${ECHO_T}no" >&6
5251 fi
5252
5253
5254 enablestring=
5255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5256echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5257 no_cache=0
5258 # Check whether --enable-filesystem or --disable-filesystem was given.
5259if test "${enable_filesystem+set}" = set; then
5260 enableval="$enable_filesystem"
5261
5262 if test "$enableval" = yes; then
5263 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5264 else
5265 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5266 fi
5267
5268else
5269
5270 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5271 if test "x$LINE" != x ; then
5272 eval "DEFAULT_$LINE"
5273 else
5274 no_cache=1
5275 fi
5276
5277 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5278
5279fi;
5280
5281 eval "$ac_cv_use_filesystem"
5282 if test "$no_cache" != 1; then
5283 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5284 fi
5285
5286 if test "$wxUSE_FILESYSTEM" = yes; then
5287 echo "$as_me:$LINENO: result: yes" >&5
5288echo "${ECHO_T}yes" >&6
5289 else
5290 echo "$as_me:$LINENO: result: no" >&5
5291echo "${ECHO_T}no" >&6
5292 fi
5293
5294
5295 enablestring=
5296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5297echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5298 no_cache=0
5299 # Check whether --enable-fontmap or --disable-fontmap was given.
5300if test "${enable_fontmap+set}" = set; then
5301 enableval="$enable_fontmap"
5302
5303 if test "$enableval" = yes; then
5304 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5305 else
5306 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5307 fi
5308
5309else
5310
5311 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5312 if test "x$LINE" != x ; then
5313 eval "DEFAULT_$LINE"
5314 else
5315 no_cache=1
5316 fi
5317
5318 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5319
5320fi;
5321
5322 eval "$ac_cv_use_fontmap"
5323 if test "$no_cache" != 1; then
5324 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5325 fi
5326
5327 if test "$wxUSE_FONTMAP" = yes; then
5328 echo "$as_me:$LINENO: result: yes" >&5
5329echo "${ECHO_T}yes" >&6
5330 else
5331 echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
5333 fi
5334
5335
5336 enablestring=
5337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5338echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5339 no_cache=0
5340 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5341if test "${enable_fs_inet+set}" = set; then
5342 enableval="$enable_fs_inet"
5343
5344 if test "$enableval" = yes; then
5345 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5346 else
5347 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5348 fi
5349
5350else
5351
5352 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5353 if test "x$LINE" != x ; then
5354 eval "DEFAULT_$LINE"
5355 else
5356 no_cache=1
5357 fi
5358
5359 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5360
5361fi;
5362
5363 eval "$ac_cv_use_fs_inet"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_FS_INET" = yes; then
5369 echo "$as_me:$LINENO: result: yes" >&5
5370echo "${ECHO_T}yes" >&6
5371 else
5372 echo "$as_me:$LINENO: result: no" >&5
5373echo "${ECHO_T}no" >&6
5374 fi
5375
5376
5377 enablestring=
5378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5379echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5380 no_cache=0
5381 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5382if test "${enable_fs_zip+set}" = set; then
5383 enableval="$enable_fs_zip"
5384
5385 if test "$enableval" = yes; then
5386 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5387 else
5388 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5389 fi
5390
5391else
5392
5393 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5394 if test "x$LINE" != x ; then
5395 eval "DEFAULT_$LINE"
5396 else
5397 no_cache=1
5398 fi
5399
5400 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5401
5402fi;
5403
5404 eval "$ac_cv_use_fs_zip"
5405 if test "$no_cache" != 1; then
5406 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5407 fi
5408
5409 if test "$wxUSE_FS_ZIP" = yes; then
5410 echo "$as_me:$LINENO: result: yes" >&5
5411echo "${ECHO_T}yes" >&6
5412 else
5413 echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6
5415 fi
5416
5417
5418 enablestring=
5419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5420echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5421 no_cache=0
5422 # Check whether --enable-geometry or --disable-geometry was given.
5423if test "${enable_geometry+set}" = set; then
5424 enableval="$enable_geometry"
5425
5426 if test "$enableval" = yes; then
5427 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5428 else
5429 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5430 fi
5431
5432else
5433
5434 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5435 if test "x$LINE" != x ; then
5436 eval "DEFAULT_$LINE"
5437 else
5438 no_cache=1
5439 fi
5440
5441 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5442
5443fi;
5444
5445 eval "$ac_cv_use_geometry"
5446 if test "$no_cache" != 1; then
5447 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5448 fi
5449
5450 if test "$wxUSE_GEOMETRY" = yes; then
5451 echo "$as_me:$LINENO: result: yes" >&5
5452echo "${ECHO_T}yes" >&6
5453 else
5454 echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
5456 fi
5457
5458
5459 enablestring=
5460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5461echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5462 no_cache=0
5463 # Check whether --enable-log or --disable-log was given.
5464if test "${enable_log+set}" = set; then
5465 enableval="$enable_log"
5466
5467 if test "$enableval" = yes; then
5468 ac_cv_use_log='wxUSE_LOG=yes'
5469 else
5470 ac_cv_use_log='wxUSE_LOG=no'
5471 fi
5472
5473else
5474
5475 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5476 if test "x$LINE" != x ; then
5477 eval "DEFAULT_$LINE"
5478 else
5479 no_cache=1
5480 fi
5481
5482 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5483
5484fi;
5485
5486 eval "$ac_cv_use_log"
5487 if test "$no_cache" != 1; then
5488 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5489 fi
5490
5491 if test "$wxUSE_LOG" = yes; then
5492 echo "$as_me:$LINENO: result: yes" >&5
5493echo "${ECHO_T}yes" >&6
5494 else
5495 echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6
5497 fi
5498
5499
5500 enablestring=
5501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5502echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5503 no_cache=0
5504 # Check whether --enable-longlong or --disable-longlong was given.
5505if test "${enable_longlong+set}" = set; then
5506 enableval="$enable_longlong"
5507
5508 if test "$enableval" = yes; then
5509 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5510 else
5511 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5512 fi
5513
5514else
5515
5516 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5517 if test "x$LINE" != x ; then
5518 eval "DEFAULT_$LINE"
5519 else
5520 no_cache=1
5521 fi
5522
5523 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5524
5525fi;
5526
5527 eval "$ac_cv_use_longlong"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_LONGLONG" = yes; then
5533 echo "$as_me:$LINENO: result: yes" >&5
5534echo "${ECHO_T}yes" >&6
5535 else
5536 echo "$as_me:$LINENO: result: no" >&5
5537echo "${ECHO_T}no" >&6
5538 fi
5539
5540
5541 enablestring=
5542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5543echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5544 no_cache=0
5545 # Check whether --enable-mimetype or --disable-mimetype was given.
5546if test "${enable_mimetype+set}" = set; then
5547 enableval="$enable_mimetype"
5548
5549 if test "$enableval" = yes; then
5550 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5551 else
5552 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5553 fi
5554
5555else
5556
5557 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5558 if test "x$LINE" != x ; then
5559 eval "DEFAULT_$LINE"
5560 else
5561 no_cache=1
5562 fi
5563
5564 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5565
5566fi;
5567
5568 eval "$ac_cv_use_mimetype"
5569 if test "$no_cache" != 1; then
5570 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5571 fi
5572
5573 if test "$wxUSE_MIMETYPE" = yes; then
5574 echo "$as_me:$LINENO: result: yes" >&5
5575echo "${ECHO_T}yes" >&6
5576 else
5577 echo "$as_me:$LINENO: result: no" >&5
5578echo "${ECHO_T}no" >&6
5579 fi
5580
5581
5582 enablestring=
5583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5584echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5585 no_cache=0
5586 # Check whether --enable-mslu or --disable-mslu was given.
5587if test "${enable_mslu+set}" = set; then
5588 enableval="$enable_mslu"
5589
5590 if test "$enableval" = yes; then
5591 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5592 else
5593 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5594 fi
5595
5596else
5597
5598 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5606
5607fi;
5608
5609 eval "$ac_cv_use_mslu"
5610 if test "$no_cache" != 1; then
5611 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5612 fi
5613
5614 if test "$wxUSE_UNICODE_MSLU" = yes; then
5615 echo "$as_me:$LINENO: result: yes" >&5
5616echo "${ECHO_T}yes" >&6
5617 else
5618 echo "$as_me:$LINENO: result: no" >&5
5619echo "${ECHO_T}no" >&6
5620 fi
5621
5622
5623 enablestring=
5624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5625echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5626 no_cache=0
5627 # Check whether --enable-snglinst or --disable-snglinst was given.
5628if test "${enable_snglinst+set}" = set; then
5629 enableval="$enable_snglinst"
5630
5631 if test "$enableval" = yes; then
5632 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5633 else
5634 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5635 fi
5636
5637else
5638
5639 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5640 if test "x$LINE" != x ; then
5641 eval "DEFAULT_$LINE"
5642 else
5643 no_cache=1
5644 fi
5645
5646 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5647
5648fi;
5649
5650 eval "$ac_cv_use_snglinst"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5656 echo "$as_me:$LINENO: result: yes" >&5
5657echo "${ECHO_T}yes" >&6
5658 else
5659 echo "$as_me:$LINENO: result: no" >&5
5660echo "${ECHO_T}no" >&6
5661 fi
5662
5663
5664 enablestring=
07158944
VZ
5665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5666echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5667 no_cache=0
07158944
VZ
5668 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5669if test "${enable_std_iostreams+set}" = set; then
5670 enableval="$enable_std_iostreams"
a848cd7e
SC
5671
5672 if test "$enableval" = yes; then
07158944 5673 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5674 else
07158944 5675 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5676 fi
5677
5678else
5679
07158944 5680 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5681 if test "x$LINE" != x ; then
5682 eval "DEFAULT_$LINE"
5683 else
5684 no_cache=1
5685 fi
5686
07158944 5687 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5688
5689fi;
5690
07158944 5691 eval "$ac_cv_use_std_iostreams"
a848cd7e 5692 if test "$no_cache" != 1; then
07158944 5693 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5694 fi
5695
07158944 5696 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5697 echo "$as_me:$LINENO: result: yes" >&5
5698echo "${ECHO_T}yes" >&6
5699 else
5700 echo "$as_me:$LINENO: result: no" >&5
5701echo "${ECHO_T}no" >&6
5702 fi
5703
5704
59746b65
MW
5705 enablestring=
5706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5707echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5708 no_cache=0
5709 # Check whether --enable-std_string or --disable-std_string was given.
5710if test "${enable_std_string+set}" = set; then
5711 enableval="$enable_std_string"
5712
5713 if test "$enableval" = yes; then
5714 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5715 else
5716 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5717 fi
5718
5719else
5720
5721 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5722 if test "x$LINE" != x ; then
5723 eval "DEFAULT_$LINE"
5724 else
5725 no_cache=1
5726 fi
5727
5728 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5729
5730fi;
5731
5732 eval "$ac_cv_use_std_string"
5733 if test "$no_cache" != 1; then
5734 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5735 fi
5736
5737 if test "$wxUSE_STD_STRING" = yes; then
5738 echo "$as_me:$LINENO: result: yes" >&5
5739echo "${ECHO_T}yes" >&6
5740 else
5741 echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6
5743 fi
5744
5745
a848cd7e 5746 enablestring=
07158944
VZ
5747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5748echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5749 no_cache=0
07158944
VZ
5750 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5751if test "${enable_stdpaths+set}" = set; then
5752 enableval="$enable_stdpaths"
a848cd7e
SC
5753
5754 if test "$enableval" = yes; then
07158944 5755 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5756 else
07158944 5757 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5758 fi
5759
5760else
5761
07158944 5762 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5763 if test "x$LINE" != x ; then
5764 eval "DEFAULT_$LINE"
5765 else
5766 no_cache=1
5767 fi
5768
07158944 5769 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5770
5771fi;
5772
07158944 5773 eval "$ac_cv_use_stdpaths"
a848cd7e 5774 if test "$no_cache" != 1; then
07158944 5775 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5776 fi
5777
07158944 5778 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5779 echo "$as_me:$LINENO: result: yes" >&5
5780echo "${ECHO_T}yes" >&6
5781 else
5782 echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6
5784 fi
5785
5786
5787 enablestring=
5788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5789echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5790 no_cache=0
5791 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5792if test "${enable_stopwatch+set}" = set; then
5793 enableval="$enable_stopwatch"
5794
5795 if test "$enableval" = yes; then
5796 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5797 else
5798 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5799 fi
5800
5801else
5802
5803 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5811
5812fi;
5813
5814 eval "$ac_cv_use_stopwatch"
5815 if test "$no_cache" != 1; then
5816 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5817 fi
5818
5819 if test "$wxUSE_STOPWATCH" = yes; then
5820 echo "$as_me:$LINENO: result: yes" >&5
5821echo "${ECHO_T}yes" >&6
5822 else
5823 echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6
5825 fi
5826
5827
07158944
VZ
5828 enablestring=
5829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5830echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5831 no_cache=0
5832 # Check whether --enable-streams or --disable-streams was given.
5833if test "${enable_streams+set}" = set; then
5834 enableval="$enable_streams"
5835
5836 if test "$enableval" = yes; then
5837 ac_cv_use_streams='wxUSE_STREAMS=yes'
5838 else
5839 ac_cv_use_streams='wxUSE_STREAMS=no'
5840 fi
5841
5842else
5843
5844 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5845 if test "x$LINE" != x ; then
5846 eval "DEFAULT_$LINE"
5847 else
5848 no_cache=1
5849 fi
5850
5851 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5852
5853fi;
5854
5855 eval "$ac_cv_use_streams"
5856 if test "$no_cache" != 1; then
5857 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5858 fi
5859
5860 if test "$wxUSE_STREAMS" = yes; then
5861 echo "$as_me:$LINENO: result: yes" >&5
5862echo "${ECHO_T}yes" >&6
5863 else
5864 echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6
5866 fi
5867
5868
a848cd7e
SC
5869 enablestring=
5870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5871echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5872 no_cache=0
5873 # Check whether --enable-system_options or --disable-system_options was given.
5874if test "${enable_system_options+set}" = set; then
5875 enableval="$enable_system_options"
5876
5877 if test "$enableval" = yes; then
5878 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5879 else
5880 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5881 fi
5882
5883else
5884
5885 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
5892 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5893
5894fi;
5895
5896 eval "$ac_cv_use_system_options"
5897 if test "$no_cache" != 1; then
5898 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5899 fi
5900
5901 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5902 echo "$as_me:$LINENO: result: yes" >&5
5903echo "${ECHO_T}yes" >&6
5904 else
5905 echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6
5907 fi
5908
5909
5910 enablestring=
5911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5912echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5913 no_cache=0
5914 # Check whether --enable-textbuf or --disable-textbuf was given.
5915if test "${enable_textbuf+set}" = set; then
5916 enableval="$enable_textbuf"
5917
5918 if test "$enableval" = yes; then
5919 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5920 else
5921 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5922 fi
5923
5924else
5925
5926 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5927 if test "x$LINE" != x ; then
5928 eval "DEFAULT_$LINE"
5929 else
5930 no_cache=1
5931 fi
5932
5933 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5934
5935fi;
5936
5937 eval "$ac_cv_use_textbuf"
5938 if test "$no_cache" != 1; then
5939 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5940 fi
5941
5942 if test "$wxUSE_TEXTBUFFER" = yes; then
5943 echo "$as_me:$LINENO: result: yes" >&5
5944echo "${ECHO_T}yes" >&6
5945 else
5946 echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6
5948 fi
5949
5950
5951 enablestring=
5952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5953echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5954 no_cache=0
5955 # Check whether --enable-textfile or --disable-textfile was given.
5956if test "${enable_textfile+set}" = set; then
5957 enableval="$enable_textfile"
5958
5959 if test "$enableval" = yes; then
5960 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5961 else
5962 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5963 fi
5964
5965else
5966
5967 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5975
5976fi;
5977
5978 eval "$ac_cv_use_textfile"
5979 if test "$no_cache" != 1; then
5980 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5981 fi
5982
5983 if test "$wxUSE_TEXTFILE" = yes; then
5984 echo "$as_me:$LINENO: result: yes" >&5
5985echo "${ECHO_T}yes" >&6
5986 else
5987 echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6
5989 fi
5990
5991
5992 enablestring=
5993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5994echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5995 no_cache=0
5996 # Check whether --enable-timer or --disable-timer was given.
5997if test "${enable_timer+set}" = set; then
5998 enableval="$enable_timer"
5999
6000 if test "$enableval" = yes; then
6001 ac_cv_use_timer='wxUSE_TIMER=yes'
6002 else
6003 ac_cv_use_timer='wxUSE_TIMER=no'
6004 fi
6005
6006else
6007
6008 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6009 if test "x$LINE" != x ; then
6010 eval "DEFAULT_$LINE"
6011 else
6012 no_cache=1
6013 fi
6014
6015 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6016
6017fi;
6018
6019 eval "$ac_cv_use_timer"
6020 if test "$no_cache" != 1; then
6021 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6022 fi
6023
6024 if test "$wxUSE_TIMER" = yes; then
6025 echo "$as_me:$LINENO: result: yes" >&5
6026echo "${ECHO_T}yes" >&6
6027 else
6028 echo "$as_me:$LINENO: result: no" >&5
6029echo "${ECHO_T}no" >&6
6030 fi
6031
6032
6033 enablestring=
6034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6035echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6036 no_cache=0
6037 # Check whether --enable-unicode or --disable-unicode was given.
6038if test "${enable_unicode+set}" = set; then
6039 enableval="$enable_unicode"
6040
6041 if test "$enableval" = yes; then
6042 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6043 else
6044 ac_cv_use_unicode='wxUSE_UNICODE=no'
6045 fi
6046
6047else
6048
6049 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6050 if test "x$LINE" != x ; then
6051 eval "DEFAULT_$LINE"
6052 else
6053 no_cache=1
6054 fi
6055
6056 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6057
6058fi;
6059
6060 eval "$ac_cv_use_unicode"
6061 if test "$no_cache" != 1; then
6062 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6063 fi
6064
6065 if test "$wxUSE_UNICODE" = yes; then
6066 echo "$as_me:$LINENO: result: yes" >&5
6067echo "${ECHO_T}yes" >&6
6068 else
6069 echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6
6071 fi
6072
6073
6074 enablestring=
6075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6076echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6077 no_cache=0
6078 # Check whether --enable-sound or --disable-sound was given.
6079if test "${enable_sound+set}" = set; then
6080 enableval="$enable_sound"
6081
6082 if test "$enableval" = yes; then
6083 ac_cv_use_sound='wxUSE_SOUND=yes'
6084 else
6085 ac_cv_use_sound='wxUSE_SOUND=no'
6086 fi
6087
6088else
6089
6090 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6091 if test "x$LINE" != x ; then
6092 eval "DEFAULT_$LINE"
6093 else
6094 no_cache=1
6095 fi
6096
6097 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6098
6099fi;
6100
6101 eval "$ac_cv_use_sound"
6102 if test "$no_cache" != 1; then
6103 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6104 fi
6105
6106 if test "$wxUSE_SOUND" = yes; then
6107 echo "$as_me:$LINENO: result: yes" >&5
6108echo "${ECHO_T}yes" >&6
6109 else
6110 echo "$as_me:$LINENO: result: no" >&5
6111echo "${ECHO_T}no" >&6
6112 fi
6113
6114
3b57de8b
RL
6115 enablestring=
6116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6117echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6118 no_cache=0
6119 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6120if test "${enable_mediactrl+set}" = set; then
6121 enableval="$enable_mediactrl"
6122
6123 if test "$enableval" = yes; then
6124 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6125 else
6126 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6127 fi
6128
6129else
6130
6131 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6132 if test "x$LINE" != x ; then
6133 eval "DEFAULT_$LINE"
6134 else
6135 no_cache=1
6136 fi
6137
6138 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6139
6140fi;
6141
6142 eval "$ac_cv_use_mediactrl"
6143 if test "$no_cache" != 1; then
6144 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6145 fi
6146
6147 if test "$wxUSE_MEDIACTRL" = yes; then
6148 echo "$as_me:$LINENO: result: yes" >&5
6149echo "${ECHO_T}yes" >&6
6150 else
6151 echo "$as_me:$LINENO: result: no" >&5
6152echo "${ECHO_T}no" >&6
6153 fi
6154
6155
a848cd7e
SC
6156 enablestring=
6157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6158echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6159 no_cache=0
6160 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6161if test "${enable_wxprintfv+set}" = set; then
6162 enableval="$enable_wxprintfv"
6163
6164 if test "$enableval" = yes; then
6165 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6166 else
6167 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6168 fi
6169
6170else
6171
6172 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6173 if test "x$LINE" != x ; then
6174 eval "DEFAULT_$LINE"
6175 else
6176 no_cache=1
6177 fi
6178
6179 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6180
6181fi;
6182
6183 eval "$ac_cv_use_wxprintfv"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6189 echo "$as_me:$LINENO: result: yes" >&5
6190echo "${ECHO_T}yes" >&6
6191 else
6192 echo "$as_me:$LINENO: result: no" >&5
6193echo "${ECHO_T}no" >&6
6194 fi
6195
6196
6197 enablestring=
6198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6199echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6200 no_cache=0
6201 # Check whether --enable-zipstream or --disable-zipstream was given.
6202if test "${enable_zipstream+set}" = set; then
6203 enableval="$enable_zipstream"
6204
6205 if test "$enableval" = yes; then
6206 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6207 else
6208 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6209 fi
6210
6211else
6212
6213 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6214 if test "x$LINE" != x ; then
6215 eval "DEFAULT_$LINE"
6216 else
6217 no_cache=1
6218 fi
6219
6220 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6221
6222fi;
6223
6224 eval "$ac_cv_use_zipstream"
6225 if test "$no_cache" != 1; then
6226 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6227 fi
6228
6229 if test "$wxUSE_ZIPSTREAM" = yes; then
6230 echo "$as_me:$LINENO: result: yes" >&5
6231echo "${ECHO_T}yes" >&6
6232 else
6233 echo "$as_me:$LINENO: result: no" >&5
6234echo "${ECHO_T}no" >&6
6235 fi
6236
6237
a848cd7e
SC
6238
6239 enablestring=
6240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6241echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6242 no_cache=0
6243 # Check whether --enable-url or --disable-url was given.
6244if test "${enable_url+set}" = set; then
6245 enableval="$enable_url"
6246
6247 if test "$enableval" = yes; then
6248 ac_cv_use_url='wxUSE_URL=yes'
6249 else
6250 ac_cv_use_url='wxUSE_URL=no'
6251 fi
6252
6253else
6254
6255 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6256 if test "x$LINE" != x ; then
6257 eval "DEFAULT_$LINE"
6258 else
6259 no_cache=1
6260 fi
6261
6262 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6263
6264fi;
6265
6266 eval "$ac_cv_use_url"
6267 if test "$no_cache" != 1; then
6268 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6269 fi
6270
6271 if test "$wxUSE_URL" = yes; then
6272 echo "$as_me:$LINENO: result: yes" >&5
6273echo "${ECHO_T}yes" >&6
6274 else
6275 echo "$as_me:$LINENO: result: no" >&5
6276echo "${ECHO_T}no" >&6
6277 fi
6278
6279
6280 enablestring=
6281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6282echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6283 no_cache=0
6284 # Check whether --enable-protocol or --disable-protocol was given.
6285if test "${enable_protocol+set}" = set; then
6286 enableval="$enable_protocol"
6287
6288 if test "$enableval" = yes; then
6289 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6290 else
6291 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6292 fi
6293
6294else
6295
6296 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6297 if test "x$LINE" != x ; then
6298 eval "DEFAULT_$LINE"
6299 else
6300 no_cache=1
6301 fi
6302
6303 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6304
6305fi;
6306
6307 eval "$ac_cv_use_protocol"
6308 if test "$no_cache" != 1; then
6309 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6310 fi
6311
6312 if test "$wxUSE_PROTOCOL" = yes; then
6313 echo "$as_me:$LINENO: result: yes" >&5
6314echo "${ECHO_T}yes" >&6
6315 else
6316 echo "$as_me:$LINENO: result: no" >&5
6317echo "${ECHO_T}no" >&6
6318 fi
6319
6320
6321 enablestring=
6322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6323echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6324 no_cache=0
6325 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6326if test "${enable_protocol_http+set}" = set; then
6327 enableval="$enable_protocol_http"
6328
6329 if test "$enableval" = yes; then
6330 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6331 else
6332 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6333 fi
6334
6335else
6336
6337 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6338 if test "x$LINE" != x ; then
6339 eval "DEFAULT_$LINE"
6340 else
6341 no_cache=1
6342 fi
6343
6344 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6345
6346fi;
6347
6348 eval "$ac_cv_use_protocol_http"
6349 if test "$no_cache" != 1; then
6350 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6351 fi
6352
6353 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6354 echo "$as_me:$LINENO: result: yes" >&5
6355echo "${ECHO_T}yes" >&6
6356 else
6357 echo "$as_me:$LINENO: result: no" >&5
6358echo "${ECHO_T}no" >&6
6359 fi
6360
6361
6362 enablestring=
6363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6364echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6365 no_cache=0
6366 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6367if test "${enable_protocol_ftp+set}" = set; then
6368 enableval="$enable_protocol_ftp"
6369
6370 if test "$enableval" = yes; then
6371 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6372 else
6373 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6374 fi
6375
6376else
6377
6378 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6379 if test "x$LINE" != x ; then
6380 eval "DEFAULT_$LINE"
6381 else
6382 no_cache=1
6383 fi
6384
6385 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6386
6387fi;
6388
6389 eval "$ac_cv_use_protocol_ftp"
6390 if test "$no_cache" != 1; then
6391 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6392 fi
6393
6394 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6395 echo "$as_me:$LINENO: result: yes" >&5
6396echo "${ECHO_T}yes" >&6
6397 else
6398 echo "$as_me:$LINENO: result: no" >&5
6399echo "${ECHO_T}no" >&6
6400 fi
6401
6402
6403 enablestring=
6404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6405echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6406 no_cache=0
6407 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6408if test "${enable_protocol_file+set}" = set; then
6409 enableval="$enable_protocol_file"
6410
6411 if test "$enableval" = yes; then
6412 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6413 else
6414 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6415 fi
6416
6417else
6418
6419 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6420 if test "x$LINE" != x ; then
6421 eval "DEFAULT_$LINE"
6422 else
6423 no_cache=1
6424 fi
6425
6426 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6427
6428fi;
6429
6430 eval "$ac_cv_use_protocol_file"
6431 if test "$no_cache" != 1; then
6432 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6433 fi
6434
6435 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6436 echo "$as_me:$LINENO: result: yes" >&5
6437echo "${ECHO_T}yes" >&6
6438 else
6439 echo "$as_me:$LINENO: result: no" >&5
6440echo "${ECHO_T}no" >&6
6441 fi
6442
6443
6444
6445
6446
6447 enablestring=
6448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6449echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6450 no_cache=0
6451 # Check whether --enable-threads or --disable-threads was given.
6452if test "${enable_threads+set}" = set; then
6453 enableval="$enable_threads"
6454
6455 if test "$enableval" = yes; then
6456 ac_cv_use_threads='wxUSE_THREADS=yes'
6457 else
6458 ac_cv_use_threads='wxUSE_THREADS=no'
6459 fi
6460
6461else
6462
6463 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6464 if test "x$LINE" != x ; then
6465 eval "DEFAULT_$LINE"
6466 else
6467 no_cache=1
6468 fi
6469
6470 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6471
6472fi;
6473
6474 eval "$ac_cv_use_threads"
6475 if test "$no_cache" != 1; then
6476 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6477 fi
6478
6479 if test "$wxUSE_THREADS" = yes; then
6480 echo "$as_me:$LINENO: result: yes" >&5
6481echo "${ECHO_T}yes" >&6
6482 else
6483 echo "$as_me:$LINENO: result: no" >&5
6484echo "${ECHO_T}no" >&6
6485 fi
6486
6487
6488if test "$wxUSE_GUI" = "yes"; then
6489
6490
6491
6492 enablestring=
6493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6494echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6495 no_cache=0
6496 # Check whether --enable-docview or --disable-docview was given.
6497if test "${enable_docview+set}" = set; then
6498 enableval="$enable_docview"
6499
6500 if test "$enableval" = yes; then
6501 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6502 else
6503 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6504 fi
6505
6506else
6507
6508 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6509 if test "x$LINE" != x ; then
6510 eval "DEFAULT_$LINE"
6511 else
6512 no_cache=1
6513 fi
6514
6515 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6516
6517fi;
6518
6519 eval "$ac_cv_use_docview"
6520 if test "$no_cache" != 1; then
6521 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6522 fi
6523
6524 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6525 echo "$as_me:$LINENO: result: yes" >&5
6526echo "${ECHO_T}yes" >&6
6527 else
6528 echo "$as_me:$LINENO: result: no" >&5
6529echo "${ECHO_T}no" >&6
6530 fi
6531
6532
6533 enablestring=
6534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6535echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6536 no_cache=0
6537 # Check whether --enable-help or --disable-help was given.
6538if test "${enable_help+set}" = set; then
6539 enableval="$enable_help"
6540
6541 if test "$enableval" = yes; then
6542 ac_cv_use_help='wxUSE_HELP=yes'
6543 else
6544 ac_cv_use_help='wxUSE_HELP=no'
6545 fi
6546
6547else
6548
6549 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6550 if test "x$LINE" != x ; then
6551 eval "DEFAULT_$LINE"
6552 else
6553 no_cache=1
6554 fi
6555
6556 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6557
6558fi;
6559
6560 eval "$ac_cv_use_help"
6561 if test "$no_cache" != 1; then
6562 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6563 fi
6564
6565 if test "$wxUSE_HELP" = yes; then
6566 echo "$as_me:$LINENO: result: yes" >&5
6567echo "${ECHO_T}yes" >&6
6568 else
6569 echo "$as_me:$LINENO: result: no" >&5
6570echo "${ECHO_T}no" >&6
6571 fi
6572
6573
6574 enablestring=
6575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6576echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6577 no_cache=0
6578 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6579if test "${enable_mshtmlhelp+set}" = set; then
6580 enableval="$enable_mshtmlhelp"
6581
6582 if test "$enableval" = yes; then
6583 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6584 else
6585 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6586 fi
6587
6588else
6589
6590 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6591 if test "x$LINE" != x ; then
6592 eval "DEFAULT_$LINE"
6593 else
6594 no_cache=1
6595 fi
6596
6597 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6598
6599fi;
6600
6601 eval "$ac_cv_use_mshtmlhelp"
6602 if test "$no_cache" != 1; then
6603 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6604 fi
6605
6606 if test "$wxUSE_MS_HTML_HELP" = yes; then
6607 echo "$as_me:$LINENO: result: yes" >&5
6608echo "${ECHO_T}yes" >&6
6609 else
6610 echo "$as_me:$LINENO: result: no" >&5
6611echo "${ECHO_T}no" >&6
6612 fi
6613
6614
6615 enablestring=
6616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6617echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6618 no_cache=0
6619 # Check whether --enable-html or --disable-html was given.
6620if test "${enable_html+set}" = set; then
6621 enableval="$enable_html"
6622
6623 if test "$enableval" = yes; then
6624 ac_cv_use_html='wxUSE_HTML=yes'
6625 else
6626 ac_cv_use_html='wxUSE_HTML=no'
6627 fi
6628
6629else
6630
6631 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6632 if test "x$LINE" != x ; then
6633 eval "DEFAULT_$LINE"
6634 else
6635 no_cache=1
6636 fi
6637
6638 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6639
6640fi;
6641
6642 eval "$ac_cv_use_html"
6643 if test "$no_cache" != 1; then
6644 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6645 fi
6646
6647 if test "$wxUSE_HTML" = yes; then
6648 echo "$as_me:$LINENO: result: yes" >&5
6649echo "${ECHO_T}yes" >&6
6650 else
6651 echo "$as_me:$LINENO: result: no" >&5
6652echo "${ECHO_T}no" >&6
6653 fi
6654
6655
6656 enablestring=
6657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6658echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6659 no_cache=0
6660 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6661if test "${enable_htmlhelp+set}" = set; then
6662 enableval="$enable_htmlhelp"
6663
6664 if test "$enableval" = yes; then
6665 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6666 else
6667 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6668 fi
6669
6670else
6671
6672 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6673 if test "x$LINE" != x ; then
6674 eval "DEFAULT_$LINE"
6675 else
6676 no_cache=1
6677 fi
6678
6679 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6680
6681fi;
6682
6683 eval "$ac_cv_use_htmlhelp"
6684 if test "$no_cache" != 1; then
6685 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6686 fi
6687
6688 if test "$wxUSE_WXHTML_HELP" = yes; then
6689 echo "$as_me:$LINENO: result: yes" >&5
6690echo "${ECHO_T}yes" >&6
6691 else
6692 echo "$as_me:$LINENO: result: no" >&5
6693echo "${ECHO_T}no" >&6
6694 fi
6695
6696
9a8f0513
VS
6697 enablestring=
6698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6699echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6700 no_cache=0
6701 # Check whether --enable-xrc or --disable-xrc was given.
6702if test "${enable_xrc+set}" = set; then
6703 enableval="$enable_xrc"
6704
6705 if test "$enableval" = yes; then
6706 ac_cv_use_xrc='wxUSE_XRC=yes'
6707 else
6708 ac_cv_use_xrc='wxUSE_XRC=no'
6709 fi
6710
6711else
6712
6713 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6714 if test "x$LINE" != x ; then
6715 eval "DEFAULT_$LINE"
6716 else
6717 no_cache=1
6718 fi
6719
6720 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6721
6722fi;
6723
6724 eval "$ac_cv_use_xrc"
6725 if test "$no_cache" != 1; then
6726 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6727 fi
6728
6729 if test "$wxUSE_XRC" = yes; then
6730 echo "$as_me:$LINENO: result: yes" >&5
6731echo "${ECHO_T}yes" >&6
6732 else
6733 echo "$as_me:$LINENO: result: no" >&5
6734echo "${ECHO_T}no" >&6
6735 fi
6736
6737
a848cd7e
SC
6738 enablestring=
6739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6740echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6741 no_cache=0
6742 # Check whether --enable-constraints or --disable-constraints was given.
6743if test "${enable_constraints+set}" = set; then
6744 enableval="$enable_constraints"
6745
6746 if test "$enableval" = yes; then
6747 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6748 else
6749 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6750 fi
6751
6752else
6753
6754 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6755 if test "x$LINE" != x ; then
6756 eval "DEFAULT_$LINE"
6757 else
6758 no_cache=1
6759 fi
6760
6761 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6762
6763fi;
6764
6765 eval "$ac_cv_use_constraints"
6766 if test "$no_cache" != 1; then
6767 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6768 fi
6769
6770 if test "$wxUSE_CONSTRAINTS" = yes; then
6771 echo "$as_me:$LINENO: result: yes" >&5
6772echo "${ECHO_T}yes" >&6
6773 else
6774 echo "$as_me:$LINENO: result: no" >&5
6775echo "${ECHO_T}no" >&6
6776 fi
6777
6778
6779 enablestring=
6780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6781echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6782 no_cache=0
6783 # Check whether --enable-printarch or --disable-printarch was given.
6784if test "${enable_printarch+set}" = set; then
6785 enableval="$enable_printarch"
6786
6787 if test "$enableval" = yes; then
6788 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6789 else
6790 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6791 fi
6792
6793else
6794
6795 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6796 if test "x$LINE" != x ; then
6797 eval "DEFAULT_$LINE"
6798 else
6799 no_cache=1
6800 fi
6801
6802 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6803
6804fi;
6805
6806 eval "$ac_cv_use_printarch"
6807 if test "$no_cache" != 1; then
6808 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6809 fi
6810
6811 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6812 echo "$as_me:$LINENO: result: yes" >&5
6813echo "${ECHO_T}yes" >&6
6814 else
6815 echo "$as_me:$LINENO: result: no" >&5
6816echo "${ECHO_T}no" >&6
6817 fi
6818
6819
6820 enablestring=
6821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6822echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6823 no_cache=0
6824 # Check whether --enable-mdi or --disable-mdi was given.
6825if test "${enable_mdi+set}" = set; then
6826 enableval="$enable_mdi"
6827
6828 if test "$enableval" = yes; then
8a7b1113 6829 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6830 else
8a7b1113 6831 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6832 fi
6833
6834else
6835
8a7b1113 6836 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6837 if test "x$LINE" != x ; then
6838 eval "DEFAULT_$LINE"
6839 else
6840 no_cache=1
6841 fi
6842
8a7b1113 6843 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6844
6845fi;
6846
6847 eval "$ac_cv_use_mdi"
6848 if test "$no_cache" != 1; then
6849 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6850 fi
6851
8a7b1113
VZ
6852 if test "$wxUSE_MDI" = yes; then
6853 echo "$as_me:$LINENO: result: yes" >&5
6854echo "${ECHO_T}yes" >&6
6855 else
6856 echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6
6858 fi
6859
6860
6861 enablestring=
6862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6863echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6864 no_cache=0
6865 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6866if test "${enable_mdidoc+set}" = set; then
6867 enableval="$enable_mdidoc"
6868
6869 if test "$enableval" = yes; then
6870 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6871 else
6872 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6873 fi
6874
6875else
6876
6877 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6878 if test "x$LINE" != x ; then
6879 eval "DEFAULT_$LINE"
6880 else
6881 no_cache=1
6882 fi
6883
6884 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6885
6886fi;
6887
6888 eval "$ac_cv_use_mdidoc"
6889 if test "$no_cache" != 1; then
6890 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6891 fi
6892
a848cd7e
SC
6893 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6894 echo "$as_me:$LINENO: result: yes" >&5
6895echo "${ECHO_T}yes" >&6
6896 else
6897 echo "$as_me:$LINENO: result: no" >&5
6898echo "${ECHO_T}no" >&6
6899 fi
6900
6901
6902 enablestring=
6903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6904echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6905 no_cache=0
6906 # Check whether --enable-loggui or --disable-loggui was given.
6907if test "${enable_loggui+set}" = set; then
6908 enableval="$enable_loggui"
6909
6910 if test "$enableval" = yes; then
6911 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6912 else
6913 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6914 fi
6915
6916else
6917
6918 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6919 if test "x$LINE" != x ; then
6920 eval "DEFAULT_$LINE"
6921 else
6922 no_cache=1
6923 fi
6924
6925 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6926
6927fi;
6928
6929 eval "$ac_cv_use_loggui"
6930 if test "$no_cache" != 1; then
6931 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6932 fi
6933
6934 if test "$wxUSE_LOGGUI" = yes; then
6935 echo "$as_me:$LINENO: result: yes" >&5
6936echo "${ECHO_T}yes" >&6
6937 else
6938 echo "$as_me:$LINENO: result: no" >&5
6939echo "${ECHO_T}no" >&6
6940 fi
6941
6942
6943 enablestring=
6944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6945echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6946 no_cache=0
6947 # Check whether --enable-logwin or --disable-logwin was given.
6948if test "${enable_logwin+set}" = set; then
6949 enableval="$enable_logwin"
6950
6951 if test "$enableval" = yes; then
6952 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6953 else
6954 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6955 fi
6956
6957else
6958
6959 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6960 if test "x$LINE" != x ; then
6961 eval "DEFAULT_$LINE"
6962 else
6963 no_cache=1
6964 fi
6965
6966 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6967
6968fi;
6969
6970 eval "$ac_cv_use_logwin"
6971 if test "$no_cache" != 1; then
6972 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6973 fi
6974
6975 if test "$wxUSE_LOGWINDOW" = yes; then
6976 echo "$as_me:$LINENO: result: yes" >&5
6977echo "${ECHO_T}yes" >&6
6978 else
6979 echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6
6981 fi
6982
6983
6984 enablestring=
6985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6986echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6987 no_cache=0
6988 # Check whether --enable-logdialog or --disable-logdialog was given.
6989if test "${enable_logdialog+set}" = set; then
6990 enableval="$enable_logdialog"
6991
6992 if test "$enableval" = yes; then
6993 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6994 else
6995 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6996 fi
6997
6998else
6999
7000 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7001 if test "x$LINE" != x ; then
7002 eval "DEFAULT_$LINE"
7003 else
7004 no_cache=1
7005 fi
7006
7007 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7008
7009fi;
7010
7011 eval "$ac_cv_use_logdialog"
7012 if test "$no_cache" != 1; then
7013 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7014 fi
7015
7016 if test "$wxUSE_LOGDIALOG" = yes; then
7017 echo "$as_me:$LINENO: result: yes" >&5
7018echo "${ECHO_T}yes" >&6
7019 else
7020 echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6
7022 fi
7023
7024
646b6ec1
VS
7025 enablestring=
7026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7027echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7028 no_cache=0
7029 # Check whether --enable-webkit or --disable-webkit was given.
7030if test "${enable_webkit+set}" = set; then
7031 enableval="$enable_webkit"
7032
7033 if test "$enableval" = yes; then
7034 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7035 else
7036 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7037 fi
7038
7039else
7040
7041 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7042 if test "x$LINE" != x ; then
7043 eval "DEFAULT_$LINE"
7044 else
7045 no_cache=1
7046 fi
7047
7048 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7049
7050fi;
7051
7052 eval "$ac_cv_use_webkit"
7053 if test "$no_cache" != 1; then
7054 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7055 fi
7056
7057 if test "$wxUSE_WEBKIT" = yes; then
7058 echo "$as_me:$LINENO: result: yes" >&5
7059echo "${ECHO_T}yes" >&6
7060 else
7061 echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6
7063 fi
7064
7065
91dea314
MW
7066 enablestring=
7067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7068echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7069 no_cache=0
7070 # Check whether --enable-html or --disable-html was given.
7071if test "${enable_html+set}" = set; then
7072 enableval="$enable_html"
7073
7074 if test "$enableval" = yes; then
7075 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7076 else
7077 ac_cv_use_html='wxUSE_RICHTEXT=no'
7078 fi
7079
7080else
7081
7082 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7083 if test "x$LINE" != x ; then
7084 eval "DEFAULT_$LINE"
7085 else
7086 no_cache=1
7087 fi
7088
7089 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7090
7091fi;
7092
7093 eval "$ac_cv_use_html"
7094 if test "$no_cache" != 1; then
7095 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7096 fi
7097
7098 if test "$wxUSE_RICHTEXT" = yes; then
7099 echo "$as_me:$LINENO: result: yes" >&5
7100echo "${ECHO_T}yes" >&6
7101 else
7102 echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6
7104 fi
7105
7106
a848cd7e
SC
7107
7108 enablestring=
7109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7110echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7111 no_cache=0
7112 # Check whether --enable-postscript or --disable-postscript was given.
7113if test "${enable_postscript+set}" = set; then
7114 enableval="$enable_postscript"
7115
7116 if test "$enableval" = yes; then
7117 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7118 else
7119 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7120 fi
7121
7122else
7123
7124 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7125 if test "x$LINE" != x ; then
7126 eval "DEFAULT_$LINE"
7127 else
7128 no_cache=1
7129 fi
7130
7131 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7132
7133fi;
7134
7135 eval "$ac_cv_use_postscript"
7136 if test "$no_cache" != 1; then
7137 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7138 fi
7139
7140 if test "$wxUSE_POSTSCRIPT" = yes; then
7141 echo "$as_me:$LINENO: result: yes" >&5
7142echo "${ECHO_T}yes" >&6
7143 else
7144 echo "$as_me:$LINENO: result: no" >&5
7145echo "${ECHO_T}no" >&6
7146 fi
7147
7148
7149
7150
7151
7152 enablestring=
7153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7154echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7155 no_cache=0
7156 # Check whether --enable-prologio or --disable-prologio was given.
7157if test "${enable_prologio+set}" = set; then
7158 enableval="$enable_prologio"
7159
7160 if test "$enableval" = yes; then
7161 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7162 else
7163 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7164 fi
7165
7166else
7167
7168 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7169 if test "x$LINE" != x ; then
7170 eval "DEFAULT_$LINE"
7171 else
7172 no_cache=1
7173 fi
7174
7175 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7176
7177fi;
7178
7179 eval "$ac_cv_use_prologio"
7180 if test "$no_cache" != 1; then
7181 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7182 fi
7183
7184 if test "$wxUSE_PROLOGIO" = yes; then
7185 echo "$as_me:$LINENO: result: yes" >&5
7186echo "${ECHO_T}yes" >&6
7187 else
7188 echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6
7190 fi
7191
7192
7193 enablestring=
7194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7195echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7196 no_cache=0
7197 # Check whether --enable-resources or --disable-resources was given.
7198if test "${enable_resources+set}" = set; then
7199 enableval="$enable_resources"
7200
7201 if test "$enableval" = yes; then
7202 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7203 else
7204 ac_cv_use_resources='wxUSE_RESOURCES=no'
7205 fi
7206
7207else
7208
7209 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7210 if test "x$LINE" != x ; then
7211 eval "DEFAULT_$LINE"
7212 else
7213 no_cache=1
7214 fi
7215
7216 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7217
7218fi;
7219
7220 eval "$ac_cv_use_resources"
7221 if test "$no_cache" != 1; then
7222 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7223 fi
7224
7225 if test "$wxUSE_RESOURCES" = yes; then
7226 echo "$as_me:$LINENO: result: yes" >&5
7227echo "${ECHO_T}yes" >&6
7228 else
7229 echo "$as_me:$LINENO: result: no" >&5
7230echo "${ECHO_T}no" >&6
7231 fi
7232
7233
7234
7235
7236 enablestring=
7237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7238echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7239 no_cache=0
7240 # Check whether --enable-clipboard or --disable-clipboard was given.
7241if test "${enable_clipboard+set}" = set; then
7242 enableval="$enable_clipboard"
7243
7244 if test "$enableval" = yes; then
7245 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7246 else
7247 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7248 fi
7249
7250else
7251
7252 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7260
7261fi;
7262
7263 eval "$ac_cv_use_clipboard"
7264 if test "$no_cache" != 1; then
7265 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7266 fi
7267
7268 if test "$wxUSE_CLIPBOARD" = yes; then
7269 echo "$as_me:$LINENO: result: yes" >&5
7270echo "${ECHO_T}yes" >&6
7271 else
7272 echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6
7274 fi
7275
7276
7277 enablestring=
7278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7279echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7280 no_cache=0
7281 # Check whether --enable-dnd or --disable-dnd was given.
7282if test "${enable_dnd+set}" = set; then
7283 enableval="$enable_dnd"
7284
7285 if test "$enableval" = yes; then
7286 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7287 else
7288 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7289 fi
7290
7291else
7292
7293 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7294 if test "x$LINE" != x ; then
7295 eval "DEFAULT_$LINE"
7296 else
7297 no_cache=1
7298 fi
7299
7300 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7301
7302fi;
7303
7304 eval "$ac_cv_use_dnd"
7305 if test "$no_cache" != 1; then
7306 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7307 fi
7308
7309 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7310 echo "$as_me:$LINENO: result: yes" >&5
7311echo "${ECHO_T}yes" >&6
7312 else
7313 echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6
7315 fi
7316
7317
7318 enablestring=
7319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7320echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7321 no_cache=0
7322 # Check whether --enable-metafile or --disable-metafile was given.
7323if test "${enable_metafile+set}" = set; then
7324 enableval="$enable_metafile"
7325
7326 if test "$enableval" = yes; then
7327 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7328 else
7329 ac_cv_use_metafile='wxUSE_METAFILE=no'
7330 fi
7331
7332else
7333
7334 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7335 if test "x$LINE" != x ; then
7336 eval "DEFAULT_$LINE"
7337 else
7338 no_cache=1
7339 fi
7340
7341 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7342
7343fi;
7344
7345 eval "$ac_cv_use_metafile"
7346 if test "$no_cache" != 1; then
7347 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7348 fi
7349
7350 if test "$wxUSE_METAFILE" = yes; then
7351 echo "$as_me:$LINENO: result: yes" >&5
7352echo "${ECHO_T}yes" >&6
7353 else
7354 echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6
7356 fi
7357
7358
7359
7360
7361
7362 enablestring=
7363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7364echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7365 no_cache=0
7366 # Check whether --enable-controls or --disable-controls was given.
7367if test "${enable_controls+set}" = set; then
7368 enableval="$enable_controls"
7369
7370 if test "$enableval" = yes; then
7371 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7372 else
7373 ac_cv_use_controls='wxUSE_CONTROLS=no'
7374 fi
7375
7376else
7377
7378 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7379 if test "x$LINE" != x ; then
7380 eval "DEFAULT_$LINE"
7381 else
7382 no_cache=1
7383 fi
7384
7385 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7386
7387fi;
7388
7389 eval "$ac_cv_use_controls"
7390 if test "$no_cache" != 1; then
7391 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7392 fi
7393
7394 if test "$wxUSE_CONTROLS" = yes; then
7395 echo "$as_me:$LINENO: result: yes" >&5
7396echo "${ECHO_T}yes" >&6
7397 else
7398 echo "$as_me:$LINENO: result: no" >&5
7399echo "${ECHO_T}no" >&6
7400 fi
7401
7402
7403if test "$wxUSE_CONTROLS" = "yes"; then
7404 DEFAULT_wxUSE_ACCEL=yes
7405 DEFAULT_wxUSE_BMPBUTTON=yes
7406 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7407 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7408 DEFAULT_wxUSE_CARET=yes
7409 DEFAULT_wxUSE_COMBOBOX=yes
7410 DEFAULT_wxUSE_CHECKBOX=yes
7411 DEFAULT_wxUSE_CHECKLISTBOX=yes
7412 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7413 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7414 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7415 DEFAULT_wxUSE_GAUGE=yes
7416 DEFAULT_wxUSE_GRID=yes
20e34ecc 7417 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7418 DEFAULT_wxUSE_IMAGLIST=yes
7419 DEFAULT_wxUSE_LISTBOOK=yes
7420 DEFAULT_wxUSE_LISTBOX=yes
7421 DEFAULT_wxUSE_LISTCTRL=yes
7422 DEFAULT_wxUSE_NOTEBOOK=yes
7423 DEFAULT_wxUSE_RADIOBOX=yes
7424 DEFAULT_wxUSE_RADIOBTN=yes
7425 DEFAULT_wxUSE_SASH=yes
7426 DEFAULT_wxUSE_SCROLLBAR=yes
7427 DEFAULT_wxUSE_SLIDER=yes
7428 DEFAULT_wxUSE_SPINBTN=yes
7429 DEFAULT_wxUSE_SPINCTRL=yes
7430 DEFAULT_wxUSE_SPLITTER=yes
7431 DEFAULT_wxUSE_STATBMP=yes
7432 DEFAULT_wxUSE_STATBOX=yes
7433 DEFAULT_wxUSE_STATLINE=yes
7434 DEFAULT_wxUSE_STATUSBAR=yes
7435 DEFAULT_wxUSE_TAB_DIALOG=yes
7436 DEFAULT_wxUSE_TOGGLEBTN=yes
7437 DEFAULT_wxUSE_TOOLBAR=yes
7438 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7439 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7440 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7441 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
7442 DEFAULT_wxUSE_TREECTRL=yes
7443 DEFAULT_wxUSE_POPUPWIN=yes
7444 DEFAULT_wxUSE_TIPWINDOW=yes
7445elif test "$wxUSE_CONTROLS" = "no"; then
7446 DEFAULT_wxUSE_ACCEL=no
7447 DEFAULT_wxUSE_BMPBUTTON=no
7448 DEFAULT_wxUSE_BUTTON=no
7449 DEFAULT_wxUSE_CALCTRL=no
7450 DEFAULT_wxUSE_CARET=no
7451 DEFAULT_wxUSE_COMBOBOX=no
7452 DEFAULT_wxUSE_CHECKBOX=no
7453 DEFAULT_wxUSE_CHECKLISTBOX=no
7454 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7455 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7456 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7457 DEFAULT_wxUSE_GAUGE=no
7458 DEFAULT_wxUSE_GRID=no
20e34ecc 7459 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7460 DEFAULT_wxUSE_IMAGLIST=no
7461 DEFAULT_wxUSE_LISTBOOK=no
7462 DEFAULT_wxUSE_LISTBOX=no
7463 DEFAULT_wxUSE_LISTCTRL=no
7464 DEFAULT_wxUSE_NOTEBOOK=no
7465 DEFAULT_wxUSE_RADIOBOX=no
7466 DEFAULT_wxUSE_RADIOBTN=no
7467 DEFAULT_wxUSE_SASH=no
7468 DEFAULT_wxUSE_SCROLLBAR=no
7469 DEFAULT_wxUSE_SLIDER=no
7470 DEFAULT_wxUSE_SPINBTN=no
7471 DEFAULT_wxUSE_SPINCTRL=no
7472 DEFAULT_wxUSE_SPLITTER=no
7473 DEFAULT_wxUSE_STATBMP=no
7474 DEFAULT_wxUSE_STATBOX=no
7475 DEFAULT_wxUSE_STATLINE=no
7476 DEFAULT_wxUSE_STATUSBAR=no
7477 DEFAULT_wxUSE_TAB_DIALOG=no
7478 DEFAULT_wxUSE_TOGGLEBTN=no
7479 DEFAULT_wxUSE_TOOLBAR=no
7480 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7481 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7482 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7483 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
7484 DEFAULT_wxUSE_TREECTRL=no
7485 DEFAULT_wxUSE_POPUPWIN=no
7486 DEFAULT_wxUSE_TIPWINDOW=no
7487fi
7488
a848cd7e
SC
7489
7490 enablestring=
7491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7492echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7493 no_cache=0
7494 # Check whether --enable-accel or --disable-accel was given.
7495if test "${enable_accel+set}" = set; then
7496 enableval="$enable_accel"
7497
7498 if test "$enableval" = yes; then
7499 ac_cv_use_accel='wxUSE_ACCEL=yes'
7500 else
7501 ac_cv_use_accel='wxUSE_ACCEL=no'
7502 fi
7503
7504else
7505
7506 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7507 if test "x$LINE" != x ; then
7508 eval "DEFAULT_$LINE"
7509 else
7510 no_cache=1
7511 fi
7512
7513 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7514
7515fi;
7516
7517 eval "$ac_cv_use_accel"
7518 if test "$no_cache" != 1; then
7519 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7520 fi
7521
7522 if test "$wxUSE_ACCEL" = yes; then
7523 echo "$as_me:$LINENO: result: yes" >&5
7524echo "${ECHO_T}yes" >&6
7525 else
7526 echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6
7528 fi
7529
7530
7531 enablestring=
7532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7533echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7534 no_cache=0
7535 # Check whether --enable-button or --disable-button was given.
7536if test "${enable_button+set}" = set; then
7537 enableval="$enable_button"
7538
7539 if test "$enableval" = yes; then
7540 ac_cv_use_button='wxUSE_BUTTON=yes'
7541 else
7542 ac_cv_use_button='wxUSE_BUTTON=no'
7543 fi
7544
7545else
7546
7547 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7548 if test "x$LINE" != x ; then
7549 eval "DEFAULT_$LINE"
7550 else
7551 no_cache=1
7552 fi
7553
7554 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7555
7556fi;
7557
7558 eval "$ac_cv_use_button"
7559 if test "$no_cache" != 1; then
7560 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7561 fi
7562
7563 if test "$wxUSE_BUTTON" = yes; then
7564 echo "$as_me:$LINENO: result: yes" >&5
7565echo "${ECHO_T}yes" >&6
7566 else
7567 echo "$as_me:$LINENO: result: no" >&5
7568echo "${ECHO_T}no" >&6
7569 fi
7570
7571
7572 enablestring=
7573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7574echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7575 no_cache=0
7576 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7577if test "${enable_bmpbutton+set}" = set; then
7578 enableval="$enable_bmpbutton"
7579
7580 if test "$enableval" = yes; then
7581 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7582 else
7583 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7584 fi
7585
7586else
7587
7588 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7589 if test "x$LINE" != x ; then
7590 eval "DEFAULT_$LINE"
7591 else
7592 no_cache=1
7593 fi
7594
7595 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7596
7597fi;
7598
7599 eval "$ac_cv_use_bmpbutton"
7600 if test "$no_cache" != 1; then
7601 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7602 fi
7603
7604 if test "$wxUSE_BMPBUTTON" = yes; then
7605 echo "$as_me:$LINENO: result: yes" >&5
7606echo "${ECHO_T}yes" >&6
7607 else
7608 echo "$as_me:$LINENO: result: no" >&5
7609echo "${ECHO_T}no" >&6
7610 fi
7611
7612
7613 enablestring=
7614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7615echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7616 no_cache=0
7617 # Check whether --enable-calendar or --disable-calendar was given.
7618if test "${enable_calendar+set}" = set; then
7619 enableval="$enable_calendar"
7620
7621 if test "$enableval" = yes; then
7622 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7623 else
7624 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7625 fi
7626
7627else
7628
7629 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7630 if test "x$LINE" != x ; then
7631 eval "DEFAULT_$LINE"
7632 else
7633 no_cache=1
7634 fi
7635
7636 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7637
7638fi;
7639
7640 eval "$ac_cv_use_calendar"
7641 if test "$no_cache" != 1; then
7642 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7643 fi
7644
7645 if test "$wxUSE_CALCTRL" = yes; then
7646 echo "$as_me:$LINENO: result: yes" >&5
7647echo "${ECHO_T}yes" >&6
7648 else
7649 echo "$as_me:$LINENO: result: no" >&5
7650echo "${ECHO_T}no" >&6
7651 fi
7652
7653
7654 enablestring=
7655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7656echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7657 no_cache=0
7658 # Check whether --enable-caret or --disable-caret was given.
7659if test "${enable_caret+set}" = set; then
7660 enableval="$enable_caret"
7661
7662 if test "$enableval" = yes; then
7663 ac_cv_use_caret='wxUSE_CARET=yes'
7664 else
7665 ac_cv_use_caret='wxUSE_CARET=no'
7666 fi
7667
7668else
7669
7670 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7671 if test "x$LINE" != x ; then
7672 eval "DEFAULT_$LINE"
7673 else
7674 no_cache=1
7675 fi
7676
7677 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7678
7679fi;
7680
7681 eval "$ac_cv_use_caret"
7682 if test "$no_cache" != 1; then
7683 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7684 fi
7685
7686 if test "$wxUSE_CARET" = yes; then
7687 echo "$as_me:$LINENO: result: yes" >&5
7688echo "${ECHO_T}yes" >&6
7689 else
7690 echo "$as_me:$LINENO: result: no" >&5
7691echo "${ECHO_T}no" >&6
7692 fi
7693
7694
7695 enablestring=
7696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7697echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7698 no_cache=0
7699 # Check whether --enable-checkbox or --disable-checkbox was given.
7700if test "${enable_checkbox+set}" = set; then
7701 enableval="$enable_checkbox"
7702
7703 if test "$enableval" = yes; then
7704 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7705 else
7706 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7707 fi
7708
7709else
7710
7711 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7712 if test "x$LINE" != x ; then
7713 eval "DEFAULT_$LINE"
7714 else
7715 no_cache=1
7716 fi
7717
7718 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7719
7720fi;
7721
7722 eval "$ac_cv_use_checkbox"
7723 if test "$no_cache" != 1; then
7724 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7725 fi
7726
7727 if test "$wxUSE_CHECKBOX" = yes; then
7728 echo "$as_me:$LINENO: result: yes" >&5
7729echo "${ECHO_T}yes" >&6
7730 else
7731 echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6
7733 fi
7734
7735
7736 enablestring=
7737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7738echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7739 no_cache=0
7740 # Check whether --enable-checklst or --disable-checklst was given.
7741if test "${enable_checklst+set}" = set; then
7742 enableval="$enable_checklst"
7743
7744 if test "$enableval" = yes; then
7745 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7746 else
7747 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7748 fi
7749
7750else
7751
7752 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7753 if test "x$LINE" != x ; then
7754 eval "DEFAULT_$LINE"
7755 else
7756 no_cache=1
7757 fi
7758
7759 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7760
7761fi;
7762
7763 eval "$ac_cv_use_checklst"
7764 if test "$no_cache" != 1; then
7765 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7766 fi
7767
7768 if test "$wxUSE_CHECKLST" = yes; then
7769 echo "$as_me:$LINENO: result: yes" >&5
7770echo "${ECHO_T}yes" >&6
7771 else
7772 echo "$as_me:$LINENO: result: no" >&5
7773echo "${ECHO_T}no" >&6
7774 fi
7775
7776
7777 enablestring=
7778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7779echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7780 no_cache=0
7781 # Check whether --enable-choice or --disable-choice was given.
7782if test "${enable_choice+set}" = set; then
7783 enableval="$enable_choice"
7784
7785 if test "$enableval" = yes; then
7786 ac_cv_use_choice='wxUSE_CHOICE=yes'
7787 else
7788 ac_cv_use_choice='wxUSE_CHOICE=no'
7789 fi
7790
7791else
7792
7793 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7794 if test "x$LINE" != x ; then
7795 eval "DEFAULT_$LINE"
7796 else
7797 no_cache=1
7798 fi
7799
7800 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7801
7802fi;
7803
7804 eval "$ac_cv_use_choice"
7805 if test "$no_cache" != 1; then
7806 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7807 fi
7808
7809 if test "$wxUSE_CHOICE" = yes; then
7810 echo "$as_me:$LINENO: result: yes" >&5
7811echo "${ECHO_T}yes" >&6
7812 else
7813 echo "$as_me:$LINENO: result: no" >&5
7814echo "${ECHO_T}no" >&6
7815 fi
7816
7817
92bbdbcd
WS
7818 enablestring=
7819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7820echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7821 no_cache=0
7822 # Check whether --enable-choicebook or --disable-choicebook was given.
7823if test "${enable_choicebook+set}" = set; then
7824 enableval="$enable_choicebook"
7825
7826 if test "$enableval" = yes; then
7827 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7828 else
7829 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7830 fi
7831
7832else
7833
7834 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7835 if test "x$LINE" != x ; then
7836 eval "DEFAULT_$LINE"
7837 else
7838 no_cache=1
7839 fi
7840
7841 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7842
7843fi;
7844
7845 eval "$ac_cv_use_choicebook"
7846 if test "$no_cache" != 1; then
7847 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7848 fi
7849
7850 if test "$wxUSE_CHOICEBOOK" = yes; then
7851 echo "$as_me:$LINENO: result: yes" >&5
7852echo "${ECHO_T}yes" >&6
7853 else
7854 echo "$as_me:$LINENO: result: no" >&5
7855echo "${ECHO_T}no" >&6
7856 fi
7857
7858
a848cd7e
SC
7859 enablestring=
7860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7861echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7862 no_cache=0
7863 # Check whether --enable-combobox or --disable-combobox was given.
7864if test "${enable_combobox+set}" = set; then
7865 enableval="$enable_combobox"
7866
7867 if test "$enableval" = yes; then
7868 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7869 else
7870 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7871 fi
7872
7873else
7874
7875 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7876 if test "x$LINE" != x ; then
7877 eval "DEFAULT_$LINE"
7878 else
7879 no_cache=1
7880 fi
7881
7882 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7883
7884fi;
7885
7886 eval "$ac_cv_use_combobox"
7887 if test "$no_cache" != 1; then
7888 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7889 fi
7890
7891 if test "$wxUSE_COMBOBOX" = yes; then
7892 echo "$as_me:$LINENO: result: yes" >&5
7893echo "${ECHO_T}yes" >&6
7894 else
7895 echo "$as_me:$LINENO: result: no" >&5
7896echo "${ECHO_T}no" >&6
7897 fi
7898
7899
da98e9be
VZ
7900 enablestring=
7901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7902echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7903 no_cache=0
7904 # Check whether --enable-datepick or --disable-datepick was given.
7905if test "${enable_datepick+set}" = set; then
7906 enableval="$enable_datepick"
7907
7908 if test "$enableval" = yes; then
7909 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7910 else
7911 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7912 fi
7913
7914else
7915
7916 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7917 if test "x$LINE" != x ; then
7918 eval "DEFAULT_$LINE"
7919 else
7920 no_cache=1
7921 fi
7922
7923 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7924
7925fi;
7926
7927 eval "$ac_cv_use_datepick"
7928 if test "$no_cache" != 1; then
7929 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7930 fi
7931
7932 if test "$wxUSE_DATEPICKCTRL" = yes; then
7933 echo "$as_me:$LINENO: result: yes" >&5
7934echo "${ECHO_T}yes" >&6
7935 else
7936 echo "$as_me:$LINENO: result: no" >&5
7937echo "${ECHO_T}no" >&6
7938 fi
7939
7940
a848cd7e
SC
7941 enablestring=
7942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7943echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7944 no_cache=0
7945 # Check whether --enable-display or --disable-display was given.
7946if test "${enable_display+set}" = set; then
7947 enableval="$enable_display"
7948
7949 if test "$enableval" = yes; then
7950 ac_cv_use_display='wxUSE_DISPLAY=yes'
7951 else
7952 ac_cv_use_display='wxUSE_DISPLAY=no'
7953 fi
7954
7955else
7956
7957 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7958 if test "x$LINE" != x ; then
7959 eval "DEFAULT_$LINE"
7960 else
7961 no_cache=1
7962 fi
7963
7964 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7965
7966fi;
7967
7968 eval "$ac_cv_use_display"
7969 if test "$no_cache" != 1; then
7970 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7971 fi
7972
7973 if test "$wxUSE_DISPLAY" = yes; then
7974 echo "$as_me:$LINENO: result: yes" >&5
7975echo "${ECHO_T}yes" >&6
7976 else
7977 echo "$as_me:$LINENO: result: no" >&5
7978echo "${ECHO_T}no" >&6
7979 fi
7980
7981
7982 enablestring=
7983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7984echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7985 no_cache=0
7986 # Check whether --enable-gauge or --disable-gauge was given.
7987if test "${enable_gauge+set}" = set; then
7988 enableval="$enable_gauge"
7989
7990 if test "$enableval" = yes; then
7991 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7992 else
7993 ac_cv_use_gauge='wxUSE_GAUGE=no'
7994 fi
7995
7996else
7997
7998 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7999 if test "x$LINE" != x ; then
8000 eval "DEFAULT_$LINE"
8001 else
8002 no_cache=1
8003 fi
8004
8005 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8006
8007fi;
8008
8009 eval "$ac_cv_use_gauge"
8010 if test "$no_cache" != 1; then
8011 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8012 fi
8013
8014 if test "$wxUSE_GAUGE" = yes; then
8015 echo "$as_me:$LINENO: result: yes" >&5
8016echo "${ECHO_T}yes" >&6
8017 else
8018 echo "$as_me:$LINENO: result: no" >&5
8019echo "${ECHO_T}no" >&6
8020 fi
8021
8022
8023 enablestring=
8024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8025echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8026 no_cache=0
8027 # Check whether --enable-grid or --disable-grid was given.
8028if test "${enable_grid+set}" = set; then
8029 enableval="$enable_grid"
8030
8031 if test "$enableval" = yes; then
8032 ac_cv_use_grid='wxUSE_GRID=yes'
8033 else
8034 ac_cv_use_grid='wxUSE_GRID=no'
8035 fi
8036
8037else
8038
8039 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8040 if test "x$LINE" != x ; then
8041 eval "DEFAULT_$LINE"
8042 else
8043 no_cache=1
8044 fi
8045
8046 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8047
8048fi;
8049
8050 eval "$ac_cv_use_grid"
8051 if test "$no_cache" != 1; then
8052 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8053 fi
8054
8055 if test "$wxUSE_GRID" = yes; then
8056 echo "$as_me:$LINENO: result: yes" >&5
8057echo "${ECHO_T}yes" >&6
8058 else
8059 echo "$as_me:$LINENO: result: no" >&5
8060echo "${ECHO_T}no" >&6
8061 fi
8062
8063
20e34ecc
RR
8064 enablestring=
8065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8066echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8067 no_cache=0
8068 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8069if test "${enable_dataviewctrl+set}" = set; then
8070 enableval="$enable_dataviewctrl"
8071
8072 if test "$enableval" = yes; then
8073 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8074 else
8075 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8076 fi
8077
8078else
8079
8080 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8081 if test "x$LINE" != x ; then
8082 eval "DEFAULT_$LINE"
8083 else
8084 no_cache=1
8085 fi
8086
8087 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8088
8089fi;
8090
8091 eval "$ac_cv_use_dataviewctrl"
8092 if test "$no_cache" != 1; then
8093 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8094 fi
8095
8096 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8097 echo "$as_me:$LINENO: result: yes" >&5
8098echo "${ECHO_T}yes" >&6
8099 else
8100 echo "$as_me:$LINENO: result: no" >&5
8101echo "${ECHO_T}no" >&6
8102 fi
8103
8104
a848cd7e
SC
8105 enablestring=
8106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8107echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8108 no_cache=0
8109 # Check whether --enable-imaglist or --disable-imaglist was given.
8110if test "${enable_imaglist+set}" = set; then
8111 enableval="$enable_imaglist"
8112
8113 if test "$enableval" = yes; then
8114 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8115 else
8116 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8117 fi
8118
8119else
8120
8121 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8122 if test "x$LINE" != x ; then
8123 eval "DEFAULT_$LINE"
8124 else
8125 no_cache=1
8126 fi
8127
8128 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8129
8130fi;
8131
8132 eval "$ac_cv_use_imaglist"
8133 if test "$no_cache" != 1; then
8134 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8135 fi
8136
8137 if test "$wxUSE_IMAGLIST" = yes; then
8138 echo "$as_me:$LINENO: result: yes" >&5
8139echo "${ECHO_T}yes" >&6
8140 else
8141 echo "$as_me:$LINENO: result: no" >&5
8142echo "${ECHO_T}no" >&6
8143 fi
8144
8145
8146 enablestring=
8147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8148echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8149 no_cache=0
8150 # Check whether --enable-listbook or --disable-listbook was given.
8151if test "${enable_listbook+set}" = set; then
8152 enableval="$enable_listbook"
8153
8154 if test "$enableval" = yes; then
8155 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8156 else
8157 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8158 fi
8159
8160else
8161
8162 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8163 if test "x$LINE" != x ; then
8164 eval "DEFAULT_$LINE"
8165 else
8166 no_cache=1
8167 fi
8168
8169 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8170
8171fi;
8172
8173 eval "$ac_cv_use_listbook"
8174 if test "$no_cache" != 1; then
8175 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8176 fi
8177
8178 if test "$wxUSE_LISTBOOK" = yes; then
8179 echo "$as_me:$LINENO: result: yes" >&5
8180echo "${ECHO_T}yes" >&6
8181 else
8182 echo "$as_me:$LINENO: result: no" >&5
8183echo "${ECHO_T}no" >&6
8184 fi
8185
8186
8187 enablestring=
8188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8189echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8190 no_cache=0
8191 # Check whether --enable-listbox or --disable-listbox was given.
8192if test "${enable_listbox+set}" = set; then
8193 enableval="$enable_listbox"
8194
8195 if test "$enableval" = yes; then
8196 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8197 else
8198 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8199 fi
8200
8201else
8202
8203 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8204 if test "x$LINE" != x ; then
8205 eval "DEFAULT_$LINE"
8206 else
8207 no_cache=1
8208 fi
8209
8210 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8211
8212fi;
8213
8214 eval "$ac_cv_use_listbox"
8215 if test "$no_cache" != 1; then
8216 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8217 fi
8218
8219 if test "$wxUSE_LISTBOX" = yes; then
8220 echo "$as_me:$LINENO: result: yes" >&5
8221echo "${ECHO_T}yes" >&6
8222 else
8223 echo "$as_me:$LINENO: result: no" >&5
8224echo "${ECHO_T}no" >&6
8225 fi
8226
8227
8228 enablestring=
8229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8230echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8231 no_cache=0
8232 # Check whether --enable-listctrl or --disable-listctrl was given.
8233if test "${enable_listctrl+set}" = set; then
8234 enableval="$enable_listctrl"
8235
8236 if test "$enableval" = yes; then
8237 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8238 else
8239 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8240 fi
8241
8242else
8243
8244 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8245 if test "x$LINE" != x ; then
8246 eval "DEFAULT_$LINE"
8247 else
8248 no_cache=1
8249 fi
8250
8251 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8252
8253fi;
8254
8255 eval "$ac_cv_use_listctrl"
8256 if test "$no_cache" != 1; then
8257 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8258 fi
8259
8260 if test "$wxUSE_LISTCTRL" = yes; then
8261 echo "$as_me:$LINENO: result: yes" >&5
8262echo "${ECHO_T}yes" >&6
8263 else
8264 echo "$as_me:$LINENO: result: no" >&5
8265echo "${ECHO_T}no" >&6
8266 fi
8267
8268
8269 enablestring=
8270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8271echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8272 no_cache=0
8273 # Check whether --enable-notebook or --disable-notebook was given.
8274if test "${enable_notebook+set}" = set; then
8275 enableval="$enable_notebook"
8276
8277 if test "$enableval" = yes; then
8278 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8279 else
8280 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8281 fi
8282
8283else
8284
8285 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8286 if test "x$LINE" != x ; then
8287 eval "DEFAULT_$LINE"
8288 else
8289 no_cache=1
8290 fi
8291
8292 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8293
8294fi;
8295
8296 eval "$ac_cv_use_notebook"
8297 if test "$no_cache" != 1; then
8298 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8299 fi
8300
8301 if test "$wxUSE_NOTEBOOK" = yes; then
8302 echo "$as_me:$LINENO: result: yes" >&5
8303echo "${ECHO_T}yes" >&6
8304 else
8305 echo "$as_me:$LINENO: result: no" >&5
8306echo "${ECHO_T}no" >&6
8307 fi
8308
8309
8310 enablestring=
8311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8312echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8313 no_cache=0
8314 # Check whether --enable-radiobox or --disable-radiobox was given.
8315if test "${enable_radiobox+set}" = set; then
8316 enableval="$enable_radiobox"
8317
8318 if test "$enableval" = yes; then
8319 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8320 else
8321 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8322 fi
8323
8324else
8325
8326 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8327 if test "x$LINE" != x ; then
8328 eval "DEFAULT_$LINE"
8329 else
8330 no_cache=1
8331 fi
8332
8333 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8334
8335fi;
8336
8337 eval "$ac_cv_use_radiobox"
8338 if test "$no_cache" != 1; then
8339 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8340 fi
8341
8342 if test "$wxUSE_RADIOBOX" = yes; then
8343 echo "$as_me:$LINENO: result: yes" >&5
8344echo "${ECHO_T}yes" >&6
8345 else
8346 echo "$as_me:$LINENO: result: no" >&5
8347echo "${ECHO_T}no" >&6
8348 fi
8349
8350
8351 enablestring=
8352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8353echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8354 no_cache=0
8355 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8356if test "${enable_radiobtn+set}" = set; then
8357 enableval="$enable_radiobtn"
8358
8359 if test "$enableval" = yes; then
8360 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8361 else
8362 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8363 fi
8364
8365else
8366
8367 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8368 if test "x$LINE" != x ; then
8369 eval "DEFAULT_$LINE"
8370 else
8371 no_cache=1
8372 fi
8373
8374 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8375
8376fi;
8377
8378 eval "$ac_cv_use_radiobtn"
8379 if test "$no_cache" != 1; then
8380 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8381 fi
8382
8383 if test "$wxUSE_RADIOBTN" = yes; then
8384 echo "$as_me:$LINENO: result: yes" >&5
8385echo "${ECHO_T}yes" >&6
8386 else
8387 echo "$as_me:$LINENO: result: no" >&5
8388echo "${ECHO_T}no" >&6
8389 fi
8390
8391
8392 enablestring=
8393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8394echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8395 no_cache=0
8396 # Check whether --enable-sash or --disable-sash was given.
8397if test "${enable_sash+set}" = set; then
8398 enableval="$enable_sash"
8399
8400 if test "$enableval" = yes; then
8401 ac_cv_use_sash='wxUSE_SASH=yes'
8402 else
8403 ac_cv_use_sash='wxUSE_SASH=no'
8404 fi
8405
8406else
8407
8408 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8409 if test "x$LINE" != x ; then
8410 eval "DEFAULT_$LINE"
8411 else
8412 no_cache=1
8413 fi
8414
8415 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8416
8417fi;
8418
8419 eval "$ac_cv_use_sash"
8420 if test "$no_cache" != 1; then
8421 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8422 fi
8423
8424 if test "$wxUSE_SASH" = yes; then
8425 echo "$as_me:$LINENO: result: yes" >&5
8426echo "${ECHO_T}yes" >&6
8427 else
8428 echo "$as_me:$LINENO: result: no" >&5
8429echo "${ECHO_T}no" >&6
8430 fi
8431
8432
8433 enablestring=
8434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8435echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8436 no_cache=0
8437 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8438if test "${enable_scrollbar+set}" = set; then
8439 enableval="$enable_scrollbar"
8440
8441 if test "$enableval" = yes; then
8442 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8443 else
8444 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8445 fi
8446
8447else
8448
8449 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8450 if test "x$LINE" != x ; then
8451 eval "DEFAULT_$LINE"
8452 else
8453 no_cache=1
8454 fi
8455
8456 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8457
8458fi;
8459
8460 eval "$ac_cv_use_scrollbar"
8461 if test "$no_cache" != 1; then
8462 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8463 fi
8464
8465 if test "$wxUSE_SCROLLBAR" = yes; then
8466 echo "$as_me:$LINENO: result: yes" >&5
8467echo "${ECHO_T}yes" >&6
8468 else
8469 echo "$as_me:$LINENO: result: no" >&5
8470echo "${ECHO_T}no" >&6
8471 fi
8472
8473
8474 enablestring=
8475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8476echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8477 no_cache=0
8478 # Check whether --enable-slider or --disable-slider was given.
8479if test "${enable_slider+set}" = set; then
8480 enableval="$enable_slider"
8481
8482 if test "$enableval" = yes; then
8483 ac_cv_use_slider='wxUSE_SLIDER=yes'
8484 else
8485 ac_cv_use_slider='wxUSE_SLIDER=no'
8486 fi
8487
8488else
8489
8490 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8491 if test "x$LINE" != x ; then
8492 eval "DEFAULT_$LINE"
8493 else
8494 no_cache=1
8495 fi
8496
8497 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8498
8499fi;
8500
8501 eval "$ac_cv_use_slider"
8502 if test "$no_cache" != 1; then
8503 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8504 fi
8505
8506 if test "$wxUSE_SLIDER" = yes; then
8507 echo "$as_me:$LINENO: result: yes" >&5
8508echo "${ECHO_T}yes" >&6
8509 else
8510 echo "$as_me:$LINENO: result: no" >&5
8511echo "${ECHO_T}no" >&6
8512 fi
8513
8514
8515 enablestring=
8516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8517echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8518 no_cache=0
8519 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8520if test "${enable_spinbtn+set}" = set; then
8521 enableval="$enable_spinbtn"
8522
8523 if test "$enableval" = yes; then
8524 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8525 else
8526 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8527 fi
8528
8529else
8530
8531 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8532 if test "x$LINE" != x ; then
8533 eval "DEFAULT_$LINE"
8534 else
8535 no_cache=1
8536 fi
8537
8538 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8539
8540fi;
8541
8542 eval "$ac_cv_use_spinbtn"
8543 if test "$no_cache" != 1; then
8544 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8545 fi
8546
8547 if test "$wxUSE_SPINBTN" = yes; then
8548 echo "$as_me:$LINENO: result: yes" >&5
8549echo "${ECHO_T}yes" >&6
8550 else
8551 echo "$as_me:$LINENO: result: no" >&5
8552echo "${ECHO_T}no" >&6
8553 fi
8554
8555
8556 enablestring=
8557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8558echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8559 no_cache=0
8560 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8561if test "${enable_spinctrl+set}" = set; then
8562 enableval="$enable_spinctrl"
8563
8564 if test "$enableval" = yes; then
8565 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8566 else
8567 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8568 fi
8569
8570else
8571
8572 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8573 if test "x$LINE" != x ; then
8574 eval "DEFAULT_$LINE"
8575 else
8576 no_cache=1
8577 fi
8578
8579 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8580
8581fi;
8582
8583 eval "$ac_cv_use_spinctrl"
8584 if test "$no_cache" != 1; then
8585 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8586 fi
8587
8588 if test "$wxUSE_SPINCTRL" = yes; then
8589 echo "$as_me:$LINENO: result: yes" >&5
8590echo "${ECHO_T}yes" >&6
8591 else
8592 echo "$as_me:$LINENO: result: no" >&5
8593echo "${ECHO_T}no" >&6
8594 fi
8595
8596
8597 enablestring=
8598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8599echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8600 no_cache=0
8601 # Check whether --enable-splitter or --disable-splitter was given.
8602if test "${enable_splitter+set}" = set; then
8603 enableval="$enable_splitter"
8604
8605 if test "$enableval" = yes; then
8606 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8607 else
8608 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8609 fi
8610
8611else
8612
8613 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8614 if test "x$LINE" != x ; then
8615 eval "DEFAULT_$LINE"
8616 else
8617 no_cache=1
8618 fi
8619
8620 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8621
8622fi;
8623
8624 eval "$ac_cv_use_splitter"
8625 if test "$no_cache" != 1; then
8626 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8627 fi
8628
8629 if test "$wxUSE_SPLITTER" = yes; then
8630 echo "$as_me:$LINENO: result: yes" >&5
8631echo "${ECHO_T}yes" >&6
8632 else
8633 echo "$as_me:$LINENO: result: no" >&5
8634echo "${ECHO_T}no" >&6
8635 fi
8636
8637
8638 enablestring=
8639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8640echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8641 no_cache=0
8642 # Check whether --enable-statbmp or --disable-statbmp was given.
8643if test "${enable_statbmp+set}" = set; then
8644 enableval="$enable_statbmp"
8645
8646 if test "$enableval" = yes; then
8647 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8648 else
8649 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8650 fi
8651
8652else
8653
8654 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8655 if test "x$LINE" != x ; then
8656 eval "DEFAULT_$LINE"
8657 else
8658 no_cache=1
8659 fi
8660
8661 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8662
8663fi;
8664
8665 eval "$ac_cv_use_statbmp"
8666 if test "$no_cache" != 1; then
8667 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8668 fi
8669
8670 if test "$wxUSE_STATBMP" = yes; then
8671 echo "$as_me:$LINENO: result: yes" >&5
8672echo "${ECHO_T}yes" >&6
8673 else
8674 echo "$as_me:$LINENO: result: no" >&5
8675echo "${ECHO_T}no" >&6
8676 fi
8677
8678
8679 enablestring=
8680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8681echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8682 no_cache=0
8683 # Check whether --enable-statbox or --disable-statbox was given.
8684if test "${enable_statbox+set}" = set; then
8685 enableval="$enable_statbox"
8686
8687 if test "$enableval" = yes; then
8688 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8689 else
8690 ac_cv_use_statbox='wxUSE_STATBOX=no'
8691 fi
8692
8693else
8694
8695 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8696 if test "x$LINE" != x ; then
8697 eval "DEFAULT_$LINE"
8698 else
8699 no_cache=1
8700 fi
8701
8702 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8703
8704fi;
8705
8706 eval "$ac_cv_use_statbox"
8707 if test "$no_cache" != 1; then
8708 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8709 fi
8710
8711 if test "$wxUSE_STATBOX" = yes; then
8712 echo "$as_me:$LINENO: result: yes" >&5
8713echo "${ECHO_T}yes" >&6
8714 else
8715 echo "$as_me:$LINENO: result: no" >&5
8716echo "${ECHO_T}no" >&6
8717 fi
8718
8719
8720 enablestring=
8721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8722echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8723 no_cache=0
8724 # Check whether --enable-statline or --disable-statline was given.
8725if test "${enable_statline+set}" = set; then
8726 enableval="$enable_statline"
8727
8728 if test "$enableval" = yes; then
8729 ac_cv_use_statline='wxUSE_STATLINE=yes'
8730 else
8731 ac_cv_use_statline='wxUSE_STATLINE=no'
8732 fi
8733
8734else
8735
8736 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8737 if test "x$LINE" != x ; then
8738 eval "DEFAULT_$LINE"
8739 else
8740 no_cache=1
8741 fi
8742
8743 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8744
8745fi;
8746
8747 eval "$ac_cv_use_statline"
8748 if test "$no_cache" != 1; then
8749 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8750 fi
8751
8752 if test "$wxUSE_STATLINE" = yes; then
8753 echo "$as_me:$LINENO: result: yes" >&5
8754echo "${ECHO_T}yes" >&6
8755 else
8756 echo "$as_me:$LINENO: result: no" >&5
8757echo "${ECHO_T}no" >&6
8758 fi
8759
8760
8761 enablestring=
8762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8763echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8764 no_cache=0
8765 # Check whether --enable-stattext or --disable-stattext was given.
8766if test "${enable_stattext+set}" = set; then
8767 enableval="$enable_stattext"
8768
8769 if test "$enableval" = yes; then
8770 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8771 else
8772 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8773 fi
8774
8775else
8776
8777 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8778 if test "x$LINE" != x ; then
8779 eval "DEFAULT_$LINE"
8780 else
8781 no_cache=1
8782 fi
8783
8784 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8785
8786fi;
8787
8788 eval "$ac_cv_use_stattext"
8789 if test "$no_cache" != 1; then
8790 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8791 fi
8792
8793 if test "$wxUSE_STATTEXT" = yes; then
8794 echo "$as_me:$LINENO: result: yes" >&5
8795echo "${ECHO_T}yes" >&6
8796 else
8797 echo "$as_me:$LINENO: result: no" >&5
8798echo "${ECHO_T}no" >&6
8799 fi
8800
8801
8802 enablestring=
8803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8804echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8805 no_cache=0
8806 # Check whether --enable-statusbar or --disable-statusbar was given.
8807if test "${enable_statusbar+set}" = set; then
8808 enableval="$enable_statusbar"
8809
8810 if test "$enableval" = yes; then
8811 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8812 else
8813 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8814 fi
8815
8816else
8817
8818 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8819 if test "x$LINE" != x ; then
8820 eval "DEFAULT_$LINE"
8821 else
8822 no_cache=1
8823 fi
8824
8825 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8826
8827fi;
8828
8829 eval "$ac_cv_use_statusbar"
8830 if test "$no_cache" != 1; then
8831 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8832 fi
8833
8834 if test "$wxUSE_STATUSBAR" = yes; then
8835 echo "$as_me:$LINENO: result: yes" >&5
8836echo "${ECHO_T}yes" >&6
8837 else
8838 echo "$as_me:$LINENO: result: no" >&5
8839echo "${ECHO_T}no" >&6
8840 fi
8841
8842
8843 enablestring=
8844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8845echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8846 no_cache=0
8847 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8848if test "${enable_tabdialog+set}" = set; then
8849 enableval="$enable_tabdialog"
8850
8851 if test "$enableval" = yes; then
8852 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8853 else
8854 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8855 fi
8856
8857else
8858
8859 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8860 if test "x$LINE" != x ; then
8861 eval "DEFAULT_$LINE"
8862 else
8863 no_cache=1
8864 fi
8865
8866 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8867
8868fi;
8869
8870 eval "$ac_cv_use_tabdialog"
8871 if test "$no_cache" != 1; then
8872 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8873 fi
8874
8875 if test "$wxUSE_TABDIALOG" = yes; then
8876 echo "$as_me:$LINENO: result: yes" >&5
8877echo "${ECHO_T}yes" >&6
8878 else
8879 echo "$as_me:$LINENO: result: no" >&5
8880echo "${ECHO_T}no" >&6
8881 fi
8882
8883
8884 enablestring=
8885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8886echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8887 no_cache=0
8888 # Check whether --enable-textctrl or --disable-textctrl was given.
8889if test "${enable_textctrl+set}" = set; then
8890 enableval="$enable_textctrl"
8891
8892 if test "$enableval" = yes; then
8893 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8894 else
8895 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8896 fi
8897
8898else
8899
8900 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8901 if test "x$LINE" != x ; then
8902 eval "DEFAULT_$LINE"
8903 else
8904 no_cache=1
8905 fi
8906
8907 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8908
8909fi;
8910
8911 eval "$ac_cv_use_textctrl"
8912 if test "$no_cache" != 1; then
8913 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8914 fi
8915
8916 if test "$wxUSE_TEXTCTRL" = yes; then
8917 echo "$as_me:$LINENO: result: yes" >&5
8918echo "${ECHO_T}yes" >&6
8919 else
8920 echo "$as_me:$LINENO: result: no" >&5
8921echo "${ECHO_T}no" >&6
8922 fi
8923
8924
8925 enablestring=
8926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8927echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8928 no_cache=0
8929 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8930if test "${enable_togglebtn+set}" = set; then
8931 enableval="$enable_togglebtn"
8932
8933 if test "$enableval" = yes; then
8934 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8935 else
8936 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8937 fi
8938
8939else
8940
8941 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8942 if test "x$LINE" != x ; then
8943 eval "DEFAULT_$LINE"
8944 else
8945 no_cache=1
8946 fi
8947
8948 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8949
8950fi;
8951
8952 eval "$ac_cv_use_togglebtn"
8953 if test "$no_cache" != 1; then
8954 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8955 fi
8956
8957 if test "$wxUSE_TOGGLEBTN" = yes; then
8958 echo "$as_me:$LINENO: result: yes" >&5
8959echo "${ECHO_T}yes" >&6
8960 else
8961 echo "$as_me:$LINENO: result: no" >&5
8962echo "${ECHO_T}no" >&6
8963 fi
8964
8965
8966 enablestring=
8967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8968echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8969 no_cache=0
8970 # Check whether --enable-toolbar or --disable-toolbar was given.
8971if test "${enable_toolbar+set}" = set; then
8972 enableval="$enable_toolbar"
8973
8974 if test "$enableval" = yes; then
8975 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8976 else
8977 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8978 fi
8979
8980else
8981
8982 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8983 if test "x$LINE" != x ; then
8984 eval "DEFAULT_$LINE"
8985 else
8986 no_cache=1
8987 fi
8988
8989 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8990
8991fi;
8992
8993 eval "$ac_cv_use_toolbar"
8994 if test "$no_cache" != 1; then
8995 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8996 fi
8997
8998 if test "$wxUSE_TOOLBAR" = yes; then
8999 echo "$as_me:$LINENO: result: yes" >&5
9000echo "${ECHO_T}yes" >&6
9001 else
9002 echo "$as_me:$LINENO: result: no" >&5
9003echo "${ECHO_T}no" >&6
9004 fi
9005
9006
9007 enablestring=
9008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9009echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9010 no_cache=0
9011 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9012if test "${enable_tbarnative+set}" = set; then
9013 enableval="$enable_tbarnative"
9014
9015 if test "$enableval" = yes; then
9016 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9017 else
9018 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9019 fi
9020
9021else
9022
9023 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9024 if test "x$LINE" != x ; then
9025 eval "DEFAULT_$LINE"
9026 else
9027 no_cache=1
9028 fi
9029
9030 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9031
9032fi;
9033
9034 eval "$ac_cv_use_tbarnative"
9035 if test "$no_cache" != 1; then
9036 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9037 fi
9038
9039 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9040 echo "$as_me:$LINENO: result: yes" >&5
9041echo "${ECHO_T}yes" >&6
9042 else
9043 echo "$as_me:$LINENO: result: no" >&5
9044echo "${ECHO_T}no" >&6
9045 fi
9046
9047
9048 enablestring=
9049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9050echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9051 no_cache=0
9052 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9053if test "${enable_tbarsmpl+set}" = set; then
9054 enableval="$enable_tbarsmpl"
9055
9056 if test "$enableval" = yes; then
9057 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9058 else
9059 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9060 fi
9061
9062else
9063
9064 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9065 if test "x$LINE" != x ; then
9066 eval "DEFAULT_$LINE"
9067 else
9068 no_cache=1
9069 fi
9070
9071 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9072
9073fi;
9074
9075 eval "$ac_cv_use_tbarsmpl"
9076 if test "$no_cache" != 1; then
9077 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9078 fi
9079
9080 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9081 echo "$as_me:$LINENO: result: yes" >&5
9082echo "${ECHO_T}yes" >&6
9083 else
9084 echo "$as_me:$LINENO: result: no" >&5
9085echo "${ECHO_T}no" >&6
9086 fi
9087
9088
0093c2fc
VZ
9089 enablestring=
9090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9091echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9092 no_cache=0
9093 # Check whether --enable-treebook or --disable-treebook was given.
9094if test "${enable_treebook+set}" = set; then
9095 enableval="$enable_treebook"
9096
9097 if test "$enableval" = yes; then
9098 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9099 else
9100 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9101 fi
9102
9103else
9104
9105 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9106 if test "x$LINE" != x ; then
9107 eval "DEFAULT_$LINE"
9108 else
9109 no_cache=1
9110 fi
9111
9112 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9113
9114fi;
9115
9116 eval "$ac_cv_use_treebook"
9117 if test "$no_cache" != 1; then
9118 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9119 fi
9120
9121 if test "$wxUSE_TREEBOOK" = yes; then
9122 echo "$as_me:$LINENO: result: yes" >&5
9123echo "${ECHO_T}yes" >&6
9124 else
9125 echo "$as_me:$LINENO: result: no" >&5
9126echo "${ECHO_T}no" >&6
9127 fi
9128
9129
a848cd7e
SC
9130 enablestring=
9131 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9132echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9133 no_cache=0
9134 # Check whether --enable-treectrl or --disable-treectrl was given.
9135if test "${enable_treectrl+set}" = set; then
9136 enableval="$enable_treectrl"
9137
9138 if test "$enableval" = yes; then
9139 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9140 else
9141 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9142 fi
9143
9144else
9145
9146 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9147 if test "x$LINE" != x ; then
9148 eval "DEFAULT_$LINE"
9149 else
9150 no_cache=1
9151 fi
9152
9153 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9154
9155fi;
9156
9157 eval "$ac_cv_use_treectrl"
9158 if test "$no_cache" != 1; then
9159 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9160 fi
9161
9162 if test "$wxUSE_TREECTRL" = yes; then
9163 echo "$as_me:$LINENO: result: yes" >&5
9164echo "${ECHO_T}yes" >&6
9165 else
9166 echo "$as_me:$LINENO: result: no" >&5
9167echo "${ECHO_T}no" >&6
9168 fi
9169
9170
9171 enablestring=
9172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9173echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9174 no_cache=0
9175 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9176if test "${enable_tipwindow+set}" = set; then
9177 enableval="$enable_tipwindow"
9178
9179 if test "$enableval" = yes; then
9180 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9181 else
9182 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9183 fi
9184
9185else
9186
9187 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9188 if test "x$LINE" != x ; then
9189 eval "DEFAULT_$LINE"
9190 else
9191 no_cache=1
9192 fi
9193
9194 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9195
9196fi;
9197
9198 eval "$ac_cv_use_tipwindow"
9199 if test "$no_cache" != 1; then
9200 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9201 fi
9202
9203 if test "$wxUSE_TIPWINDOW" = yes; then
9204 echo "$as_me:$LINENO: result: yes" >&5
9205echo "${ECHO_T}yes" >&6
9206 else
9207 echo "$as_me:$LINENO: result: no" >&5
9208echo "${ECHO_T}no" >&6
9209 fi
9210
9211
9212 enablestring=
9213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9214echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9215 no_cache=0
9216 # Check whether --enable-popupwin or --disable-popupwin was given.
9217if test "${enable_popupwin+set}" = set; then
9218 enableval="$enable_popupwin"
9219
9220 if test "$enableval" = yes; then
9221 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9222 else
9223 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9224 fi
9225
9226else
9227
9228 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9229 if test "x$LINE" != x ; then
9230 eval "DEFAULT_$LINE"
9231 else
9232 no_cache=1
9233 fi
9234
9235 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9236
9237fi;
9238
9239 eval "$ac_cv_use_popupwin"
9240 if test "$no_cache" != 1; then
9241 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9242 fi
9243
9244 if test "$wxUSE_POPUPWIN" = yes; then
9245 echo "$as_me:$LINENO: result: yes" >&5
9246echo "${ECHO_T}yes" >&6
9247 else
9248 echo "$as_me:$LINENO: result: no" >&5
9249echo "${ECHO_T}no" >&6
9250 fi
9251
9252
9253
9254
9255 enablestring=
9256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9257echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9258 no_cache=0
9259 # Check whether --enable-commondlg or --disable-commondlg was given.
9260if test "${enable_commondlg+set}" = set; then
9261 enableval="$enable_commondlg"
9262
9263 if test "$enableval" = yes; then
9264 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9265 else
9266 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9267 fi
9268
9269else
9270
9271 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9272 if test "x$LINE" != x ; then
9273 eval "DEFAULT_$LINE"
9274 else
9275 no_cache=1
9276 fi
9277
9278 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9279
9280fi;
9281
9282 eval "$ac_cv_use_commondlg"
9283 if test "$no_cache" != 1; then
9284 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9285 fi
9286
9287 if test "$wxUSE_COMMONDLGS" = yes; then
9288 echo "$as_me:$LINENO: result: yes" >&5
9289echo "${ECHO_T}yes" >&6
9290 else
9291 echo "$as_me:$LINENO: result: no" >&5
9292echo "${ECHO_T}no" >&6
9293 fi
9294
9295
9296 enablestring=
9297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9298echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9299 no_cache=0
9300 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9301if test "${enable_choicedlg+set}" = set; then
9302 enableval="$enable_choicedlg"
9303
9304 if test "$enableval" = yes; then
9305 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9306 else
9307 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9308 fi
9309
9310else
9311
9312 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9313 if test "x$LINE" != x ; then
9314 eval "DEFAULT_$LINE"
9315 else
9316 no_cache=1
9317 fi
9318
9319 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9320
9321fi;
9322
9323 eval "$ac_cv_use_choicedlg"
9324 if test "$no_cache" != 1; then
9325 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9326 fi
9327
9328 if test "$wxUSE_CHOICEDLG" = yes; then
9329 echo "$as_me:$LINENO: result: yes" >&5
9330echo "${ECHO_T}yes" >&6
9331 else
9332 echo "$as_me:$LINENO: result: no" >&5
9333echo "${ECHO_T}no" >&6
9334 fi
9335
9336
9337 enablestring=
9338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9339echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9340 no_cache=0
9341 # Check whether --enable-coldlg or --disable-coldlg was given.
9342if test "${enable_coldlg+set}" = set; then
9343 enableval="$enable_coldlg"
9344
9345 if test "$enableval" = yes; then
9346 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9347 else
9348 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9349 fi
9350
9351else
9352
9353 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9354 if test "x$LINE" != x ; then
9355 eval "DEFAULT_$LINE"
9356 else
9357 no_cache=1
9358 fi
9359
9360 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9361
9362fi;
9363
9364 eval "$ac_cv_use_coldlg"
9365 if test "$no_cache" != 1; then
9366 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9367 fi
9368
9369 if test "$wxUSE_COLOURDLG" = yes; then
9370 echo "$as_me:$LINENO: result: yes" >&5
9371echo "${ECHO_T}yes" >&6
9372 else
9373 echo "$as_me:$LINENO: result: no" >&5
9374echo "${ECHO_T}no" >&6
9375 fi
9376
9377
9378 enablestring=
9379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9380echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9381 no_cache=0
9382 # Check whether --enable-filedlg or --disable-filedlg was given.
9383if test "${enable_filedlg+set}" = set; then
9384 enableval="$enable_filedlg"
9385
9386 if test "$enableval" = yes; then
9387 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9388 else
9389 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9390 fi
9391
9392else
9393
9394 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9395 if test "x$LINE" != x ; then
9396 eval "DEFAULT_$LINE"
9397 else
9398 no_cache=1
9399 fi
9400
9401 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9402
9403fi;
9404
9405 eval "$ac_cv_use_filedlg"
9406 if test "$no_cache" != 1; then
9407 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9408 fi
9409
9410 if test "$wxUSE_FILEDLG" = yes; then
9411 echo "$as_me:$LINENO: result: yes" >&5
9412echo "${ECHO_T}yes" >&6
9413 else
9414 echo "$as_me:$LINENO: result: no" >&5
9415echo "${ECHO_T}no" >&6
9416 fi
9417
9418
9419 enablestring=
9420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9421echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9422 no_cache=0
9423 # Check whether --enable-finddlg or --disable-finddlg was given.
9424if test "${enable_finddlg+set}" = set; then
9425 enableval="$enable_finddlg"
9426
9427 if test "$enableval" = yes; then
9428 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9429 else
9430 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9431 fi
9432
9433else
9434
9435 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9436 if test "x$LINE" != x ; then
9437 eval "DEFAULT_$LINE"
9438 else
9439 no_cache=1
9440 fi
9441
9442 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9443
9444fi;
9445
9446 eval "$ac_cv_use_finddlg"
9447 if test "$no_cache" != 1; then
9448 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9449 fi
9450
9451 if test "$wxUSE_FINDREPLDLG" = yes; then
9452 echo "$as_me:$LINENO: result: yes" >&5
9453echo "${ECHO_T}yes" >&6
9454 else
9455 echo "$as_me:$LINENO: result: no" >&5
9456echo "${ECHO_T}no" >&6
9457 fi
9458
9459
9460 enablestring=
9461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9462echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9463 no_cache=0
9464 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9465if test "${enable_fontdlg+set}" = set; then
9466 enableval="$enable_fontdlg"
9467
9468 if test "$enableval" = yes; then
9469 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9470 else
9471 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9472 fi
9473
9474else
9475
9476 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9477 if test "x$LINE" != x ; then
9478 eval "DEFAULT_$LINE"
9479 else
9480 no_cache=1
9481 fi
9482
9483 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9484
9485fi;
9486
9487 eval "$ac_cv_use_fontdlg"
9488 if test "$no_cache" != 1; then
9489 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9490 fi
9491
9492 if test "$wxUSE_FONTDLG" = yes; then
9493 echo "$as_me:$LINENO: result: yes" >&5
9494echo "${ECHO_T}yes" >&6
9495 else
9496 echo "$as_me:$LINENO: result: no" >&5
9497echo "${ECHO_T}no" >&6
9498 fi
9499
9500
9501 enablestring=
9502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9503echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9504 no_cache=0
9505 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9506if test "${enable_dirdlg+set}" = set; then
9507 enableval="$enable_dirdlg"
9508
9509 if test "$enableval" = yes; then
9510 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9511 else
9512 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9513 fi
9514
9515else
9516
9517 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9518 if test "x$LINE" != x ; then
9519 eval "DEFAULT_$LINE"
9520 else
9521 no_cache=1
9522 fi
9523
9524 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9525
9526fi;
9527
9528 eval "$ac_cv_use_dirdlg"
9529 if test "$no_cache" != 1; then
9530 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9531 fi
9532
9533 if test "$wxUSE_DIRDLG" = yes; then
9534 echo "$as_me:$LINENO: result: yes" >&5
9535echo "${ECHO_T}yes" >&6
9536 else
9537 echo "$as_me:$LINENO: result: no" >&5
9538echo "${ECHO_T}no" >&6
9539 fi
9540
9541
9542 enablestring=
9543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9544echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9545 no_cache=0
9546 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9547if test "${enable_msgdlg+set}" = set; then
9548 enableval="$enable_msgdlg"
9549
9550 if test "$enableval" = yes; then
9551 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9552 else
9553 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9554 fi
9555
9556else
9557
9558 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9559 if test "x$LINE" != x ; then
9560 eval "DEFAULT_$LINE"
9561 else
9562 no_cache=1
9563 fi
9564
9565 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9566
9567fi;
9568
9569 eval "$ac_cv_use_msgdlg"
9570 if test "$no_cache" != 1; then
9571 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9572 fi
9573
9574 if test "$wxUSE_MSGDLG" = yes; then
9575 echo "$as_me:$LINENO: result: yes" >&5
9576echo "${ECHO_T}yes" >&6
9577 else
9578 echo "$as_me:$LINENO: result: no" >&5
9579echo "${ECHO_T}no" >&6
9580 fi
9581
9582
9583 enablestring=
9584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9585echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9586 no_cache=0
9587 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9588if test "${enable_numberdlg+set}" = set; then
9589 enableval="$enable_numberdlg"
9590
9591 if test "$enableval" = yes; then
9592 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9593 else
9594 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9595 fi
9596
9597else
9598
9599 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9600 if test "x$LINE" != x ; then
9601 eval "DEFAULT_$LINE"
9602 else
9603 no_cache=1
9604 fi
9605
9606 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9607
9608fi;
9609
9610 eval "$ac_cv_use_numberdlg"
9611 if test "$no_cache" != 1; then
9612 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9613 fi
9614
9615 if test "$wxUSE_NUMBERDLG" = yes; then
9616 echo "$as_me:$LINENO: result: yes" >&5
9617echo "${ECHO_T}yes" >&6
9618 else
9619 echo "$as_me:$LINENO: result: no" >&5
9620echo "${ECHO_T}no" >&6
9621 fi
9622
9623
9624 enablestring=
9625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9626echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9627 no_cache=0
9628 # Check whether --enable-splash or --disable-splash was given.
9629if test "${enable_splash+set}" = set; then
9630 enableval="$enable_splash"
9631
9632 if test "$enableval" = yes; then
9633 ac_cv_use_splash='wxUSE_SPLASH=yes'
9634 else
9635 ac_cv_use_splash='wxUSE_SPLASH=no'
9636 fi
9637
9638else
9639
9640 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9641 if test "x$LINE" != x ; then
9642 eval "DEFAULT_$LINE"
9643 else
9644 no_cache=1
9645 fi
9646
9647 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9648
9649fi;
9650
9651 eval "$ac_cv_use_splash"
9652 if test "$no_cache" != 1; then
9653 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9654 fi
9655
9656 if test "$wxUSE_SPLASH" = yes; then
9657 echo "$as_me:$LINENO: result: yes" >&5
9658echo "${ECHO_T}yes" >&6
9659 else
9660 echo "$as_me:$LINENO: result: no" >&5
9661echo "${ECHO_T}no" >&6
9662 fi
9663
9664
9665 enablestring=
9666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9667echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9668 no_cache=0
9669 # Check whether --enable-textdlg or --disable-textdlg was given.
9670if test "${enable_textdlg+set}" = set; then
9671 enableval="$enable_textdlg"
9672
9673 if test "$enableval" = yes; then
9674 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9675 else
9676 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9677 fi
9678
9679else
9680
9681 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9682 if test "x$LINE" != x ; then
9683 eval "DEFAULT_$LINE"
9684 else
9685 no_cache=1
9686 fi
9687
9688 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9689
9690fi;
9691
9692 eval "$ac_cv_use_textdlg"
9693 if test "$no_cache" != 1; then
9694 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9695 fi
9696
9697 if test "$wxUSE_TEXTDLG" = yes; then
9698 echo "$as_me:$LINENO: result: yes" >&5
9699echo "${ECHO_T}yes" >&6
9700 else
9701 echo "$as_me:$LINENO: result: no" >&5
9702echo "${ECHO_T}no" >&6
9703 fi
9704
9705
9706 enablestring=
9707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9708echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9709 no_cache=0
9710 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9711if test "${enable_tipdlg+set}" = set; then
9712 enableval="$enable_tipdlg"
9713
9714 if test "$enableval" = yes; then
9715 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9716 else
9717 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9718 fi
9719
9720else
9721
9722 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9723 if test "x$LINE" != x ; then
9724 eval "DEFAULT_$LINE"
9725 else
9726 no_cache=1
9727 fi
9728
9729 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9730
9731fi;
9732
9733 eval "$ac_cv_use_tipdlg"
9734 if test "$no_cache" != 1; then
9735 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9736 fi
9737
9738 if test "$wxUSE_STARTUP_TIPS" = yes; then
9739 echo "$as_me:$LINENO: result: yes" >&5
9740echo "${ECHO_T}yes" >&6
9741 else
9742 echo "$as_me:$LINENO: result: no" >&5
9743echo "${ECHO_T}no" >&6
9744 fi
9745
9746
9747 enablestring=
9748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9749echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9750 no_cache=0
9751 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9752if test "${enable_progressdlg+set}" = set; then
9753 enableval="$enable_progressdlg"
9754
9755 if test "$enableval" = yes; then
9756 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9757 else
9758 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9759 fi
9760
9761else
9762
9763 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9764 if test "x$LINE" != x ; then
9765 eval "DEFAULT_$LINE"
9766 else
9767 no_cache=1
9768 fi
9769
9770 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9771
9772fi;
9773
9774 eval "$ac_cv_use_progressdlg"
9775 if test "$no_cache" != 1; then
9776 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9777 fi
9778
9779 if test "$wxUSE_PROGRESSDLG" = yes; then
9780 echo "$as_me:$LINENO: result: yes" >&5
9781echo "${ECHO_T}yes" >&6
9782 else
9783 echo "$as_me:$LINENO: result: no" >&5
9784echo "${ECHO_T}no" >&6
9785 fi
9786
9787
9788 enablestring=
9789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9790echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9791 no_cache=0
9792 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9793if test "${enable_wizarddlg+set}" = set; then
9794 enableval="$enable_wizarddlg"
9795
9796 if test "$enableval" = yes; then
9797 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9798 else
9799 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9800 fi
9801
9802else
9803
9804 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9805 if test "x$LINE" != x ; then
9806 eval "DEFAULT_$LINE"
9807 else
9808 no_cache=1
9809 fi
9810
9811 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9812
9813fi;
9814
9815 eval "$ac_cv_use_wizarddlg"
9816 if test "$no_cache" != 1; then
9817 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9818 fi
9819
9820 if test "$wxUSE_WIZARDDLG" = yes; then
9821 echo "$as_me:$LINENO: result: yes" >&5
9822echo "${ECHO_T}yes" >&6
9823 else
9824 echo "$as_me:$LINENO: result: no" >&5
9825echo "${ECHO_T}no" >&6
9826 fi
9827
9828
9829
9830
9831 enablestring=
9832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9833echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9834 no_cache=0
9835 # Check whether --enable-menus or --disable-menus was given.
9836if test "${enable_menus+set}" = set; then
9837 enableval="$enable_menus"
9838
9839 if test "$enableval" = yes; then
9840 ac_cv_use_menus='wxUSE_MENUS=yes'
9841 else
9842 ac_cv_use_menus='wxUSE_MENUS=no'
9843 fi
9844
9845else
9846
9847 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9848 if test "x$LINE" != x ; then
9849 eval "DEFAULT_$LINE"
9850 else
9851 no_cache=1
9852 fi
9853
9854 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9855
9856fi;
9857
9858 eval "$ac_cv_use_menus"
9859 if test "$no_cache" != 1; then
9860 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9861 fi
9862
9863 if test "$wxUSE_MENUS" = yes; then
9864 echo "$as_me:$LINENO: result: yes" >&5
9865echo "${ECHO_T}yes" >&6
9866 else
9867 echo "$as_me:$LINENO: result: no" >&5
9868echo "${ECHO_T}no" >&6
9869 fi
9870
9871
9872 enablestring=
9873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9874echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9875 no_cache=0
9876 # Check whether --enable-miniframe or --disable-miniframe was given.
9877if test "${enable_miniframe+set}" = set; then
9878 enableval="$enable_miniframe"
9879
9880 if test "$enableval" = yes; then
9881 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9882 else
9883 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9884 fi
9885
9886else
9887
9888 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9889 if test "x$LINE" != x ; then
9890 eval "DEFAULT_$LINE"
9891 else
9892 no_cache=1
9893 fi
9894
9895 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9896
9897fi;
9898
9899 eval "$ac_cv_use_miniframe"
9900 if test "$no_cache" != 1; then
9901 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9902 fi
9903
9904 if test "$wxUSE_MINIFRAME" = yes; then
9905 echo "$as_me:$LINENO: result: yes" >&5
9906echo "${ECHO_T}yes" >&6
9907 else
9908 echo "$as_me:$LINENO: result: no" >&5
9909echo "${ECHO_T}no" >&6
9910 fi
9911
9912
9913 enablestring=
9914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9915echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9916 no_cache=0
9917 # Check whether --enable-tooltips or --disable-tooltips was given.
9918if test "${enable_tooltips+set}" = set; then
9919 enableval="$enable_tooltips"
9920
9921 if test "$enableval" = yes; then
9922 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9923 else
9924 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9925 fi
9926
9927else
9928
9929 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9930 if test "x$LINE" != x ; then
9931 eval "DEFAULT_$LINE"
9932 else
9933 no_cache=1
9934 fi
9935
9936 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9937
9938fi;
9939
9940 eval "$ac_cv_use_tooltips"
9941 if test "$no_cache" != 1; then
9942 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9943 fi
9944
9945 if test "$wxUSE_TOOLTIPS" = yes; then
9946 echo "$as_me:$LINENO: result: yes" >&5
9947echo "${ECHO_T}yes" >&6
9948 else
9949 echo "$as_me:$LINENO: result: no" >&5
9950echo "${ECHO_T}no" >&6
9951 fi
9952
9953
9954 enablestring=
9955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9956echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9957 no_cache=0
9958 # Check whether --enable-splines or --disable-splines was given.
9959if test "${enable_splines+set}" = set; then
9960 enableval="$enable_splines"
9961
9962 if test "$enableval" = yes; then
9963 ac_cv_use_splines='wxUSE_SPLINES=yes'
9964 else
9965 ac_cv_use_splines='wxUSE_SPLINES=no'
9966 fi
9967
9968else
9969
9970 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9971 if test "x$LINE" != x ; then
9972 eval "DEFAULT_$LINE"
9973 else
9974 no_cache=1
9975 fi
9976
9977 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9978
9979fi;
9980
9981 eval "$ac_cv_use_splines"
9982 if test "$no_cache" != 1; then
9983 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9984 fi
9985
9986 if test "$wxUSE_SPLINES" = yes; then
9987 echo "$as_me:$LINENO: result: yes" >&5
9988echo "${ECHO_T}yes" >&6
9989 else
9990 echo "$as_me:$LINENO: result: no" >&5
9991echo "${ECHO_T}no" >&6
9992 fi
9993
9994
fbe2ca43
SN
9995 enablestring=
9996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9997echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9998 no_cache=0
9999 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10000if test "${enable_mousewheel+set}" = set; then
10001 enableval="$enable_mousewheel"
10002
10003 if test "$enableval" = yes; then
10004 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10005 else
10006 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10007 fi
10008
10009else
10010
10011 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10012 if test "x$LINE" != x ; then
10013 eval "DEFAULT_$LINE"
10014 else
10015 no_cache=1
10016 fi
10017
10018 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10019
10020fi;
10021
10022 eval "$ac_cv_use_mousewheel"
10023 if test "$no_cache" != 1; then
10024 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10025 fi
10026
10027 if test "$wxUSE_MOUSEWHEEL" = yes; then
10028 echo "$as_me:$LINENO: result: yes" >&5
10029echo "${ECHO_T}yes" >&6
10030 else
10031 echo "$as_me:$LINENO: result: no" >&5
10032echo "${ECHO_T}no" >&6
10033 fi
10034
10035
a848cd7e
SC
10036 enablestring=
10037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10038echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10039 no_cache=0
10040 # Check whether --enable-validators or --disable-validators was given.
10041if test "${enable_validators+set}" = set; then
10042 enableval="$enable_validators"
10043
10044 if test "$enableval" = yes; then
10045 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10046 else
10047 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10048 fi
10049
10050else
10051
10052 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10053 if test "x$LINE" != x ; then
10054 eval "DEFAULT_$LINE"
10055 else
10056 no_cache=1
10057 fi
10058
10059 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10060
10061fi;
10062
10063 eval "$ac_cv_use_validators"
10064 if test "$no_cache" != 1; then
10065 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10066 fi
10067
10068 if test "$wxUSE_VALIDATORS" = yes; then
10069 echo "$as_me:$LINENO: result: yes" >&5
10070echo "${ECHO_T}yes" >&6
10071 else
10072 echo "$as_me:$LINENO: result: no" >&5
10073echo "${ECHO_T}no" >&6
10074 fi
10075
10076
10077 enablestring=
10078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10079echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10080 no_cache=0
10081 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10082if test "${enable_busyinfo+set}" = set; then
10083 enableval="$enable_busyinfo"
10084
10085 if test "$enableval" = yes; then
10086 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10087 else
10088 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10089 fi
10090
10091else
10092
10093 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10094 if test "x$LINE" != x ; then
10095 eval "DEFAULT_$LINE"
10096 else
10097 no_cache=1
10098 fi
10099
10100 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10101
10102fi;
10103
10104 eval "$ac_cv_use_busyinfo"
10105 if test "$no_cache" != 1; then
10106 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10107 fi
10108
10109 if test "$wxUSE_BUSYINFO" = yes; then
10110 echo "$as_me:$LINENO: result: yes" >&5
10111echo "${ECHO_T}yes" >&6
10112 else
10113 echo "$as_me:$LINENO: result: no" >&5
10114echo "${ECHO_T}no" >&6
10115 fi
10116
10117
10118 enablestring=
10119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10120echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10121 no_cache=0
10122 # Check whether --enable-joystick or --disable-joystick was given.
10123if test "${enable_joystick+set}" = set; then
10124 enableval="$enable_joystick"
10125
10126 if test "$enableval" = yes; then
10127 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10128 else
10129 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10130 fi
10131
10132else
10133
10134 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10135 if test "x$LINE" != x ; then
10136 eval "DEFAULT_$LINE"
10137 else
10138 no_cache=1
10139 fi
10140
10141 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10142
10143fi;
10144
10145 eval "$ac_cv_use_joystick"
10146 if test "$no_cache" != 1; then
10147 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10148 fi
10149
10150 if test "$wxUSE_JOYSTICK" = yes; then
10151 echo "$as_me:$LINENO: result: yes" >&5
10152echo "${ECHO_T}yes" >&6
10153 else
10154 echo "$as_me:$LINENO: result: no" >&5
10155echo "${ECHO_T}no" >&6
10156 fi
10157
10158
10159 enablestring=
10160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10161echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10162 no_cache=0
10163 # Check whether --enable-metafile or --disable-metafile was given.
10164if test "${enable_metafile+set}" = set; then
10165 enableval="$enable_metafile"
10166
10167 if test "$enableval" = yes; then
10168 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10169 else
10170 ac_cv_use_metafile='wxUSE_METAFILE=no'
10171 fi
10172
10173else
10174
10175 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10176 if test "x$LINE" != x ; then
10177 eval "DEFAULT_$LINE"
10178 else
10179 no_cache=1
10180 fi
10181
10182 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10183
10184fi;
10185
10186 eval "$ac_cv_use_metafile"
10187 if test "$no_cache" != 1; then
10188 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10189 fi
10190
10191 if test "$wxUSE_METAFILE" = yes; then
10192 echo "$as_me:$LINENO: result: yes" >&5
10193echo "${ECHO_T}yes" >&6
10194 else
10195 echo "$as_me:$LINENO: result: no" >&5
10196echo "${ECHO_T}no" >&6
10197 fi
10198
10199
10200 enablestring=
10201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10202echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10203 no_cache=0
10204 # Check whether --enable-dragimage or --disable-dragimage was given.
10205if test "${enable_dragimage+set}" = set; then
10206 enableval="$enable_dragimage"
10207
10208 if test "$enableval" = yes; then
10209 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10210 else
10211 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10212 fi
10213
10214else
10215
10216 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10217 if test "x$LINE" != x ; then
10218 eval "DEFAULT_$LINE"
10219 else
10220 no_cache=1
10221 fi
10222
10223 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10224
10225fi;
10226
10227 eval "$ac_cv_use_dragimage"
10228 if test "$no_cache" != 1; then
10229 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10230 fi
10231
10232 if test "$wxUSE_DRAGIMAGE" = yes; then
10233 echo "$as_me:$LINENO: result: yes" >&5
10234echo "${ECHO_T}yes" >&6
10235 else
10236 echo "$as_me:$LINENO: result: no" >&5
10237echo "${ECHO_T}no" >&6
10238 fi
10239
10240
10241 enablestring=
10242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10243echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10244 no_cache=0
10245 # Check whether --enable-accessibility or --disable-accessibility was given.
10246if test "${enable_accessibility+set}" = set; then
10247 enableval="$enable_accessibility"
10248
10249 if test "$enableval" = yes; then
10250 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10251 else
10252 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10253 fi
10254
10255else
10256
10257 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10258 if test "x$LINE" != x ; then
10259 eval "DEFAULT_$LINE"
10260 else
10261 no_cache=1
10262 fi
10263
10264 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10265
10266fi;
10267
10268 eval "$ac_cv_use_accessibility"
10269 if test "$no_cache" != 1; then
10270 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10271 fi
10272
10273 if test "$wxUSE_ACCESSIBILITY" = yes; then
10274 echo "$as_me:$LINENO: result: yes" >&5
10275echo "${ECHO_T}yes" >&6
10276 else
10277 echo "$as_me:$LINENO: result: no" >&5
10278echo "${ECHO_T}no" >&6
10279 fi
10280
10281
38b4a946
VZ
10282if test "$wxUSE_MSW" = "1"; then
10283
10284 enablestring=
10285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10286echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10287 no_cache=0
10288 # Check whether --enable-dccache or --disable-dccache was given.
10289if test "${enable_dccache+set}" = set; then
10290 enableval="$enable_dccache"
10291
10292 if test "$enableval" = yes; then
10293 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10294 else
10295 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10296 fi
10297
10298else
10299
10300 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10301 if test "x$LINE" != x ; then
10302 eval "DEFAULT_$LINE"
10303 else
10304 no_cache=1
10305 fi
10306
10307 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10308
10309fi;
10310
10311 eval "$ac_cv_use_dccache"
10312 if test "$no_cache" != 1; then
10313 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10314 fi
10315
10316 if test "$wxUSE_DC_CACHEING" = yes; then
10317 echo "$as_me:$LINENO: result: yes" >&5
10318echo "${ECHO_T}yes" >&6
10319 else
10320 echo "$as_me:$LINENO: result: no" >&5
10321echo "${ECHO_T}no" >&6
10322 fi
10323
10324fi
10325
a848cd7e
SC
10326
10327
10328 enablestring=
10329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10330echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10331 no_cache=0
10332 # Check whether --enable-palette or --disable-palette was given.
10333if test "${enable_palette+set}" = set; then
10334 enableval="$enable_palette"
10335
10336 if test "$enableval" = yes; then
10337 ac_cv_use_palette='wxUSE_PALETTE=yes'
10338 else
10339 ac_cv_use_palette='wxUSE_PALETTE=no'
10340 fi
10341
10342else
10343
10344 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10345 if test "x$LINE" != x ; then
10346 eval "DEFAULT_$LINE"
10347 else
10348 no_cache=1
10349 fi
10350
10351 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10352
10353fi;
10354
10355 eval "$ac_cv_use_palette"
10356 if test "$no_cache" != 1; then
10357 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10358 fi
10359
10360 if test "$wxUSE_PALETTE" = yes; then
10361 echo "$as_me:$LINENO: result: yes" >&5
10362echo "${ECHO_T}yes" >&6
10363 else
10364 echo "$as_me:$LINENO: result: no" >&5
10365echo "${ECHO_T}no" >&6
10366 fi
10367
10368
10369 enablestring=
10370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10371echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10372 no_cache=0
10373 # Check whether --enable-image or --disable-image was given.
10374if test "${enable_image+set}" = set; then
10375 enableval="$enable_image"
10376
10377 if test "$enableval" = yes; then
10378 ac_cv_use_image='wxUSE_IMAGE=yes'
10379 else
10380 ac_cv_use_image='wxUSE_IMAGE=no'
10381 fi
10382
10383else
10384
10385 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10386 if test "x$LINE" != x ; then
10387 eval "DEFAULT_$LINE"
10388 else
10389 no_cache=1
10390 fi
10391
10392 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10393
10394fi;
10395
10396 eval "$ac_cv_use_image"
10397 if test "$no_cache" != 1; then
10398 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10399 fi
10400
10401 if test "$wxUSE_IMAGE" = yes; then
10402 echo "$as_me:$LINENO: result: yes" >&5
10403echo "${ECHO_T}yes" >&6
10404 else
10405 echo "$as_me:$LINENO: result: no" >&5
10406echo "${ECHO_T}no" >&6
10407 fi
10408
10409
10410 enablestring=
10411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10412echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10413 no_cache=0
10414 # Check whether --enable-gif or --disable-gif was given.
10415if test "${enable_gif+set}" = set; then
10416 enableval="$enable_gif"
10417
10418 if test "$enableval" = yes; then
10419 ac_cv_use_gif='wxUSE_GIF=yes'
10420 else
10421 ac_cv_use_gif='wxUSE_GIF=no'
10422 fi
10423
10424else
10425
10426 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10427 if test "x$LINE" != x ; then
10428 eval "DEFAULT_$LINE"
10429 else
10430 no_cache=1
10431 fi
10432
10433 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10434
10435fi;
10436
10437 eval "$ac_cv_use_gif"
10438 if test "$no_cache" != 1; then
10439 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10440 fi
10441
10442 if test "$wxUSE_GIF" = yes; then
10443 echo "$as_me:$LINENO: result: yes" >&5
10444echo "${ECHO_T}yes" >&6
10445 else
10446 echo "$as_me:$LINENO: result: no" >&5
10447echo "${ECHO_T}no" >&6
10448 fi
10449
10450
10451 enablestring=
10452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10453echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10454 no_cache=0
10455 # Check whether --enable-pcx or --disable-pcx was given.
10456if test "${enable_pcx+set}" = set; then
10457 enableval="$enable_pcx"
10458
10459 if test "$enableval" = yes; then
10460 ac_cv_use_pcx='wxUSE_PCX=yes'
10461 else
10462 ac_cv_use_pcx='wxUSE_PCX=no'
10463 fi
10464
10465else
10466
10467 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10468 if test "x$LINE" != x ; then
10469 eval "DEFAULT_$LINE"
10470 else
10471 no_cache=1
10472 fi
10473
10474 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10475
10476fi;
10477
10478 eval "$ac_cv_use_pcx"
10479 if test "$no_cache" != 1; then
10480 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10481 fi
10482
10483 if test "$wxUSE_PCX" = yes; then
10484 echo "$as_me:$LINENO: result: yes" >&5
10485echo "${ECHO_T}yes" >&6
10486 else
10487 echo "$as_me:$LINENO: result: no" >&5
10488echo "${ECHO_T}no" >&6
10489 fi
10490
10491
10492 enablestring=
10493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10494echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10495 no_cache=0
10496 # Check whether --enable-iff or --disable-iff was given.
10497if test "${enable_iff+set}" = set; then
10498 enableval="$enable_iff"
10499
10500 if test "$enableval" = yes; then
10501 ac_cv_use_iff='wxUSE_IFF=yes'
10502 else
10503 ac_cv_use_iff='wxUSE_IFF=no'
10504 fi
10505
10506else
10507
10508 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10509 if test "x$LINE" != x ; then
10510 eval "DEFAULT_$LINE"
10511 else
10512 no_cache=1
10513 fi
10514
10515 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10516
10517fi;
10518
10519 eval "$ac_cv_use_iff"
10520 if test "$no_cache" != 1; then
10521 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10522 fi
10523
10524 if test "$wxUSE_IFF" = yes; then
10525 echo "$as_me:$LINENO: result: yes" >&5
10526echo "${ECHO_T}yes" >&6
10527 else
10528 echo "$as_me:$LINENO: result: no" >&5
10529echo "${ECHO_T}no" >&6
10530 fi
10531
10532
10533 enablestring=
10534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10535echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10536 no_cache=0
10537 # Check whether --enable-pnm or --disable-pnm was given.
10538if test "${enable_pnm+set}" = set; then
10539 enableval="$enable_pnm"
10540
10541 if test "$enableval" = yes; then
10542 ac_cv_use_pnm='wxUSE_PNM=yes'
10543 else
10544 ac_cv_use_pnm='wxUSE_PNM=no'
10545 fi
10546
10547else
10548
10549 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10550 if test "x$LINE" != x ; then
10551 eval "DEFAULT_$LINE"
10552 else
10553 no_cache=1
10554 fi
10555
10556 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10557
10558fi;
10559
10560 eval "$ac_cv_use_pnm"
10561 if test "$no_cache" != 1; then
10562 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10563 fi
10564
10565 if test "$wxUSE_PNM" = yes; then
10566 echo "$as_me:$LINENO: result: yes" >&5
10567echo "${ECHO_T}yes" >&6
10568 else
10569 echo "$as_me:$LINENO: result: no" >&5
10570echo "${ECHO_T}no" >&6
10571 fi
10572
10573
10574 enablestring=
10575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10576echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10577 no_cache=0
10578 # Check whether --enable-xpm or --disable-xpm was given.
10579if test "${enable_xpm+set}" = set; then
10580 enableval="$enable_xpm"
10581
10582 if test "$enableval" = yes; then
10583 ac_cv_use_xpm='wxUSE_XPM=yes'
10584 else
10585 ac_cv_use_xpm='wxUSE_XPM=no'
10586 fi
10587
10588else
10589
10590 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10591 if test "x$LINE" != x ; then
10592 eval "DEFAULT_$LINE"
10593 else
10594 no_cache=1
10595 fi
10596
10597 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10598
10599fi;
10600
10601 eval "$ac_cv_use_xpm"
10602 if test "$no_cache" != 1; then
10603 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10604 fi
10605
10606 if test "$wxUSE_XPM" = yes; then
10607 echo "$as_me:$LINENO: result: yes" >&5
10608echo "${ECHO_T}yes" >&6
10609 else
10610 echo "$as_me:$LINENO: result: no" >&5
10611echo "${ECHO_T}no" >&6
10612 fi
10613
10614
10615 enablestring=
10616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10617echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10618 no_cache=0
10619 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10620if test "${enable_ico_cur+set}" = set; then
10621 enableval="$enable_ico_cur"
10622
10623 if test "$enableval" = yes; then
10624 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10625 else
10626 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10627 fi
10628
10629else
10630
10631 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10632 if test "x$LINE" != x ; then
10633 eval "DEFAULT_$LINE"
10634 else
10635 no_cache=1
10636 fi
10637
10638 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10639
10640fi;
10641
10642 eval "$ac_cv_use_ico_cur"
10643 if test "$no_cache" != 1; then
10644 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10645 fi
10646
10647 if test "$wxUSE_ICO_CUR" = yes; then
10648 echo "$as_me:$LINENO: result: yes" >&5
10649echo "${ECHO_T}yes" >&6
10650 else
10651 echo "$as_me:$LINENO: result: no" >&5
10652echo "${ECHO_T}no" >&6
10653 fi
10654
10655
10656fi
10657
10658
10659
ceec2216
RL
10660# Check whether --with-flavour or --without-flavour was given.
10661if test "${with_flavour+set}" = set; then
10662 withval="$with_flavour"
10663 WX_FLAVOUR="$withval"
10664fi;
10665
10666
10667
a848cd7e
SC
10668 enablestring=
10669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10670echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10671 no_cache=0
10672 # Check whether --enable-official_build or --disable-official_build was given.
10673if test "${enable_official_build+set}" = set; then
10674 enableval="$enable_official_build"
10675
10676 if test "$enableval" = yes; then
10677 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10678 else
10679 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10680 fi
10681
10682else
10683
10684 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10685 if test "x$LINE" != x ; then
10686 eval "DEFAULT_$LINE"
10687 else
10688 no_cache=1
10689 fi
10690
10691 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10692
10693fi;
10694
10695 eval "$ac_cv_use_official_build"
10696 if test "$no_cache" != 1; then
10697 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10698 fi
10699
10700 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10701 echo "$as_me:$LINENO: result: yes" >&5
10702echo "${ECHO_T}yes" >&6
10703 else
10704 echo "$as_me:$LINENO: result: no" >&5
10705echo "${ECHO_T}no" >&6
10706 fi
10707
10708# Check whether --enable-vendor or --disable-vendor was given.
10709if test "${enable_vendor+set}" = set; then
10710 enableval="$enable_vendor"
10711 VENDOR="$enableval"
10712fi;
10713if test "x$VENDOR" = "x"; then
10714 VENDOR="custom"
10715fi
10716
a848cd7e
SC
10717
10718
10719
10720 echo "saving argument cache $wx_arg_cache_file"
10721 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10722
10723
10724
10725echo "$as_me:$LINENO: checking for toolkit" >&5
10726echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10727
10728# In Wine, we need to default to MSW, not GTK or MOTIF
10729if test "$wxUSE_WINE" = "yes"; then
10730 DEFAULT_DEFAULT_wxUSE_GTK=0
10731 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10732 DEFAULT_DEFAULT_wxUSE_MSW=1
10733 wxUSE_SHARED=no
10734fi
10735
f597b41c 10736
a848cd7e
SC
10737if test "$wxUSE_GUI" = "yes"; then
10738
10739 if test "$USE_BEOS" = 1; then
10740 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10741echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10742 { (exit 1); exit 1; }; }
10743 fi
10744
10745 if test "$TOOLKIT_GIVEN" = 1; then
10746 for toolkit in `echo $ALL_TOOLKITS`; do
10747 var=wxUSE_$toolkit
10748 eval "value=\$${var}"
f34ca037
MW
10749 if test "x$value" = "xno"; then
10750 eval "$var=0"
10751 elif test "x$value" != "x"; then
10752 eval "$var=1"
10753 fi
10754
10755 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10756 eval "wx${toolkit}_VERSION=$value"
10757 fi
a848cd7e
SC
10758 done
10759 else
10760 for toolkit in `echo $ALL_TOOLKITS`; do
10761 if test "$has_toolkit_in_cache" != 1; then
10762 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10763 else
10764 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10765
10766 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10767 if test "x$version" != "x"; then
10768 eval "wx${toolkit}_VERSION=$version"
10769 fi
a848cd7e
SC
10770 fi
10771 eval "wxUSE_$toolkit=\$${var}"
10772 done
10773 fi
10774
10775 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10776 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10777 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10778
10779 case "${host}" in
10780 *-pc-os2_emx | *-pc-os2-emx )
10781 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10782 esac
10783
10784 case "$NUM_TOOLKITS" in
10785 1)
10786 ;;
10787 0)
10788 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10789echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10790 { (exit 1); exit 1; }; }
10791 ;;
10792 *)
10793 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10794echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10795 { (exit 1); exit 1; }; }
10796 esac
10797
f34ca037
MW
10798 # to be removed when --disable-gtk2 isn't needed
10799 if test "x$wxUSE_GTK2" = "xyes"; then
10800 wxGTK_VERSION=2
10801 elif test "x$wxUSE_GTK2" = "xno"; then
10802 wxGTK_VERSION=1
10803 fi
10804
a848cd7e
SC
10805 for toolkit in `echo $ALL_TOOLKITS`; do
10806 var=wxUSE_$toolkit
10807 eval "value=\$${var}"
10808 if test "x$value" != x; then
10809 cache_var=CACHE_$toolkit
10810 eval "cache=\$${cache_var}"
10811 if test "$cache" = 1; then
10812 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10813 eval "version=\$wx${toolkit}_VERSION"
10814 if test "x$version" != "x"; then
10815 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10816 fi
a848cd7e
SC
10817 fi
10818 if test "$value" = 1; then
10819 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10820 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10821echo "${ECHO_T}$toolkit_echo" >&6
10822 fi
10823 fi
10824 done
10825else
10826 if test "x$host_alias" != "x"; then
10827 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10828echo "${ECHO_T}base ($host_alias hosted) only" >&6
10829 else
10830 echo "$as_me:$LINENO: result: base only" >&5
10831echo "${ECHO_T}base only" >&6
10832 fi
10833fi
10834
10835wants_win32=0
10836doesnt_want_win32=0
10837case "${host}" in
10838 *-*-cygwin*)
10839 if test "$wxUSE_MSW" = 1 ; then
10840 wants_win32=1
7275146d 10841 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10842 else
10843 doesnt_want_win32=1
10844 fi
10845 ;;
10846 *-*-mingw*)
10847 wants_win32=1
10848 ;;
10849esac
10850
10851if test "$wxUSE_WINE" = "yes"; then
10852 wants_win32=1
10853 CC=winegcc
10854 CXX=wineg++
a848cd7e
SC
10855 LDFLAGS_GUI="-mwindows"
10856fi
10857
10858if test "$wants_win32" = 1 ; then
10859 USE_UNIX=0
10860 USE_WIN32=1
10861 cat >>confdefs.h <<\_ACEOF
10862#define __WIN32__ 1
10863_ACEOF
10864
10865 cat >>confdefs.h <<\_ACEOF
10866#define __WIN95__ 1
10867_ACEOF
10868
10869 cat >>confdefs.h <<\_ACEOF
10870#define __WINDOWS__ 1
10871_ACEOF
10872
10873 cat >>confdefs.h <<\_ACEOF
10874#define __GNUWIN32__ 1
10875_ACEOF
10876
10877 cat >>confdefs.h <<\_ACEOF
10878#define STRICT 1
10879_ACEOF
10880
10881 cat >>confdefs.h <<\_ACEOF
10882#define WINVER 0x0400
10883_ACEOF
10884
10885fi
10886if test "$doesnt_want_win32" = 1 ; then
10887 USE_UNIX=1
10888 USE_WIN32=0
10889fi
10890
10891if test "$USE_UNIX" = 1 ; then
10892 wxUSE_UNIX=yes
10893 cat >>confdefs.h <<\_ACEOF
10894#define __UNIX__ 1
10895_ACEOF
10896
10897fi
10898
10899
10900cat >confcache <<\_ACEOF
10901# This file is a shell script that caches the results of configure
10902# tests run on this system so they can be shared between configure
10903# scripts and configure runs, see configure's option --config-cache.
10904# It is not useful on other systems. If it contains results you don't
10905# want to keep, you may remove or edit it.
10906#
10907# config.status only pays attention to the cache file if you give it
10908# the --recheck option to rerun configure.
10909#
10910# `ac_cv_env_foo' variables (set or unset) will be overridden when
10911# loading this file, other *unset* `ac_cv_foo' will be assigned the
10912# following values.
10913
10914_ACEOF
10915
10916# The following way of writing the cache mishandles newlines in values,
10917# but we know of no workaround that is simple, portable, and efficient.
10918# So, don't put newlines in cache variables' values.
10919# Ultrix sh set writes to stderr and can't be redirected directly,
10920# and sets the high bit in the cache file unless we assign to the vars.
10921{
10922 (set) 2>&1 |
10923 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10924 *ac_space=\ *)
10925 # `set' does not quote correctly, so add quotes (double-quote
10926 # substitution turns \\\\ into \\, and sed turns \\ into \).
10927 sed -n \
ac1cb8d3
VS
10928 "s/'/'\\\\''/g;
10929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10930 ;;
10931 *)
10932 # `set' quotes correctly as required by POSIX, so do not add quotes.
10933 sed -n \
ac1cb8d3 10934 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10935 ;;
10936 esac;
10937} |
10938 sed '
10939 t clear
10940 : clear
10941 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10942 t end
10943 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10944 : end' >>confcache
10945if diff $cache_file confcache >/dev/null 2>&1; then :; else
10946 if test -w $cache_file; then
10947 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10948 cat confcache >$cache_file
10949 else
10950 echo "not updating unwritable cache $cache_file"
10951 fi
10952fi
10953rm -f confcache
10954
a848cd7e 10955CFLAGS=${CFLAGS:=}
6dcfc289
DE
10956
10957
3006edc0 10958
6dcfc289 10959 ac_ext=c
a848cd7e
SC
10960ac_cpp='$CPP $CPPFLAGS'
10961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10963ac_compiler_gnu=$ac_cv_c_compiler_gnu
10964if test -n "$ac_tool_prefix"; then
10965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10966set dummy ${ac_tool_prefix}gcc; ac_word=$2
10967echo "$as_me:$LINENO: checking for $ac_word" >&5
10968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10969if test "${ac_cv_prog_CC+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971else
10972 if test -n "$CC"; then
10973 ac_cv_prog_CC="$CC" # Let the user override the test.
10974else
10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH
10977do
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 break 2
10985 fi
10986done
10987done
10988
10989fi
10990fi
10991CC=$ac_cv_prog_CC
10992if test -n "$CC"; then
10993 echo "$as_me:$LINENO: result: $CC" >&5
10994echo "${ECHO_T}$CC" >&6
10995else
10996 echo "$as_me:$LINENO: result: no" >&5
10997echo "${ECHO_T}no" >&6
10998fi
10999
11000fi
11001if test -z "$ac_cv_prog_CC"; then
11002 ac_ct_CC=$CC
11003 # Extract the first word of "gcc", so it can be a program name with args.
11004set dummy gcc; ac_word=$2
11005echo "$as_me:$LINENO: checking for $ac_word" >&5
11006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11007if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009else
11010 if test -n "$ac_ct_CC"; then
11011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11012else
11013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014for as_dir in $PATH
11015do
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_prog_ac_ct_CC="gcc"
11021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11022 break 2
11023 fi
11024done
11025done
11026
11027fi
11028fi
11029ac_ct_CC=$ac_cv_prog_ac_ct_CC
11030if test -n "$ac_ct_CC"; then
11031 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11032echo "${ECHO_T}$ac_ct_CC" >&6
11033else
11034 echo "$as_me:$LINENO: result: no" >&5
11035echo "${ECHO_T}no" >&6
11036fi
11037
11038 CC=$ac_ct_CC
11039else
11040 CC="$ac_cv_prog_CC"
11041fi
11042
11043if test -z "$CC"; then
11044 if test -n "$ac_tool_prefix"; then
11045 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11046set dummy ${ac_tool_prefix}cc; ac_word=$2
11047echo "$as_me:$LINENO: checking for $ac_word" >&5
11048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11049if test "${ac_cv_prog_CC+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11051else
11052 if test -n "$CC"; then
11053 ac_cv_prog_CC="$CC" # Let the user override the test.
11054else
11055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056for as_dir in $PATH
11057do
11058 IFS=$as_save_IFS
11059 test -z "$as_dir" && as_dir=.
11060 for ac_exec_ext in '' $ac_executable_extensions; do
11061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11062 ac_cv_prog_CC="${ac_tool_prefix}cc"
11063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11064 break 2
11065 fi
11066done
11067done
11068
11069fi
11070fi
11071CC=$ac_cv_prog_CC
11072if test -n "$CC"; then
11073 echo "$as_me:$LINENO: result: $CC" >&5
11074echo "${ECHO_T}$CC" >&6
11075else
11076 echo "$as_me:$LINENO: result: no" >&5
11077echo "${ECHO_T}no" >&6
11078fi
11079
11080fi
11081if test -z "$ac_cv_prog_CC"; then
11082 ac_ct_CC=$CC
11083 # Extract the first word of "cc", so it can be a program name with args.
11084set dummy cc; ac_word=$2
11085echo "$as_me:$LINENO: checking for $ac_word" >&5
11086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11087if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11089else
11090 if test -n "$ac_ct_CC"; then
11091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11092else
11093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094for as_dir in $PATH
11095do
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11100 ac_cv_prog_ac_ct_CC="cc"
11101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 break 2
11103 fi
11104done
11105done
11106
11107fi
11108fi
11109ac_ct_CC=$ac_cv_prog_ac_ct_CC
11110if test -n "$ac_ct_CC"; then
11111 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11112echo "${ECHO_T}$ac_ct_CC" >&6
11113else
11114 echo "$as_me:$LINENO: result: no" >&5
11115echo "${ECHO_T}no" >&6
11116fi
11117
11118 CC=$ac_ct_CC
11119else
11120 CC="$ac_cv_prog_CC"
11121fi
11122
11123fi
11124if test -z "$CC"; then
11125 # Extract the first word of "cc", so it can be a program name with args.
11126set dummy cc; ac_word=$2
11127echo "$as_me:$LINENO: checking for $ac_word" >&5
11128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11129if test "${ac_cv_prog_CC+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131else
11132 if test -n "$CC"; then
11133 ac_cv_prog_CC="$CC" # Let the user override the test.
11134else
11135 ac_prog_rejected=no
11136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137for as_dir in $PATH
11138do
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11143 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11144 ac_prog_rejected=yes
11145 continue
11146 fi
11147 ac_cv_prog_CC="cc"
11148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11149 break 2
11150 fi
11151done
11152done
11153
11154if test $ac_prog_rejected = yes; then
11155 # We found a bogon in the path, so make sure we never use it.
11156 set dummy $ac_cv_prog_CC
11157 shift
11158 if test $# != 0; then
11159 # We chose a different compiler from the bogus one.
11160 # However, it has the same basename, so the bogon will be chosen
11161 # first if we set CC to just the basename; use the full file name.
11162 shift
11163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11164 fi
11165fi
11166fi
11167fi
11168CC=$ac_cv_prog_CC
11169if test -n "$CC"; then
11170 echo "$as_me:$LINENO: result: $CC" >&5
11171echo "${ECHO_T}$CC" >&6
11172else
11173 echo "$as_me:$LINENO: result: no" >&5
11174echo "${ECHO_T}no" >&6
11175fi
11176
11177fi
11178if test -z "$CC"; then
11179 if test -n "$ac_tool_prefix"; then
11180 for ac_prog in cl
11181 do
11182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11184echo "$as_me:$LINENO: checking for $ac_word" >&5
11185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11186if test "${ac_cv_prog_CC+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11188else
11189 if test -n "$CC"; then
11190 ac_cv_prog_CC="$CC" # Let the user override the test.
11191else
11192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193for as_dir in $PATH
11194do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 break 2
11202 fi
11203done
11204done
11205
11206fi
11207fi
11208CC=$ac_cv_prog_CC
11209if test -n "$CC"; then
11210 echo "$as_me:$LINENO: result: $CC" >&5
11211echo "${ECHO_T}$CC" >&6
11212else
11213 echo "$as_me:$LINENO: result: no" >&5
11214echo "${ECHO_T}no" >&6
11215fi
11216
11217 test -n "$CC" && break
11218 done
11219fi
11220if test -z "$CC"; then
11221 ac_ct_CC=$CC
11222 for ac_prog in cl
11223do
11224 # Extract the first word of "$ac_prog", so it can be a program name with args.
11225set dummy $ac_prog; ac_word=$2
11226echo "$as_me:$LINENO: checking for $ac_word" >&5
11227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11228if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230else
11231 if test -n "$ac_ct_CC"; then
11232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11233else
11234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11235for as_dir in $PATH
11236do
11237 IFS=$as_save_IFS
11238 test -z "$as_dir" && as_dir=.
11239 for ac_exec_ext in '' $ac_executable_extensions; do
11240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11241 ac_cv_prog_ac_ct_CC="$ac_prog"
11242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11243 break 2
11244 fi
11245done
11246done
11247
11248fi
11249fi
11250ac_ct_CC=$ac_cv_prog_ac_ct_CC
11251if test -n "$ac_ct_CC"; then
11252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11253echo "${ECHO_T}$ac_ct_CC" >&6
11254else
11255 echo "$as_me:$LINENO: result: no" >&5
11256echo "${ECHO_T}no" >&6
11257fi
11258
11259 test -n "$ac_ct_CC" && break
11260done
11261
11262 CC=$ac_ct_CC
11263fi
11264
11265fi
11266
11267
11268test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11269See \`config.log' for more details." >&5
11270echo "$as_me: error: no acceptable C compiler found in \$PATH
11271See \`config.log' for more details." >&2;}
11272 { (exit 1); exit 1; }; }
11273
11274# Provide some information about the compiler.
11275echo "$as_me:$LINENO:" \
11276 "checking for C compiler version" >&5
11277ac_compiler=`set X $ac_compile; echo $2`
11278{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11279 (eval $ac_compiler --version </dev/null >&5) 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }
11283{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11284 (eval $ac_compiler -v </dev/null >&5) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }
11288{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11289 (eval $ac_compiler -V </dev/null >&5) 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }
11293
11294cat >conftest.$ac_ext <<_ACEOF
11295/* confdefs.h. */
11296_ACEOF
11297cat confdefs.h >>conftest.$ac_ext
11298cat >>conftest.$ac_ext <<_ACEOF
11299/* end confdefs.h. */
11300
11301int
11302main ()
11303{
11304
11305 ;
11306 return 0;
11307}
11308_ACEOF
11309ac_clean_files_save=$ac_clean_files
11310ac_clean_files="$ac_clean_files a.out a.exe b.out"
11311# Try to create an executable without -o first, disregard a.out.
11312# It will help us diagnose broken compilers, and finding out an intuition
11313# of exeext.
ac1cb8d3
VS
11314echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11315echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11316ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11317if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11318 (eval $ac_link_default) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; then
11322 # Find the output, starting from the most likely. This scheme is
11323# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11324# resort.
11325
11326# Be careful to initialize this variable, since it used to be cached.
11327# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11328ac_cv_exeext=
11329# b.out is created by i960 compilers.
11330for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11331do
11332 test -f "$ac_file" || continue
11333 case $ac_file in
11334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11335 ;;
a848cd7e 11336 conftest.$ac_ext )
ac1cb8d3
VS
11337 # This is the source file.
11338 ;;
a848cd7e 11339 [ab].out )
ac1cb8d3
VS
11340 # We found the default executable, but exeext='' is most
11341 # certainly right.
11342 break;;
a848cd7e 11343 *.* )
ac1cb8d3
VS
11344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11345 # FIXME: I believe we export ac_cv_exeext for Libtool,
11346 # but it would be cool to find out if it's true. Does anybody
11347 # maintain Libtool? --akim.
11348 export ac_cv_exeext
11349 break;;
a848cd7e 11350 * )
ac1cb8d3 11351 break;;
a848cd7e
SC
11352 esac
11353done
11354else
11355 echo "$as_me: failed program was:" >&5
11356sed 's/^/| /' conftest.$ac_ext >&5
11357
11358{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11359See \`config.log' for more details." >&5
11360echo "$as_me: error: C compiler cannot create executables
11361See \`config.log' for more details." >&2;}
11362 { (exit 77); exit 77; }; }
11363fi
11364
11365ac_exeext=$ac_cv_exeext
11366echo "$as_me:$LINENO: result: $ac_file" >&5
11367echo "${ECHO_T}$ac_file" >&6
11368
11369# Check the compiler produces executables we can run. If not, either
11370# the compiler is broken, or we cross compile.
11371echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11372echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11373# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11374# If not cross compiling, check that we can run a simple program.
11375if test "$cross_compiling" != yes; then
11376 if { ac_try='./$ac_file'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 cross_compiling=no
11383 else
11384 if test "$cross_compiling" = maybe; then
11385 cross_compiling=yes
11386 else
11387 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11388If you meant to cross compile, use \`--host'.
11389See \`config.log' for more details." >&5
11390echo "$as_me: error: cannot run C compiled programs.
11391If you meant to cross compile, use \`--host'.
11392See \`config.log' for more details." >&2;}
11393 { (exit 1); exit 1; }; }
11394 fi
11395 fi
11396fi
11397echo "$as_me:$LINENO: result: yes" >&5
11398echo "${ECHO_T}yes" >&6
11399
11400rm -f a.out a.exe conftest$ac_cv_exeext b.out
11401ac_clean_files=$ac_clean_files_save
11402# Check the compiler produces executables we can run. If not, either
11403# the compiler is broken, or we cross compile.
11404echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11405echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11406echo "$as_me:$LINENO: result: $cross_compiling" >&5
11407echo "${ECHO_T}$cross_compiling" >&6
11408
11409echo "$as_me:$LINENO: checking for suffix of executables" >&5
11410echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11412 (eval $ac_link) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; then
11416 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11417# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11418# work properly (i.e., refer to `conftest.exe'), while it won't with
11419# `rm'.
11420for ac_file in conftest.exe conftest conftest.*; do
11421 test -f "$ac_file" || continue
11422 case $ac_file in
11423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11424 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11425 export ac_cv_exeext
11426 break;;
a848cd7e
SC
11427 * ) break;;
11428 esac
11429done
11430else
11431 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11432See \`config.log' for more details." >&5
11433echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11434See \`config.log' for more details." >&2;}
11435 { (exit 1); exit 1; }; }
11436fi
11437
11438rm -f conftest$ac_cv_exeext
11439echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11440echo "${ECHO_T}$ac_cv_exeext" >&6
11441
11442rm -f conftest.$ac_ext
11443EXEEXT=$ac_cv_exeext
11444ac_exeext=$EXEEXT
11445echo "$as_me:$LINENO: checking for suffix of object files" >&5
11446echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11447if test "${ac_cv_objext+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11449else
11450 cat >conftest.$ac_ext <<_ACEOF
11451/* confdefs.h. */
11452_ACEOF
11453cat confdefs.h >>conftest.$ac_ext
11454cat >>conftest.$ac_ext <<_ACEOF
11455/* end confdefs.h. */
11456
11457int
11458main ()
11459{
11460
11461 ;
11462 return 0;
11463}
11464_ACEOF
11465rm -f conftest.o conftest.obj
11466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11467 (eval $ac_compile) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; then
11471 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11472 case $ac_file in
11473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11475 break;;
11476 esac
11477done
11478else
11479 echo "$as_me: failed program was:" >&5
11480sed 's/^/| /' conftest.$ac_ext >&5
11481
11482{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11483See \`config.log' for more details." >&5
11484echo "$as_me: error: cannot compute suffix of object files: cannot compile
11485See \`config.log' for more details." >&2;}
11486 { (exit 1); exit 1; }; }
11487fi
11488
11489rm -f conftest.$ac_cv_objext conftest.$ac_ext
11490fi
11491echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11492echo "${ECHO_T}$ac_cv_objext" >&6
11493OBJEXT=$ac_cv_objext
11494ac_objext=$OBJEXT
11495echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11496echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11497if test "${ac_cv_c_compiler_gnu+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499else
11500 cat >conftest.$ac_ext <<_ACEOF
11501/* confdefs.h. */
11502_ACEOF
11503cat confdefs.h >>conftest.$ac_ext
11504cat >>conftest.$ac_ext <<_ACEOF
11505/* end confdefs.h. */
11506
11507int
11508main ()
11509{
11510#ifndef __GNUC__
11511 choke me
11512#endif
11513
11514 ;
11515 return 0;
11516}
11517_ACEOF
11518rm -f conftest.$ac_objext
11519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11520 (eval $ac_compile) 2>conftest.er1
a848cd7e 11521 ac_status=$?
ac1cb8d3
VS
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
a848cd7e
SC
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
3565d135
RR
11527 { ac_try='test -z "$ac_c_werror_flag"
11528 || test ! -s conftest.err'
ac1cb8d3
VS
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 ac_compiler_gnu=yes
11541else
11542 echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
11545ac_compiler_gnu=no
11546fi
ac1cb8d3 11547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11548ac_cv_c_compiler_gnu=$ac_compiler_gnu
11549
11550fi
11551echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11552echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11553GCC=`test $ac_compiler_gnu = yes && echo yes`
11554ac_test_CFLAGS=${CFLAGS+set}
11555ac_save_CFLAGS=$CFLAGS
8aeeb05c 11556CFLAGS="-g"
a848cd7e
SC
11557echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11558echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11559if test "${ac_cv_prog_cc_g+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561else
11562 cat >conftest.$ac_ext <<_ACEOF
11563/* confdefs.h. */
11564_ACEOF
11565cat confdefs.h >>conftest.$ac_ext
11566cat >>conftest.$ac_ext <<_ACEOF
11567/* end confdefs.h. */
11568
11569int
11570main ()
11571{
11572
11573 ;
11574 return 0;
11575}
11576_ACEOF
11577rm -f conftest.$ac_objext
11578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11579 (eval $ac_compile) 2>conftest.er1
a848cd7e 11580 ac_status=$?
ac1cb8d3
VS
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
a848cd7e
SC
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
3565d135
RR
11586 { ac_try='test -z "$ac_c_werror_flag"
11587 || test ! -s conftest.err'
ac1cb8d3
VS
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 ac_cv_prog_cc_g=yes
11600else
11601 echo "$as_me: failed program was:" >&5
11602sed 's/^/| /' conftest.$ac_ext >&5
11603
11604ac_cv_prog_cc_g=no
11605fi
ac1cb8d3 11606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11607fi
11608echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11609echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11610if test "$ac_test_CFLAGS" = set; then
11611 CFLAGS=$ac_save_CFLAGS
11612elif test $ac_cv_prog_cc_g = yes; then
11613 if test "$GCC" = yes; then
11614 CFLAGS="-g -O2"
11615 else
11616 CFLAGS="-g"
11617 fi
11618else
11619 if test "$GCC" = yes; then
11620 CFLAGS="-O2"
11621 else
11622 CFLAGS=
11623 fi
11624fi
11625echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11626echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11627if test "${ac_cv_prog_cc_stdc+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629else
11630 ac_cv_prog_cc_stdc=no
11631ac_save_CC=$CC
11632cat >conftest.$ac_ext <<_ACEOF
11633/* confdefs.h. */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h. */
11638#include <stdarg.h>
11639#include <stdio.h>
11640#include <sys/types.h>
11641#include <sys/stat.h>
11642/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11643struct buf { int x; };
11644FILE * (*rcsopen) (struct buf *, struct stat *, int);
11645static char *e (p, i)
11646 char **p;
11647 int i;
11648{
11649 return p[i];
11650}
11651static char *f (char * (*g) (char **, int), char **p, ...)
11652{
11653 char *s;
11654 va_list v;
11655 va_start (v,p);
11656 s = g (p, va_arg (v,int));
11657 va_end (v);
11658 return s;
11659}
ac1cb8d3
VS
11660
11661/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11662 function prototypes and stuff, but not '\xHH' hex character constants.
11663 These don't provoke an error unfortunately, instead are silently treated
11664 as 'x'. The following induces an error, until -std1 is added to get
11665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11666 array size at least. It's necessary to write '\x00'==0 to get something
11667 that's true only with -std1. */
11668int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11669
a848cd7e
SC
11670int test (int i, double x);
11671struct s1 {int (*f) (int a);};
11672struct s2 {int (*f) (double a);};
11673int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11674int argc;
11675char **argv;
11676int
11677main ()
11678{
11679return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11680 ;
11681 return 0;
11682}
11683_ACEOF
11684# Don't try gcc -ansi; that turns off useful extensions and
11685# breaks some systems' header files.
11686# AIX -qlanglvl=ansi
11687# Ultrix and OSF/1 -std1
11688# HP-UX 10.20 and later -Ae
11689# HP-UX older versions -Aa -D_HPUX_SOURCE
11690# SVR4 -Xc -D__EXTENSIONS__
11691for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11692do
11693 CC="$ac_save_CC $ac_arg"
11694 rm -f conftest.$ac_objext
11695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11696 (eval $ac_compile) 2>conftest.er1
a848cd7e 11697 ac_status=$?
ac1cb8d3
VS
11698 grep -v '^ *+' conftest.er1 >conftest.err
11699 rm -f conftest.er1
11700 cat conftest.err >&5
a848cd7e
SC
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
3565d135
RR
11703 { ac_try='test -z "$ac_c_werror_flag"
11704 || test ! -s conftest.err'
ac1cb8d3
VS
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 ac_cv_prog_cc_stdc=$ac_arg
11717break
11718else
11719 echo "$as_me: failed program was:" >&5
11720sed 's/^/| /' conftest.$ac_ext >&5
11721
11722fi
ac1cb8d3 11723rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11724done
11725rm -f conftest.$ac_ext conftest.$ac_objext
11726CC=$ac_save_CC
11727
11728fi
11729
11730case "x$ac_cv_prog_cc_stdc" in
11731 x|xno)
11732 echo "$as_me:$LINENO: result: none needed" >&5
11733echo "${ECHO_T}none needed" >&6 ;;
11734 *)
11735 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11736echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11737 CC="$CC $ac_cv_prog_cc_stdc" ;;
11738esac
11739
11740# Some people use a C++ compiler to compile C. Since we use `exit',
11741# in C++ we need to declare it. In case someone uses the same compiler
11742# for both compiling C and C++ we need to have the C++ compiler decide
11743# the declaration of exit, since it's the most demanding environment.
11744cat >conftest.$ac_ext <<_ACEOF
11745#ifndef __cplusplus
11746 choke me
11747#endif
11748_ACEOF
11749rm -f conftest.$ac_objext
11750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11751 (eval $ac_compile) 2>conftest.er1
a848cd7e 11752 ac_status=$?
ac1cb8d3
VS
11753 grep -v '^ *+' conftest.er1 >conftest.err
11754 rm -f conftest.er1
11755 cat conftest.err >&5
a848cd7e
SC
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
3565d135
RR
11758 { ac_try='test -z "$ac_c_werror_flag"
11759 || test ! -s conftest.err'
ac1cb8d3
VS
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 for ac_declaration in \
ac1cb8d3 11772 '' \
a848cd7e
SC
11773 'extern "C" void std::exit (int) throw (); using std::exit;' \
11774 'extern "C" void std::exit (int); using std::exit;' \
11775 'extern "C" void exit (int) throw ();' \
11776 'extern "C" void exit (int);' \
11777 'void exit (int);'
11778do
11779 cat >conftest.$ac_ext <<_ACEOF
11780/* confdefs.h. */
11781_ACEOF
11782cat confdefs.h >>conftest.$ac_ext
11783cat >>conftest.$ac_ext <<_ACEOF
11784/* end confdefs.h. */
de59c161 11785$ac_declaration
ac1cb8d3 11786#include <stdlib.h>
a848cd7e
SC
11787int
11788main ()
11789{
11790exit (42);
11791 ;
11792 return 0;
11793}
11794_ACEOF
11795rm -f conftest.$ac_objext
11796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11797 (eval $ac_compile) 2>conftest.er1
a848cd7e 11798 ac_status=$?
ac1cb8d3
VS
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
a848cd7e
SC
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
3565d135
RR
11804 { ac_try='test -z "$ac_c_werror_flag"
11805 || test ! -s conftest.err'
ac1cb8d3
VS
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; } &&
11811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }; then
11817 :
11818else
11819 echo "$as_me: failed program was:" >&5
11820sed 's/^/| /' conftest.$ac_ext >&5
11821
11822continue
11823fi
ac1cb8d3 11824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11825 cat >conftest.$ac_ext <<_ACEOF
11826/* confdefs.h. */
11827_ACEOF
11828cat confdefs.h >>conftest.$ac_ext
11829cat >>conftest.$ac_ext <<_ACEOF
11830/* end confdefs.h. */
11831$ac_declaration
11832int
11833main ()
11834{
11835exit (42);
11836 ;
11837 return 0;
11838}
11839_ACEOF
11840rm -f conftest.$ac_objext
11841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11842 (eval $ac_compile) 2>conftest.er1
a848cd7e 11843 ac_status=$?
ac1cb8d3
VS
11844 grep -v '^ *+' conftest.er1 >conftest.err
11845 rm -f conftest.er1
11846 cat conftest.err >&5
a848cd7e
SC
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } &&
3565d135
RR
11849 { ac_try='test -z "$ac_c_werror_flag"
11850 || test ! -s conftest.err'
ac1cb8d3
VS
11851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; } &&
11856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 break
11863else
11864 echo "$as_me: failed program was:" >&5
11865sed 's/^/| /' conftest.$ac_ext >&5
11866
11867fi
ac1cb8d3 11868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11869done
11870rm -f conftest*
11871if test -n "$ac_declaration"; then
11872 echo '#ifdef __cplusplus' >>confdefs.h
11873 echo $ac_declaration >>confdefs.h
11874 echo '#endif' >>confdefs.h
11875fi
11876
11877else
11878 echo "$as_me: failed program was:" >&5
11879sed 's/^/| /' conftest.$ac_ext >&5
11880
11881fi
ac1cb8d3 11882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11883ac_ext=c
11884ac_cpp='$CPP $CPPFLAGS'
11885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11887ac_compiler_gnu=$ac_cv_c_compiler_gnu
11888
ab0ad5f1
VZ
11889
11890
11891 ac_ext=c
11892ac_cpp='$CPP $CPPFLAGS'
11893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11895ac_compiler_gnu=$ac_cv_c_compiler_gnu
11896
11897 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11898echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11899if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901else
11902 cat >conftest.$ac_ext <<_ACEOF
11903/* confdefs.h. */
11904_ACEOF
11905cat confdefs.h >>conftest.$ac_ext
11906cat >>conftest.$ac_ext <<_ACEOF
11907/* end confdefs.h. */
11908
11909int
11910main ()
11911{
11912
11913 #ifndef __INTEL_COMPILER
11914 choke me
11915 #endif
11916
11917 ;
11918 return 0;
11919}
11920_ACEOF
11921rm -f conftest.$ac_objext
11922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11923 (eval $ac_compile) 2>conftest.er1
11924 ac_status=$?
11925 grep -v '^ *+' conftest.er1 >conftest.err
11926 rm -f conftest.er1
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } &&
3565d135
RR
11930 { ac_try='test -z "$ac_c_werror_flag"
11931 || test ! -s conftest.err'
ab0ad5f1
VZ
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; } &&
11937 { ac_try='test -s conftest.$ac_objext'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; }; then
11943 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11944else
11945 echo "$as_me: failed program was:" >&5
11946sed 's/^/| /' conftest.$ac_ext >&5
11947
11948bakefile_cv_c_compiler___INTEL_COMPILER=no
11949
11950fi
11951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11952
11953
11954fi
11955echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11956echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11957 ac_ext=c
11958ac_cpp='$CPP $CPPFLAGS'
11959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961ac_compiler_gnu=$ac_cv_c_compiler_gnu
11962
11963 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11964 :; INTELCC=yes
11965 else
11966 :;
11967 fi
11968
11969
11970 if test "x$GCC" != "xyes"; then
3006edc0
VZ
11971 if test "xCC" = "xC"; then
11972 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 11973echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 11974if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976else
11977 cat >conftest.$ac_ext <<_ACEOF
11978/* confdefs.h. */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h. */
11983
11984int
11985main ()
11986{
11987
11988 ;
11989 return 0;
11990}
11991_ACEOF
11992rm -f conftest.$ac_objext conftest.$ac_ext.o
11993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11994 (eval $ac_compile) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; then
11998 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11999 case $ac_file in
12000 conftest.$ac_ext.o)
0093c2fc 12001 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12002 ;;
12003 *)
12004 ;;
12005 esac
12006done
12007else
12008 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12009See \`config.log' for more details." >&5
12010echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12011See \`config.log' for more details." >&2;}
12012 { (exit 1); exit 1; }; }
12013
12014fi
12015
12016rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12017
12018fi
0093c2fc
VZ
12019echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12020echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12021if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12022 if test "c" = "c"; then
0093c2fc 12023 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12024 fi
12025 if test "c" = "cxx"; then
0093c2fc 12026 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12027 fi
12028fi
12029
0093c2fc 12030 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12031 unset ac_cv_prog_cc_g
12032 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12033ac_save_CFLAGS=$CFLAGS
8aeeb05c 12034CFLAGS="-g"
480ccd21
DE
12035echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12036echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12037if test "${ac_cv_prog_cc_g+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12039else
12040 cat >conftest.$ac_ext <<_ACEOF
12041/* confdefs.h. */
12042_ACEOF
12043cat confdefs.h >>conftest.$ac_ext
12044cat >>conftest.$ac_ext <<_ACEOF
12045/* end confdefs.h. */
12046
12047int
12048main ()
12049{
12050
12051 ;
12052 return 0;
12053}
12054_ACEOF
12055rm -f conftest.$ac_objext
12056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12057 (eval $ac_compile) 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } &&
3565d135
RR
12064 { ac_try='test -z "$ac_c_werror_flag"
12065 || test ! -s conftest.err'
480ccd21
DE
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; } &&
12071 { ac_try='test -s conftest.$ac_objext'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 ac_cv_prog_cc_g=yes
12078else
12079 echo "$as_me: failed program was:" >&5
12080sed 's/^/| /' conftest.$ac_ext >&5
12081
12082ac_cv_prog_cc_g=no
12083fi
12084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12085fi
12086echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12087echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12088if test "$ac_test_CFLAGS" = set; then
12089 CFLAGS=$ac_save_CFLAGS
12090elif test $ac_cv_prog_cc_g = yes; then
12091 if test "$GCC" = yes; then
12092 CFLAGS="-g -O2"
12093 else
12094 CFLAGS="-g"
12095 fi
12096else
12097 if test "$GCC" = yes; then
12098 CFLAGS="-O2"
12099 else
12100 CFLAGS=
12101 fi
12102fi
3006edc0 12103 fi
ab0ad5f1 12104 fi
3006edc0
VZ
12105
12106 case `uname -s` in
12107 AIX*)
12108 ac_ext=c
12109ac_cpp='$CPP $CPPFLAGS'
12110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12112ac_compiler_gnu=$ac_cv_c_compiler_gnu
12113
12114echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12115echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12116if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118else
12119 cat >conftest.$ac_ext <<_ACEOF
12120/* confdefs.h. */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
12124/* end confdefs.h. */
12125
12126int
12127main ()
12128{
12129#ifndef __xlC__
12130 choke me
12131#endif
12132
12133 ;
12134 return 0;
12135}
12136_ACEOF
12137rm -f conftest.$ac_objext
12138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12139 (eval $ac_compile) 2>conftest.er1
12140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } &&
3565d135
RR
12146 { ac_try='test -z "$ac_c_werror_flag"
12147 || test ! -s conftest.err'
3006edc0
VZ
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; } &&
12153 { ac_try='test -s conftest.$ac_objext'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; }; then
0093c2fc 12159 bakefile_compiler_xlc=yes
3006edc0
VZ
12160else
12161 echo "$as_me: failed program was:" >&5
12162sed 's/^/| /' conftest.$ac_ext >&5
12163
0093c2fc 12164bakefile_compiler_xlc=no
3006edc0
VZ
12165fi
12166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12167 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12168
12169fi
0093c2fc
VZ
12170echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12171echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12172
0093c2fc 12173XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12174ac_ext=c
12175ac_cpp='$CPP $CPPFLAGS'
12176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12178ac_compiler_gnu=$ac_cv_c_compiler_gnu
12179
12180
12181 ;;
12182
12183 Darwin)
12184 ac_ext=c
95986553
DE
12185ac_cpp='$CPP $CPPFLAGS'
12186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12188ac_compiler_gnu=$ac_cv_c_compiler_gnu
12189
12190echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12191echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12192if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12193 echo $ECHO_N "(cached) $ECHO_C" >&6
12194else
12195 cat >conftest.$ac_ext <<_ACEOF
12196/* confdefs.h. */
12197_ACEOF
12198cat confdefs.h >>conftest.$ac_ext
12199cat >>conftest.$ac_ext <<_ACEOF
12200/* end confdefs.h. */
12201
12202int
12203main ()
12204{
12205#ifndef __MWERKS__
12206 choke me
12207#endif
12208
12209 ;
12210 return 0;
12211}
12212_ACEOF
12213rm -f conftest.$ac_objext
12214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12215 (eval $ac_compile) 2>conftest.er1
12216 ac_status=$?
12217 grep -v '^ *+' conftest.er1 >conftest.err
12218 rm -f conftest.er1
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
3565d135
RR
12222 { ac_try='test -z "$ac_c_werror_flag"
12223 || test ! -s conftest.err'
95986553
DE
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest.$ac_objext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 bakefile_compiler_mwerks=yes
12236else
12237 echo "$as_me: failed program was:" >&5
12238sed 's/^/| /' conftest.$ac_ext >&5
12239
12240bakefile_compiler_mwerks=no
12241fi
12242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12243 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12244
12245fi
12246echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12247echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12248
0e6fa1d9 12249MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12250ac_ext=c
12251ac_cpp='$CPP $CPPFLAGS'
12252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12254ac_compiler_gnu=$ac_cv_c_compiler_gnu
12255
12256
3006edc0 12257 ac_ext=c
9273ffba
DE
12258ac_cpp='$CPP $CPPFLAGS'
12259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12261ac_compiler_gnu=$ac_cv_c_compiler_gnu
12262
12263echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12264echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12265if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267else
12268 cat >conftest.$ac_ext <<_ACEOF
12269/* confdefs.h. */
12270_ACEOF
12271cat confdefs.h >>conftest.$ac_ext
12272cat >>conftest.$ac_ext <<_ACEOF
12273/* end confdefs.h. */
12274
12275int
12276main ()
12277{
12278#ifndef __xlC__
12279 choke me
12280#endif
12281
12282 ;
12283 return 0;
12284}
12285_ACEOF
12286rm -f conftest.$ac_objext
12287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12288 (eval $ac_compile) 2>conftest.er1
12289 ac_status=$?
12290 grep -v '^ *+' conftest.er1 >conftest.err
12291 rm -f conftest.er1
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
3565d135
RR
12295 { ac_try='test -z "$ac_c_werror_flag"
12296 || test ! -s conftest.err'
9273ffba
DE
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
12302 { ac_try='test -s conftest.$ac_objext'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
0093c2fc 12308 bakefile_compiler_xlc=yes
9273ffba
DE
12309else
12310 echo "$as_me: failed program was:" >&5
12311sed 's/^/| /' conftest.$ac_ext >&5
12312
0093c2fc 12313bakefile_compiler_xlc=no
9273ffba
DE
12314fi
12315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12316 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12317
12318fi
0093c2fc
VZ
12319echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12320echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12321
0093c2fc 12322XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12323ac_ext=c
12324ac_cpp='$CPP $CPPFLAGS'
12325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12327ac_compiler_gnu=$ac_cv_c_compiler_gnu
12328
12329
3006edc0
VZ
12330 ;;
12331
12332 IRIX*)
a848cd7e 12333
6dcfc289 12334
0ad5d837
VZ
12335 ac_ext=c
12336ac_cpp='$CPP $CPPFLAGS'
12337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12339ac_compiler_gnu=$ac_cv_c_compiler_gnu
12340
12341 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12342echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12343if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12345else
12346 cat >conftest.$ac_ext <<_ACEOF
12347/* confdefs.h. */
12348_ACEOF
12349cat confdefs.h >>conftest.$ac_ext
12350cat >>conftest.$ac_ext <<_ACEOF
12351/* end confdefs.h. */
12352
12353int
12354main ()
12355{
12356
12357 #ifndef _SGI_COMPILER_VERSION
12358 choke me
12359 #endif
12360
12361 ;
12362 return 0;
12363}
12364_ACEOF
12365rm -f conftest.$ac_objext
12366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12367 (eval $ac_compile) 2>conftest.er1
12368 ac_status=$?
12369 grep -v '^ *+' conftest.er1 >conftest.err
12370 rm -f conftest.er1
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
3565d135
RR
12374 { ac_try='test -z "$ac_c_werror_flag"
12375 || test ! -s conftest.err'
0ad5d837
VZ
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; } &&
12381 { ac_try='test -s conftest.$ac_objext'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12387 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12388else
12389 echo "$as_me: failed program was:" >&5
12390sed 's/^/| /' conftest.$ac_ext >&5
12391
12392bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12393
12394fi
12395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12396
12397
12398fi
12399echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12400echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12401 ac_ext=c
12402ac_cpp='$CPP $CPPFLAGS'
12403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12405ac_compiler_gnu=$ac_cv_c_compiler_gnu
12406
12407 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12408 :; SGICC=yes
12409 else
12410 :;
12411 fi
12412
12413
3006edc0
VZ
12414 ;;
12415
0093c2fc 12416 HP-UX*)
3006edc0
VZ
12417
12418
12419 ac_ext=c
12420ac_cpp='$CPP $CPPFLAGS'
12421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12423ac_compiler_gnu=$ac_cv_c_compiler_gnu
12424
0093c2fc
VZ
12425 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12426echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12427if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12429else
12430 cat >conftest.$ac_ext <<_ACEOF
12431/* confdefs.h. */
12432_ACEOF
12433cat confdefs.h >>conftest.$ac_ext
12434cat >>conftest.$ac_ext <<_ACEOF
12435/* end confdefs.h. */
12436
12437int
12438main ()
12439{
12440
0093c2fc 12441 #ifndef __HP_cc
3006edc0
VZ
12442 choke me
12443 #endif
12444
12445 ;
12446 return 0;
12447}
12448_ACEOF
12449rm -f conftest.$ac_objext
12450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12451 (eval $ac_compile) 2>conftest.er1
12452 ac_status=$?
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } &&
3565d135
RR
12458 { ac_try='test -z "$ac_c_werror_flag"
12459 || test ! -s conftest.err'
3006edc0
VZ
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest.$ac_objext'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
0093c2fc 12471 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12472else
12473 echo "$as_me: failed program was:" >&5
12474sed 's/^/| /' conftest.$ac_ext >&5
12475
0093c2fc 12476bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12477
12478fi
12479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12480
12481
12482fi
0093c2fc
VZ
12483echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12484echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12485 ac_ext=c
12486ac_cpp='$CPP $CPPFLAGS'
12487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12489ac_compiler_gnu=$ac_cv_c_compiler_gnu
12490
0093c2fc
VZ
12491 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12492 :; HPCC=yes
a1aa0349
VZ
12493 else
12494 :;
12495 fi
12496
12497
12498 ;;
12499
0093c2fc 12500 OSF1)
a1aa0349
VZ
12501
12502
12503 ac_ext=c
12504ac_cpp='$CPP $CPPFLAGS'
12505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12507ac_compiler_gnu=$ac_cv_c_compiler_gnu
12508
0093c2fc
VZ
12509 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12510echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12511if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513else
12514 cat >conftest.$ac_ext <<_ACEOF
12515/* confdefs.h. */
12516_ACEOF
12517cat confdefs.h >>conftest.$ac_ext
12518cat >>conftest.$ac_ext <<_ACEOF
12519/* end confdefs.h. */
12520
12521int
12522main ()
12523{
12524
0093c2fc 12525 #ifndef __DECC
a1aa0349
VZ
12526 choke me
12527 #endif
12528
12529 ;
12530 return 0;
12531}
12532_ACEOF
12533rm -f conftest.$ac_objext
12534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535 (eval $ac_compile) 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); } &&
3565d135
RR
12542 { ac_try='test -z "$ac_c_werror_flag"
12543 || test ! -s conftest.err'
a1aa0349
VZ
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; } &&
12549 { ac_try='test -s conftest.$ac_objext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
0093c2fc 12555 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12556else
12557 echo "$as_me: failed program was:" >&5
12558sed 's/^/| /' conftest.$ac_ext >&5
12559
0093c2fc 12560bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12561
12562fi
12563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12564
12565
12566fi
0093c2fc
VZ
12567echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12568echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12569 ac_ext=c
12570ac_cpp='$CPP $CPPFLAGS'
12571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12573ac_compiler_gnu=$ac_cv_c_compiler_gnu
12574
0093c2fc
VZ
12575 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12576 :; COMPAQCC=yes
12577 else
12578 :;
12579 fi
12580
12581
12582 ;;
12583
12584 SunOS)
12585
12586
12587 ac_ext=c
12588ac_cpp='$CPP $CPPFLAGS'
12589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12591ac_compiler_gnu=$ac_cv_c_compiler_gnu
12592
12593 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12594echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12595if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12597else
12598 cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h. */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h. */
12604
12605int
12606main ()
12607{
12608
12609 #ifndef __SUNPRO_C
12610 choke me
12611 #endif
12612
12613 ;
12614 return 0;
12615}
12616_ACEOF
12617rm -f conftest.$ac_objext
12618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12619 (eval $ac_compile) 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } &&
3565d135
RR
12626 { ac_try='test -z "$ac_c_werror_flag"
12627 || test ! -s conftest.err'
0093c2fc
VZ
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; } &&
12633 { ac_try='test -s conftest.$ac_objext'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; }; then
12639 bakefile_cv_c_compiler___SUNPRO_C=yes
12640else
12641 echo "$as_me: failed program was:" >&5
12642sed 's/^/| /' conftest.$ac_ext >&5
12643
12644bakefile_cv_c_compiler___SUNPRO_C=no
12645
12646fi
12647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12648
12649
12650fi
12651echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12652echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12653 ac_ext=c
12654ac_cpp='$CPP $CPPFLAGS'
12655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12657ac_compiler_gnu=$ac_cv_c_compiler_gnu
12658
12659 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12660 :; SUNCC=yes
3006edc0
VZ
12661 else
12662 :;
12663 fi
12664
12665
12666 ;;
12667 esac
ab0ad5f1 12668 fi
a9e5b1f0
MW
12669
12670
3006edc0 12671
a848cd7e
SC
12672ac_ext=c
12673ac_cpp='$CPP $CPPFLAGS'
12674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12676ac_compiler_gnu=$ac_cv_c_compiler_gnu
12677echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12678echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12679# On Suns, sometimes $CPP names a directory.
12680if test -n "$CPP" && test -d "$CPP"; then
12681 CPP=
12682fi
12683if test -z "$CPP"; then
12684 if test "${ac_cv_prog_CPP+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686else
12687 # Double quotes because CPP needs to be expanded
12688 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12689 do
12690 ac_preproc_ok=false
12691for ac_c_preproc_warn_flag in '' yes
12692do
12693 # Use a header file that comes with gcc, so configuring glibc
12694 # with a fresh cross-compiler works.
12695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12696 # <limits.h> exists even on freestanding compilers.
12697 # On the NeXT, cc -E runs the code through the compiler's parser,
12698 # not just through cpp. "Syntax error" is here to catch this case.
12699 cat >conftest.$ac_ext <<_ACEOF
12700/* confdefs.h. */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h. */
12705#ifdef __STDC__
12706# include <limits.h>
12707#else
12708# include <assert.h>
12709#endif
ac1cb8d3 12710 Syntax error
a848cd7e
SC
12711_ACEOF
12712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12714 ac_status=$?
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } >/dev/null; then
12720 if test -s conftest.err; then
12721 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12723 else
12724 ac_cpp_err=
12725 fi
12726else
12727 ac_cpp_err=yes
12728fi
12729if test -z "$ac_cpp_err"; then
12730 :
12731else
12732 echo "$as_me: failed program was:" >&5
12733sed 's/^/| /' conftest.$ac_ext >&5
12734
12735 # Broken: fails on valid input.
12736continue
12737fi
12738rm -f conftest.err conftest.$ac_ext
12739
12740 # OK, works on sane cases. Now check whether non-existent headers
12741 # can be detected and how.
12742 cat >conftest.$ac_ext <<_ACEOF
12743/* confdefs.h. */
12744_ACEOF
12745cat confdefs.h >>conftest.$ac_ext
12746cat >>conftest.$ac_ext <<_ACEOF
12747/* end confdefs.h. */
12748#include <ac_nonexistent.h>
12749_ACEOF
12750if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12752 ac_status=$?
12753 grep -v '^ *+' conftest.er1 >conftest.err
12754 rm -f conftest.er1
12755 cat conftest.err >&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } >/dev/null; then
12758 if test -s conftest.err; then
12759 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12761 else
12762 ac_cpp_err=
12763 fi
12764else
12765 ac_cpp_err=yes
12766fi
12767if test -z "$ac_cpp_err"; then
12768 # Broken: success on invalid input.
12769continue
12770else
12771 echo "$as_me: failed program was:" >&5
12772sed 's/^/| /' conftest.$ac_ext >&5
12773
12774 # Passes both tests.
12775ac_preproc_ok=:
12776break
12777fi
12778rm -f conftest.err conftest.$ac_ext
12779
12780done
12781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12782rm -f conftest.err conftest.$ac_ext
12783if $ac_preproc_ok; then
12784 break
12785fi
12786
12787 done
12788 ac_cv_prog_CPP=$CPP
12789
12790fi
12791 CPP=$ac_cv_prog_CPP
12792else
12793 ac_cv_prog_CPP=$CPP
12794fi
12795echo "$as_me:$LINENO: result: $CPP" >&5
12796echo "${ECHO_T}$CPP" >&6
12797ac_preproc_ok=false
12798for ac_c_preproc_warn_flag in '' yes
12799do
12800 # Use a header file that comes with gcc, so configuring glibc
12801 # with a fresh cross-compiler works.
12802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12803 # <limits.h> exists even on freestanding compilers.
12804 # On the NeXT, cc -E runs the code through the compiler's parser,
12805 # not just through cpp. "Syntax error" is here to catch this case.
12806 cat >conftest.$ac_ext <<_ACEOF
12807/* confdefs.h. */
12808_ACEOF
12809cat confdefs.h >>conftest.$ac_ext
12810cat >>conftest.$ac_ext <<_ACEOF
12811/* end confdefs.h. */
12812#ifdef __STDC__
12813# include <limits.h>
12814#else
12815# include <assert.h>
12816#endif
ac1cb8d3 12817 Syntax error
a848cd7e
SC
12818_ACEOF
12819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } >/dev/null; then
12827 if test -s conftest.err; then
12828 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12830 else
12831 ac_cpp_err=
12832 fi
12833else
12834 ac_cpp_err=yes
12835fi
12836if test -z "$ac_cpp_err"; then
12837 :
12838else
12839 echo "$as_me: failed program was:" >&5
12840sed 's/^/| /' conftest.$ac_ext >&5
12841
12842 # Broken: fails on valid input.
12843continue
12844fi
12845rm -f conftest.err conftest.$ac_ext
12846
12847 # OK, works on sane cases. Now check whether non-existent headers
12848 # can be detected and how.
12849 cat >conftest.$ac_ext <<_ACEOF
12850/* confdefs.h. */
12851_ACEOF
12852cat confdefs.h >>conftest.$ac_ext
12853cat >>conftest.$ac_ext <<_ACEOF
12854/* end confdefs.h. */
12855#include <ac_nonexistent.h>
12856_ACEOF
12857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } >/dev/null; then
12865 if test -s conftest.err; then
12866 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12868 else
12869 ac_cpp_err=
12870 fi
12871else
12872 ac_cpp_err=yes
12873fi
12874if test -z "$ac_cpp_err"; then
12875 # Broken: success on invalid input.
12876continue
12877else
12878 echo "$as_me: failed program was:" >&5
12879sed 's/^/| /' conftest.$ac_ext >&5
12880
12881 # Passes both tests.
12882ac_preproc_ok=:
12883break
12884fi
12885rm -f conftest.err conftest.$ac_ext
12886
12887done
12888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12889rm -f conftest.err conftest.$ac_ext
12890if $ac_preproc_ok; then
12891 :
12892else
12893 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12894See \`config.log' for more details." >&5
12895echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12896See \`config.log' for more details." >&2;}
12897 { (exit 1); exit 1; }; }
12898fi
12899
12900ac_ext=c
12901ac_cpp='$CPP $CPPFLAGS'
12902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12904ac_compiler_gnu=$ac_cv_c_compiler_gnu
12905
12906
12907echo "$as_me:$LINENO: checking for egrep" >&5
12908echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12909if test "${ac_cv_prog_egrep+set}" = set; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12911else
12912 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12913 then ac_cv_prog_egrep='grep -E'
12914 else ac_cv_prog_egrep='egrep'
12915 fi
12916fi
12917echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12918echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12919 EGREP=$ac_cv_prog_egrep
12920
12921
12922if test $ac_cv_c_compiler_gnu = yes; then
12923 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12924echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12925if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12927else
12928 ac_pattern="Autoconf.*'x'"
12929 cat >conftest.$ac_ext <<_ACEOF
12930/* confdefs.h. */
12931_ACEOF
12932cat confdefs.h >>conftest.$ac_ext
12933cat >>conftest.$ac_ext <<_ACEOF
12934/* end confdefs.h. */
12935#include <sgtty.h>
12936Autoconf TIOCGETP
12937_ACEOF
12938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12939 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12940 ac_cv_prog_gcc_traditional=yes
12941else
12942 ac_cv_prog_gcc_traditional=no
12943fi
12944rm -f conftest*
12945
12946
12947 if test $ac_cv_prog_gcc_traditional = no; then
12948 cat >conftest.$ac_ext <<_ACEOF
12949/* confdefs.h. */
12950_ACEOF
12951cat confdefs.h >>conftest.$ac_ext
12952cat >>conftest.$ac_ext <<_ACEOF
12953/* end confdefs.h. */
12954#include <termio.h>
12955Autoconf TCGETA
12956_ACEOF
12957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12958 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12959 ac_cv_prog_gcc_traditional=yes
12960fi
12961rm -f conftest*
12962
12963 fi
12964fi
12965echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12966echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12967 if test $ac_cv_prog_gcc_traditional = yes; then
12968 CC="$CC -traditional"
12969 fi
12970fi
12971
12972
12973
12974
12975ac_ext=cc
12976ac_cpp='$CXXCPP $CPPFLAGS'
12977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12980
12981
12982CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12983
12984
3006edc0 12985
6dcfc289 12986 ac_ext=cc
a848cd7e
SC
12987ac_cpp='$CXXCPP $CPPFLAGS'
12988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12991if test -n "$ac_tool_prefix"; then
12992 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12993 do
12994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12995set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12996echo "$as_me:$LINENO: checking for $ac_word" >&5
12997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12998if test "${ac_cv_prog_CXX+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13000else
13001 if test -n "$CXX"; then
13002 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13003else
13004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005for as_dir in $PATH
13006do
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
13010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13011 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 break 2
13014 fi
13015done
13016done
13017
13018fi
13019fi
13020CXX=$ac_cv_prog_CXX
13021if test -n "$CXX"; then
13022 echo "$as_me:$LINENO: result: $CXX" >&5
13023echo "${ECHO_T}$CXX" >&6
13024else
13025 echo "$as_me:$LINENO: result: no" >&5
13026echo "${ECHO_T}no" >&6
13027fi
13028
13029 test -n "$CXX" && break
13030 done
13031fi
13032if test -z "$CXX"; then
13033 ac_ct_CXX=$CXX
13034 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13035do
13036 # Extract the first word of "$ac_prog", so it can be a program name with args.
13037set dummy $ac_prog; ac_word=$2
13038echo "$as_me:$LINENO: checking for $ac_word" >&5
13039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13040if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13042else
13043 if test -n "$ac_ct_CXX"; then
13044 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13045else
13046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047for as_dir in $PATH
13048do
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13053 ac_cv_prog_ac_ct_CXX="$ac_prog"
13054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 break 2
13056 fi
13057done
13058done
13059
13060fi
13061fi
13062ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13063if test -n "$ac_ct_CXX"; then
13064 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13065echo "${ECHO_T}$ac_ct_CXX" >&6
13066else
13067 echo "$as_me:$LINENO: result: no" >&5
13068echo "${ECHO_T}no" >&6
13069fi
13070
13071 test -n "$ac_ct_CXX" && break
13072done
13073test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13074
13075 CXX=$ac_ct_CXX
13076fi
13077
13078
13079# Provide some information about the compiler.
13080echo "$as_me:$LINENO:" \
13081 "checking for C++ compiler version" >&5
13082ac_compiler=`set X $ac_compile; echo $2`
13083{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13084 (eval $ac_compiler --version </dev/null >&5) 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }
13088{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13089 (eval $ac_compiler -v </dev/null >&5) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }
13093{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13094 (eval $ac_compiler -V </dev/null >&5) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }
13098
13099echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13100echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13101if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103else
13104 cat >conftest.$ac_ext <<_ACEOF
13105/* confdefs.h. */
13106_ACEOF
13107cat confdefs.h >>conftest.$ac_ext
13108cat >>conftest.$ac_ext <<_ACEOF
13109/* end confdefs.h. */
13110
13111int
13112main ()
13113{
13114#ifndef __GNUC__
13115 choke me
13116#endif
13117
13118 ;
13119 return 0;
13120}
13121_ACEOF
13122rm -f conftest.$ac_objext
13123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13124 (eval $ac_compile) 2>conftest.er1
a848cd7e 13125 ac_status=$?
ac1cb8d3
VS
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
a848cd7e
SC
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
3565d135
RR
13131 { ac_try='test -z "$ac_cxx_werror_flag"
13132 || test ! -s conftest.err'
ac1cb8d3
VS
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; } &&
13138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13144 ac_compiler_gnu=yes
13145else
13146 echo "$as_me: failed program was:" >&5
13147sed 's/^/| /' conftest.$ac_ext >&5
13148
13149ac_compiler_gnu=no
13150fi
ac1cb8d3 13151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13152ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13153
13154fi
13155echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13156echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13157GXX=`test $ac_compiler_gnu = yes && echo yes`
13158ac_test_CXXFLAGS=${CXXFLAGS+set}
13159ac_save_CXXFLAGS=$CXXFLAGS
13160CXXFLAGS="-g"
13161echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13162echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13163if test "${ac_cv_prog_cxx_g+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165else
13166 cat >conftest.$ac_ext <<_ACEOF
13167/* confdefs.h. */
13168_ACEOF
13169cat confdefs.h >>conftest.$ac_ext
13170cat >>conftest.$ac_ext <<_ACEOF
13171/* end confdefs.h. */
13172
13173int
13174main ()
13175{
13176
13177 ;
13178 return 0;
13179}
13180_ACEOF
13181rm -f conftest.$ac_objext
13182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13183 (eval $ac_compile) 2>conftest.er1
a848cd7e 13184 ac_status=$?
ac1cb8d3
VS
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
a848cd7e
SC
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } &&
3565d135
RR
13190 { ac_try='test -z "$ac_cxx_werror_flag"
13191 || test ! -s conftest.err'
ac1cb8d3
VS
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_cv_prog_cxx_g=yes
13204else
13205 echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208ac_cv_prog_cxx_g=no
13209fi
ac1cb8d3 13210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13211fi
13212echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13213echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13214if test "$ac_test_CXXFLAGS" = set; then
13215 CXXFLAGS=$ac_save_CXXFLAGS
13216elif test $ac_cv_prog_cxx_g = yes; then
13217 if test "$GXX" = yes; then
8aeeb05c 13218 CXXFLAGS="-g -O2"
a848cd7e 13219 else
8aeeb05c 13220 CXXFLAGS="-g"
a848cd7e
SC
13221 fi
13222else
13223 if test "$GXX" = yes; then
13224 CXXFLAGS="-O2"
13225 else
13226 CXXFLAGS=
13227 fi
13228fi
13229for ac_declaration in \
ac1cb8d3 13230 '' \
a848cd7e
SC
13231 'extern "C" void std::exit (int) throw (); using std::exit;' \
13232 'extern "C" void std::exit (int); using std::exit;' \
13233 'extern "C" void exit (int) throw ();' \
13234 'extern "C" void exit (int);' \
13235 'void exit (int);'
13236do
13237 cat >conftest.$ac_ext <<_ACEOF
13238/* confdefs.h. */
13239_ACEOF
13240cat confdefs.h >>conftest.$ac_ext
13241cat >>conftest.$ac_ext <<_ACEOF
13242/* end confdefs.h. */
de59c161 13243$ac_declaration
ac1cb8d3 13244#include <stdlib.h>
a848cd7e
SC
13245int
13246main ()
13247{
13248exit (42);
13249 ;
13250 return 0;
13251}
13252_ACEOF
13253rm -f conftest.$ac_objext
13254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13255 (eval $ac_compile) 2>conftest.er1
a848cd7e 13256 ac_status=$?
ac1cb8d3
VS
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
a848cd7e
SC
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
3565d135
RR
13262 { ac_try='test -z "$ac_cxx_werror_flag"
13263 || test ! -s conftest.err'
ac1cb8d3
VS
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 :
13276else
13277 echo "$as_me: failed program was:" >&5
13278sed 's/^/| /' conftest.$ac_ext >&5
13279
13280continue
13281fi
ac1cb8d3 13282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13283 cat >conftest.$ac_ext <<_ACEOF
13284/* confdefs.h. */
13285_ACEOF
13286cat confdefs.h >>conftest.$ac_ext
13287cat >>conftest.$ac_ext <<_ACEOF
13288/* end confdefs.h. */
13289$ac_declaration
13290int
13291main ()
13292{
13293exit (42);
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298rm -f conftest.$ac_objext
13299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13300 (eval $ac_compile) 2>conftest.er1
a848cd7e 13301 ac_status=$?
ac1cb8d3
VS
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
a848cd7e
SC
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
3565d135
RR
13307 { ac_try='test -z "$ac_cxx_werror_flag"
13308 || test ! -s conftest.err'
ac1cb8d3
VS
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; } &&
13314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13320 break
13321else
13322 echo "$as_me: failed program was:" >&5
13323sed 's/^/| /' conftest.$ac_ext >&5
13324
13325fi
ac1cb8d3 13326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13327done
13328rm -f conftest*
13329if test -n "$ac_declaration"; then
13330 echo '#ifdef __cplusplus' >>confdefs.h
13331 echo $ac_declaration >>confdefs.h
13332 echo '#endif' >>confdefs.h
13333fi
13334
13335ac_ext=cc
13336ac_cpp='$CXXCPP $CPPFLAGS'
13337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13340
ab0ad5f1
VZ
13341
13342
13343 ac_ext=cc
13344ac_cpp='$CXXCPP $CPPFLAGS'
13345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13348
13349 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13350echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13351if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13353else
13354 cat >conftest.$ac_ext <<_ACEOF
13355/* confdefs.h. */
13356_ACEOF
13357cat confdefs.h >>conftest.$ac_ext
13358cat >>conftest.$ac_ext <<_ACEOF
13359/* end confdefs.h. */
13360
13361int
13362main ()
13363{
13364
13365 #ifndef __INTEL_COMPILER
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); } &&
3565d135
RR
13382 { ac_try='test -z "$ac_cxx_werror_flag"
13383 || test ! -s conftest.err'
ab0ad5f1
VZ
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try='test -s conftest.$ac_objext'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13395 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13396else
13397 echo "$as_me: failed program was:" >&5
13398sed 's/^/| /' conftest.$ac_ext >&5
13399
13400bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13401
13402fi
13403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13404
13405
13406fi
13407echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13408echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13409 ac_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 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13416 :; INTELCXX=yes
13417 else
13418 :;
13419 fi
13420
13421
3006edc0
VZ
13422 if test "x$GCXX" != "xyes"; then
13423 if test "xCXX" = "xC"; then
13424 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13425echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13426if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13428else
13429 cat >conftest.$ac_ext <<_ACEOF
13430/* confdefs.h. */
13431_ACEOF
13432cat confdefs.h >>conftest.$ac_ext
13433cat >>conftest.$ac_ext <<_ACEOF
13434/* end confdefs.h. */
13435
13436int
13437main ()
13438{
13439
13440 ;
13441 return 0;
13442}
13443_ACEOF
13444rm -f conftest.$ac_objext conftest.$ac_ext.o
13445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13446 (eval $ac_compile) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; then
13450 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13451 case $ac_file in
13452 conftest.$ac_ext.o)
0093c2fc 13453 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13454 ;;
13455 *)
13456 ;;
13457 esac
13458done
13459else
13460 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13461See \`config.log' for more details." >&5
13462echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13463See \`config.log' for more details." >&2;}
13464 { (exit 1); exit 1; }; }
13465
13466fi
13467
13468rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13469
13470fi
0093c2fc
VZ
13471echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13472echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13473if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13474 if test "cxx" = "c"; then
0093c2fc 13475 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13476 fi
13477 if test "cxx" = "cxx"; then
0093c2fc 13478 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13479 fi
13480fi
13481
0093c2fc 13482 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13483 unset ac_cv_prog_cc_g
13484 ac_test_CFLAGS=${CFLAGS+set}
13485ac_save_CFLAGS=$CFLAGS
8aeeb05c 13486CFLAGS="-g"
3006edc0
VZ
13487echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13488echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13489if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13491else
13492 cat >conftest.$ac_ext <<_ACEOF
13493/* confdefs.h. */
13494_ACEOF
13495cat confdefs.h >>conftest.$ac_ext
13496cat >>conftest.$ac_ext <<_ACEOF
13497/* end confdefs.h. */
13498
13499int
13500main ()
13501{
13502
13503 ;
13504 return 0;
13505}
13506_ACEOF
13507rm -f conftest.$ac_objext
13508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13509 (eval $ac_compile) 2>conftest.er1
13510 ac_status=$?
13511 grep -v '^ *+' conftest.er1 >conftest.err
13512 rm -f conftest.er1
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
3565d135
RR
13516 { ac_try='test -z "$ac_cxx_werror_flag"
13517 || test ! -s conftest.err'
480ccd21
DE
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; } &&
13523 { ac_try='test -s conftest.$ac_objext'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
3006edc0 13529 ac_cv_prog_cc_g=yes
480ccd21
DE
13530else
13531 echo "$as_me: failed program was:" >&5
13532sed 's/^/| /' conftest.$ac_ext >&5
13533
3006edc0 13534ac_cv_prog_cc_g=no
480ccd21
DE
13535fi
13536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13537fi
3006edc0
VZ
13538echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13539echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13540if test "$ac_test_CFLAGS" = set; then
13541 CFLAGS=$ac_save_CFLAGS
13542elif test $ac_cv_prog_cc_g = yes; then
13543 if test "$GCC" = yes; then
13544 CFLAGS="-g -O2"
480ccd21 13545 else
3006edc0 13546 CFLAGS="-g"
480ccd21
DE
13547 fi
13548else
3006edc0
VZ
13549 if test "$GCC" = yes; then
13550 CFLAGS="-O2"
480ccd21 13551 else
3006edc0 13552 CFLAGS=
480ccd21
DE
13553 fi
13554fi
3006edc0 13555 fi
ab0ad5f1 13556 fi
3006edc0
VZ
13557
13558 case `uname -s` in
13559 AIX*)
13560 ac_ext=cc
13561ac_cpp='$CXXCPP $CPPFLAGS'
13562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13565
13566echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13567echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13568if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570else
13571 cat >conftest.$ac_ext <<_ACEOF
13572/* confdefs.h. */
13573_ACEOF
13574cat confdefs.h >>conftest.$ac_ext
13575cat >>conftest.$ac_ext <<_ACEOF
13576/* end confdefs.h. */
13577
13578int
13579main ()
13580{
13581#ifndef __xlC__
13582 choke me
13583#endif
13584
13585 ;
13586 return 0;
13587}
13588_ACEOF
13589rm -f conftest.$ac_objext
13590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591 (eval $ac_compile) 2>conftest.er1
13592 ac_status=$?
13593 grep -v '^ *+' conftest.er1 >conftest.err
13594 rm -f conftest.er1
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
3565d135
RR
13598 { ac_try='test -z "$ac_cxx_werror_flag"
13599 || test ! -s conftest.err'
3006edc0
VZ
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest.$ac_objext'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
0093c2fc 13611 bakefile_compiler_xlc=yes
3006edc0
VZ
13612else
13613 echo "$as_me: failed program was:" >&5
13614sed 's/^/| /' conftest.$ac_ext >&5
13615
0093c2fc 13616bakefile_compiler_xlc=no
3006edc0
VZ
13617fi
13618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13619 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13620
13621fi
0093c2fc
VZ
13622echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13623echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13624
0093c2fc 13625XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13626ac_ext=cc
13627ac_cpp='$CXXCPP $CPPFLAGS'
13628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13631
13632
13633 ;;
13634
13635 Darwin)
13636 ac_ext=cc
95986553
DE
13637ac_cpp='$CXXCPP $CPPFLAGS'
13638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13641
13642echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13643echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13644if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13646else
13647 cat >conftest.$ac_ext <<_ACEOF
13648/* confdefs.h. */
13649_ACEOF
13650cat confdefs.h >>conftest.$ac_ext
13651cat >>conftest.$ac_ext <<_ACEOF
13652/* end confdefs.h. */
13653
13654int
13655main ()
13656{
13657#ifndef __MWERKS__
13658 choke me
13659#endif
13660
13661 ;
13662 return 0;
13663}
13664_ACEOF
13665rm -f conftest.$ac_objext
13666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13667 (eval $ac_compile) 2>conftest.er1
13668 ac_status=$?
13669 grep -v '^ *+' conftest.er1 >conftest.err
13670 rm -f conftest.er1
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
3565d135
RR
13674 { ac_try='test -z "$ac_cxx_werror_flag"
13675 || test ! -s conftest.err'
95986553
DE
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest.$ac_objext'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 bakefile_compiler_mwerks=yes
13688else
13689 echo "$as_me: failed program was:" >&5
13690sed 's/^/| /' conftest.$ac_ext >&5
13691
13692bakefile_compiler_mwerks=no
13693fi
13694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13695 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13696
13697fi
13698echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13699echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13700
0e6fa1d9 13701MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13702ac_ext=cc
13703ac_cpp='$CXXCPP $CPPFLAGS'
13704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13707
13708
3006edc0 13709 ac_ext=cc
9273ffba
DE
13710ac_cpp='$CXXCPP $CPPFLAGS'
13711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13714
13715echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13716echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13717if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
13719else
13720 cat >conftest.$ac_ext <<_ACEOF
13721/* confdefs.h. */
13722_ACEOF
13723cat confdefs.h >>conftest.$ac_ext
13724cat >>conftest.$ac_ext <<_ACEOF
13725/* end confdefs.h. */
13726
13727int
13728main ()
13729{
13730#ifndef __xlC__
13731 choke me
13732#endif
13733
13734 ;
13735 return 0;
13736}
13737_ACEOF
13738rm -f conftest.$ac_objext
13739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
3565d135
RR
13747 { ac_try='test -z "$ac_cxx_werror_flag"
13748 || test ! -s conftest.err'
9273ffba
DE
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest.$ac_objext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
0093c2fc 13760 bakefile_compiler_xlc=yes
9273ffba
DE
13761else
13762 echo "$as_me: failed program was:" >&5
13763sed 's/^/| /' conftest.$ac_ext >&5
13764
0093c2fc 13765bakefile_compiler_xlc=no
9273ffba
DE
13766fi
13767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13768 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13769
13770fi
0093c2fc
VZ
13771echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13772echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13773
0093c2fc 13774XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13775ac_ext=cc
13776ac_cpp='$CXXCPP $CPPFLAGS'
13777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13780
13781
3006edc0
VZ
13782 ;;
13783
13784 IRIX*)
95986553 13785
6dcfc289 13786
0ad5d837
VZ
13787 ac_ext=cc
13788ac_cpp='$CXXCPP $CPPFLAGS'
13789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13792
13793 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13794echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13795if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797else
13798 cat >conftest.$ac_ext <<_ACEOF
13799/* confdefs.h. */
13800_ACEOF
13801cat confdefs.h >>conftest.$ac_ext
13802cat >>conftest.$ac_ext <<_ACEOF
13803/* end confdefs.h. */
13804
13805int
13806main ()
13807{
13808
13809 #ifndef _SGI_COMPILER_VERSION
13810 choke me
13811 #endif
13812
13813 ;
13814 return 0;
13815}
13816_ACEOF
13817rm -f conftest.$ac_objext
13818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13819 (eval $ac_compile) 2>conftest.er1
13820 ac_status=$?
13821 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
3565d135
RR
13826 { ac_try='test -z "$ac_cxx_werror_flag"
13827 || test ! -s conftest.err'
0ad5d837
VZ
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; } &&
13833 { ac_try='test -s conftest.$ac_objext'
13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835 (eval $ac_try) 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
13839 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13840else
13841 echo "$as_me: failed program was:" >&5
13842sed 's/^/| /' conftest.$ac_ext >&5
13843
13844bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13845
13846fi
13847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13848
13849
13850fi
13851echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13852echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13853 ac_ext=cc
13854ac_cpp='$CXXCPP $CPPFLAGS'
13855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13858
13859 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13860 :; SGICXX=yes
13861 else
13862 :;
13863 fi
13864
13865
3006edc0
VZ
13866 ;;
13867
0093c2fc 13868 HP-UX*)
3006edc0
VZ
13869
13870
13871 ac_ext=cc
13872ac_cpp='$CXXCPP $CPPFLAGS'
13873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13876
0093c2fc
VZ
13877 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13878echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13879if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13881else
13882 cat >conftest.$ac_ext <<_ACEOF
13883/* confdefs.h. */
13884_ACEOF
13885cat confdefs.h >>conftest.$ac_ext
13886cat >>conftest.$ac_ext <<_ACEOF
13887/* end confdefs.h. */
13888
13889int
13890main ()
13891{
13892
0093c2fc 13893 #ifndef __HP_aCC
3006edc0
VZ
13894 choke me
13895 #endif
13896
13897 ;
13898 return 0;
13899}
13900_ACEOF
13901rm -f conftest.$ac_objext
13902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13903 (eval $ac_compile) 2>conftest.er1
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } &&
3565d135
RR
13910 { ac_try='test -z "$ac_cxx_werror_flag"
13911 || test ! -s conftest.err'
3006edc0
VZ
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; } &&
13917 { ac_try='test -s conftest.$ac_objext'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }; then
0093c2fc 13923 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
13924else
13925 echo "$as_me: failed program was:" >&5
13926sed 's/^/| /' conftest.$ac_ext >&5
13927
0093c2fc 13928bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
13929
13930fi
13931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13932
13933
13934fi
0093c2fc
VZ
13935echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13936echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
13937 ac_ext=cc
13938ac_cpp='$CXXCPP $CPPFLAGS'
13939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13942
0093c2fc
VZ
13943 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13944 :; HPCXX=yes
a1aa0349
VZ
13945 else
13946 :;
13947 fi
13948
13949
13950 ;;
13951
0093c2fc 13952 OSF1)
a1aa0349
VZ
13953
13954
13955 ac_ext=cc
13956ac_cpp='$CXXCPP $CPPFLAGS'
13957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13960
0093c2fc
VZ
13961 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
13962echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
13963if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13965else
13966 cat >conftest.$ac_ext <<_ACEOF
13967/* confdefs.h. */
13968_ACEOF
13969cat confdefs.h >>conftest.$ac_ext
13970cat >>conftest.$ac_ext <<_ACEOF
13971/* end confdefs.h. */
13972
13973int
13974main ()
13975{
13976
0093c2fc 13977 #ifndef __DECCXX
a1aa0349
VZ
13978 choke me
13979 #endif
13980
13981 ;
13982 return 0;
13983}
13984_ACEOF
13985rm -f conftest.$ac_objext
13986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13987 (eval $ac_compile) 2>conftest.er1
13988 ac_status=$?
13989 grep -v '^ *+' conftest.er1 >conftest.err
13990 rm -f conftest.er1
13991 cat conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
3565d135
RR
13994 { ac_try='test -z "$ac_cxx_werror_flag"
13995 || test ! -s conftest.err'
a1aa0349
VZ
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } &&
14001 { ac_try='test -s conftest.$ac_objext'
14002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003 (eval $ac_try) 2>&5
14004 ac_status=$?
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; }; then
0093c2fc 14007 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14008else
14009 echo "$as_me: failed program was:" >&5
14010sed 's/^/| /' conftest.$ac_ext >&5
14011
0093c2fc 14012bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14013
14014fi
14015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14016
14017
14018fi
0093c2fc
VZ
14019echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14020echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14021 ac_ext=cc
14022ac_cpp='$CXXCPP $CPPFLAGS'
14023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14026
0093c2fc
VZ
14027 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14028 :; COMPAQCXX=yes
14029 else
14030 :;
14031 fi
14032
14033
14034 ;;
14035
14036 SunOS)
14037
14038
14039 ac_ext=cc
14040ac_cpp='$CXXCPP $CPPFLAGS'
14041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14044
14045 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14046echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14047if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049else
14050 cat >conftest.$ac_ext <<_ACEOF
14051/* confdefs.h. */
14052_ACEOF
14053cat confdefs.h >>conftest.$ac_ext
14054cat >>conftest.$ac_ext <<_ACEOF
14055/* end confdefs.h. */
14056
14057int
14058main ()
14059{
14060
14061 #ifndef __SUNPRO_CC
14062 choke me
14063 #endif
14064
14065 ;
14066 return 0;
14067}
14068_ACEOF
14069rm -f conftest.$ac_objext
14070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14071 (eval $ac_compile) 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
3565d135
RR
14078 { ac_try='test -z "$ac_cxx_werror_flag"
14079 || test ! -s conftest.err'
0093c2fc
VZ
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14082 ac_status=$?
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; } &&
14085 { ac_try='test -s conftest.$ac_objext'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14091 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14092else
14093 echo "$as_me: failed program was:" >&5
14094sed 's/^/| /' conftest.$ac_ext >&5
14095
14096bakefile_cv_cxx_compiler___SUNPRO_CC=no
14097
14098fi
14099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14100
14101
14102fi
14103echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14104echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14105 ac_ext=cc
14106ac_cpp='$CXXCPP $CPPFLAGS'
14107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14110
14111 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14112 :; SUNCXX=yes
3006edc0
VZ
14113 else
14114 :;
ab0ad5f1 14115 fi
a9e5b1f0
MW
14116
14117
3006edc0
VZ
14118 ;;
14119 esac
14120 fi
14121
14122
14123
a848cd7e
SC
14124ac_ext=c
14125ac_cpp='$CPP $CPPFLAGS'
14126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14128ac_compiler_gnu=$ac_cv_c_compiler_gnu
14129
14130
a848cd7e
SC
14131if test -n "$ac_tool_prefix"; then
14132 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14133set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14134echo "$as_me:$LINENO: checking for $ac_word" >&5
14135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14136if test "${ac_cv_prog_RANLIB+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138else
14139 if test -n "$RANLIB"; then
14140 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14141else
14142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143for as_dir in $PATH
14144do
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14149 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14152 fi
14153done
14154done
14155
14156fi
14157fi
14158RANLIB=$ac_cv_prog_RANLIB
14159if test -n "$RANLIB"; then
14160 echo "$as_me:$LINENO: result: $RANLIB" >&5
14161echo "${ECHO_T}$RANLIB" >&6
14162else
14163 echo "$as_me:$LINENO: result: no" >&5
14164echo "${ECHO_T}no" >&6
14165fi
14166
14167fi
14168if test -z "$ac_cv_prog_RANLIB"; then
14169 ac_ct_RANLIB=$RANLIB
14170 # Extract the first word of "ranlib", so it can be a program name with args.
14171set dummy ranlib; ac_word=$2
14172echo "$as_me:$LINENO: checking for $ac_word" >&5
14173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14174if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14176else
14177 if test -n "$ac_ct_RANLIB"; then
14178 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14179else
14180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181for as_dir in $PATH
14182do
14183 IFS=$as_save_IFS
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
14186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187 ac_cv_prog_ac_ct_RANLIB="ranlib"
14188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14189 break 2
14190 fi
14191done
14192done
14193
14194 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14195fi
14196fi
14197ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14198if test -n "$ac_ct_RANLIB"; then
14199 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14200echo "${ECHO_T}$ac_ct_RANLIB" >&6
14201else
14202 echo "$as_me:$LINENO: result: no" >&5
14203echo "${ECHO_T}no" >&6
14204fi
14205
14206 RANLIB=$ac_ct_RANLIB
14207else
14208 RANLIB="$ac_cv_prog_RANLIB"
14209fi
14210
14211
8c80d384
DE
14212if test -n "$ac_tool_prefix"; then
14213 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14214set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14215echo "$as_me:$LINENO: checking for $ac_word" >&5
14216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14217if test "${ac_cv_prog_AR+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219else
14220 if test -n "$AR"; then
14221 ac_cv_prog_AR="$AR" # Let the user override the test.
14222else
14223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224for as_dir in $PATH
14225do
14226 IFS=$as_save_IFS
14227 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14230 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14232 break 2
14233 fi
14234done
14235done
14236
14237fi
14238fi
14239AR=$ac_cv_prog_AR
14240if test -n "$AR"; then
14241 echo "$as_me:$LINENO: result: $AR" >&5
14242echo "${ECHO_T}$AR" >&6
14243else
14244 echo "$as_me:$LINENO: result: no" >&5
14245echo "${ECHO_T}no" >&6
14246fi
14247
8c80d384
DE
14248fi
14249if test -z "$ac_cv_prog_AR"; then
14250 ac_ct_AR=$AR
14251 # Extract the first word of "ar", so it can be a program name with args.
14252set dummy ar; ac_word=$2
14253echo "$as_me:$LINENO: checking for $ac_word" >&5
14254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14255if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14257else
14258 if test -n "$ac_ct_AR"; then
14259 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14260else
14261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14262for as_dir in $PATH
14263do
14264 IFS=$as_save_IFS
14265 test -z "$as_dir" && as_dir=.
14266 for ac_exec_ext in '' $ac_executable_extensions; do
14267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14268 ac_cv_prog_ac_ct_AR="ar"
14269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14270 break 2
14271 fi
14272done
14273done
14274
14275fi
14276fi
14277ac_ct_AR=$ac_cv_prog_ac_ct_AR
14278if test -n "$ac_ct_AR"; then
14279 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14280echo "${ECHO_T}$ac_ct_AR" >&6
14281else
14282 echo "$as_me:$LINENO: result: no" >&5
14283echo "${ECHO_T}no" >&6
14284fi
14285
14286 AR=$ac_ct_AR
14287else
14288 AR="$ac_cv_prog_AR"
14289fi
14290
a848cd7e 14291if test "x$AR" = "x" ; then
77ffb593
JS
14292 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14293echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14294 { (exit 1); exit 1; }; }
14295fi
14296
14297# Find a good install program. We prefer a C program (faster),
14298# so one script is as good as another. But avoid the broken or
14299# incompatible versions:
14300# SysV /etc/install, /usr/sbin/install
14301# SunOS /usr/etc/install
14302# IRIX /sbin/install
14303# AIX /bin/install
14304# AmigaOS /C/install, which installs bootblocks on floppy discs
14305# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14306# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14307# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14308# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14309# ./install, which can be erroneously created by make from ./install.sh.
14310echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14311echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14312if test -z "$INSTALL"; then
14313if test "${ac_cv_path_install+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14315else
14316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14317for as_dir in $PATH
14318do
14319 IFS=$as_save_IFS
14320 test -z "$as_dir" && as_dir=.
14321 # Account for people who put trailing slashes in PATH elements.
14322case $as_dir/ in
14323 ./ | .// | /cC/* | \
14324 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14325 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14326 /usr/ucb/* ) ;;
14327 *)
14328 # OSF1 and SCO ODT 3.0 have their own names for install.
14329 # Don't use installbsd from OSF since it installs stuff as root
14330 # by default.
14331 for ac_prog in ginstall scoinst install; do
14332 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14333 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14334 if test $ac_prog = install &&
14335 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14336 # AIX install. It has an incompatible calling convention.
14337 :
14338 elif test $ac_prog = install &&
14339 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14340 # program-specific install script used by HP pwplus--don't use.
14341 :
14342 else
14343 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14344 break 3
14345 fi
14346 fi
a848cd7e
SC
14347 done
14348 done
14349 ;;
14350esac
14351done
14352
14353
14354fi
14355 if test "${ac_cv_path_install+set}" = set; then
14356 INSTALL=$ac_cv_path_install
14357 else
14358 # As a last resort, use the slow shell script. We don't cache a
14359 # path for INSTALL within a source directory, because that will
14360 # break other packages using the cache if that directory is
14361 # removed, or if the path is relative.
14362 INSTALL=$ac_install_sh
14363 fi
14364fi
14365echo "$as_me:$LINENO: result: $INSTALL" >&5
14366echo "${ECHO_T}$INSTALL" >&6
14367
14368# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14369# It thinks the first close brace ends the variable substitution.
14370test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14371
14372test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14373
14374test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14375
14376
14377case ${INSTALL} in
14378 /* ) # Absolute
14379 ;;
14380 ?:* ) # Drive letter, considered as absolute.
14381 ;;
14382 *)
14383 INSTALL=`pwd`/${INSTALL} ;;
14384esac
14385
a848cd7e
SC
14386
14387case "${host}" in
14388
cfda0ea8 14389 *-*-darwin* )
a848cd7e
SC
14390 INSTALL_PROGRAM="cp -fp"
14391 INSTALL_DATA="cp -fp"
14392 ;;
14393 *)
14394 ;;
14395esac
14396
8c80d384
DE
14397if test -n "$ac_tool_prefix"; then
14398 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14399set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14400echo "$as_me:$LINENO: checking for $ac_word" >&5
14401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14402if test "${ac_cv_prog_STRIP+set}" = set; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404else
14405 if test -n "$STRIP"; then
14406 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14407else
14408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14409for as_dir in $PATH
14410do
14411 IFS=$as_save_IFS
14412 test -z "$as_dir" && as_dir=.
14413 for ac_exec_ext in '' $ac_executable_extensions; do
14414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14415 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14417 break 2
14418 fi
14419done
14420done
14421
a848cd7e
SC
14422fi
14423fi
14424STRIP=$ac_cv_prog_STRIP
14425if test -n "$STRIP"; then
14426 echo "$as_me:$LINENO: result: $STRIP" >&5
14427echo "${ECHO_T}$STRIP" >&6
14428else
14429 echo "$as_me:$LINENO: result: no" >&5
14430echo "${ECHO_T}no" >&6
14431fi
14432
8c80d384
DE
14433fi
14434if test -z "$ac_cv_prog_STRIP"; then
14435 ac_ct_STRIP=$STRIP
14436 # Extract the first word of "strip", so it can be a program name with args.
14437set dummy strip; ac_word=$2
14438echo "$as_me:$LINENO: checking for $ac_word" >&5
14439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14440if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14442else
14443 if test -n "$ac_ct_STRIP"; then
14444 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14445else
14446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14447for as_dir in $PATH
14448do
14449 IFS=$as_save_IFS
14450 test -z "$as_dir" && as_dir=.
14451 for ac_exec_ext in '' $ac_executable_extensions; do
14452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14453 ac_cv_prog_ac_ct_STRIP="strip"
14454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14455 break 2
14456 fi
14457done
14458done
14459
14460 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14461fi
14462fi
14463ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14464if test -n "$ac_ct_STRIP"; then
14465 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14466echo "${ECHO_T}$ac_ct_STRIP" >&6
14467else
14468 echo "$as_me:$LINENO: result: no" >&5
14469echo "${ECHO_T}no" >&6
14470fi
14471
14472 STRIP=$ac_ct_STRIP
14473else
14474 STRIP="$ac_cv_prog_STRIP"
14475fi
14476
14477
14478if test "$wxUSE_WINE" = "yes"; then
14479 if test -n "$ac_tool_prefix"; then
14480 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14481set dummy ${ac_tool_prefix}wrc; ac_word=$2
14482echo "$as_me:$LINENO: checking for $ac_word" >&5
14483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14484if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14486else
8ced02f6
DE
14487 if test -n "$WINDRES"; then
14488 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14489else
14490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491for as_dir in $PATH
14492do
14493 IFS=$as_save_IFS
14494 test -z "$as_dir" && as_dir=.
14495 for ac_exec_ext in '' $ac_executable_extensions; do
14496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14497 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14499 break 2
14500 fi
14501done
14502done
14503
14504fi
14505fi
8ced02f6
DE
14506WINDRES=$ac_cv_prog_WINDRES
14507if test -n "$WINDRES"; then
14508 echo "$as_me:$LINENO: result: $WINDRES" >&5
14509echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14510else
14511 echo "$as_me:$LINENO: result: no" >&5
14512echo "${ECHO_T}no" >&6
14513fi
14514
14515fi
8ced02f6
DE
14516if test -z "$ac_cv_prog_WINDRES"; then
14517 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14518 # Extract the first word of "wrc", so it can be a program name with args.
14519set dummy wrc; ac_word=$2
14520echo "$as_me:$LINENO: checking for $ac_word" >&5
14521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14522if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524else
8ced02f6
DE
14525 if test -n "$ac_ct_WINDRES"; then
14526 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14527else
14528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14529for as_dir in $PATH
14530do
14531 IFS=$as_save_IFS
14532 test -z "$as_dir" && as_dir=.
14533 for ac_exec_ext in '' $ac_executable_extensions; do
14534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14535 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14537 break 2
14538 fi
14539done
14540done
14541
14542fi
14543fi
8ced02f6
DE
14544ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14545if test -n "$ac_ct_WINDRES"; then
14546 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14547echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14548else
14549 echo "$as_me:$LINENO: result: no" >&5
14550echo "${ECHO_T}no" >&6
14551fi
14552
8ced02f6 14553 WINDRES=$ac_ct_WINDRES
8c80d384 14554else
8ced02f6 14555 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14556fi
14557
004ee6da 14558 RESCOMP="$WINDRES"
8c80d384
DE
14559else
14560 case "${host}" in
14561 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14562 if test -n "$ac_tool_prefix"; then
14563 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14564set dummy ${ac_tool_prefix}windres; ac_word=$2
14565echo "$as_me:$LINENO: checking for $ac_word" >&5
14566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14567if test "${ac_cv_prog_WINDRES+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569else
14570 if test -n "$WINDRES"; then
14571 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14572else
14573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14574for as_dir in $PATH
14575do
14576 IFS=$as_save_IFS
14577 test -z "$as_dir" && as_dir=.
14578 for ac_exec_ext in '' $ac_executable_extensions; do
14579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14580 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14582 break 2
14583 fi
14584done
14585done
14586
14587fi
14588fi
14589WINDRES=$ac_cv_prog_WINDRES
14590if test -n "$WINDRES"; then
14591 echo "$as_me:$LINENO: result: $WINDRES" >&5
14592echo "${ECHO_T}$WINDRES" >&6
14593else
14594 echo "$as_me:$LINENO: result: no" >&5
14595echo "${ECHO_T}no" >&6
14596fi
14597
14598fi
14599if test -z "$ac_cv_prog_WINDRES"; then
14600 ac_ct_WINDRES=$WINDRES
14601 # Extract the first word of "windres", so it can be a program name with args.
14602set dummy windres; ac_word=$2
14603echo "$as_me:$LINENO: checking for $ac_word" >&5
14604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14605if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14607else
14608 if test -n "$ac_ct_WINDRES"; then
14609 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14610else
14611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612for as_dir in $PATH
14613do
14614 IFS=$as_save_IFS
14615 test -z "$as_dir" && as_dir=.
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14618 ac_cv_prog_ac_ct_WINDRES="windres"
14619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 break 2
14621 fi
14622done
14623done
14624
14625fi
14626fi
14627ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14628if test -n "$ac_ct_WINDRES"; then
14629 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14630echo "${ECHO_T}$ac_ct_WINDRES" >&6
14631else
14632 echo "$as_me:$LINENO: result: no" >&5
14633echo "${ECHO_T}no" >&6
14634fi
14635
14636 WINDRES=$ac_ct_WINDRES
14637else
14638 WINDRES="$ac_cv_prog_WINDRES"
14639fi
14640
14641 RESCOMP="$WINDRES"
14642 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14643 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14644set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14645echo "$as_me:$LINENO: checking for $ac_word" >&5
14646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14647if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649else
14650 if test -n "$DLLTOOL"; then
14651 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14652else
14653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14654for as_dir in $PATH
14655do
14656 IFS=$as_save_IFS
14657 test -z "$as_dir" && as_dir=.
14658 for ac_exec_ext in '' $ac_executable_extensions; do
14659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14660 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14662 break 2
14663 fi
14664done
14665done
14666
14667fi
14668fi
14669DLLTOOL=$ac_cv_prog_DLLTOOL
14670if test -n "$DLLTOOL"; then
14671 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14672echo "${ECHO_T}$DLLTOOL" >&6
14673else
14674 echo "$as_me:$LINENO: result: no" >&5
14675echo "${ECHO_T}no" >&6
14676fi
14677
14678fi
14679if test -z "$ac_cv_prog_DLLTOOL"; then
14680 ac_ct_DLLTOOL=$DLLTOOL
14681 # Extract the first word of "dlltool", so it can be a program name with args.
14682set dummy dlltool; ac_word=$2
14683echo "$as_me:$LINENO: checking for $ac_word" >&5
14684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14685if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14687else
14688 if test -n "$ac_ct_DLLTOOL"; then
14689 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14690else
14691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14692for as_dir in $PATH
14693do
14694 IFS=$as_save_IFS
14695 test -z "$as_dir" && as_dir=.
14696 for ac_exec_ext in '' $ac_executable_extensions; do
14697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14698 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14700 break 2
14701 fi
14702done
14703done
14704
14705fi
14706fi
14707ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14708if test -n "$ac_ct_DLLTOOL"; then
14709 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14710echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14711else
14712 echo "$as_me:$LINENO: result: no" >&5
14713echo "${ECHO_T}no" >&6
14714fi
14715
14716 DLLTOOL=$ac_ct_DLLTOOL
14717else
14718 DLLTOOL="$ac_cv_prog_DLLTOOL"
14719fi
14720
14721 ;;
14722 esac
14723fi
a848cd7e
SC
14724
14725echo "$as_me:$LINENO: checking if make is GNU make" >&5
14726echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14727if test "${wx_cv_prog_makeisgnu+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14729else
14730
14731 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14732 egrep -s GNU > /dev/null); then
14733 wx_cv_prog_makeisgnu="yes"
14734 else
14735 wx_cv_prog_makeisgnu="no"
14736 fi
14737
14738fi
14739echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14740echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14741
14742if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14743 IF_GNU_MAKE=""
14744else
14745 IF_GNU_MAKE="#"
14746fi
14747
14748
14749
14750if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14751echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14752echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14753if test "${wx_cv_prog_makevpath+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14755else
14756
14757cat - << EOF > confMake
14758check : file
14759 cp \$? \$@
14760 cp \$? final_file
14761EOF
14762
14763if test ! -d sub ; then
14764 mkdir sub
14765fi
14766echo dummy > sub/file
14767${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14768RESULT=$?
14769rm -f sub/file check final_file confMake
14770rmdir sub
14771if test "$RESULT" = 0; then
14772 wx_cv_prog_makevpath="yes"
14773else
14774 wx_cv_prog_makevpath="no"
14775fi
14776
14777fi
14778echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14779echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14780
14781if test "x$wx_cv_prog_makevpath" != "xyes"; then
14782{ { echo "$as_me:$LINENO: error:
14783You need a make-utility that is able to use the variable
14784VPATH correctly.
14785If your version of make does not support VPATH correctly,
14786please install GNU-make (possibly as gmake), and start
14787configure with the following command:
14788export MAKE=gmake; ./configure for sh-type shells
14789setenv MAKE gmake; ./configure for csh-type shells
14790Also please do remember to use gmake in this case every time
14791you are trying to compile.
14792" >&5
14793echo "$as_me: error:
14794You need a make-utility that is able to use the variable
14795VPATH correctly.
14796If your version of make does not support VPATH correctly,
14797please install GNU-make (possibly as gmake), and start
14798configure with the following command:
14799export MAKE=gmake; ./configure for sh-type shells
14800setenv MAKE gmake; ./configure for csh-type shells
14801Also please do remember to use gmake in this case every time
14802you are trying to compile.
14803" >&2;}
14804 { (exit 1); exit 1; }; }
14805fi fi
14806echo "$as_me:$LINENO: checking whether ln -s works" >&5
14807echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14808LN_S=$as_ln_s
14809if test "$LN_S" = "ln -s"; then
14810 echo "$as_me:$LINENO: result: yes" >&5
14811echo "${ECHO_T}yes" >&6
14812else
14813 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14814echo "${ECHO_T}no, using $LN_S" >&6
14815fi
14816
14817
bcaab0f9
MW
14818for ac_prog in lndir
14819do
14820 # Extract the first word of "$ac_prog", so it can be a program name with args.
14821set dummy $ac_prog; ac_word=$2
14822echo "$as_me:$LINENO: checking for $ac_word" >&5
14823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14824if test "${ac_cv_prog_LNDIR+set}" = set; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14826else
14827 if test -n "$LNDIR"; then
14828 ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test.
14829else
14830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14831for as_dir in $PATH
14832do
14833 IFS=$as_save_IFS
14834 test -z "$as_dir" && as_dir=.
14835 for ac_exec_ext in '' $ac_executable_extensions; do
14836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14837 ac_cv_prog_LNDIR="$ac_prog"
14838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14839 break 2
14840 fi
14841done
14842done
14843
14844fi
14845fi
14846LNDIR=$ac_cv_prog_LNDIR
14847if test -n "$LNDIR"; then
14848 echo "$as_me:$LINENO: result: $LNDIR" >&5
14849echo "${ECHO_T}$LNDIR" >&6
14850else
14851 echo "$as_me:$LINENO: result: no" >&5
14852echo "${ECHO_T}no" >&6
14853fi
14854
14855 test -n "$LNDIR" && break
14856done
91dea314 14857test -n "$LNDIR" || LNDIR="cp -pR"
bcaab0f9
MW
14858
14859
14860
a848cd7e 14861
2113bc77 14862if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 14863 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
14864fi
14865
4d7ec9f1
DE
14866case "${host}" in
14867 powerpc-*-darwin* )
14868 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14869echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14870 cat >conftest.$ac_ext <<_ACEOF
14871/* confdefs.h. */
14872_ACEOF
14873cat confdefs.h >>conftest.$ac_ext
14874cat >>conftest.$ac_ext <<_ACEOF
14875/* end confdefs.h. */
14876
14877int
14878main ()
14879{
14880#ifndef __POWERPC__
14881 choke me for lack of PowerPC
14882#endif
14883
14884 ;
14885 return 0;
14886}
14887_ACEOF
14888rm -f conftest.$ac_objext
14889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14890 (eval $ac_compile) 2>conftest.er1
14891 ac_status=$?
14892 grep -v '^ *+' conftest.er1 >conftest.err
14893 rm -f conftest.er1
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
3565d135
RR
14897 { ac_try='test -z "$ac_c_werror_flag"
14898 || test ! -s conftest.err'
4d7ec9f1
DE
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; } &&
14904 { ac_try='test -s conftest.$ac_objext'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
14910 echo "$as_me:$LINENO: result: yes" >&5
14911echo "${ECHO_T}yes" >&6
14912else
14913 echo "$as_me: failed program was:" >&5
14914sed 's/^/| /' conftest.$ac_ext >&5
14915
14916echo "$as_me:$LINENO: result: no" >&5
14917echo "${ECHO_T}no" >&6
14918 cat >>confdefs.h <<\_ACEOF
14919#define __POWERPC__ 1
14920_ACEOF
14921
14922
14923fi
14924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14925 ;;
14926esac
14927
14928case "${host}" in
14929 *-*-darwin* )
4d7ec9f1
DE
14930 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14931echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14932 cat >conftest.$ac_ext <<_ACEOF
14933/* confdefs.h. */
14934_ACEOF
14935cat confdefs.h >>conftest.$ac_ext
14936cat >>conftest.$ac_ext <<_ACEOF
14937/* end confdefs.h. */
14938#include <CoreFoundation/CFBase.h>
14939
14940int
14941main ()
14942{
14943
14944 ;
14945 return 0;
14946}
14947_ACEOF
14948rm -f conftest.$ac_objext
14949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14950 (eval $ac_compile) 2>conftest.er1
14951 ac_status=$?
14952 grep -v '^ *+' conftest.er1 >conftest.err
14953 rm -f conftest.er1
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
3565d135
RR
14957 { ac_try='test -z "$ac_c_werror_flag"
14958 || test ! -s conftest.err'
4d7ec9f1
DE
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14961 ac_status=$?
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; } &&
14964 { ac_try='test -s conftest.$ac_objext'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; }; then
14970 echo "$as_me:$LINENO: result: yes" >&5
14971echo "${ECHO_T}yes" >&6
14972else
14973 echo "$as_me: failed program was:" >&5
14974sed 's/^/| /' conftest.$ac_ext >&5
14975
14976echo "$as_me:$LINENO: result: no" >&5
14977echo "${ECHO_T}no" >&6
14978 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14979echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14980 cat >conftest.$ac_ext <<_ACEOF
14981/* confdefs.h. */
14982_ACEOF
14983cat confdefs.h >>conftest.$ac_ext
14984cat >>conftest.$ac_ext <<_ACEOF
14985/* end confdefs.h. */
14986#define __CF_USE_FRAMEWORK_INCLUDES__
14987#include <CoreFoundation/CFBase.h>
14988
14989int
14990main ()
14991{
14992
14993 ;
14994 return 0;
14995}
14996_ACEOF
14997rm -f conftest.$ac_objext
14998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14999 (eval $ac_compile) 2>conftest.er1
15000 ac_status=$?
15001 grep -v '^ *+' conftest.er1 >conftest.err
15002 rm -f conftest.er1
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
3565d135
RR
15006 { ac_try='test -z "$ac_c_werror_flag"
15007 || test ! -s conftest.err'
4d7ec9f1
DE
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try='test -s conftest.$ac_objext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 echo "$as_me:$LINENO: result: yes" >&5
15020echo "${ECHO_T}yes" >&6
c92ad099 15021 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15022else
15023 echo "$as_me: failed program was:" >&5
15024sed 's/^/| /' conftest.$ac_ext >&5
15025
15026{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15027See \`config.log' for more details." >&5
15028echo "$as_me: error: no. CoreFoundation not available.
15029See \`config.log' for more details." >&2;}
15030 { (exit 1); exit 1; }; }
15031
15032fi
15033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15034
15035
15036fi
15037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15038 ;;
15039esac
15040
a848cd7e
SC
15041case "${host}" in
15042 *-pc-os2_emx | *-pc-os2-emx )
15043 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15044 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15045echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15046if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15048else
15049 ac_check_lib_save_LIBS=$LIBS
15050LIBS="-lcExt $LIBS"
15051cat >conftest.$ac_ext <<_ACEOF
15052/* confdefs.h. */
15053_ACEOF
15054cat confdefs.h >>conftest.$ac_ext
15055cat >>conftest.$ac_ext <<_ACEOF
15056/* end confdefs.h. */
15057
15058/* Override any gcc2 internal prototype to avoid an error. */
15059#ifdef __cplusplus
15060extern "C"
15061#endif
15062/* We use char because int might match the return type of a gcc2
15063 builtin and then its argument prototype would still apply. */
15064char drand48 ();
15065int
15066main ()
15067{
15068drand48 ();
15069 ;
15070 return 0;
15071}
15072_ACEOF
15073rm -f conftest.$ac_objext conftest$ac_exeext
15074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15075 (eval $ac_link) 2>conftest.er1
a848cd7e 15076 ac_status=$?
ac1cb8d3
VS
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
a848cd7e
SC
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
3565d135
RR
15082 { ac_try='test -z "$ac_c_werror_flag"
15083 || test ! -s conftest.err'
ac1cb8d3
VS
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; } &&
15089 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_cv_lib_cExt_drand48=yes
15096else
15097 echo "$as_me: failed program was:" >&5
15098sed 's/^/| /' conftest.$ac_ext >&5
15099
15100ac_cv_lib_cExt_drand48=no
15101fi
ac1cb8d3
VS
15102rm -f conftest.err conftest.$ac_objext \
15103 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15104LIBS=$ac_check_lib_save_LIBS
15105fi
15106echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15107echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15108if test $ac_cv_lib_cExt_drand48 = yes; then
15109 LIBS="$LIBS -lcExt"
15110fi
15111
15112 else
15113 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15114 fi
69120ee4
VZ
15115 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15116echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15117if test "${wx_cv_gccversion+set}" = set; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15119else
15120
391a765e
VS
15121 if test "$cross_compiling" = yes; then
15122 wx_cv_gccversion="EMX2"
15123
15124else
15125 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15126/* confdefs.h. */
15127_ACEOF
15128cat confdefs.h >>conftest.$ac_ext
15129cat >>conftest.$ac_ext <<_ACEOF
15130/* end confdefs.h. */
15131
391a765e 15132 #include <stdio.h>
a848cd7e 15133
391a765e
VS
15134 int main()
15135 {
15136 FILE *f=fopen("conftestval", "w");
15137 if (!f) exit(1);
15138 fprintf(f,
a848cd7e 15139 #if (__GNUC__ < 3)
391a765e
VS
15140 "EMX2"
15141 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15142 "EMX3"
15143 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15144 "Innotek5"
15145 #else
15146 "Innotek6"
a848cd7e 15147 #endif
391a765e
VS
15148 );
15149 exit(0);
15150 }
a848cd7e 15151
a848cd7e 15152_ACEOF
391a765e
VS
15153rm -f conftest$ac_exeext
15154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15155 (eval $ac_link) 2>&5
ac1cb8d3
VS
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
391a765e 15164 wx_cv_gccversion=`cat conftestval`
a848cd7e 15165else
391a765e
VS
15166 echo "$as_me: program exited with status $ac_status" >&5
15167echo "$as_me: failed program was:" >&5
a848cd7e
SC
15168sed 's/^/| /' conftest.$ac_ext >&5
15169
391a765e
VS
15170( exit $ac_status )
15171wx_cv_gccversion="EMX2"
a848cd7e 15172fi
391a765e 15173rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15174fi
a848cd7e
SC
15175
15176fi
15177echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15178echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 15179 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15180 LIBS="$LIBS -lstdcpp"
15181 LDFLAGS="$LDFLAGS -Zsysv-signals"
15182 else
391a765e 15183 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15184 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15185 LDFLAGS="$LDFLAGS -Zsysv-signals"
15186 else
15187 LIBS="$LIBS -lstdc++"
15188 fi
15189 fi
94acd38e
DE
15190 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15191 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15192echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15193 wxUSE_OMF=yes
2da0c077 15194 enable_omf=yes
a848cd7e
SC
15195 fi
15196 ;;
15197 *)
15198
15199
15200
15201 ac_ext=cc
15202ac_cpp='$CXXCPP $CPPFLAGS'
15203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15206
15207
95986553 15208 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15209echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15210if test "${ac_cv_string_strcasecmp+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212else
15213
15214 cat >conftest.$ac_ext <<_ACEOF
15215/* confdefs.h. */
15216_ACEOF
15217cat confdefs.h >>conftest.$ac_ext
15218cat >>conftest.$ac_ext <<_ACEOF
15219/* end confdefs.h. */
15220
15221 #include <string.h>
15222
15223int
15224main ()
15225{
15226
15227 strcasecmp("foo", "bar");
15228
15229 ;
15230 return 0;
15231}
15232_ACEOF
15233rm -f conftest.$ac_objext conftest$ac_exeext
15234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15235 (eval $ac_link) 2>conftest.er1
a848cd7e 15236 ac_status=$?
ac1cb8d3
VS
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
a848cd7e
SC
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
3565d135
RR
15242 { ac_try='test -z "$ac_cxx_werror_flag"
15243 || test ! -s conftest.err'
ac1cb8d3
VS
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 ac_cv_string_strcasecmp=yes
15256else
15257 echo "$as_me: failed program was:" >&5
15258sed 's/^/| /' conftest.$ac_ext >&5
15259
15260ac_cv_string_strcasecmp=no
15261
15262fi
ac1cb8d3
VS
15263rm -f conftest.err conftest.$ac_objext \
15264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15265
15266fi
15267echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15268echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15269
15270 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15271 cat >>confdefs.h <<\_ACEOF
15272#define HAVE_STRCASECMP_IN_STRING_H 1
15273_ACEOF
15274
15275 else
15276 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15277echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15278if test "${ac_cv_strings_strcasecmp+set}" = set; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15280else
15281
15282 cat >conftest.$ac_ext <<_ACEOF
15283/* confdefs.h. */
15284_ACEOF
15285cat confdefs.h >>conftest.$ac_ext
15286cat >>conftest.$ac_ext <<_ACEOF
15287/* end confdefs.h. */
15288
15289 #include <strings.h>
15290
15291int
15292main ()
15293{
15294
15295 strcasecmp("foo", "bar");
15296
15297 ;
15298 return 0;
15299}
15300_ACEOF
15301rm -f conftest.$ac_objext conftest$ac_exeext
15302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15303 (eval $ac_link) 2>conftest.er1
a848cd7e 15304 ac_status=$?
ac1cb8d3
VS
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
a848cd7e
SC
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
3565d135
RR
15310 { ac_try='test -z "$ac_cxx_werror_flag"
15311 || test ! -s conftest.err'
ac1cb8d3
VS
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; } &&
15317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; }; then
15323 ac_cv_strings_strcasecmp=yes
15324else
15325 echo "$as_me: failed program was:" >&5
15326sed 's/^/| /' conftest.$ac_ext >&5
15327
15328ac_cv_strings_strcasecmp=no
15329
15330fi
ac1cb8d3
VS
15331rm -f conftest.err conftest.$ac_objext \
15332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15333
15334fi
15335echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15336echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15337
0c3c69fc 15338 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15339 cat >>confdefs.h <<\_ACEOF
15340#define HAVE_STRCASECMP_IN_STRINGS_H 1
15341_ACEOF
15342
15343 else
15344 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15345echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15346 { (exit 1); exit 1; }; }
15347 fi
15348 fi
15349
15350 ac_ext=c
15351ac_cpp='$CPP $CPPFLAGS'
15352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15354ac_compiler_gnu=$ac_cv_c_compiler_gnu
15355
15356 ;;
15357esac
15358
15359
15360echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15361echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15362if test "${ac_cv_header_stdc+set}" = set; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15364else
15365 cat >conftest.$ac_ext <<_ACEOF
15366/* confdefs.h. */
15367_ACEOF
15368cat confdefs.h >>conftest.$ac_ext
15369cat >>conftest.$ac_ext <<_ACEOF
15370/* end confdefs.h. */
15371#include <stdlib.h>
15372#include <stdarg.h>
15373#include <string.h>
15374#include <float.h>
15375
15376int
15377main ()
15378{
15379
15380 ;
15381 return 0;
15382}
15383_ACEOF
15384rm -f conftest.$ac_objext
15385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15386 (eval $ac_compile) 2>conftest.er1
a848cd7e 15387 ac_status=$?
ac1cb8d3
VS
15388 grep -v '^ *+' conftest.er1 >conftest.err
15389 rm -f conftest.er1
15390 cat conftest.err >&5
a848cd7e
SC
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
3565d135
RR
15393 { ac_try='test -z "$ac_c_werror_flag"
15394 || test ! -s conftest.err'
ac1cb8d3
VS
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 ac_cv_header_stdc=yes
15407else
15408 echo "$as_me: failed program was:" >&5
15409sed 's/^/| /' conftest.$ac_ext >&5
15410
15411ac_cv_header_stdc=no
15412fi
ac1cb8d3 15413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15414
15415if test $ac_cv_header_stdc = yes; then
15416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15417 cat >conftest.$ac_ext <<_ACEOF
15418/* confdefs.h. */
15419_ACEOF
15420cat confdefs.h >>conftest.$ac_ext
15421cat >>conftest.$ac_ext <<_ACEOF
15422/* end confdefs.h. */
15423#include <string.h>
15424
15425_ACEOF
15426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15427 $EGREP "memchr" >/dev/null 2>&1; then
15428 :
15429else
15430 ac_cv_header_stdc=no
15431fi
15432rm -f conftest*
15433
15434fi
15435
15436if test $ac_cv_header_stdc = yes; then
15437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15438 cat >conftest.$ac_ext <<_ACEOF
15439/* confdefs.h. */
15440_ACEOF
15441cat confdefs.h >>conftest.$ac_ext
15442cat >>conftest.$ac_ext <<_ACEOF
15443/* end confdefs.h. */
15444#include <stdlib.h>
15445
15446_ACEOF
15447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15448 $EGREP "free" >/dev/null 2>&1; then
15449 :
15450else
15451 ac_cv_header_stdc=no
15452fi
15453rm -f conftest*
15454
15455fi
15456
15457if test $ac_cv_header_stdc = yes; then
15458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15459 if test "$cross_compiling" = yes; then
15460 :
15461else
15462 cat >conftest.$ac_ext <<_ACEOF
15463/* confdefs.h. */
15464_ACEOF
15465cat confdefs.h >>conftest.$ac_ext
15466cat >>conftest.$ac_ext <<_ACEOF
15467/* end confdefs.h. */
15468#include <ctype.h>
15469#if ((' ' & 0x0FF) == 0x020)
15470# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15471# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15472#else
15473# define ISLOWER(c) \
ac1cb8d3
VS
15474 (('a' <= (c) && (c) <= 'i') \
15475 || ('j' <= (c) && (c) <= 'r') \
15476 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15477# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15478#endif
15479
15480#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15481int
15482main ()
15483{
15484 int i;
15485 for (i = 0; i < 256; i++)
15486 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15487 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15488 exit(2);
15489 exit (0);
15490}
15491_ACEOF
15492rm -f conftest$ac_exeext
15493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15494 (eval $ac_link) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 :
15504else
15505 echo "$as_me: program exited with status $ac_status" >&5
15506echo "$as_me: failed program was:" >&5
15507sed 's/^/| /' conftest.$ac_ext >&5
15508
15509( exit $ac_status )
15510ac_cv_header_stdc=no
15511fi
ac1cb8d3 15512rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15513fi
15514fi
15515fi
15516echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15517echo "${ECHO_T}$ac_cv_header_stdc" >&6
15518if test $ac_cv_header_stdc = yes; then
15519
15520cat >>confdefs.h <<\_ACEOF
15521#define STDC_HEADERS 1
15522_ACEOF
15523
15524fi
15525
15526# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15537 inttypes.h stdint.h unistd.h
a848cd7e
SC
15538do
15539as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15540echo "$as_me:$LINENO: checking for $ac_header" >&5
15541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15542if eval "test \"\${$as_ac_Header+set}\" = set"; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544else
15545 cat >conftest.$ac_ext <<_ACEOF
15546/* confdefs.h. */
15547_ACEOF
15548cat confdefs.h >>conftest.$ac_ext
15549cat >>conftest.$ac_ext <<_ACEOF
15550/* end confdefs.h. */
15551$ac_includes_default
15552
15553#include <$ac_header>
15554_ACEOF
15555rm -f conftest.$ac_objext
15556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15557 (eval $ac_compile) 2>conftest.er1
a848cd7e 15558 ac_status=$?
ac1cb8d3
VS
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
a848cd7e
SC
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
3565d135
RR
15564 { ac_try='test -z "$ac_c_werror_flag"
15565 || test ! -s conftest.err'
ac1cb8d3
VS
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 eval "$as_ac_Header=yes"
15578else
15579 echo "$as_me: failed program was:" >&5
15580sed 's/^/| /' conftest.$ac_ext >&5
15581
15582eval "$as_ac_Header=no"
15583fi
ac1cb8d3 15584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15585fi
15586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15588if test `eval echo '${'$as_ac_Header'}'` = yes; then
15589 cat >>confdefs.h <<_ACEOF
15590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15591_ACEOF
15592
15593fi
15594
15595done
15596
15597
15598
15599for ac_header in stdlib.h
15600do
15601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15602if eval "test \"\${$as_ac_Header+set}\" = set"; then
15603 echo "$as_me:$LINENO: checking for $ac_header" >&5
15604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15605if eval "test \"\${$as_ac_Header+set}\" = set"; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607fi
15608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15610else
15611 # Is the header compilable?
15612echo "$as_me:$LINENO: checking $ac_header usability" >&5
15613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15614cat >conftest.$ac_ext <<_ACEOF
15615/* confdefs.h. */
15616_ACEOF
15617cat confdefs.h >>conftest.$ac_ext
15618cat >>conftest.$ac_ext <<_ACEOF
15619/* end confdefs.h. */
15620$ac_includes_default
15621#include <$ac_header>
15622_ACEOF
15623rm -f conftest.$ac_objext
15624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15625 (eval $ac_compile) 2>conftest.er1
a848cd7e 15626 ac_status=$?
ac1cb8d3
VS
15627 grep -v '^ *+' conftest.er1 >conftest.err
15628 rm -f conftest.er1
15629 cat conftest.err >&5
a848cd7e
SC
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } &&
3565d135
RR
15632 { ac_try='test -z "$ac_c_werror_flag"
15633 || test ! -s conftest.err'
ac1cb8d3
VS
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15636 ac_status=$?
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; } &&
15639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15645 ac_header_compiler=yes
15646else
15647 echo "$as_me: failed program was:" >&5
15648sed 's/^/| /' conftest.$ac_ext >&5
15649
15650ac_header_compiler=no
15651fi
ac1cb8d3 15652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15653echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15654echo "${ECHO_T}$ac_header_compiler" >&6
15655
15656# Is the header present?
15657echo "$as_me:$LINENO: checking $ac_header presence" >&5
15658echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15659cat >conftest.$ac_ext <<_ACEOF
15660/* confdefs.h. */
15661_ACEOF
15662cat confdefs.h >>conftest.$ac_ext
15663cat >>conftest.$ac_ext <<_ACEOF
15664/* end confdefs.h. */
15665#include <$ac_header>
15666_ACEOF
15667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15669 ac_status=$?
15670 grep -v '^ *+' conftest.er1 >conftest.err
15671 rm -f conftest.er1
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } >/dev/null; then
15675 if test -s conftest.err; then
15676 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15678 else
15679 ac_cpp_err=
15680 fi
15681else
15682 ac_cpp_err=yes
15683fi
15684if test -z "$ac_cpp_err"; then
15685 ac_header_preproc=yes
15686else
15687 echo "$as_me: failed program was:" >&5
15688sed 's/^/| /' conftest.$ac_ext >&5
15689
15690 ac_header_preproc=no
15691fi
15692rm -f conftest.err conftest.$ac_ext
15693echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15694echo "${ECHO_T}$ac_header_preproc" >&6
15695
15696# So? What about this header?
ac1cb8d3
VS
15697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15698 yes:no: )
a848cd7e
SC
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15700echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15702echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15703 ac_header_preproc=yes
a848cd7e 15704 ;;
ac1cb8d3 15705 no:yes:* )
a848cd7e
SC
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15707echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15709echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15711echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15713echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15715echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15717echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15718 (
15719 cat <<\_ASBOX
ac1cb8d3
VS
15720## ----------------------------------------- ##
15721## Report this to wx-dev@lists.wxwidgets.org ##
15722## ----------------------------------------- ##
a848cd7e
SC
15723_ASBOX
15724 ) |
15725 sed "s/^/$as_me: WARNING: /" >&2
15726 ;;
15727esac
15728echo "$as_me:$LINENO: checking for $ac_header" >&5
15729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15730if eval "test \"\${$as_ac_Header+set}\" = set"; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15732else
ac1cb8d3 15733 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15734fi
15735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15737
15738fi
15739if test `eval echo '${'$as_ac_Header'}'` = yes; then
15740 cat >>confdefs.h <<_ACEOF
15741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15742_ACEOF
15743
15744fi
15745
15746done
15747
15748
15749for ac_header in malloc.h
15750do
15751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15752if eval "test \"\${$as_ac_Header+set}\" = set"; then
15753 echo "$as_me:$LINENO: checking for $ac_header" >&5
15754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15755if eval "test \"\${$as_ac_Header+set}\" = set"; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15757fi
15758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15760else
15761 # Is the header compilable?
15762echo "$as_me:$LINENO: checking $ac_header usability" >&5
15763echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15764cat >conftest.$ac_ext <<_ACEOF
15765/* confdefs.h. */
15766_ACEOF
15767cat confdefs.h >>conftest.$ac_ext
15768cat >>conftest.$ac_ext <<_ACEOF
15769/* end confdefs.h. */
15770$ac_includes_default
15771#include <$ac_header>
15772_ACEOF
15773rm -f conftest.$ac_objext
15774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15775 (eval $ac_compile) 2>conftest.er1
a848cd7e 15776 ac_status=$?
ac1cb8d3
VS
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
a848cd7e
SC
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } &&
3565d135
RR
15782 { ac_try='test -z "$ac_c_werror_flag"
15783 || test ! -s conftest.err'
ac1cb8d3
VS
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_header_compiler=yes
15796else
15797 echo "$as_me: failed program was:" >&5
15798sed 's/^/| /' conftest.$ac_ext >&5
15799
15800ac_header_compiler=no
15801fi
ac1cb8d3 15802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15803echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15804echo "${ECHO_T}$ac_header_compiler" >&6
15805
15806# Is the header present?
15807echo "$as_me:$LINENO: checking $ac_header presence" >&5
15808echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15809cat >conftest.$ac_ext <<_ACEOF
15810/* confdefs.h. */
15811_ACEOF
15812cat confdefs.h >>conftest.$ac_ext
15813cat >>conftest.$ac_ext <<_ACEOF
15814/* end confdefs.h. */
15815#include <$ac_header>
15816_ACEOF
15817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15819 ac_status=$?
15820 grep -v '^ *+' conftest.er1 >conftest.err
15821 rm -f conftest.er1
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } >/dev/null; then
15825 if test -s conftest.err; then
15826 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15828 else
15829 ac_cpp_err=
15830 fi
15831else
15832 ac_cpp_err=yes
15833fi
15834if test -z "$ac_cpp_err"; then
15835 ac_header_preproc=yes
15836else
15837 echo "$as_me: failed program was:" >&5
15838sed 's/^/| /' conftest.$ac_ext >&5
15839
15840 ac_header_preproc=no
15841fi
15842rm -f conftest.err conftest.$ac_ext
15843echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15844echo "${ECHO_T}$ac_header_preproc" >&6
15845
15846# So? What about this header?
ac1cb8d3
VS
15847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15848 yes:no: )
a848cd7e
SC
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15850echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15852echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15853 ac_header_preproc=yes
a848cd7e 15854 ;;
ac1cb8d3 15855 no:yes:* )
a848cd7e
SC
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15857echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15859echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15861echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15863echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15865echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15867echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15868 (
15869 cat <<\_ASBOX
ac1cb8d3
VS
15870## ----------------------------------------- ##
15871## Report this to wx-dev@lists.wxwidgets.org ##
15872## ----------------------------------------- ##
a848cd7e
SC
15873_ASBOX
15874 ) |
15875 sed "s/^/$as_me: WARNING: /" >&2
15876 ;;
15877esac
15878echo "$as_me:$LINENO: checking for $ac_header" >&5
15879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15880if eval "test \"\${$as_ac_Header+set}\" = set"; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882else
ac1cb8d3 15883 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15884fi
15885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15887
15888fi
15889if test `eval echo '${'$as_ac_Header'}'` = yes; then
15890 cat >>confdefs.h <<_ACEOF
15891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15892_ACEOF
15893
15894fi
15895
15896done
15897
15898
15899for ac_header in unistd.h
15900do
15901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15902if eval "test \"\${$as_ac_Header+set}\" = set"; then
15903 echo "$as_me:$LINENO: checking for $ac_header" >&5
15904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15905if eval "test \"\${$as_ac_Header+set}\" = set"; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15907fi
15908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15910else
15911 # Is the header compilable?
15912echo "$as_me:$LINENO: checking $ac_header usability" >&5
15913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15914cat >conftest.$ac_ext <<_ACEOF
15915/* confdefs.h. */
15916_ACEOF
15917cat confdefs.h >>conftest.$ac_ext
15918cat >>conftest.$ac_ext <<_ACEOF
15919/* end confdefs.h. */
15920$ac_includes_default
15921#include <$ac_header>
15922_ACEOF
15923rm -f conftest.$ac_objext
15924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15925 (eval $ac_compile) 2>conftest.er1
a848cd7e 15926 ac_status=$?
ac1cb8d3
VS
15927 grep -v '^ *+' conftest.er1 >conftest.err
15928 rm -f conftest.er1
15929 cat conftest.err >&5
a848cd7e
SC
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } &&
3565d135
RR
15932 { ac_try='test -z "$ac_c_werror_flag"
15933 || test ! -s conftest.err'
ac1cb8d3
VS
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; } &&
15939 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15942 ac_status=$?
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }; then
15945 ac_header_compiler=yes
15946else
15947 echo "$as_me: failed program was:" >&5
15948sed 's/^/| /' conftest.$ac_ext >&5
15949
15950ac_header_compiler=no
15951fi
ac1cb8d3 15952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15953echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15954echo "${ECHO_T}$ac_header_compiler" >&6
15955
15956# Is the header present?
15957echo "$as_me:$LINENO: checking $ac_header presence" >&5
15958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15959cat >conftest.$ac_ext <<_ACEOF
15960/* confdefs.h. */
15961_ACEOF
15962cat confdefs.h >>conftest.$ac_ext
15963cat >>conftest.$ac_ext <<_ACEOF
15964/* end confdefs.h. */
15965#include <$ac_header>
15966_ACEOF
15967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15969 ac_status=$?
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } >/dev/null; then
15975 if test -s conftest.err; then
15976 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15978 else
15979 ac_cpp_err=
15980 fi
15981else
15982 ac_cpp_err=yes
15983fi
15984if test -z "$ac_cpp_err"; then
15985 ac_header_preproc=yes
15986else
15987 echo "$as_me: failed program was:" >&5
15988sed 's/^/| /' conftest.$ac_ext >&5
15989
15990 ac_header_preproc=no
15991fi
15992rm -f conftest.err conftest.$ac_ext
15993echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15994echo "${ECHO_T}$ac_header_preproc" >&6
15995
15996# So? What about this header?
ac1cb8d3
VS
15997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15998 yes:no: )
a848cd7e
SC
15999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16000echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16002echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16003 ac_header_preproc=yes
a848cd7e 16004 ;;
ac1cb8d3 16005 no:yes:* )
a848cd7e
SC
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16007echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16009echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16011echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16013echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16017echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16018 (
16019 cat <<\_ASBOX
ac1cb8d3
VS
16020## ----------------------------------------- ##
16021## Report this to wx-dev@lists.wxwidgets.org ##
16022## ----------------------------------------- ##
a848cd7e
SC
16023_ASBOX
16024 ) |
16025 sed "s/^/$as_me: WARNING: /" >&2
16026 ;;
16027esac
16028echo "$as_me:$LINENO: checking for $ac_header" >&5
16029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16030if eval "test \"\${$as_ac_Header+set}\" = set"; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16032else
ac1cb8d3 16033 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16034fi
16035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16037
16038fi
16039if test `eval echo '${'$as_ac_Header'}'` = yes; then
16040 cat >>confdefs.h <<_ACEOF
16041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16042_ACEOF
16043
16044fi
16045
16046done
16047
16048
16049for ac_header in wchar.h
16050do
16051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16052if eval "test \"\${$as_ac_Header+set}\" = set"; then
16053 echo "$as_me:$LINENO: checking for $ac_header" >&5
16054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16055if eval "test \"\${$as_ac_Header+set}\" = set"; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16057fi
16058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16060else
16061 # Is the header compilable?
16062echo "$as_me:$LINENO: checking $ac_header usability" >&5
16063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16064cat >conftest.$ac_ext <<_ACEOF
16065/* confdefs.h. */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h. */
16070$ac_includes_default
16071#include <$ac_header>
16072_ACEOF
16073rm -f conftest.$ac_objext
16074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16075 (eval $ac_compile) 2>conftest.er1
a848cd7e 16076 ac_status=$?
ac1cb8d3
VS
16077 grep -v '^ *+' conftest.er1 >conftest.err
16078 rm -f conftest.er1
16079 cat conftest.err >&5
a848cd7e
SC
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); } &&
3565d135
RR
16082 { ac_try='test -z "$ac_c_werror_flag"
16083 || test ! -s conftest.err'
ac1cb8d3
VS
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; } &&
16089 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 ac_header_compiler=yes
16096else
16097 echo "$as_me: failed program was:" >&5
16098sed 's/^/| /' conftest.$ac_ext >&5
16099
16100ac_header_compiler=no
16101fi
ac1cb8d3 16102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16103echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16104echo "${ECHO_T}$ac_header_compiler" >&6
16105
16106# Is the header present?
16107echo "$as_me:$LINENO: checking $ac_header presence" >&5
16108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16109cat >conftest.$ac_ext <<_ACEOF
16110/* confdefs.h. */
16111_ACEOF
16112cat confdefs.h >>conftest.$ac_ext
16113cat >>conftest.$ac_ext <<_ACEOF
16114/* end confdefs.h. */
16115#include <$ac_header>
16116_ACEOF
16117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16119 ac_status=$?
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } >/dev/null; then
16125 if test -s conftest.err; then
16126 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16128 else
16129 ac_cpp_err=
16130 fi
16131else
16132 ac_cpp_err=yes
16133fi
16134if test -z "$ac_cpp_err"; then
16135 ac_header_preproc=yes
16136else
16137 echo "$as_me: failed program was:" >&5
16138sed 's/^/| /' conftest.$ac_ext >&5
16139
16140 ac_header_preproc=no
16141fi
16142rm -f conftest.err conftest.$ac_ext
16143echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16144echo "${ECHO_T}$ac_header_preproc" >&6
16145
16146# So? What about this header?
ac1cb8d3
VS
16147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16148 yes:no: )
a848cd7e
SC
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16150echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16152echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16153 ac_header_preproc=yes
a848cd7e 16154 ;;
ac1cb8d3 16155 no:yes:* )
a848cd7e
SC
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16157echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16159echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16161echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16163echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16165echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16167echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16168 (
16169 cat <<\_ASBOX
ac1cb8d3
VS
16170## ----------------------------------------- ##
16171## Report this to wx-dev@lists.wxwidgets.org ##
16172## ----------------------------------------- ##
a848cd7e
SC
16173_ASBOX
16174 ) |
16175 sed "s/^/$as_me: WARNING: /" >&2
16176 ;;
16177esac
16178echo "$as_me:$LINENO: checking for $ac_header" >&5
16179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16180if eval "test \"\${$as_ac_Header+set}\" = set"; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16182else
ac1cb8d3 16183 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16184fi
16185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16187
16188fi
16189if test `eval echo '${'$as_ac_Header'}'` = yes; then
16190 cat >>confdefs.h <<_ACEOF
16191#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16192_ACEOF
16193
16194fi
16195
16196done
16197
16198
16199if test "$ac_cv_header_wchar_h" != "yes"; then
16200
16201for ac_header in wcstr.h
16202do
16203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16204if eval "test \"\${$as_ac_Header+set}\" = set"; then
16205 echo "$as_me:$LINENO: checking for $ac_header" >&5
16206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16207if eval "test \"\${$as_ac_Header+set}\" = set"; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209fi
16210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16212else
16213 # Is the header compilable?
16214echo "$as_me:$LINENO: checking $ac_header usability" >&5
16215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16216cat >conftest.$ac_ext <<_ACEOF
16217/* confdefs.h. */
16218_ACEOF
16219cat confdefs.h >>conftest.$ac_ext
16220cat >>conftest.$ac_ext <<_ACEOF
16221/* end confdefs.h. */
16222$ac_includes_default
16223#include <$ac_header>
16224_ACEOF
16225rm -f conftest.$ac_objext
16226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16227 (eval $ac_compile) 2>conftest.er1
a848cd7e 16228 ac_status=$?
ac1cb8d3
VS
16229 grep -v '^ *+' conftest.er1 >conftest.err
16230 rm -f conftest.er1
16231 cat conftest.err >&5
a848cd7e
SC
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); } &&
3565d135
RR
16234 { ac_try='test -z "$ac_c_werror_flag"
16235 || test ! -s conftest.err'
ac1cb8d3
VS
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; } &&
16241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243 (eval $ac_try) 2>&5
16244 ac_status=$?
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; }; then
16247 ac_header_compiler=yes
16248else
16249 echo "$as_me: failed program was:" >&5
16250sed 's/^/| /' conftest.$ac_ext >&5
16251
16252ac_header_compiler=no
16253fi
ac1cb8d3 16254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16256echo "${ECHO_T}$ac_header_compiler" >&6
16257
16258# Is the header present?
16259echo "$as_me:$LINENO: checking $ac_header presence" >&5
16260echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16261cat >conftest.$ac_ext <<_ACEOF
16262/* confdefs.h. */
16263_ACEOF
16264cat confdefs.h >>conftest.$ac_ext
16265cat >>conftest.$ac_ext <<_ACEOF
16266/* end confdefs.h. */
16267#include <$ac_header>
16268_ACEOF
16269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16271 ac_status=$?
16272 grep -v '^ *+' conftest.er1 >conftest.err
16273 rm -f conftest.er1
16274 cat conftest.err >&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } >/dev/null; then
16277 if test -s conftest.err; then
16278 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16280 else
16281 ac_cpp_err=
16282 fi
16283else
16284 ac_cpp_err=yes
16285fi
16286if test -z "$ac_cpp_err"; then
16287 ac_header_preproc=yes
16288else
16289 echo "$as_me: failed program was:" >&5
16290sed 's/^/| /' conftest.$ac_ext >&5
16291
16292 ac_header_preproc=no
16293fi
16294rm -f conftest.err conftest.$ac_ext
16295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16296echo "${ECHO_T}$ac_header_preproc" >&6
16297
16298# So? What about this header?
ac1cb8d3
VS
16299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16300 yes:no: )
a848cd7e
SC
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16305 ac_header_preproc=yes
a848cd7e 16306 ;;
ac1cb8d3 16307 no:yes:* )
a848cd7e
SC
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16315echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16320 (
16321 cat <<\_ASBOX
ac1cb8d3
VS
16322## ----------------------------------------- ##
16323## Report this to wx-dev@lists.wxwidgets.org ##
16324## ----------------------------------------- ##
a848cd7e
SC
16325_ASBOX
16326 ) |
16327 sed "s/^/$as_me: WARNING: /" >&2
16328 ;;
16329esac
16330echo "$as_me:$LINENO: checking for $ac_header" >&5
16331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16332if eval "test \"\${$as_ac_Header+set}\" = set"; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16334else
ac1cb8d3 16335 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16336fi
16337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16339
16340fi
16341if test `eval echo '${'$as_ac_Header'}'` = yes; then
16342 cat >>confdefs.h <<_ACEOF
16343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16344_ACEOF
16345
16346fi
16347
16348done
16349
16350fi
16351
16352
16353for ac_header in fnmatch.h
16354do
16355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356if eval "test \"\${$as_ac_Header+set}\" = set"; then
16357 echo "$as_me:$LINENO: checking for $ac_header" >&5
16358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16359if eval "test \"\${$as_ac_Header+set}\" = set"; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16361fi
16362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16364else
16365 # Is the header compilable?
16366echo "$as_me:$LINENO: checking $ac_header usability" >&5
16367echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16368cat >conftest.$ac_ext <<_ACEOF
16369/* confdefs.h. */
16370_ACEOF
16371cat confdefs.h >>conftest.$ac_ext
16372cat >>conftest.$ac_ext <<_ACEOF
16373/* end confdefs.h. */
16374$ac_includes_default
16375#include <$ac_header>
16376_ACEOF
16377rm -f conftest.$ac_objext
16378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16379 (eval $ac_compile) 2>conftest.er1
a848cd7e 16380 ac_status=$?
ac1cb8d3
VS
16381 grep -v '^ *+' conftest.er1 >conftest.err
16382 rm -f conftest.er1
16383 cat conftest.err >&5
a848cd7e
SC
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } &&
3565d135
RR
16386 { ac_try='test -z "$ac_c_werror_flag"
16387 || test ! -s conftest.err'
ac1cb8d3
VS
16388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389 (eval $ac_try) 2>&5
16390 ac_status=$?
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; } &&
16393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; }; then
16399 ac_header_compiler=yes
16400else
16401 echo "$as_me: failed program was:" >&5
16402sed 's/^/| /' conftest.$ac_ext >&5
16403
16404ac_header_compiler=no
16405fi
ac1cb8d3 16406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16407echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16408echo "${ECHO_T}$ac_header_compiler" >&6
16409
16410# Is the header present?
16411echo "$as_me:$LINENO: checking $ac_header presence" >&5
16412echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16413cat >conftest.$ac_ext <<_ACEOF
16414/* confdefs.h. */
16415_ACEOF
16416cat confdefs.h >>conftest.$ac_ext
16417cat >>conftest.$ac_ext <<_ACEOF
16418/* end confdefs.h. */
16419#include <$ac_header>
16420_ACEOF
16421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16423 ac_status=$?
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } >/dev/null; then
16429 if test -s conftest.err; then
16430 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16432 else
16433 ac_cpp_err=
16434 fi
16435else
16436 ac_cpp_err=yes
16437fi
16438if test -z "$ac_cpp_err"; then
16439 ac_header_preproc=yes
16440else
16441 echo "$as_me: failed program was:" >&5
16442sed 's/^/| /' conftest.$ac_ext >&5
16443
16444 ac_header_preproc=no
16445fi
16446rm -f conftest.err conftest.$ac_ext
16447echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16448echo "${ECHO_T}$ac_header_preproc" >&6
16449
16450# So? What about this header?
ac1cb8d3
VS
16451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16452 yes:no: )
a848cd7e
SC
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16454echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16456echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16457 ac_header_preproc=yes
a848cd7e 16458 ;;
ac1cb8d3 16459 no:yes:* )
a848cd7e
SC
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16463echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16465echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16467echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16471echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16472 (
16473 cat <<\_ASBOX
ac1cb8d3
VS
16474## ----------------------------------------- ##
16475## Report this to wx-dev@lists.wxwidgets.org ##
16476## ----------------------------------------- ##
a848cd7e
SC
16477_ASBOX
16478 ) |
16479 sed "s/^/$as_me: WARNING: /" >&2
16480 ;;
16481esac
16482echo "$as_me:$LINENO: checking for $ac_header" >&5
16483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16484if eval "test \"\${$as_ac_Header+set}\" = set"; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16486else
ac1cb8d3 16487 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16488fi
16489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16491
16492fi
16493if test `eval echo '${'$as_ac_Header'}'` = yes; then
16494 cat >>confdefs.h <<_ACEOF
16495#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16496_ACEOF
16497
16498fi
16499
16500done
16501
16502
a848cd7e
SC
16503
16504for ac_header in langinfo.h
16505do
16506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16507if eval "test \"\${$as_ac_Header+set}\" = set"; then
16508 echo "$as_me:$LINENO: checking for $ac_header" >&5
16509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16510if eval "test \"\${$as_ac_Header+set}\" = set"; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16512fi
16513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16515else
16516 # Is the header compilable?
16517echo "$as_me:$LINENO: checking $ac_header usability" >&5
16518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16519cat >conftest.$ac_ext <<_ACEOF
16520/* confdefs.h. */
16521_ACEOF
16522cat confdefs.h >>conftest.$ac_ext
16523cat >>conftest.$ac_ext <<_ACEOF
16524/* end confdefs.h. */
16525$ac_includes_default
16526#include <$ac_header>
16527_ACEOF
16528rm -f conftest.$ac_objext
16529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16530 (eval $ac_compile) 2>conftest.er1
a848cd7e 16531 ac_status=$?
ac1cb8d3
VS
16532 grep -v '^ *+' conftest.er1 >conftest.err
16533 rm -f conftest.er1
16534 cat conftest.err >&5
a848cd7e
SC
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
3565d135
RR
16537 { ac_try='test -z "$ac_c_werror_flag"
16538 || test ! -s conftest.err'
ac1cb8d3
VS
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 ac_header_compiler=yes
16551else
16552 echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555ac_header_compiler=no
16556fi
ac1cb8d3 16557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16558echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16559echo "${ECHO_T}$ac_header_compiler" >&6
16560
16561# Is the header present?
16562echo "$as_me:$LINENO: checking $ac_header presence" >&5
16563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16564cat >conftest.$ac_ext <<_ACEOF
16565/* confdefs.h. */
16566_ACEOF
16567cat confdefs.h >>conftest.$ac_ext
16568cat >>conftest.$ac_ext <<_ACEOF
16569/* end confdefs.h. */
16570#include <$ac_header>
16571_ACEOF
16572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16574 ac_status=$?
16575 grep -v '^ *+' conftest.er1 >conftest.err
16576 rm -f conftest.er1
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } >/dev/null; then
16580 if test -s conftest.err; then
16581 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16583 else
16584 ac_cpp_err=
16585 fi
16586else
16587 ac_cpp_err=yes
16588fi
16589if test -z "$ac_cpp_err"; then
16590 ac_header_preproc=yes
16591else
16592 echo "$as_me: failed program was:" >&5
16593sed 's/^/| /' conftest.$ac_ext >&5
16594
16595 ac_header_preproc=no
16596fi
16597rm -f conftest.err conftest.$ac_ext
16598echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16599echo "${ECHO_T}$ac_header_preproc" >&6
16600
16601# So? What about this header?
ac1cb8d3
VS
16602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16603 yes:no: )
a848cd7e
SC
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16605echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16607echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16608 ac_header_preproc=yes
a848cd7e 16609 ;;
ac1cb8d3 16610 no:yes:* )
a848cd7e
SC
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16612echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16614echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16616echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16618echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16622echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16623 (
16624 cat <<\_ASBOX
ac1cb8d3
VS
16625## ----------------------------------------- ##
16626## Report this to wx-dev@lists.wxwidgets.org ##
16627## ----------------------------------------- ##
a848cd7e
SC
16628_ASBOX
16629 ) |
16630 sed "s/^/$as_me: WARNING: /" >&2
16631 ;;
16632esac
16633echo "$as_me:$LINENO: checking for $ac_header" >&5
16634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16635if eval "test \"\${$as_ac_Header+set}\" = set"; then
16636 echo $ECHO_N "(cached) $ECHO_C" >&6
16637else
ac1cb8d3 16638 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16639fi
16640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16642
16643fi
16644if test `eval echo '${'$as_ac_Header'}'` = yes; then
16645 cat >>confdefs.h <<_ACEOF
16646#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16647_ACEOF
16648
16649fi
16650
16651done
16652
16653
16654case "${host}" in
16655 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16656 if test $ac_cv_header_langinfo_h = "yes" \
16657 -a \( "$wx_cv_gccversion" = "EMX2" \
16658 -o "$wx_cv_gccversion" = "EMX3" \
16659 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16660 LIBS="$LIBS -lintl"
16661 fi
16662 ;;
16663esac
16664
a848cd7e
SC
16665
16666echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16667echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16668if test "${ac_cv_c_const+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16670else
16671 cat >conftest.$ac_ext <<_ACEOF
16672/* confdefs.h. */
16673_ACEOF
16674cat confdefs.h >>conftest.$ac_ext
16675cat >>conftest.$ac_ext <<_ACEOF
16676/* end confdefs.h. */
16677
16678int
16679main ()
16680{
16681/* FIXME: Include the comments suggested by Paul. */
16682#ifndef __cplusplus
16683 /* Ultrix mips cc rejects this. */
16684 typedef int charset[2];
16685 const charset x;
16686 /* SunOS 4.1.1 cc rejects this. */
16687 char const *const *ccp;
16688 char **p;
16689 /* NEC SVR4.0.2 mips cc rejects this. */
16690 struct point {int x, y;};
16691 static struct point const zero = {0,0};
16692 /* AIX XL C 1.02.0.0 rejects this.
16693 It does not let you subtract one const X* pointer from another in
16694 an arm of an if-expression whose if-part is not a constant
16695 expression */
16696 const char *g = "string";
16697 ccp = &g + (g ? g-g : 0);
16698 /* HPUX 7.0 cc rejects these. */
16699 ++ccp;
16700 p = (char**) ccp;
16701 ccp = (char const *const *) p;
16702 { /* SCO 3.2v4 cc rejects this. */
16703 char *t;
16704 char const *s = 0 ? (char *) 0 : (char const *) 0;
16705
16706 *t++ = 0;
16707 }
16708 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16709 int x[] = {25, 17};
16710 const int *foo = &x[0];
16711 ++foo;
16712 }
16713 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16714 typedef const int *iptr;
16715 iptr p = 0;
16716 ++p;
16717 }
16718 { /* AIX XL C 1.02.0.0 rejects this saying
16719 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16720 struct s { int j; const int *ap[3]; };
16721 struct s *b; b->j = 5;
16722 }
16723 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16724 const int foo = 10;
16725 }
16726#endif
16727
16728 ;
16729 return 0;
16730}
16731_ACEOF
16732rm -f conftest.$ac_objext
16733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16734 (eval $ac_compile) 2>conftest.er1
a848cd7e 16735 ac_status=$?
ac1cb8d3
VS
16736 grep -v '^ *+' conftest.er1 >conftest.err
16737 rm -f conftest.er1
16738 cat conftest.err >&5
a848cd7e
SC
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
3565d135
RR
16741 { ac_try='test -z "$ac_c_werror_flag"
16742 || test ! -s conftest.err'
ac1cb8d3
VS
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; } &&
16748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16751 ac_status=$?
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_cv_c_const=yes
16755else
16756 echo "$as_me: failed program was:" >&5
16757sed 's/^/| /' conftest.$ac_ext >&5
16758
16759ac_cv_c_const=no
16760fi
ac1cb8d3 16761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16762fi
16763echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16764echo "${ECHO_T}$ac_cv_c_const" >&6
16765if test $ac_cv_c_const = no; then
16766
16767cat >>confdefs.h <<\_ACEOF
16768#define const
16769_ACEOF
16770
16771fi
16772
16773echo "$as_me:$LINENO: checking for inline" >&5
16774echo $ECHO_N "checking for inline... $ECHO_C" >&6
16775if test "${ac_cv_c_inline+set}" = set; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16777else
16778 ac_cv_c_inline=no
16779for ac_kw in inline __inline__ __inline; do
16780 cat >conftest.$ac_ext <<_ACEOF
16781/* confdefs.h. */
16782_ACEOF
16783cat confdefs.h >>conftest.$ac_ext
16784cat >>conftest.$ac_ext <<_ACEOF
16785/* end confdefs.h. */
16786#ifndef __cplusplus
16787typedef int foo_t;
16788static $ac_kw foo_t static_foo () {return 0; }
16789$ac_kw foo_t foo () {return 0; }
16790#endif
16791
16792_ACEOF
16793rm -f conftest.$ac_objext
16794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16795 (eval $ac_compile) 2>conftest.er1
a848cd7e 16796 ac_status=$?
ac1cb8d3
VS
16797 grep -v '^ *+' conftest.er1 >conftest.err
16798 rm -f conftest.er1
16799 cat conftest.err >&5
a848cd7e
SC
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
3565d135
RR
16802 { ac_try='test -z "$ac_c_werror_flag"
16803 || test ! -s conftest.err'
ac1cb8d3
VS
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_cv_c_inline=$ac_kw; break
16816else
16817 echo "$as_me: failed program was:" >&5
16818sed 's/^/| /' conftest.$ac_ext >&5
16819
16820fi
ac1cb8d3 16821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16822done
16823
16824fi
16825echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16826echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16827
16828
a848cd7e
SC
16829case $ac_cv_c_inline in
16830 inline | yes) ;;
ac1cb8d3
VS
16831 *)
16832 case $ac_cv_c_inline in
16833 no) ac_val=;;
16834 *) ac_val=$ac_cv_c_inline;;
16835 esac
16836 cat >>confdefs.h <<_ACEOF
16837#ifndef __cplusplus
16838#define inline $ac_val
16839#endif
de59c161 16840_ACEOF
ac1cb8d3 16841 ;;
a848cd7e
SC
16842esac
16843
16844
16845echo "$as_me:$LINENO: checking for char" >&5
16846echo $ECHO_N "checking for char... $ECHO_C" >&6
16847if test "${ac_cv_type_char+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16849else
16850 cat >conftest.$ac_ext <<_ACEOF
16851/* confdefs.h. */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h. */
16856$ac_includes_default
16857int
16858main ()
16859{
16860if ((char *) 0)
16861 return 0;
16862if (sizeof (char))
16863 return 0;
16864 ;
16865 return 0;
16866}
16867_ACEOF
16868rm -f conftest.$ac_objext
16869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16870 (eval $ac_compile) 2>conftest.er1
a848cd7e 16871 ac_status=$?
ac1cb8d3
VS
16872 grep -v '^ *+' conftest.er1 >conftest.err
16873 rm -f conftest.er1
16874 cat conftest.err >&5
a848cd7e
SC
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } &&
3565d135
RR
16877 { ac_try='test -z "$ac_c_werror_flag"
16878 || test ! -s conftest.err'
ac1cb8d3
VS
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 ac_cv_type_char=yes
16891else
16892 echo "$as_me: failed program was:" >&5
16893sed 's/^/| /' conftest.$ac_ext >&5
16894
16895ac_cv_type_char=no
16896fi
ac1cb8d3 16897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16898fi
16899echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16900echo "${ECHO_T}$ac_cv_type_char" >&6
16901
16902echo "$as_me:$LINENO: checking size of char" >&5
16903echo $ECHO_N "checking size of char... $ECHO_C" >&6
16904if test "${ac_cv_sizeof_char+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16906else
16907 if test "$ac_cv_type_char" = yes; then
16908 # The cast to unsigned long works around a bug in the HP C Compiler
16909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16911 # This bug is HP SR number 8606223364.
16912 if test "$cross_compiling" = yes; then
16913 # Depending upon the size, compute the lo and hi bounds.
16914cat >conftest.$ac_ext <<_ACEOF
16915/* confdefs.h. */
16916_ACEOF
16917cat confdefs.h >>conftest.$ac_ext
16918cat >>conftest.$ac_ext <<_ACEOF
16919/* end confdefs.h. */
16920$ac_includes_default
16921int
16922main ()
16923{
16924static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16925test_array [0] = 0
16926
16927 ;
16928 return 0;
16929}
16930_ACEOF
16931rm -f conftest.$ac_objext
16932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16933 (eval $ac_compile) 2>conftest.er1
a848cd7e 16934 ac_status=$?
ac1cb8d3
VS
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
a848cd7e
SC
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
3565d135
RR
16940 { ac_try='test -z "$ac_c_werror_flag"
16941 || test ! -s conftest.err'
ac1cb8d3
VS
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_lo=0 ac_mid=0
16954 while :; do
16955 cat >conftest.$ac_ext <<_ACEOF
16956/* confdefs.h. */
16957_ACEOF
16958cat confdefs.h >>conftest.$ac_ext
16959cat >>conftest.$ac_ext <<_ACEOF
16960/* end confdefs.h. */
16961$ac_includes_default
16962int
16963main ()
16964{
16965static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16966test_array [0] = 0
16967
16968 ;
16969 return 0;
16970}
16971_ACEOF
16972rm -f conftest.$ac_objext
16973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16974 (eval $ac_compile) 2>conftest.er1
a848cd7e 16975 ac_status=$?
ac1cb8d3
VS
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
a848cd7e
SC
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } &&
3565d135
RR
16981 { ac_try='test -z "$ac_c_werror_flag"
16982 || test ! -s conftest.err'
ac1cb8d3
VS
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; } &&
16988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_hi=$ac_mid; break
16995else
16996 echo "$as_me: failed program was:" >&5
16997sed 's/^/| /' conftest.$ac_ext >&5
16998
16999ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17000 if test $ac_lo -le $ac_mid; then
17001 ac_lo= ac_hi=
17002 break
17003 fi
17004 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17005fi
ac1cb8d3 17006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17007 done
17008else
17009 echo "$as_me: failed program was:" >&5
17010sed 's/^/| /' conftest.$ac_ext >&5
17011
17012cat >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 (char))) < 0)];
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); } &&
3565d135
RR
17038 { ac_try='test -z "$ac_c_werror_flag"
17039 || test ! -s conftest.err'
ac1cb8d3
VS
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; } &&
17045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 ac_hi=-1 ac_mid=-1
17052 while :; do
17053 cat >conftest.$ac_ext <<_ACEOF
17054/* confdefs.h. */
17055_ACEOF
17056cat confdefs.h >>conftest.$ac_ext
17057cat >>conftest.$ac_ext <<_ACEOF
17058/* end confdefs.h. */
17059$ac_includes_default
17060int
17061main ()
17062{
17063static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17064test_array [0] = 0
17065
17066 ;
17067 return 0;
17068}
17069_ACEOF
17070rm -f conftest.$ac_objext
17071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17072 (eval $ac_compile) 2>conftest.er1
a848cd7e 17073 ac_status=$?
ac1cb8d3
VS
17074 grep -v '^ *+' conftest.er1 >conftest.err
17075 rm -f conftest.er1
17076 cat conftest.err >&5
a848cd7e
SC
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
3565d135
RR
17079 { ac_try='test -z "$ac_c_werror_flag"
17080 || test ! -s conftest.err'
ac1cb8d3
VS
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 ac_lo=$ac_mid; break
17093else
17094 echo "$as_me: failed program was:" >&5
17095sed 's/^/| /' conftest.$ac_ext >&5
17096
17097ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17098 if test $ac_mid -le $ac_hi; then
17099 ac_lo= ac_hi=
17100 break
17101 fi
17102 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17103fi
ac1cb8d3 17104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17105 done
17106else
17107 echo "$as_me: failed program was:" >&5
17108sed 's/^/| /' conftest.$ac_ext >&5
17109
17110ac_lo= ac_hi=
17111fi
ac1cb8d3 17112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17113fi
ac1cb8d3 17114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17115# Binary search between lo and hi bounds.
17116while test "x$ac_lo" != "x$ac_hi"; do
17117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17118 cat >conftest.$ac_ext <<_ACEOF
17119/* confdefs.h. */
17120_ACEOF
17121cat confdefs.h >>conftest.$ac_ext
17122cat >>conftest.$ac_ext <<_ACEOF
17123/* end confdefs.h. */
17124$ac_includes_default
17125int
17126main ()
17127{
17128static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17129test_array [0] = 0
17130
17131 ;
17132 return 0;
17133}
17134_ACEOF
17135rm -f conftest.$ac_objext
17136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17137 (eval $ac_compile) 2>conftest.er1
a848cd7e 17138 ac_status=$?
ac1cb8d3
VS
17139 grep -v '^ *+' conftest.er1 >conftest.err
17140 rm -f conftest.er1
17141 cat conftest.err >&5
a848cd7e
SC
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
3565d135
RR
17144 { ac_try='test -z "$ac_c_werror_flag"
17145 || test ! -s conftest.err'
ac1cb8d3
VS
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_hi=$ac_mid
17158else
17159 echo "$as_me: failed program was:" >&5
17160sed 's/^/| /' conftest.$ac_ext >&5
17161
17162ac_lo=`expr '(' $ac_mid ')' + 1`
17163fi
ac1cb8d3 17164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17165done
17166case $ac_lo in
17167?*) ac_cv_sizeof_char=$ac_lo;;
17168'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17169See \`config.log' for more details." >&5
17170echo "$as_me: error: cannot compute sizeof (char), 77
17171See \`config.log' for more details." >&2;}
17172 { (exit 1); exit 1; }; } ;;
17173esac
17174else
17175 if test "$cross_compiling" = yes; then
3565d135
RR
17176 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17177See \`config.log' for more details." >&5
17178echo "$as_me: error: cannot run test program while cross compiling
17179See \`config.log' for more details." >&2;}
a848cd7e
SC
17180 { (exit 1); exit 1; }; }
17181else
17182 cat >conftest.$ac_ext <<_ACEOF
17183/* confdefs.h. */
17184_ACEOF
17185cat confdefs.h >>conftest.$ac_ext
17186cat >>conftest.$ac_ext <<_ACEOF
17187/* end confdefs.h. */
17188$ac_includes_default
17189long longval () { return (long) (sizeof (char)); }
17190unsigned long ulongval () { return (long) (sizeof (char)); }
17191#include <stdio.h>
17192#include <stdlib.h>
17193int
17194main ()
17195{
17196
17197 FILE *f = fopen ("conftest.val", "w");
17198 if (! f)
17199 exit (1);
17200 if (((long) (sizeof (char))) < 0)
17201 {
17202 long i = longval ();
17203 if (i != ((long) (sizeof (char))))
17204 exit (1);
17205 fprintf (f, "%ld\n", i);
17206 }
17207 else
17208 {
17209 unsigned long i = ulongval ();
17210 if (i != ((long) (sizeof (char))))
17211 exit (1);
17212 fprintf (f, "%lu\n", i);
17213 }
17214 exit (ferror (f) || fclose (f) != 0);
17215
17216 ;
17217 return 0;
17218}
17219_ACEOF
17220rm -f conftest$ac_exeext
17221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222 (eval $ac_link) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227 (eval $ac_try) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; }; then
17231 ac_cv_sizeof_char=`cat conftest.val`
17232else
17233 echo "$as_me: program exited with status $ac_status" >&5
17234echo "$as_me: failed program was:" >&5
17235sed 's/^/| /' conftest.$ac_ext >&5
17236
17237( exit $ac_status )
17238{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17239See \`config.log' for more details." >&5
17240echo "$as_me: error: cannot compute sizeof (char), 77
17241See \`config.log' for more details." >&2;}
17242 { (exit 1); exit 1; }; }
17243fi
ac1cb8d3 17244rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17245fi
17246fi
17247rm -f conftest.val
17248else
17249 ac_cv_sizeof_char=0
17250fi
17251fi
17252echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17253echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17254cat >>confdefs.h <<_ACEOF
17255#define SIZEOF_CHAR $ac_cv_sizeof_char
17256_ACEOF
17257
17258
17259echo "$as_me:$LINENO: checking for short" >&5
17260echo $ECHO_N "checking for short... $ECHO_C" >&6
17261if test "${ac_cv_type_short+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17263else
17264 cat >conftest.$ac_ext <<_ACEOF
17265/* confdefs.h. */
17266_ACEOF
17267cat confdefs.h >>conftest.$ac_ext
17268cat >>conftest.$ac_ext <<_ACEOF
17269/* end confdefs.h. */
17270$ac_includes_default
17271int
17272main ()
17273{
17274if ((short *) 0)
17275 return 0;
17276if (sizeof (short))
17277 return 0;
17278 ;
17279 return 0;
17280}
17281_ACEOF
17282rm -f conftest.$ac_objext
17283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17284 (eval $ac_compile) 2>conftest.er1
a848cd7e 17285 ac_status=$?
ac1cb8d3
VS
17286 grep -v '^ *+' conftest.er1 >conftest.err
17287 rm -f conftest.er1
17288 cat conftest.err >&5
a848cd7e
SC
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } &&
3565d135
RR
17291 { ac_try='test -z "$ac_c_werror_flag"
17292 || test ! -s conftest.err'
ac1cb8d3
VS
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; } &&
17298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ac_cv_type_short=yes
17305else
17306 echo "$as_me: failed program was:" >&5
17307sed 's/^/| /' conftest.$ac_ext >&5
17308
17309ac_cv_type_short=no
17310fi
ac1cb8d3 17311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17312fi
17313echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17314echo "${ECHO_T}$ac_cv_type_short" >&6
17315
17316echo "$as_me:$LINENO: checking size of short" >&5
17317echo $ECHO_N "checking size of short... $ECHO_C" >&6
17318if test "${ac_cv_sizeof_short+set}" = set; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17320else
17321 if test "$ac_cv_type_short" = yes; then
17322 # The cast to unsigned long works around a bug in the HP C Compiler
17323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17325 # This bug is HP SR number 8606223364.
17326 if test "$cross_compiling" = yes; then
17327 # Depending upon the size, compute the lo and hi bounds.
17328cat >conftest.$ac_ext <<_ACEOF
17329/* confdefs.h. */
17330_ACEOF
17331cat confdefs.h >>conftest.$ac_ext
17332cat >>conftest.$ac_ext <<_ACEOF
17333/* end confdefs.h. */
17334$ac_includes_default
17335int
17336main ()
17337{
17338static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17339test_array [0] = 0
17340
17341 ;
17342 return 0;
17343}
17344_ACEOF
17345rm -f conftest.$ac_objext
17346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17347 (eval $ac_compile) 2>conftest.er1
a848cd7e 17348 ac_status=$?
ac1cb8d3
VS
17349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
a848cd7e
SC
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
3565d135
RR
17354 { ac_try='test -z "$ac_c_werror_flag"
17355 || test ! -s conftest.err'
ac1cb8d3
VS
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_lo=0 ac_mid=0
17368 while :; do
17369 cat >conftest.$ac_ext <<_ACEOF
17370/* confdefs.h. */
17371_ACEOF
17372cat confdefs.h >>conftest.$ac_ext
17373cat >>conftest.$ac_ext <<_ACEOF
17374/* end confdefs.h. */
17375$ac_includes_default
17376int
17377main ()
17378{
17379static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17380test_array [0] = 0
17381
17382 ;
17383 return 0;
17384}
17385_ACEOF
17386rm -f conftest.$ac_objext
17387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17388 (eval $ac_compile) 2>conftest.er1
a848cd7e 17389 ac_status=$?
ac1cb8d3
VS
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
a848cd7e
SC
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
3565d135
RR
17395 { ac_try='test -z "$ac_c_werror_flag"
17396 || test ! -s conftest.err'
ac1cb8d3
VS
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; } &&
17402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; }; then
17408 ac_hi=$ac_mid; break
17409else
17410 echo "$as_me: failed program was:" >&5
17411sed 's/^/| /' conftest.$ac_ext >&5
17412
17413ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17414 if test $ac_lo -le $ac_mid; then
17415 ac_lo= ac_hi=
17416 break
17417 fi
17418 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17419fi
ac1cb8d3 17420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17421 done
17422else
17423 echo "$as_me: failed program was:" >&5
17424sed 's/^/| /' conftest.$ac_ext >&5
17425
17426cat >conftest.$ac_ext <<_ACEOF
17427/* confdefs.h. */
17428_ACEOF
17429cat confdefs.h >>conftest.$ac_ext
17430cat >>conftest.$ac_ext <<_ACEOF
17431/* end confdefs.h. */
17432$ac_includes_default
17433int
17434main ()
17435{
17436static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17437test_array [0] = 0
17438
17439 ;
17440 return 0;
17441}
17442_ACEOF
17443rm -f conftest.$ac_objext
17444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17445 (eval $ac_compile) 2>conftest.er1
a848cd7e 17446 ac_status=$?
ac1cb8d3
VS
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
a848cd7e
SC
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
3565d135
RR
17452 { ac_try='test -z "$ac_c_werror_flag"
17453 || test ! -s conftest.err'
ac1cb8d3
VS
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_hi=-1 ac_mid=-1
17466 while :; do
17467 cat >conftest.$ac_ext <<_ACEOF
17468/* confdefs.h. */
17469_ACEOF
17470cat confdefs.h >>conftest.$ac_ext
17471cat >>conftest.$ac_ext <<_ACEOF
17472/* end confdefs.h. */
17473$ac_includes_default
17474int
17475main ()
17476{
17477static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17478test_array [0] = 0
17479
17480 ;
17481 return 0;
17482}
17483_ACEOF
17484rm -f conftest.$ac_objext
17485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17486 (eval $ac_compile) 2>conftest.er1
a848cd7e 17487 ac_status=$?
ac1cb8d3
VS
17488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
a848cd7e
SC
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
3565d135
RR
17493 { ac_try='test -z "$ac_c_werror_flag"
17494 || test ! -s conftest.err'
ac1cb8d3
VS
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_lo=$ac_mid; break
17507else
17508 echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17512 if test $ac_mid -le $ac_hi; then
17513 ac_lo= ac_hi=
17514 break
17515 fi
17516 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17517fi
ac1cb8d3 17518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17519 done
17520else
17521 echo "$as_me: failed program was:" >&5
17522sed 's/^/| /' conftest.$ac_ext >&5
17523
17524ac_lo= ac_hi=
17525fi
ac1cb8d3 17526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17527fi
ac1cb8d3 17528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17529# Binary search between lo and hi bounds.
17530while test "x$ac_lo" != "x$ac_hi"; do
17531 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17532 cat >conftest.$ac_ext <<_ACEOF
17533/* confdefs.h. */
17534_ACEOF
17535cat confdefs.h >>conftest.$ac_ext
17536cat >>conftest.$ac_ext <<_ACEOF
17537/* end confdefs.h. */
17538$ac_includes_default
17539int
17540main ()
17541{
17542static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17543test_array [0] = 0
17544
17545 ;
17546 return 0;
17547}
17548_ACEOF
17549rm -f conftest.$ac_objext
17550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17551 (eval $ac_compile) 2>conftest.er1
a848cd7e 17552 ac_status=$?
ac1cb8d3
VS
17553 grep -v '^ *+' conftest.er1 >conftest.err
17554 rm -f conftest.er1
17555 cat conftest.err >&5
a848cd7e
SC
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); } &&
3565d135
RR
17558 { ac_try='test -z "$ac_c_werror_flag"
17559 || test ! -s conftest.err'
ac1cb8d3
VS
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17571 ac_hi=$ac_mid
17572else
17573 echo "$as_me: failed program was:" >&5
17574sed 's/^/| /' conftest.$ac_ext >&5
17575
17576ac_lo=`expr '(' $ac_mid ')' + 1`
17577fi
ac1cb8d3 17578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17579done
17580case $ac_lo in
17581?*) ac_cv_sizeof_short=$ac_lo;;
17582'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17583See \`config.log' for more details." >&5
17584echo "$as_me: error: cannot compute sizeof (short), 77
17585See \`config.log' for more details." >&2;}
17586 { (exit 1); exit 1; }; } ;;
17587esac
17588else
17589 if test "$cross_compiling" = yes; then
3565d135
RR
17590 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17591See \`config.log' for more details." >&5
17592echo "$as_me: error: cannot run test program while cross compiling
17593See \`config.log' for more details." >&2;}
a848cd7e
SC
17594 { (exit 1); exit 1; }; }
17595else
17596 cat >conftest.$ac_ext <<_ACEOF
17597/* confdefs.h. */
17598_ACEOF
17599cat confdefs.h >>conftest.$ac_ext
17600cat >>conftest.$ac_ext <<_ACEOF
17601/* end confdefs.h. */
17602$ac_includes_default
17603long longval () { return (long) (sizeof (short)); }
17604unsigned long ulongval () { return (long) (sizeof (short)); }
17605#include <stdio.h>
17606#include <stdlib.h>
17607int
17608main ()
17609{
17610
17611 FILE *f = fopen ("conftest.val", "w");
17612 if (! f)
17613 exit (1);
17614 if (((long) (sizeof (short))) < 0)
17615 {
17616 long i = longval ();
17617 if (i != ((long) (sizeof (short))))
17618 exit (1);
17619 fprintf (f, "%ld\n", i);
17620 }
17621 else
17622 {
17623 unsigned long i = ulongval ();
17624 if (i != ((long) (sizeof (short))))
17625 exit (1);
17626 fprintf (f, "%lu\n", i);
17627 }
17628 exit (ferror (f) || fclose (f) != 0);
17629
17630 ;
17631 return 0;
17632}
17633_ACEOF
17634rm -f conftest$ac_exeext
17635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17636 (eval $ac_link) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 ac_cv_sizeof_short=`cat conftest.val`
17646else
17647 echo "$as_me: program exited with status $ac_status" >&5
17648echo "$as_me: failed program was:" >&5
17649sed 's/^/| /' conftest.$ac_ext >&5
17650
17651( exit $ac_status )
17652{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17653See \`config.log' for more details." >&5
17654echo "$as_me: error: cannot compute sizeof (short), 77
17655See \`config.log' for more details." >&2;}
17656 { (exit 1); exit 1; }; }
17657fi
ac1cb8d3 17658rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17659fi
17660fi
17661rm -f conftest.val
17662else
17663 ac_cv_sizeof_short=0
17664fi
17665fi
17666echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17667echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17668cat >>confdefs.h <<_ACEOF
17669#define SIZEOF_SHORT $ac_cv_sizeof_short
17670_ACEOF
17671
17672
17673echo "$as_me:$LINENO: checking for void *" >&5
17674echo $ECHO_N "checking for void *... $ECHO_C" >&6
17675if test "${ac_cv_type_void_p+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17677else
17678 cat >conftest.$ac_ext <<_ACEOF
17679/* confdefs.h. */
17680_ACEOF
17681cat confdefs.h >>conftest.$ac_ext
17682cat >>conftest.$ac_ext <<_ACEOF
17683/* end confdefs.h. */
17684$ac_includes_default
17685int
17686main ()
17687{
17688if ((void * *) 0)
17689 return 0;
17690if (sizeof (void *))
17691 return 0;
17692 ;
17693 return 0;
17694}
17695_ACEOF
17696rm -f conftest.$ac_objext
17697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17698 (eval $ac_compile) 2>conftest.er1
a848cd7e 17699 ac_status=$?
ac1cb8d3
VS
17700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
a848cd7e
SC
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
3565d135
RR
17705 { ac_try='test -z "$ac_c_werror_flag"
17706 || test ! -s conftest.err'
ac1cb8d3
VS
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17715 ac_status=$?
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; }; then
17718 ac_cv_type_void_p=yes
17719else
17720 echo "$as_me: failed program was:" >&5
17721sed 's/^/| /' conftest.$ac_ext >&5
17722
17723ac_cv_type_void_p=no
17724fi
ac1cb8d3 17725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17726fi
17727echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17728echo "${ECHO_T}$ac_cv_type_void_p" >&6
17729
17730echo "$as_me:$LINENO: checking size of void *" >&5
17731echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17732if test "${ac_cv_sizeof_void_p+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17734else
17735 if test "$ac_cv_type_void_p" = yes; then
17736 # The cast to unsigned long works around a bug in the HP C Compiler
17737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17739 # This bug is HP SR number 8606223364.
17740 if test "$cross_compiling" = yes; then
17741 # Depending upon the size, compute the lo and hi bounds.
17742cat >conftest.$ac_ext <<_ACEOF
17743/* confdefs.h. */
17744_ACEOF
17745cat confdefs.h >>conftest.$ac_ext
17746cat >>conftest.$ac_ext <<_ACEOF
17747/* end confdefs.h. */
17748$ac_includes_default
17749int
17750main ()
17751{
17752static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17753test_array [0] = 0
17754
17755 ;
17756 return 0;
17757}
17758_ACEOF
17759rm -f conftest.$ac_objext
17760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17761 (eval $ac_compile) 2>conftest.er1
a848cd7e 17762 ac_status=$?
ac1cb8d3
VS
17763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
a848cd7e
SC
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
3565d135
RR
17768 { ac_try='test -z "$ac_c_werror_flag"
17769 || test ! -s conftest.err'
ac1cb8d3
VS
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; } &&
17775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17778 ac_status=$?
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; }; then
17781 ac_lo=0 ac_mid=0
17782 while :; do
17783 cat >conftest.$ac_ext <<_ACEOF
17784/* confdefs.h. */
17785_ACEOF
17786cat confdefs.h >>conftest.$ac_ext
17787cat >>conftest.$ac_ext <<_ACEOF
17788/* end confdefs.h. */
17789$ac_includes_default
17790int
17791main ()
17792{
17793static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17794test_array [0] = 0
17795
17796 ;
17797 return 0;
17798}
17799_ACEOF
17800rm -f conftest.$ac_objext
17801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17802 (eval $ac_compile) 2>conftest.er1
a848cd7e 17803 ac_status=$?
ac1cb8d3
VS
17804 grep -v '^ *+' conftest.er1 >conftest.err
17805 rm -f conftest.er1
17806 cat conftest.err >&5
a848cd7e
SC
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } &&
3565d135
RR
17809 { ac_try='test -z "$ac_c_werror_flag"
17810 || 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=$ac_mid; break
17823else
17824 echo "$as_me: failed program was:" >&5
17825sed 's/^/| /' conftest.$ac_ext >&5
17826
17827ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17828 if test $ac_lo -le $ac_mid; then
17829 ac_lo= ac_hi=
17830 break
17831 fi
17832 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17833fi
ac1cb8d3 17834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17835 done
17836else
17837 echo "$as_me: failed program was:" >&5
17838sed 's/^/| /' conftest.$ac_ext >&5
17839
17840cat >conftest.$ac_ext <<_ACEOF
17841/* confdefs.h. */
17842_ACEOF
17843cat confdefs.h >>conftest.$ac_ext
17844cat >>conftest.$ac_ext <<_ACEOF
17845/* end confdefs.h. */
17846$ac_includes_default
17847int
17848main ()
17849{
17850static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17851test_array [0] = 0
17852
17853 ;
17854 return 0;
17855}
17856_ACEOF
17857rm -f conftest.$ac_objext
17858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17859 (eval $ac_compile) 2>conftest.er1
a848cd7e 17860 ac_status=$?
ac1cb8d3
VS
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
a848cd7e
SC
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
3565d135
RR
17866 { ac_try='test -z "$ac_c_werror_flag"
17867 || test ! -s conftest.err'
ac1cb8d3
VS
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17870 ac_status=$?
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; } &&
17873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17876 ac_status=$?
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; }; then
17879 ac_hi=-1 ac_mid=-1
17880 while :; do
17881 cat >conftest.$ac_ext <<_ACEOF
17882/* confdefs.h. */
17883_ACEOF
17884cat confdefs.h >>conftest.$ac_ext
17885cat >>conftest.$ac_ext <<_ACEOF
17886/* end confdefs.h. */
17887$ac_includes_default
17888int
17889main ()
17890{
17891static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17892test_array [0] = 0
17893
17894 ;
17895 return 0;
17896}
17897_ACEOF
17898rm -f conftest.$ac_objext
17899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17900 (eval $ac_compile) 2>conftest.er1
a848cd7e 17901 ac_status=$?
ac1cb8d3
VS
17902 grep -v '^ *+' conftest.er1 >conftest.err
17903 rm -f conftest.er1
17904 cat conftest.err >&5
a848cd7e
SC
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
3565d135
RR
17907 { ac_try='test -z "$ac_c_werror_flag"
17908 || test ! -s conftest.err'
ac1cb8d3
VS
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17920 ac_lo=$ac_mid; break
17921else
17922 echo "$as_me: failed program was:" >&5
17923sed 's/^/| /' conftest.$ac_ext >&5
17924
17925ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17926 if test $ac_mid -le $ac_hi; then
17927 ac_lo= ac_hi=
17928 break
17929 fi
17930 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17931fi
ac1cb8d3 17932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17933 done
17934else
17935 echo "$as_me: failed program was:" >&5
17936sed 's/^/| /' conftest.$ac_ext >&5
17937
17938ac_lo= ac_hi=
17939fi
ac1cb8d3 17940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17941fi
ac1cb8d3 17942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17943# Binary search between lo and hi bounds.
17944while test "x$ac_lo" != "x$ac_hi"; do
17945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17946 cat >conftest.$ac_ext <<_ACEOF
17947/* confdefs.h. */
17948_ACEOF
17949cat confdefs.h >>conftest.$ac_ext
17950cat >>conftest.$ac_ext <<_ACEOF
17951/* end confdefs.h. */
17952$ac_includes_default
17953int
17954main ()
17955{
17956static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17957test_array [0] = 0
17958
17959 ;
17960 return 0;
17961}
17962_ACEOF
17963rm -f conftest.$ac_objext
17964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17965 (eval $ac_compile) 2>conftest.er1
a848cd7e 17966 ac_status=$?
ac1cb8d3
VS
17967 grep -v '^ *+' conftest.er1 >conftest.err
17968 rm -f conftest.er1
17969 cat conftest.err >&5
a848cd7e
SC
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
3565d135
RR
17972 { ac_try='test -z "$ac_c_werror_flag"
17973 || test ! -s conftest.err'
ac1cb8d3
VS
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_hi=$ac_mid
17986else
17987 echo "$as_me: failed program was:" >&5
17988sed 's/^/| /' conftest.$ac_ext >&5
17989
17990ac_lo=`expr '(' $ac_mid ')' + 1`
17991fi
ac1cb8d3 17992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17993done
17994case $ac_lo in
17995?*) ac_cv_sizeof_void_p=$ac_lo;;
17996'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17997See \`config.log' for more details." >&5
17998echo "$as_me: error: cannot compute sizeof (void *), 77
17999See \`config.log' for more details." >&2;}
18000 { (exit 1); exit 1; }; } ;;
18001esac
18002else
18003 if test "$cross_compiling" = yes; then
3565d135
RR
18004 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18005See \`config.log' for more details." >&5
18006echo "$as_me: error: cannot run test program while cross compiling
18007See \`config.log' for more details." >&2;}
a848cd7e
SC
18008 { (exit 1); exit 1; }; }
18009else
18010 cat >conftest.$ac_ext <<_ACEOF
18011/* confdefs.h. */
18012_ACEOF
18013cat confdefs.h >>conftest.$ac_ext
18014cat >>conftest.$ac_ext <<_ACEOF
18015/* end confdefs.h. */
18016$ac_includes_default
18017long longval () { return (long) (sizeof (void *)); }
18018unsigned long ulongval () { return (long) (sizeof (void *)); }
18019#include <stdio.h>
18020#include <stdlib.h>
18021int
18022main ()
18023{
18024
18025 FILE *f = fopen ("conftest.val", "w");
18026 if (! f)
18027 exit (1);
18028 if (((long) (sizeof (void *))) < 0)
18029 {
18030 long i = longval ();
18031 if (i != ((long) (sizeof (void *))))
18032 exit (1);
18033 fprintf (f, "%ld\n", i);
18034 }
18035 else
18036 {
18037 unsigned long i = ulongval ();
18038 if (i != ((long) (sizeof (void *))))
18039 exit (1);
18040 fprintf (f, "%lu\n", i);
18041 }
18042 exit (ferror (f) || fclose (f) != 0);
18043
18044 ;
18045 return 0;
18046}
18047_ACEOF
18048rm -f conftest$ac_exeext
18049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18050 (eval $ac_link) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
18059 ac_cv_sizeof_void_p=`cat conftest.val`
18060else
18061 echo "$as_me: program exited with status $ac_status" >&5
18062echo "$as_me: failed program was:" >&5
18063sed 's/^/| /' conftest.$ac_ext >&5
18064
18065( exit $ac_status )
18066{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18067See \`config.log' for more details." >&5
18068echo "$as_me: error: cannot compute sizeof (void *), 77
18069See \`config.log' for more details." >&2;}
18070 { (exit 1); exit 1; }; }
18071fi
ac1cb8d3 18072rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18073fi
18074fi
18075rm -f conftest.val
18076else
18077 ac_cv_sizeof_void_p=0
18078fi
18079fi
18080echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18081echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18082cat >>confdefs.h <<_ACEOF
18083#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18084_ACEOF
18085
18086
18087echo "$as_me:$LINENO: checking for int" >&5
18088echo $ECHO_N "checking for int... $ECHO_C" >&6
18089if test "${ac_cv_type_int+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091else
18092 cat >conftest.$ac_ext <<_ACEOF
18093/* confdefs.h. */
18094_ACEOF
18095cat confdefs.h >>conftest.$ac_ext
18096cat >>conftest.$ac_ext <<_ACEOF
18097/* end confdefs.h. */
18098$ac_includes_default
18099int
18100main ()
18101{
18102if ((int *) 0)
18103 return 0;
18104if (sizeof (int))
18105 return 0;
18106 ;
18107 return 0;
18108}
18109_ACEOF
18110rm -f conftest.$ac_objext
18111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18112 (eval $ac_compile) 2>conftest.er1
a848cd7e 18113 ac_status=$?
ac1cb8d3
VS
18114 grep -v '^ *+' conftest.er1 >conftest.err
18115 rm -f conftest.er1
18116 cat conftest.err >&5
a848cd7e
SC
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
3565d135
RR
18119 { ac_try='test -z "$ac_c_werror_flag"
18120 || 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_cv_type_int=yes
18133else
18134 echo "$as_me: failed program was:" >&5
18135sed 's/^/| /' conftest.$ac_ext >&5
18136
18137ac_cv_type_int=no
18138fi
ac1cb8d3 18139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18140fi
18141echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18142echo "${ECHO_T}$ac_cv_type_int" >&6
18143
18144echo "$as_me:$LINENO: checking size of int" >&5
18145echo $ECHO_N "checking size of int... $ECHO_C" >&6
18146if test "${ac_cv_sizeof_int+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18148else
18149 if test "$ac_cv_type_int" = yes; then
18150 # The cast to unsigned long works around a bug in the HP C Compiler
18151 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18152 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18153 # This bug is HP SR number 8606223364.
18154 if test "$cross_compiling" = yes; then
18155 # Depending upon the size, compute the lo and hi bounds.
18156cat >conftest.$ac_ext <<_ACEOF
18157/* confdefs.h. */
18158_ACEOF
18159cat confdefs.h >>conftest.$ac_ext
18160cat >>conftest.$ac_ext <<_ACEOF
18161/* end confdefs.h. */
18162$ac_includes_default
18163int
18164main ()
18165{
18166static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18167test_array [0] = 0
18168
18169 ;
18170 return 0;
18171}
18172_ACEOF
18173rm -f conftest.$ac_objext
18174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18175 (eval $ac_compile) 2>conftest.er1
a848cd7e 18176 ac_status=$?
ac1cb8d3
VS
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
a848cd7e
SC
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
3565d135
RR
18182 { ac_try='test -z "$ac_c_werror_flag"
18183 || test ! -s conftest.err'
ac1cb8d3
VS
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 ac_lo=0 ac_mid=0
18196 while :; do
18197 cat >conftest.$ac_ext <<_ACEOF
18198/* confdefs.h. */
18199_ACEOF
18200cat confdefs.h >>conftest.$ac_ext
18201cat >>conftest.$ac_ext <<_ACEOF
18202/* end confdefs.h. */
18203$ac_includes_default
18204int
18205main ()
18206{
18207static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18208test_array [0] = 0
18209
18210 ;
18211 return 0;
18212}
18213_ACEOF
18214rm -f conftest.$ac_objext
18215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18216 (eval $ac_compile) 2>conftest.er1
a848cd7e 18217 ac_status=$?
ac1cb8d3
VS
18218 grep -v '^ *+' conftest.er1 >conftest.err
18219 rm -f conftest.er1
18220 cat conftest.err >&5
a848cd7e
SC
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } &&
3565d135
RR
18223 { ac_try='test -z "$ac_c_werror_flag"
18224 || test ! -s conftest.err'
ac1cb8d3
VS
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; } &&
18230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18236 ac_hi=$ac_mid; break
18237else
18238 echo "$as_me: failed program was:" >&5
18239sed 's/^/| /' conftest.$ac_ext >&5
18240
18241ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18242 if test $ac_lo -le $ac_mid; then
18243 ac_lo= ac_hi=
18244 break
18245 fi
18246 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18247fi
ac1cb8d3 18248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18249 done
18250else
18251 echo "$as_me: failed program was:" >&5
18252sed 's/^/| /' conftest.$ac_ext >&5
18253
18254cat >conftest.$ac_ext <<_ACEOF
18255/* confdefs.h. */
18256_ACEOF
18257cat confdefs.h >>conftest.$ac_ext
18258cat >>conftest.$ac_ext <<_ACEOF
18259/* end confdefs.h. */
18260$ac_includes_default
18261int
18262main ()
18263{
18264static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18265test_array [0] = 0
18266
18267 ;
18268 return 0;
18269}
18270_ACEOF
18271rm -f conftest.$ac_objext
18272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18273 (eval $ac_compile) 2>conftest.er1
a848cd7e 18274 ac_status=$?
ac1cb8d3
VS
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
a848cd7e
SC
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
3565d135
RR
18280 { ac_try='test -z "$ac_c_werror_flag"
18281 || test ! -s conftest.err'
ac1cb8d3
VS
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 ac_hi=-1 ac_mid=-1
18294 while :; do
18295 cat >conftest.$ac_ext <<_ACEOF
18296/* confdefs.h. */
18297_ACEOF
18298cat confdefs.h >>conftest.$ac_ext
18299cat >>conftest.$ac_ext <<_ACEOF
18300/* end confdefs.h. */
18301$ac_includes_default
18302int
18303main ()
18304{
18305static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18306test_array [0] = 0
18307
18308 ;
18309 return 0;
18310}
18311_ACEOF
18312rm -f conftest.$ac_objext
18313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18314 (eval $ac_compile) 2>conftest.er1
a848cd7e 18315 ac_status=$?
ac1cb8d3
VS
18316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
a848cd7e
SC
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
3565d135
RR
18321 { ac_try='test -z "$ac_c_werror_flag"
18322 || test ! -s conftest.err'
ac1cb8d3
VS
18323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; } &&
18328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; }; then
18334 ac_lo=$ac_mid; break
18335else
18336 echo "$as_me: failed program was:" >&5
18337sed 's/^/| /' conftest.$ac_ext >&5
18338
18339ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18340 if test $ac_mid -le $ac_hi; then
18341 ac_lo= ac_hi=
18342 break
18343 fi
18344 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18345fi
ac1cb8d3 18346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18347 done
18348else
18349 echo "$as_me: failed program was:" >&5
18350sed 's/^/| /' conftest.$ac_ext >&5
18351
18352ac_lo= ac_hi=
18353fi
ac1cb8d3 18354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18355fi
ac1cb8d3 18356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18357# Binary search between lo and hi bounds.
18358while test "x$ac_lo" != "x$ac_hi"; do
18359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18360 cat >conftest.$ac_ext <<_ACEOF
18361/* confdefs.h. */
18362_ACEOF
18363cat confdefs.h >>conftest.$ac_ext
18364cat >>conftest.$ac_ext <<_ACEOF
18365/* end confdefs.h. */
18366$ac_includes_default
18367int
18368main ()
18369{
18370static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18371test_array [0] = 0
18372
18373 ;
18374 return 0;
18375}
18376_ACEOF
18377rm -f conftest.$ac_objext
18378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18379 (eval $ac_compile) 2>conftest.er1
a848cd7e 18380 ac_status=$?
ac1cb8d3
VS
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
a848cd7e
SC
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
3565d135
RR
18386 { ac_try='test -z "$ac_c_werror_flag"
18387 || test ! -s conftest.err'
ac1cb8d3
VS
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; } &&
18393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 ac_hi=$ac_mid
18400else
18401 echo "$as_me: failed program was:" >&5
18402sed 's/^/| /' conftest.$ac_ext >&5
18403
18404ac_lo=`expr '(' $ac_mid ')' + 1`
18405fi
ac1cb8d3 18406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18407done
18408case $ac_lo in
18409?*) ac_cv_sizeof_int=$ac_lo;;
18410'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18411See \`config.log' for more details." >&5
18412echo "$as_me: error: cannot compute sizeof (int), 77
18413See \`config.log' for more details." >&2;}
18414 { (exit 1); exit 1; }; } ;;
18415esac
18416else
18417 if test "$cross_compiling" = yes; then
3565d135
RR
18418 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18419See \`config.log' for more details." >&5
18420echo "$as_me: error: cannot run test program while cross compiling
18421See \`config.log' for more details." >&2;}
a848cd7e
SC
18422 { (exit 1); exit 1; }; }
18423else
18424 cat >conftest.$ac_ext <<_ACEOF
18425/* confdefs.h. */
18426_ACEOF
18427cat confdefs.h >>conftest.$ac_ext
18428cat >>conftest.$ac_ext <<_ACEOF
18429/* end confdefs.h. */
18430$ac_includes_default
18431long longval () { return (long) (sizeof (int)); }
18432unsigned long ulongval () { return (long) (sizeof (int)); }
18433#include <stdio.h>
18434#include <stdlib.h>
18435int
18436main ()
18437{
18438
18439 FILE *f = fopen ("conftest.val", "w");
18440 if (! f)
18441 exit (1);
18442 if (((long) (sizeof (int))) < 0)
18443 {
18444 long i = longval ();
18445 if (i != ((long) (sizeof (int))))
18446 exit (1);
18447 fprintf (f, "%ld\n", i);
18448 }
18449 else
18450 {
18451 unsigned long i = ulongval ();
18452 if (i != ((long) (sizeof (int))))
18453 exit (1);
18454 fprintf (f, "%lu\n", i);
18455 }
18456 exit (ferror (f) || fclose (f) != 0);
18457
18458 ;
18459 return 0;
18460}
18461_ACEOF
18462rm -f conftest$ac_exeext
18463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18464 (eval $ac_link) 2>&5
18465 ac_status=$?
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 ac_cv_sizeof_int=`cat conftest.val`
18474else
18475 echo "$as_me: program exited with status $ac_status" >&5
18476echo "$as_me: failed program was:" >&5
18477sed 's/^/| /' conftest.$ac_ext >&5
18478
18479( exit $ac_status )
18480{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18481See \`config.log' for more details." >&5
18482echo "$as_me: error: cannot compute sizeof (int), 77
18483See \`config.log' for more details." >&2;}
18484 { (exit 1); exit 1; }; }
18485fi
ac1cb8d3 18486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18487fi
18488fi
18489rm -f conftest.val
18490else
18491 ac_cv_sizeof_int=0
18492fi
18493fi
18494echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18495echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18496cat >>confdefs.h <<_ACEOF
18497#define SIZEOF_INT $ac_cv_sizeof_int
18498_ACEOF
18499
18500
18501echo "$as_me:$LINENO: checking for long" >&5
18502echo $ECHO_N "checking for long... $ECHO_C" >&6
18503if test "${ac_cv_type_long+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18505else
18506 cat >conftest.$ac_ext <<_ACEOF
18507/* confdefs.h. */
18508_ACEOF
18509cat confdefs.h >>conftest.$ac_ext
18510cat >>conftest.$ac_ext <<_ACEOF
18511/* end confdefs.h. */
18512$ac_includes_default
18513int
18514main ()
18515{
18516if ((long *) 0)
18517 return 0;
18518if (sizeof (long))
18519 return 0;
18520 ;
18521 return 0;
18522}
18523_ACEOF
18524rm -f conftest.$ac_objext
18525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18526 (eval $ac_compile) 2>conftest.er1
a848cd7e 18527 ac_status=$?
ac1cb8d3
VS
18528 grep -v '^ *+' conftest.er1 >conftest.err
18529 rm -f conftest.er1
18530 cat conftest.err >&5
a848cd7e
SC
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); } &&
3565d135
RR
18533 { ac_try='test -z "$ac_c_werror_flag"
18534 || test ! -s conftest.err'
ac1cb8d3
VS
18535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18536 (eval $ac_try) 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; } &&
18540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_cv_type_long=yes
18547else
18548 echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
18551ac_cv_type_long=no
18552fi
ac1cb8d3 18553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18554fi
18555echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18556echo "${ECHO_T}$ac_cv_type_long" >&6
18557
18558echo "$as_me:$LINENO: checking size of long" >&5
18559echo $ECHO_N "checking size of long... $ECHO_C" >&6
18560if test "${ac_cv_sizeof_long+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18562else
18563 if test "$ac_cv_type_long" = yes; then
18564 # The cast to unsigned long works around a bug in the HP C Compiler
18565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18567 # This bug is HP SR number 8606223364.
18568 if test "$cross_compiling" = yes; then
18569 # Depending upon the size, compute the lo and hi bounds.
18570cat >conftest.$ac_ext <<_ACEOF
18571/* confdefs.h. */
18572_ACEOF
18573cat confdefs.h >>conftest.$ac_ext
18574cat >>conftest.$ac_ext <<_ACEOF
18575/* end confdefs.h. */
18576$ac_includes_default
18577int
18578main ()
18579{
18580static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18581test_array [0] = 0
18582
18583 ;
18584 return 0;
18585}
18586_ACEOF
18587rm -f conftest.$ac_objext
18588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18589 (eval $ac_compile) 2>conftest.er1
a848cd7e 18590 ac_status=$?
ac1cb8d3
VS
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
a848cd7e
SC
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
3565d135
RR
18596 { ac_try='test -z "$ac_c_werror_flag"
18597 || test ! -s conftest.err'
ac1cb8d3
VS
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 ac_lo=0 ac_mid=0
18610 while :; do
18611 cat >conftest.$ac_ext <<_ACEOF
18612/* confdefs.h. */
18613_ACEOF
18614cat confdefs.h >>conftest.$ac_ext
18615cat >>conftest.$ac_ext <<_ACEOF
18616/* end confdefs.h. */
18617$ac_includes_default
18618int
18619main ()
18620{
18621static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18622test_array [0] = 0
18623
18624 ;
18625 return 0;
18626}
18627_ACEOF
18628rm -f conftest.$ac_objext
18629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18630 (eval $ac_compile) 2>conftest.er1
a848cd7e 18631 ac_status=$?
ac1cb8d3
VS
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
a848cd7e
SC
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
3565d135
RR
18637 { ac_try='test -z "$ac_c_werror_flag"
18638 || test ! -s conftest.err'
ac1cb8d3
VS
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18641 ac_status=$?
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; } &&
18644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_hi=$ac_mid; break
18651else
18652 echo "$as_me: failed program was:" >&5
18653sed 's/^/| /' conftest.$ac_ext >&5
18654
18655ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18656 if test $ac_lo -le $ac_mid; then
18657 ac_lo= ac_hi=
18658 break
18659 fi
18660 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18661fi
ac1cb8d3 18662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18663 done
18664else
18665 echo "$as_me: failed program was:" >&5
18666sed 's/^/| /' conftest.$ac_ext >&5
18667
18668cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h. */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h. */
18674$ac_includes_default
18675int
18676main ()
18677{
18678static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18679test_array [0] = 0
18680
18681 ;
18682 return 0;
18683}
18684_ACEOF
18685rm -f conftest.$ac_objext
18686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18687 (eval $ac_compile) 2>conftest.er1
a848cd7e 18688 ac_status=$?
ac1cb8d3
VS
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
a848cd7e
SC
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
3565d135
RR
18694 { ac_try='test -z "$ac_c_werror_flag"
18695 || test ! -s conftest.err'
ac1cb8d3
VS
18696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697 (eval $ac_try) 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; } &&
18701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 ac_hi=-1 ac_mid=-1
18708 while :; do
18709 cat >conftest.$ac_ext <<_ACEOF
18710/* confdefs.h. */
18711_ACEOF
18712cat confdefs.h >>conftest.$ac_ext
18713cat >>conftest.$ac_ext <<_ACEOF
18714/* end confdefs.h. */
18715$ac_includes_default
18716int
18717main ()
18718{
18719static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18720test_array [0] = 0
18721
18722 ;
18723 return 0;
18724}
18725_ACEOF
18726rm -f conftest.$ac_objext
18727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18728 (eval $ac_compile) 2>conftest.er1
a848cd7e 18729 ac_status=$?
ac1cb8d3
VS
18730 grep -v '^ *+' conftest.er1 >conftest.err
18731 rm -f conftest.er1
18732 cat conftest.err >&5
a848cd7e
SC
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } &&
3565d135
RR
18735 { ac_try='test -z "$ac_c_werror_flag"
18736 || test ! -s conftest.err'
ac1cb8d3
VS
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; } &&
18742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
18748 ac_lo=$ac_mid; break
18749else
18750 echo "$as_me: failed program was:" >&5
18751sed 's/^/| /' conftest.$ac_ext >&5
18752
18753ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18754 if test $ac_mid -le $ac_hi; then
18755 ac_lo= ac_hi=
18756 break
18757 fi
18758 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18759fi
ac1cb8d3 18760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18761 done
18762else
18763 echo "$as_me: failed program was:" >&5
18764sed 's/^/| /' conftest.$ac_ext >&5
18765
18766ac_lo= ac_hi=
18767fi
ac1cb8d3 18768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18769fi
ac1cb8d3 18770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18771# Binary search between lo and hi bounds.
18772while test "x$ac_lo" != "x$ac_hi"; do
18773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18774 cat >conftest.$ac_ext <<_ACEOF
18775/* confdefs.h. */
18776_ACEOF
18777cat confdefs.h >>conftest.$ac_ext
18778cat >>conftest.$ac_ext <<_ACEOF
18779/* end confdefs.h. */
18780$ac_includes_default
18781int
18782main ()
18783{
18784static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18785test_array [0] = 0
18786
18787 ;
18788 return 0;
18789}
18790_ACEOF
18791rm -f conftest.$ac_objext
18792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18793 (eval $ac_compile) 2>conftest.er1
a848cd7e 18794 ac_status=$?
ac1cb8d3
VS
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
a848cd7e
SC
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
3565d135
RR
18800 { ac_try='test -z "$ac_c_werror_flag"
18801 || test ! -s conftest.err'
ac1cb8d3
VS
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 ac_hi=$ac_mid
18814else
18815 echo "$as_me: failed program was:" >&5
18816sed 's/^/| /' conftest.$ac_ext >&5
18817
18818ac_lo=`expr '(' $ac_mid ')' + 1`
18819fi
ac1cb8d3 18820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18821done
18822case $ac_lo in
18823?*) ac_cv_sizeof_long=$ac_lo;;
18824'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18825See \`config.log' for more details." >&5
18826echo "$as_me: error: cannot compute sizeof (long), 77
18827See \`config.log' for more details." >&2;}
18828 { (exit 1); exit 1; }; } ;;
18829esac
18830else
18831 if test "$cross_compiling" = yes; then
3565d135
RR
18832 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18833See \`config.log' for more details." >&5
18834echo "$as_me: error: cannot run test program while cross compiling
18835See \`config.log' for more details." >&2;}
a848cd7e
SC
18836 { (exit 1); exit 1; }; }
18837else
18838 cat >conftest.$ac_ext <<_ACEOF
18839/* confdefs.h. */
18840_ACEOF
18841cat confdefs.h >>conftest.$ac_ext
18842cat >>conftest.$ac_ext <<_ACEOF
18843/* end confdefs.h. */
18844$ac_includes_default
18845long longval () { return (long) (sizeof (long)); }
18846unsigned long ulongval () { return (long) (sizeof (long)); }
18847#include <stdio.h>
18848#include <stdlib.h>
18849int
18850main ()
18851{
18852
18853 FILE *f = fopen ("conftest.val", "w");
18854 if (! f)
18855 exit (1);
18856 if (((long) (sizeof (long))) < 0)
18857 {
18858 long i = longval ();
18859 if (i != ((long) (sizeof (long))))
18860 exit (1);
18861 fprintf (f, "%ld\n", i);
18862 }
18863 else
18864 {
18865 unsigned long i = ulongval ();
18866 if (i != ((long) (sizeof (long))))
18867 exit (1);
18868 fprintf (f, "%lu\n", i);
18869 }
18870 exit (ferror (f) || fclose (f) != 0);
18871
18872 ;
18873 return 0;
18874}
18875_ACEOF
18876rm -f conftest$ac_exeext
18877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18878 (eval $ac_link) 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_cv_sizeof_long=`cat conftest.val`
18888else
18889 echo "$as_me: program exited with status $ac_status" >&5
18890echo "$as_me: failed program was:" >&5
18891sed 's/^/| /' conftest.$ac_ext >&5
18892
18893( exit $ac_status )
18894{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18895See \`config.log' for more details." >&5
18896echo "$as_me: error: cannot compute sizeof (long), 77
18897See \`config.log' for more details." >&2;}
18898 { (exit 1); exit 1; }; }
18899fi
ac1cb8d3 18900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18901fi
18902fi
18903rm -f conftest.val
18904else
18905 ac_cv_sizeof_long=0
18906fi
18907fi
18908echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18909echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18910cat >>confdefs.h <<_ACEOF
18911#define SIZEOF_LONG $ac_cv_sizeof_long
18912_ACEOF
18913
18914
18915echo "$as_me:$LINENO: checking for size_t" >&5
18916echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18917if test "${ac_cv_type_size_t+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18919else
18920 cat >conftest.$ac_ext <<_ACEOF
18921/* confdefs.h. */
18922_ACEOF
18923cat confdefs.h >>conftest.$ac_ext
18924cat >>conftest.$ac_ext <<_ACEOF
18925/* end confdefs.h. */
18926$ac_includes_default
18927int
18928main ()
18929{
18930if ((size_t *) 0)
18931 return 0;
18932if (sizeof (size_t))
18933 return 0;
18934 ;
18935 return 0;
18936}
18937_ACEOF
18938rm -f conftest.$ac_objext
18939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18940 (eval $ac_compile) 2>conftest.er1
a848cd7e 18941 ac_status=$?
ac1cb8d3
VS
18942 grep -v '^ *+' conftest.er1 >conftest.err
18943 rm -f conftest.er1
18944 cat conftest.err >&5
a848cd7e
SC
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } &&
3565d135
RR
18947 { ac_try='test -z "$ac_c_werror_flag"
18948 || test ! -s conftest.err'
ac1cb8d3
VS
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_cv_type_size_t=yes
18961else
18962 echo "$as_me: failed program was:" >&5
18963sed 's/^/| /' conftest.$ac_ext >&5
18964
18965ac_cv_type_size_t=no
18966fi
ac1cb8d3 18967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18968fi
18969echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18970echo "${ECHO_T}$ac_cv_type_size_t" >&6
18971
18972echo "$as_me:$LINENO: checking size of size_t" >&5
18973echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18974if test "${ac_cv_sizeof_size_t+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18976else
18977 if test "$ac_cv_type_size_t" = yes; then
18978 # The cast to unsigned long works around a bug in the HP C Compiler
18979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18981 # This bug is HP SR number 8606223364.
18982 if test "$cross_compiling" = yes; then
18983 # Depending upon the size, compute the lo and hi bounds.
18984cat >conftest.$ac_ext <<_ACEOF
18985/* confdefs.h. */
18986_ACEOF
18987cat confdefs.h >>conftest.$ac_ext
18988cat >>conftest.$ac_ext <<_ACEOF
18989/* end confdefs.h. */
18990$ac_includes_default
18991int
18992main ()
18993{
18994static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18995test_array [0] = 0
18996
18997 ;
18998 return 0;
18999}
19000_ACEOF
19001rm -f conftest.$ac_objext
19002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19003 (eval $ac_compile) 2>conftest.er1
a848cd7e 19004 ac_status=$?
ac1cb8d3
VS
19005 grep -v '^ *+' conftest.er1 >conftest.err
19006 rm -f conftest.er1
19007 cat conftest.err >&5
a848cd7e
SC
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } &&
3565d135
RR
19010 { ac_try='test -z "$ac_c_werror_flag"
19011 || test ! -s conftest.err'
ac1cb8d3
VS
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; } &&
19017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019 (eval $ac_try) 2>&5
19020 ac_status=$?
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19023 ac_lo=0 ac_mid=0
19024 while :; do
19025 cat >conftest.$ac_ext <<_ACEOF
19026/* confdefs.h. */
19027_ACEOF
19028cat confdefs.h >>conftest.$ac_ext
19029cat >>conftest.$ac_ext <<_ACEOF
19030/* end confdefs.h. */
19031$ac_includes_default
19032int
19033main ()
19034{
19035static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19036test_array [0] = 0
19037
19038 ;
19039 return 0;
19040}
19041_ACEOF
19042rm -f conftest.$ac_objext
19043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19044 (eval $ac_compile) 2>conftest.er1
a848cd7e 19045 ac_status=$?
ac1cb8d3
VS
19046 grep -v '^ *+' conftest.er1 >conftest.err
19047 rm -f conftest.er1
19048 cat conftest.err >&5
a848cd7e
SC
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } &&
3565d135
RR
19051 { ac_try='test -z "$ac_c_werror_flag"
19052 || test ! -s conftest.err'
ac1cb8d3
VS
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19061 ac_status=$?
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 ac_hi=$ac_mid; break
19065else
19066 echo "$as_me: failed program was:" >&5
19067sed 's/^/| /' conftest.$ac_ext >&5
19068
19069ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19070 if test $ac_lo -le $ac_mid; then
19071 ac_lo= ac_hi=
19072 break
19073 fi
19074 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19075fi
ac1cb8d3 19076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19077 done
19078else
19079 echo "$as_me: failed program was:" >&5
19080sed 's/^/| /' conftest.$ac_ext >&5
19081
19082cat >conftest.$ac_ext <<_ACEOF
19083/* confdefs.h. */
19084_ACEOF
19085cat confdefs.h >>conftest.$ac_ext
19086cat >>conftest.$ac_ext <<_ACEOF
19087/* end confdefs.h. */
19088$ac_includes_default
19089int
19090main ()
19091{
19092static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19093test_array [0] = 0
19094
19095 ;
19096 return 0;
19097}
19098_ACEOF
19099rm -f conftest.$ac_objext
19100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19101 (eval $ac_compile) 2>conftest.er1
a848cd7e 19102 ac_status=$?
ac1cb8d3
VS
19103 grep -v '^ *+' conftest.er1 >conftest.err
19104 rm -f conftest.er1
19105 cat conftest.err >&5
a848cd7e
SC
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } &&
3565d135
RR
19108 { ac_try='test -z "$ac_c_werror_flag"
19109 || test ! -s conftest.err'
ac1cb8d3
VS
19110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; } &&
19115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19117 (eval $ac_try) 2>&5
19118 ac_status=$?
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); }; }; then
19121 ac_hi=-1 ac_mid=-1
19122 while :; do
19123 cat >conftest.$ac_ext <<_ACEOF
19124/* confdefs.h. */
19125_ACEOF
19126cat confdefs.h >>conftest.$ac_ext
19127cat >>conftest.$ac_ext <<_ACEOF
19128/* end confdefs.h. */
19129$ac_includes_default
19130int
19131main ()
19132{
19133static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19134test_array [0] = 0
19135
19136 ;
19137 return 0;
19138}
19139_ACEOF
19140rm -f conftest.$ac_objext
19141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19142 (eval $ac_compile) 2>conftest.er1
a848cd7e 19143 ac_status=$?
ac1cb8d3
VS
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
a848cd7e
SC
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } &&
3565d135
RR
19149 { ac_try='test -z "$ac_c_werror_flag"
19150 || test ! -s conftest.err'
ac1cb8d3
VS
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; } &&
19156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; }; then
19162 ac_lo=$ac_mid; break
19163else
19164 echo "$as_me: failed program was:" >&5
19165sed 's/^/| /' conftest.$ac_ext >&5
19166
19167ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19168 if test $ac_mid -le $ac_hi; then
19169 ac_lo= ac_hi=
19170 break
19171 fi
19172 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19173fi
ac1cb8d3 19174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19175 done
19176else
19177 echo "$as_me: failed program was:" >&5
19178sed 's/^/| /' conftest.$ac_ext >&5
19179
19180ac_lo= ac_hi=
19181fi
ac1cb8d3 19182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19183fi
ac1cb8d3 19184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19185# Binary search between lo and hi bounds.
19186while test "x$ac_lo" != "x$ac_hi"; do
19187 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19188 cat >conftest.$ac_ext <<_ACEOF
19189/* confdefs.h. */
19190_ACEOF
19191cat confdefs.h >>conftest.$ac_ext
19192cat >>conftest.$ac_ext <<_ACEOF
19193/* end confdefs.h. */
19194$ac_includes_default
19195int
19196main ()
19197{
19198static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19199test_array [0] = 0
19200
19201 ;
19202 return 0;
19203}
19204_ACEOF
19205rm -f conftest.$ac_objext
19206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19207 (eval $ac_compile) 2>conftest.er1
a848cd7e 19208 ac_status=$?
ac1cb8d3
VS
19209 grep -v '^ *+' conftest.er1 >conftest.err
19210 rm -f conftest.er1
19211 cat conftest.err >&5
a848cd7e
SC
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } &&
3565d135
RR
19214 { ac_try='test -z "$ac_c_werror_flag"
19215 || test ! -s conftest.err'
ac1cb8d3
VS
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; } &&
19221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_hi=$ac_mid
19228else
19229 echo "$as_me: failed program was:" >&5
19230sed 's/^/| /' conftest.$ac_ext >&5
19231
19232ac_lo=`expr '(' $ac_mid ')' + 1`
19233fi
ac1cb8d3 19234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19235done
19236case $ac_lo in
19237?*) ac_cv_sizeof_size_t=$ac_lo;;
19238'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19239See \`config.log' for more details." >&5
19240echo "$as_me: error: cannot compute sizeof (size_t), 77
19241See \`config.log' for more details." >&2;}
19242 { (exit 1); exit 1; }; } ;;
19243esac
19244else
19245 if test "$cross_compiling" = yes; then
3565d135
RR
19246 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19247See \`config.log' for more details." >&5
19248echo "$as_me: error: cannot run test program while cross compiling
19249See \`config.log' for more details." >&2;}
a848cd7e
SC
19250 { (exit 1); exit 1; }; }
19251else
19252 cat >conftest.$ac_ext <<_ACEOF
19253/* confdefs.h. */
19254_ACEOF
19255cat confdefs.h >>conftest.$ac_ext
19256cat >>conftest.$ac_ext <<_ACEOF
19257/* end confdefs.h. */
19258$ac_includes_default
19259long longval () { return (long) (sizeof (size_t)); }
19260unsigned long ulongval () { return (long) (sizeof (size_t)); }
19261#include <stdio.h>
19262#include <stdlib.h>
19263int
19264main ()
19265{
19266
19267 FILE *f = fopen ("conftest.val", "w");
19268 if (! f)
19269 exit (1);
19270 if (((long) (sizeof (size_t))) < 0)
19271 {
19272 long i = longval ();
19273 if (i != ((long) (sizeof (size_t))))
19274 exit (1);
19275 fprintf (f, "%ld\n", i);
19276 }
19277 else
19278 {
19279 unsigned long i = ulongval ();
19280 if (i != ((long) (sizeof (size_t))))
19281 exit (1);
19282 fprintf (f, "%lu\n", i);
19283 }
19284 exit (ferror (f) || fclose (f) != 0);
19285
19286 ;
19287 return 0;
19288}
19289_ACEOF
19290rm -f conftest$ac_exeext
19291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292 (eval $ac_link) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19298 ac_status=$?
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; }; then
19301 ac_cv_sizeof_size_t=`cat conftest.val`
19302else
19303 echo "$as_me: program exited with status $ac_status" >&5
19304echo "$as_me: failed program was:" >&5
19305sed 's/^/| /' conftest.$ac_ext >&5
19306
19307( exit $ac_status )
19308{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19309See \`config.log' for more details." >&5
19310echo "$as_me: error: cannot compute sizeof (size_t), 77
19311See \`config.log' for more details." >&2;}
19312 { (exit 1); exit 1; }; }
19313fi
ac1cb8d3 19314rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19315fi
19316fi
19317rm -f conftest.val
19318else
19319 ac_cv_sizeof_size_t=0
19320fi
19321fi
19322echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19323echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19324cat >>confdefs.h <<_ACEOF
19325#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19326_ACEOF
19327
19328
19329
19330case "${host}" in
19331 arm-*-linux* )
19332 echo "$as_me:$LINENO: checking for long long" >&5
19333echo $ECHO_N "checking for long long... $ECHO_C" >&6
19334if test "${ac_cv_type_long_long+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19336else
19337 cat >conftest.$ac_ext <<_ACEOF
19338/* confdefs.h. */
19339_ACEOF
19340cat confdefs.h >>conftest.$ac_ext
19341cat >>conftest.$ac_ext <<_ACEOF
19342/* end confdefs.h. */
19343$ac_includes_default
19344int
19345main ()
19346{
19347if ((long long *) 0)
19348 return 0;
19349if (sizeof (long long))
19350 return 0;
19351 ;
19352 return 0;
19353}
19354_ACEOF
19355rm -f conftest.$ac_objext
19356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19357 (eval $ac_compile) 2>conftest.er1
a848cd7e 19358 ac_status=$?
ac1cb8d3
VS
19359 grep -v '^ *+' conftest.er1 >conftest.err
19360 rm -f conftest.er1
19361 cat conftest.err >&5
a848cd7e
SC
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } &&
3565d135
RR
19364 { ac_try='test -z "$ac_c_werror_flag"
19365 || test ! -s conftest.err'
ac1cb8d3
VS
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
19377 ac_cv_type_long_long=yes
19378else
19379 echo "$as_me: failed program was:" >&5
19380sed 's/^/| /' conftest.$ac_ext >&5
19381
19382ac_cv_type_long_long=no
19383fi
ac1cb8d3 19384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19385fi
19386echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19387echo "${ECHO_T}$ac_cv_type_long_long" >&6
19388
19389echo "$as_me:$LINENO: checking size of long long" >&5
19390echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19391if test "${ac_cv_sizeof_long_long+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19393else
19394 if test "$ac_cv_type_long_long" = yes; then
19395 # The cast to unsigned long works around a bug in the HP C Compiler
19396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19397 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19398 # This bug is HP SR number 8606223364.
19399 if test "$cross_compiling" = yes; then
19400 # Depending upon the size, compute the lo and hi bounds.
19401cat >conftest.$ac_ext <<_ACEOF
19402/* confdefs.h. */
19403_ACEOF
19404cat confdefs.h >>conftest.$ac_ext
19405cat >>conftest.$ac_ext <<_ACEOF
19406/* end confdefs.h. */
19407$ac_includes_default
19408int
19409main ()
19410{
19411static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19412test_array [0] = 0
19413
19414 ;
19415 return 0;
19416}
19417_ACEOF
19418rm -f conftest.$ac_objext
19419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19420 (eval $ac_compile) 2>conftest.er1
a848cd7e 19421 ac_status=$?
ac1cb8d3
VS
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
a848cd7e
SC
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
3565d135
RR
19427 { ac_try='test -z "$ac_c_werror_flag"
19428 || test ! -s conftest.err'
ac1cb8d3
VS
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 ac_lo=0 ac_mid=0
19441 while :; do
19442 cat >conftest.$ac_ext <<_ACEOF
19443/* confdefs.h. */
19444_ACEOF
19445cat confdefs.h >>conftest.$ac_ext
19446cat >>conftest.$ac_ext <<_ACEOF
19447/* end confdefs.h. */
19448$ac_includes_default
19449int
19450main ()
19451{
19452static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19453test_array [0] = 0
19454
19455 ;
19456 return 0;
19457}
19458_ACEOF
19459rm -f conftest.$ac_objext
19460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19461 (eval $ac_compile) 2>conftest.er1
a848cd7e 19462 ac_status=$?
ac1cb8d3
VS
19463 grep -v '^ *+' conftest.er1 >conftest.err
19464 rm -f conftest.er1
19465 cat conftest.err >&5
a848cd7e
SC
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } &&
3565d135
RR
19468 { ac_try='test -z "$ac_c_werror_flag"
19469 || test ! -s conftest.err'
ac1cb8d3
VS
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_hi=$ac_mid; break
19482else
19483 echo "$as_me: failed program was:" >&5
19484sed 's/^/| /' conftest.$ac_ext >&5
19485
19486ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19487 if test $ac_lo -le $ac_mid; then
19488 ac_lo= ac_hi=
19489 break
19490 fi
19491 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19492fi
ac1cb8d3 19493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19494 done
19495else
19496 echo "$as_me: failed program was:" >&5
19497sed 's/^/| /' conftest.$ac_ext >&5
19498
19499cat >conftest.$ac_ext <<_ACEOF
19500/* confdefs.h. */
19501_ACEOF
19502cat confdefs.h >>conftest.$ac_ext
19503cat >>conftest.$ac_ext <<_ACEOF
19504/* end confdefs.h. */
19505$ac_includes_default
19506int
19507main ()
19508{
19509static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19510test_array [0] = 0
19511
19512 ;
19513 return 0;
19514}
19515_ACEOF
19516rm -f conftest.$ac_objext
19517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19518 (eval $ac_compile) 2>conftest.er1
a848cd7e 19519 ac_status=$?
ac1cb8d3
VS
19520 grep -v '^ *+' conftest.er1 >conftest.err
19521 rm -f conftest.er1
19522 cat conftest.err >&5
a848cd7e
SC
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
3565d135
RR
19525 { ac_try='test -z "$ac_c_werror_flag"
19526 || test ! -s conftest.err'
ac1cb8d3
VS
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; } &&
19532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 ac_hi=-1 ac_mid=-1
19539 while :; do
19540 cat >conftest.$ac_ext <<_ACEOF
19541/* confdefs.h. */
19542_ACEOF
19543cat confdefs.h >>conftest.$ac_ext
19544cat >>conftest.$ac_ext <<_ACEOF
19545/* end confdefs.h. */
19546$ac_includes_default
19547int
19548main ()
19549{
19550static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19551test_array [0] = 0
19552
19553 ;
19554 return 0;
19555}
19556_ACEOF
19557rm -f conftest.$ac_objext
19558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19559 (eval $ac_compile) 2>conftest.er1
a848cd7e 19560 ac_status=$?
ac1cb8d3
VS
19561 grep -v '^ *+' conftest.er1 >conftest.err
19562 rm -f conftest.er1
19563 cat conftest.err >&5
a848cd7e
SC
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } &&
3565d135
RR
19566 { ac_try='test -z "$ac_c_werror_flag"
19567 || test ! -s conftest.err'
ac1cb8d3
VS
19568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569 (eval $ac_try) 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; } &&
19573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19576 ac_status=$?
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579 ac_lo=$ac_mid; break
19580else
19581 echo "$as_me: failed program was:" >&5
19582sed 's/^/| /' conftest.$ac_ext >&5
19583
19584ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19585 if test $ac_mid -le $ac_hi; then
19586 ac_lo= ac_hi=
19587 break
19588 fi
19589 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19590fi
ac1cb8d3 19591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19592 done
19593else
19594 echo "$as_me: failed program was:" >&5
19595sed 's/^/| /' conftest.$ac_ext >&5
19596
19597ac_lo= ac_hi=
19598fi
ac1cb8d3 19599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19600fi
ac1cb8d3 19601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19602# Binary search between lo and hi bounds.
19603while test "x$ac_lo" != "x$ac_hi"; do
19604 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19605 cat >conftest.$ac_ext <<_ACEOF
19606/* confdefs.h. */
19607_ACEOF
19608cat confdefs.h >>conftest.$ac_ext
19609cat >>conftest.$ac_ext <<_ACEOF
19610/* end confdefs.h. */
19611$ac_includes_default
19612int
19613main ()
19614{
19615static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19616test_array [0] = 0
19617
19618 ;
19619 return 0;
19620}
19621_ACEOF
19622rm -f conftest.$ac_objext
19623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19624 (eval $ac_compile) 2>conftest.er1
a848cd7e 19625 ac_status=$?
ac1cb8d3
VS
19626 grep -v '^ *+' conftest.er1 >conftest.err
19627 rm -f conftest.er1
19628 cat conftest.err >&5
a848cd7e
SC
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
3565d135
RR
19631 { ac_try='test -z "$ac_c_werror_flag"
19632 || test ! -s conftest.err'
ac1cb8d3
VS
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_hi=$ac_mid
19645else
19646 echo "$as_me: failed program was:" >&5
19647sed 's/^/| /' conftest.$ac_ext >&5
19648
19649ac_lo=`expr '(' $ac_mid ')' + 1`
19650fi
ac1cb8d3 19651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19652done
19653case $ac_lo in
19654?*) ac_cv_sizeof_long_long=$ac_lo;;
19655'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19656See \`config.log' for more details." >&5
19657echo "$as_me: error: cannot compute sizeof (long long), 77
19658See \`config.log' for more details." >&2;}
19659 { (exit 1); exit 1; }; } ;;
19660esac
19661else
19662 if test "$cross_compiling" = yes; then
3565d135
RR
19663 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19664See \`config.log' for more details." >&5
19665echo "$as_me: error: cannot run test program while cross compiling
19666See \`config.log' for more details." >&2;}
a848cd7e
SC
19667 { (exit 1); exit 1; }; }
19668else
19669 cat >conftest.$ac_ext <<_ACEOF
19670/* confdefs.h. */
19671_ACEOF
19672cat confdefs.h >>conftest.$ac_ext
19673cat >>conftest.$ac_ext <<_ACEOF
19674/* end confdefs.h. */
19675$ac_includes_default
19676long longval () { return (long) (sizeof (long long)); }
19677unsigned long ulongval () { return (long) (sizeof (long long)); }
19678#include <stdio.h>
19679#include <stdlib.h>
19680int
19681main ()
19682{
19683
19684 FILE *f = fopen ("conftest.val", "w");
19685 if (! f)
19686 exit (1);
19687 if (((long) (sizeof (long long))) < 0)
19688 {
19689 long i = longval ();
19690 if (i != ((long) (sizeof (long long))))
19691 exit (1);
19692 fprintf (f, "%ld\n", i);
19693 }
19694 else
19695 {
19696 unsigned long i = ulongval ();
19697 if (i != ((long) (sizeof (long long))))
19698 exit (1);
19699 fprintf (f, "%lu\n", i);
19700 }
19701 exit (ferror (f) || fclose (f) != 0);
19702
19703 ;
19704 return 0;
19705}
19706_ACEOF
19707rm -f conftest$ac_exeext
19708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19709 (eval $ac_link) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; }; then
19718 ac_cv_sizeof_long_long=`cat conftest.val`
19719else
19720 echo "$as_me: program exited with status $ac_status" >&5
19721echo "$as_me: failed program was:" >&5
19722sed 's/^/| /' conftest.$ac_ext >&5
19723
19724( exit $ac_status )
19725{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19726See \`config.log' for more details." >&5
19727echo "$as_me: error: cannot compute sizeof (long long), 77
19728See \`config.log' for more details." >&2;}
19729 { (exit 1); exit 1; }; }
19730fi
ac1cb8d3 19731rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19732fi
19733fi
19734rm -f conftest.val
19735else
19736 ac_cv_sizeof_long_long=0
19737fi
19738fi
19739echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19740echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19741cat >>confdefs.h <<_ACEOF
19742#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19743_ACEOF
19744
19745
19746 ;;
19747 *-hp-hpux* )
19748 echo "$as_me:$LINENO: checking for long long" >&5
19749echo $ECHO_N "checking for long long... $ECHO_C" >&6
19750if test "${ac_cv_type_long_long+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752else
19753 cat >conftest.$ac_ext <<_ACEOF
19754/* confdefs.h. */
19755_ACEOF
19756cat confdefs.h >>conftest.$ac_ext
19757cat >>conftest.$ac_ext <<_ACEOF
19758/* end confdefs.h. */
19759$ac_includes_default
19760int
19761main ()
19762{
19763if ((long long *) 0)
19764 return 0;
19765if (sizeof (long long))
19766 return 0;
19767 ;
19768 return 0;
19769}
19770_ACEOF
19771rm -f conftest.$ac_objext
19772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19773 (eval $ac_compile) 2>conftest.er1
a848cd7e 19774 ac_status=$?
ac1cb8d3
VS
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
a848cd7e
SC
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
3565d135
RR
19780 { ac_try='test -z "$ac_c_werror_flag"
19781 || test ! -s conftest.err'
ac1cb8d3
VS
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; }; then
19793 ac_cv_type_long_long=yes
19794else
19795 echo "$as_me: failed program was:" >&5
19796sed 's/^/| /' conftest.$ac_ext >&5
19797
19798ac_cv_type_long_long=no
19799fi
ac1cb8d3 19800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19801fi
19802echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19803echo "${ECHO_T}$ac_cv_type_long_long" >&6
19804
19805echo "$as_me:$LINENO: checking size of long long" >&5
19806echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19807if test "${ac_cv_sizeof_long_long+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19809else
19810 if test "$ac_cv_type_long_long" = yes; then
19811 # The cast to unsigned long works around a bug in the HP C Compiler
19812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19814 # This bug is HP SR number 8606223364.
19815 if test "$cross_compiling" = yes; then
19816 # Depending upon the size, compute the lo and hi bounds.
19817cat >conftest.$ac_ext <<_ACEOF
19818/* confdefs.h. */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
19822/* end confdefs.h. */
19823$ac_includes_default
19824int
19825main ()
19826{
19827static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19828test_array [0] = 0
19829
19830 ;
19831 return 0;
19832}
19833_ACEOF
19834rm -f conftest.$ac_objext
19835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19836 (eval $ac_compile) 2>conftest.er1
a848cd7e 19837 ac_status=$?
ac1cb8d3
VS
19838 grep -v '^ *+' conftest.er1 >conftest.err
19839 rm -f conftest.er1
19840 cat conftest.err >&5
a848cd7e
SC
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } &&
3565d135
RR
19843 { ac_try='test -z "$ac_c_werror_flag"
19844 || test ! -s conftest.err'
ac1cb8d3
VS
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } &&
19850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
19856 ac_lo=0 ac_mid=0
19857 while :; do
19858 cat >conftest.$ac_ext <<_ACEOF
19859/* confdefs.h. */
19860_ACEOF
19861cat confdefs.h >>conftest.$ac_ext
19862cat >>conftest.$ac_ext <<_ACEOF
19863/* end confdefs.h. */
19864$ac_includes_default
19865int
19866main ()
19867{
19868static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19869test_array [0] = 0
19870
19871 ;
19872 return 0;
19873}
19874_ACEOF
19875rm -f conftest.$ac_objext
19876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19877 (eval $ac_compile) 2>conftest.er1
a848cd7e 19878 ac_status=$?
ac1cb8d3
VS
19879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
a848cd7e
SC
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
3565d135
RR
19884 { ac_try='test -z "$ac_c_werror_flag"
19885 || test ! -s conftest.err'
ac1cb8d3
VS
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; } &&
19891 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893 (eval $ac_try) 2>&5
19894 ac_status=$?
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; }; then
19897 ac_hi=$ac_mid; break
19898else
19899 echo "$as_me: failed program was:" >&5
19900sed 's/^/| /' conftest.$ac_ext >&5
19901
19902ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19903 if test $ac_lo -le $ac_mid; then
19904 ac_lo= ac_hi=
19905 break
19906 fi
19907 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19908fi
ac1cb8d3 19909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19910 done
19911else
19912 echo "$as_me: failed program was:" >&5
19913sed 's/^/| /' conftest.$ac_ext >&5
19914
19915cat >conftest.$ac_ext <<_ACEOF
19916/* confdefs.h. */
19917_ACEOF
19918cat confdefs.h >>conftest.$ac_ext
19919cat >>conftest.$ac_ext <<_ACEOF
19920/* end confdefs.h. */
19921$ac_includes_default
19922int
19923main ()
19924{
19925static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19926test_array [0] = 0
19927
19928 ;
19929 return 0;
19930}
19931_ACEOF
19932rm -f conftest.$ac_objext
19933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19934 (eval $ac_compile) 2>conftest.er1
a848cd7e 19935 ac_status=$?
ac1cb8d3
VS
19936 grep -v '^ *+' conftest.er1 >conftest.err
19937 rm -f conftest.er1
19938 cat conftest.err >&5
a848cd7e
SC
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); } &&
3565d135
RR
19941 { ac_try='test -z "$ac_c_werror_flag"
19942 || test ! -s conftest.err'
ac1cb8d3
VS
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19945 ac_status=$?
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; } &&
19948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950 (eval $ac_try) 2>&5
19951 ac_status=$?
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; }; then
19954 ac_hi=-1 ac_mid=-1
19955 while :; do
19956 cat >conftest.$ac_ext <<_ACEOF
19957/* confdefs.h. */
19958_ACEOF
19959cat confdefs.h >>conftest.$ac_ext
19960cat >>conftest.$ac_ext <<_ACEOF
19961/* end confdefs.h. */
19962$ac_includes_default
19963int
19964main ()
19965{
19966static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19967test_array [0] = 0
19968
19969 ;
19970 return 0;
19971}
19972_ACEOF
19973rm -f conftest.$ac_objext
19974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19975 (eval $ac_compile) 2>conftest.er1
a848cd7e 19976 ac_status=$?
ac1cb8d3
VS
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
a848cd7e
SC
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
3565d135
RR
19982 { ac_try='test -z "$ac_c_werror_flag"
19983 || test ! -s conftest.err'
ac1cb8d3
VS
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; }; then
19995 ac_lo=$ac_mid; break
19996else
19997 echo "$as_me: failed program was:" >&5
19998sed 's/^/| /' conftest.$ac_ext >&5
19999
20000ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20001 if test $ac_mid -le $ac_hi; then
20002 ac_lo= ac_hi=
20003 break
20004 fi
20005 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20006fi
ac1cb8d3 20007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20008 done
20009else
20010 echo "$as_me: failed program was:" >&5
20011sed 's/^/| /' conftest.$ac_ext >&5
20012
20013ac_lo= ac_hi=
20014fi
ac1cb8d3 20015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20016fi
ac1cb8d3 20017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20018# Binary search between lo and hi bounds.
20019while test "x$ac_lo" != "x$ac_hi"; do
20020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20021 cat >conftest.$ac_ext <<_ACEOF
20022/* confdefs.h. */
20023_ACEOF
20024cat confdefs.h >>conftest.$ac_ext
20025cat >>conftest.$ac_ext <<_ACEOF
20026/* end confdefs.h. */
20027$ac_includes_default
20028int
20029main ()
20030{
20031static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20032test_array [0] = 0
20033
20034 ;
20035 return 0;
20036}
20037_ACEOF
20038rm -f conftest.$ac_objext
20039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20040 (eval $ac_compile) 2>conftest.er1
a848cd7e 20041 ac_status=$?
ac1cb8d3
VS
20042 grep -v '^ *+' conftest.er1 >conftest.err
20043 rm -f conftest.er1
20044 cat conftest.err >&5
a848cd7e
SC
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } &&
3565d135
RR
20047 { ac_try='test -z "$ac_c_werror_flag"
20048 || test ! -s conftest.err'
ac1cb8d3
VS
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; } &&
20054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20057 ac_status=$?
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; }; then
20060 ac_hi=$ac_mid
20061else
20062 echo "$as_me: failed program was:" >&5
20063sed 's/^/| /' conftest.$ac_ext >&5
20064
20065ac_lo=`expr '(' $ac_mid ')' + 1`
20066fi
ac1cb8d3 20067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20068done
20069case $ac_lo in
20070?*) ac_cv_sizeof_long_long=$ac_lo;;
20071'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20072See \`config.log' for more details." >&5
20073echo "$as_me: error: cannot compute sizeof (long long), 77
20074See \`config.log' for more details." >&2;}
20075 { (exit 1); exit 1; }; } ;;
20076esac
20077else
20078 if test "$cross_compiling" = yes; then
3565d135
RR
20079 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20080See \`config.log' for more details." >&5
20081echo "$as_me: error: cannot run test program while cross compiling
20082See \`config.log' for more details." >&2;}
a848cd7e
SC
20083 { (exit 1); exit 1; }; }
20084else
20085 cat >conftest.$ac_ext <<_ACEOF
20086/* confdefs.h. */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
20090/* end confdefs.h. */
20091$ac_includes_default
20092long longval () { return (long) (sizeof (long long)); }
20093unsigned long ulongval () { return (long) (sizeof (long long)); }
20094#include <stdio.h>
20095#include <stdlib.h>
20096int
20097main ()
20098{
20099
20100 FILE *f = fopen ("conftest.val", "w");
20101 if (! f)
20102 exit (1);
20103 if (((long) (sizeof (long long))) < 0)
20104 {
20105 long i = longval ();
20106 if (i != ((long) (sizeof (long long))))
20107 exit (1);
20108 fprintf (f, "%ld\n", i);
20109 }
20110 else
20111 {
20112 unsigned long i = ulongval ();
20113 if (i != ((long) (sizeof (long long))))
20114 exit (1);
20115 fprintf (f, "%lu\n", i);
20116 }
20117 exit (ferror (f) || fclose (f) != 0);
20118
20119 ;
20120 return 0;
20121}
20122_ACEOF
20123rm -f conftest$ac_exeext
20124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20125 (eval $ac_link) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 ac_cv_sizeof_long_long=`cat conftest.val`
20135else
20136 echo "$as_me: program exited with status $ac_status" >&5
20137echo "$as_me: failed program was:" >&5
20138sed 's/^/| /' conftest.$ac_ext >&5
20139
20140( exit $ac_status )
20141{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20142See \`config.log' for more details." >&5
20143echo "$as_me: error: cannot compute sizeof (long long), 77
20144See \`config.log' for more details." >&2;}
20145 { (exit 1); exit 1; }; }
20146fi
ac1cb8d3 20147rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20148fi
20149fi
20150rm -f conftest.val
20151else
20152 ac_cv_sizeof_long_long=0
20153fi
20154fi
20155echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20156echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20157cat >>confdefs.h <<_ACEOF
20158#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20159_ACEOF
20160
20161
20162 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20163 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20164 fi
20165 ;;
20166 * )
20167 echo "$as_me:$LINENO: checking for long long" >&5
20168echo $ECHO_N "checking for long long... $ECHO_C" >&6
20169if test "${ac_cv_type_long_long+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20171else
20172 cat >conftest.$ac_ext <<_ACEOF
20173/* confdefs.h. */
20174_ACEOF
20175cat confdefs.h >>conftest.$ac_ext
20176cat >>conftest.$ac_ext <<_ACEOF
20177/* end confdefs.h. */
20178$ac_includes_default
20179int
20180main ()
20181{
20182if ((long long *) 0)
20183 return 0;
20184if (sizeof (long long))
20185 return 0;
20186 ;
20187 return 0;
20188}
20189_ACEOF
20190rm -f conftest.$ac_objext
20191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20192 (eval $ac_compile) 2>conftest.er1
a848cd7e 20193 ac_status=$?
ac1cb8d3
VS
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
a848cd7e
SC
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
3565d135
RR
20199 { ac_try='test -z "$ac_c_werror_flag"
20200 || test ! -s conftest.err'
ac1cb8d3
VS
20201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 (eval $ac_try) 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; } &&
20206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 ac_cv_type_long_long=yes
20213else
20214 echo "$as_me: failed program was:" >&5
20215sed 's/^/| /' conftest.$ac_ext >&5
20216
20217ac_cv_type_long_long=no
20218fi
ac1cb8d3 20219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20220fi
20221echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20222echo "${ECHO_T}$ac_cv_type_long_long" >&6
20223
20224echo "$as_me:$LINENO: checking size of long long" >&5
20225echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20226if test "${ac_cv_sizeof_long_long+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20228else
20229 if test "$ac_cv_type_long_long" = yes; then
20230 # The cast to unsigned long works around a bug in the HP C Compiler
20231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20233 # This bug is HP SR number 8606223364.
20234 if test "$cross_compiling" = yes; then
20235 # Depending upon the size, compute the lo and hi bounds.
20236cat >conftest.$ac_ext <<_ACEOF
20237/* confdefs.h. */
20238_ACEOF
20239cat confdefs.h >>conftest.$ac_ext
20240cat >>conftest.$ac_ext <<_ACEOF
20241/* end confdefs.h. */
20242$ac_includes_default
20243int
20244main ()
20245{
20246static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20247test_array [0] = 0
20248
20249 ;
20250 return 0;
20251}
20252_ACEOF
20253rm -f conftest.$ac_objext
20254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20255 (eval $ac_compile) 2>conftest.er1
a848cd7e 20256 ac_status=$?
ac1cb8d3
VS
20257 grep -v '^ *+' conftest.er1 >conftest.err
20258 rm -f conftest.er1
20259 cat conftest.err >&5
a848cd7e
SC
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } &&
3565d135
RR
20262 { ac_try='test -z "$ac_c_werror_flag"
20263 || test ! -s conftest.err'
ac1cb8d3
VS
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20266 ac_status=$?
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; } &&
20269 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271 (eval $ac_try) 2>&5
20272 ac_status=$?
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; }; then
20275 ac_lo=0 ac_mid=0
20276 while :; do
20277 cat >conftest.$ac_ext <<_ACEOF
20278/* confdefs.h. */
20279_ACEOF
20280cat confdefs.h >>conftest.$ac_ext
20281cat >>conftest.$ac_ext <<_ACEOF
20282/* end confdefs.h. */
20283$ac_includes_default
20284int
20285main ()
20286{
20287static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20288test_array [0] = 0
20289
20290 ;
20291 return 0;
20292}
20293_ACEOF
20294rm -f conftest.$ac_objext
20295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20296 (eval $ac_compile) 2>conftest.er1
a848cd7e 20297 ac_status=$?
ac1cb8d3
VS
20298 grep -v '^ *+' conftest.er1 >conftest.err
20299 rm -f conftest.er1
20300 cat conftest.err >&5
a848cd7e
SC
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } &&
3565d135
RR
20303 { ac_try='test -z "$ac_c_werror_flag"
20304 || test ! -s conftest.err'
ac1cb8d3
VS
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20307 ac_status=$?
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; } &&
20310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; }; then
20316 ac_hi=$ac_mid; break
20317else
20318 echo "$as_me: failed program was:" >&5
20319sed 's/^/| /' conftest.$ac_ext >&5
20320
20321ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20322 if test $ac_lo -le $ac_mid; then
20323 ac_lo= ac_hi=
20324 break
20325 fi
20326 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20327fi
ac1cb8d3 20328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20329 done
20330else
20331 echo "$as_me: failed program was:" >&5
20332sed 's/^/| /' conftest.$ac_ext >&5
20333
20334cat >conftest.$ac_ext <<_ACEOF
20335/* confdefs.h. */
20336_ACEOF
20337cat confdefs.h >>conftest.$ac_ext
20338cat >>conftest.$ac_ext <<_ACEOF
20339/* end confdefs.h. */
20340$ac_includes_default
20341int
20342main ()
20343{
20344static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20345test_array [0] = 0
20346
20347 ;
20348 return 0;
20349}
20350_ACEOF
20351rm -f conftest.$ac_objext
20352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20353 (eval $ac_compile) 2>conftest.er1
a848cd7e 20354 ac_status=$?
ac1cb8d3
VS
20355 grep -v '^ *+' conftest.er1 >conftest.err
20356 rm -f conftest.er1
20357 cat conftest.err >&5
a848cd7e
SC
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
3565d135
RR
20360 { ac_try='test -z "$ac_c_werror_flag"
20361 || test ! -s conftest.err'
ac1cb8d3
VS
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20364 ac_status=$?
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; } &&
20367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 ac_hi=-1 ac_mid=-1
20374 while :; do
20375 cat >conftest.$ac_ext <<_ACEOF
20376/* confdefs.h. */
20377_ACEOF
20378cat confdefs.h >>conftest.$ac_ext
20379cat >>conftest.$ac_ext <<_ACEOF
20380/* end confdefs.h. */
20381$ac_includes_default
20382int
20383main ()
20384{
20385static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20386test_array [0] = 0
20387
20388 ;
20389 return 0;
20390}
20391_ACEOF
20392rm -f conftest.$ac_objext
20393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20394 (eval $ac_compile) 2>conftest.er1
a848cd7e 20395 ac_status=$?
ac1cb8d3
VS
20396 grep -v '^ *+' conftest.er1 >conftest.err
20397 rm -f conftest.er1
20398 cat conftest.err >&5
a848cd7e
SC
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } &&
3565d135
RR
20401 { ac_try='test -z "$ac_c_werror_flag"
20402 || test ! -s conftest.err'
ac1cb8d3
VS
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; } &&
20408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_lo=$ac_mid; break
20415else
20416 echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20420 if test $ac_mid -le $ac_hi; then
20421 ac_lo= ac_hi=
20422 break
20423 fi
20424 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20425fi
ac1cb8d3 20426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20427 done
20428else
20429 echo "$as_me: failed program was:" >&5
20430sed 's/^/| /' conftest.$ac_ext >&5
20431
20432ac_lo= ac_hi=
20433fi
ac1cb8d3 20434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20435fi
ac1cb8d3 20436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20437# Binary search between lo and hi bounds.
20438while test "x$ac_lo" != "x$ac_hi"; do
20439 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20440 cat >conftest.$ac_ext <<_ACEOF
20441/* confdefs.h. */
20442_ACEOF
20443cat confdefs.h >>conftest.$ac_ext
20444cat >>conftest.$ac_ext <<_ACEOF
20445/* end confdefs.h. */
20446$ac_includes_default
20447int
20448main ()
20449{
20450static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20451test_array [0] = 0
20452
20453 ;
20454 return 0;
20455}
20456_ACEOF
20457rm -f conftest.$ac_objext
20458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20459 (eval $ac_compile) 2>conftest.er1
a848cd7e 20460 ac_status=$?
ac1cb8d3
VS
20461 grep -v '^ *+' conftest.er1 >conftest.err
20462 rm -f conftest.er1
20463 cat conftest.err >&5
a848cd7e
SC
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } &&
3565d135
RR
20466 { ac_try='test -z "$ac_c_werror_flag"
20467 || test ! -s conftest.err'
ac1cb8d3
VS
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20470 ac_status=$?
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; } &&
20473 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; }; then
20479 ac_hi=$ac_mid
20480else
20481 echo "$as_me: failed program was:" >&5
20482sed 's/^/| /' conftest.$ac_ext >&5
20483
20484ac_lo=`expr '(' $ac_mid ')' + 1`
20485fi
ac1cb8d3 20486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20487done
20488case $ac_lo in
20489?*) ac_cv_sizeof_long_long=$ac_lo;;
20490'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20491See \`config.log' for more details." >&5
20492echo "$as_me: error: cannot compute sizeof (long long), 77
20493See \`config.log' for more details." >&2;}
20494 { (exit 1); exit 1; }; } ;;
20495esac
20496else
20497 if test "$cross_compiling" = yes; then
3565d135
RR
20498 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20499See \`config.log' for more details." >&5
20500echo "$as_me: error: cannot run test program while cross compiling
20501See \`config.log' for more details." >&2;}
a848cd7e
SC
20502 { (exit 1); exit 1; }; }
20503else
20504 cat >conftest.$ac_ext <<_ACEOF
20505/* confdefs.h. */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h. */
20510$ac_includes_default
20511long longval () { return (long) (sizeof (long long)); }
20512unsigned long ulongval () { return (long) (sizeof (long long)); }
20513#include <stdio.h>
20514#include <stdlib.h>
20515int
20516main ()
20517{
20518
20519 FILE *f = fopen ("conftest.val", "w");
20520 if (! f)
20521 exit (1);
20522 if (((long) (sizeof (long long))) < 0)
20523 {
20524 long i = longval ();
20525 if (i != ((long) (sizeof (long long))))
20526 exit (1);
20527 fprintf (f, "%ld\n", i);
20528 }
20529 else
20530 {
20531 unsigned long i = ulongval ();
20532 if (i != ((long) (sizeof (long long))))
20533 exit (1);
20534 fprintf (f, "%lu\n", i);
20535 }
20536 exit (ferror (f) || fclose (f) != 0);
20537
20538 ;
20539 return 0;
20540}
20541_ACEOF
20542rm -f conftest$ac_exeext
20543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20544 (eval $ac_link) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549 (eval $ac_try) 2>&5
20550 ac_status=$?
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; }; then
20553 ac_cv_sizeof_long_long=`cat conftest.val`
20554else
20555 echo "$as_me: program exited with status $ac_status" >&5
20556echo "$as_me: failed program was:" >&5
20557sed 's/^/| /' conftest.$ac_ext >&5
20558
20559( exit $ac_status )
20560{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20561See \`config.log' for more details." >&5
20562echo "$as_me: error: cannot compute sizeof (long long), 77
20563See \`config.log' for more details." >&2;}
20564 { (exit 1); exit 1; }; }
20565fi
ac1cb8d3 20566rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20567fi
20568fi
20569rm -f conftest.val
20570else
20571 ac_cv_sizeof_long_long=0
20572fi
20573fi
20574echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20575echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20576cat >>confdefs.h <<_ACEOF
20577#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20578_ACEOF
20579
20580
20581esac
20582
238ecede
MW
20583echo "$as_me:$LINENO: checking for wchar_t" >&5
20584echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20585if test "${ac_cv_type_wchar_t+set}" = set; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20587else
20588 cat >conftest.$ac_ext <<_ACEOF
20589/* confdefs.h. */
20590_ACEOF
20591cat confdefs.h >>conftest.$ac_ext
20592cat >>conftest.$ac_ext <<_ACEOF
20593/* end confdefs.h. */
20594
83d8eb47
MW
20595 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20596 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20597 # error "fake wchar_t"
20598 #endif
20599 #ifdef HAVE_WCHAR_H
20600 # ifdef __CYGWIN__
20601 # include <stddef.h>
20602 # endif
20603 # include <wchar.h>
20604 #endif
20605 #ifdef HAVE_STDLIB_H
20606 # include <stdlib.h>
20607 #endif
20608 #include <stdio.h>
20609
20610
20611
20612int
20613main ()
20614{
20615if ((wchar_t *) 0)
20616 return 0;
20617if (sizeof (wchar_t))
20618 return 0;
20619 ;
20620 return 0;
20621}
20622_ACEOF
20623rm -f conftest.$ac_objext
20624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20625 (eval $ac_compile) 2>conftest.er1
20626 ac_status=$?
20627 grep -v '^ *+' conftest.er1 >conftest.err
20628 rm -f conftest.er1
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } &&
3565d135
RR
20632 { ac_try='test -z "$ac_c_werror_flag"
20633 || test ! -s conftest.err'
238ecede
MW
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; } &&
20639 { ac_try='test -s conftest.$ac_objext'
20640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20641 (eval $ac_try) 2>&5
20642 ac_status=$?
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; }; then
20645 ac_cv_type_wchar_t=yes
20646else
20647 echo "$as_me: failed program was:" >&5
20648sed 's/^/| /' conftest.$ac_ext >&5
20649
20650ac_cv_type_wchar_t=no
20651fi
20652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20653fi
20654echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20655echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20656
a848cd7e
SC
20657echo "$as_me:$LINENO: checking size of wchar_t" >&5
20658echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20659if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20660 echo $ECHO_N "(cached) $ECHO_C" >&6
20661else
238ecede
MW
20662 if test "$ac_cv_type_wchar_t" = yes; then
20663 # The cast to unsigned long works around a bug in the HP C Compiler
20664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20666 # This bug is HP SR number 8606223364.
20667 if test "$cross_compiling" = yes; then
20668 # Depending upon the size, compute the lo and hi bounds.
20669cat >conftest.$ac_ext <<_ACEOF
20670/* confdefs.h. */
20671_ACEOF
20672cat confdefs.h >>conftest.$ac_ext
20673cat >>conftest.$ac_ext <<_ACEOF
20674/* end confdefs.h. */
20675
83d8eb47
MW
20676 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20677 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20678 # error "fake wchar_t"
20679 #endif
20680 #ifdef HAVE_WCHAR_H
20681 # ifdef __CYGWIN__
20682 # include <stddef.h>
20683 # endif
20684 # include <wchar.h>
20685 #endif
20686 #ifdef HAVE_STDLIB_H
20687 # include <stdlib.h>
20688 #endif
20689 #include <stdio.h>
20690
20691
20692
20693int
20694main ()
20695{
20696static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20697test_array [0] = 0
20698
20699 ;
20700 return 0;
20701}
20702_ACEOF
20703rm -f conftest.$ac_objext
20704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20705 (eval $ac_compile) 2>conftest.er1
20706 ac_status=$?
20707 grep -v '^ *+' conftest.er1 >conftest.err
20708 rm -f conftest.er1
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } &&
3565d135
RR
20712 { ac_try='test -z "$ac_c_werror_flag"
20713 || test ! -s conftest.err'
238ecede
MW
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; } &&
20719 { ac_try='test -s conftest.$ac_objext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 ac_lo=0 ac_mid=0
20726 while :; do
20727 cat >conftest.$ac_ext <<_ACEOF
20728/* confdefs.h. */
20729_ACEOF
20730cat confdefs.h >>conftest.$ac_ext
20731cat >>conftest.$ac_ext <<_ACEOF
20732/* end confdefs.h. */
20733
83d8eb47
MW
20734 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20735 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20736 # error "fake wchar_t"
20737 #endif
20738 #ifdef HAVE_WCHAR_H
20739 # ifdef __CYGWIN__
20740 # include <stddef.h>
20741 # endif
20742 # include <wchar.h>
20743 #endif
20744 #ifdef HAVE_STDLIB_H
20745 # include <stdlib.h>
20746 #endif
20747 #include <stdio.h>
20748
20749
20750
20751int
20752main ()
20753{
20754static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20755test_array [0] = 0
20756
20757 ;
20758 return 0;
20759}
20760_ACEOF
20761rm -f conftest.$ac_objext
20762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20763 (eval $ac_compile) 2>conftest.er1
20764 ac_status=$?
20765 grep -v '^ *+' conftest.er1 >conftest.err
20766 rm -f conftest.er1
20767 cat conftest.err >&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } &&
3565d135
RR
20770 { ac_try='test -z "$ac_c_werror_flag"
20771 || test ! -s conftest.err'
238ecede
MW
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; } &&
20777 { ac_try='test -s conftest.$ac_objext'
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20780 ac_status=$?
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783 ac_hi=$ac_mid; break
20784else
20785 echo "$as_me: failed program was:" >&5
20786sed 's/^/| /' conftest.$ac_ext >&5
20787
20788ac_lo=`expr $ac_mid + 1`
20789 if test $ac_lo -le $ac_mid; then
20790 ac_lo= ac_hi=
20791 break
20792 fi
20793 ac_mid=`expr 2 '*' $ac_mid + 1`
20794fi
20795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20796 done
20797else
20798 echo "$as_me: failed program was:" >&5
20799sed 's/^/| /' conftest.$ac_ext >&5
20800
20801cat >conftest.$ac_ext <<_ACEOF
20802/* confdefs.h. */
20803_ACEOF
20804cat confdefs.h >>conftest.$ac_ext
20805cat >>conftest.$ac_ext <<_ACEOF
20806/* end confdefs.h. */
20807
83d8eb47
MW
20808 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20809 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20810 # error "fake wchar_t"
20811 #endif
20812 #ifdef HAVE_WCHAR_H
20813 # ifdef __CYGWIN__
20814 # include <stddef.h>
20815 # endif
20816 # include <wchar.h>
20817 #endif
20818 #ifdef HAVE_STDLIB_H
20819 # include <stdlib.h>
20820 #endif
20821 #include <stdio.h>
20822
20823
20824
20825int
20826main ()
20827{
20828static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20829test_array [0] = 0
20830
20831 ;
20832 return 0;
20833}
20834_ACEOF
20835rm -f conftest.$ac_objext
20836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20837 (eval $ac_compile) 2>conftest.er1
20838 ac_status=$?
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
3565d135
RR
20844 { ac_try='test -z "$ac_c_werror_flag"
20845 || test ! -s conftest.err'
238ecede
MW
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; } &&
20851 { ac_try='test -s conftest.$ac_objext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ac_hi=-1 ac_mid=-1
20858 while :; do
20859 cat >conftest.$ac_ext <<_ACEOF
20860/* confdefs.h. */
20861_ACEOF
20862cat confdefs.h >>conftest.$ac_ext
20863cat >>conftest.$ac_ext <<_ACEOF
20864/* end confdefs.h. */
20865
83d8eb47
MW
20866 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20867 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20868 # error "fake wchar_t"
20869 #endif
20870 #ifdef HAVE_WCHAR_H
20871 # ifdef __CYGWIN__
20872 # include <stddef.h>
20873 # endif
20874 # include <wchar.h>
20875 #endif
20876 #ifdef HAVE_STDLIB_H
20877 # include <stdlib.h>
20878 #endif
20879 #include <stdio.h>
20880
20881
20882
20883int
20884main ()
20885{
20886static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20887test_array [0] = 0
20888
20889 ;
20890 return 0;
20891}
20892_ACEOF
20893rm -f conftest.$ac_objext
20894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20895 (eval $ac_compile) 2>conftest.er1
20896 ac_status=$?
20897 grep -v '^ *+' conftest.er1 >conftest.err
20898 rm -f conftest.er1
20899 cat conftest.err >&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } &&
3565d135
RR
20902 { ac_try='test -z "$ac_c_werror_flag"
20903 || test ! -s conftest.err'
238ecede
MW
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20906 ac_status=$?
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; } &&
20909 { ac_try='test -s conftest.$ac_objext'
20910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20911 (eval $ac_try) 2>&5
20912 ac_status=$?
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; }; then
20915 ac_lo=$ac_mid; break
20916else
20917 echo "$as_me: failed program was:" >&5
20918sed 's/^/| /' conftest.$ac_ext >&5
20919
20920ac_hi=`expr '(' $ac_mid ')' - 1`
20921 if test $ac_mid -le $ac_hi; then
20922 ac_lo= ac_hi=
20923 break
20924 fi
20925 ac_mid=`expr 2 '*' $ac_mid`
20926fi
20927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20928 done
20929else
20930 echo "$as_me: failed program was:" >&5
20931sed 's/^/| /' conftest.$ac_ext >&5
20932
20933ac_lo= ac_hi=
20934fi
20935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20936fi
20937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20938# Binary search between lo and hi bounds.
20939while test "x$ac_lo" != "x$ac_hi"; do
20940 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20941 cat >conftest.$ac_ext <<_ACEOF
20942/* confdefs.h. */
20943_ACEOF
20944cat confdefs.h >>conftest.$ac_ext
20945cat >>conftest.$ac_ext <<_ACEOF
20946/* end confdefs.h. */
20947
83d8eb47
MW
20948 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20949 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20950 # error "fake wchar_t"
20951 #endif
20952 #ifdef HAVE_WCHAR_H
20953 # ifdef __CYGWIN__
20954 # include <stddef.h>
20955 # endif
20956 # include <wchar.h>
20957 #endif
20958 #ifdef HAVE_STDLIB_H
20959 # include <stdlib.h>
20960 #endif
20961 #include <stdio.h>
a848cd7e 20962
a848cd7e 20963
a848cd7e 20964
238ecede
MW
20965int
20966main ()
20967{
20968static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20969test_array [0] = 0
a848cd7e 20970
238ecede
MW
20971 ;
20972 return 0;
20973}
20974_ACEOF
20975rm -f conftest.$ac_objext
20976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20977 (eval $ac_compile) 2>conftest.er1
20978 ac_status=$?
20979 grep -v '^ *+' conftest.er1 >conftest.err
20980 rm -f conftest.er1
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
3565d135
RR
20984 { ac_try='test -z "$ac_c_werror_flag"
20985 || test ! -s conftest.err'
238ecede
MW
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; } &&
20991 { ac_try='test -s conftest.$ac_objext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 ac_hi=$ac_mid
20998else
20999 echo "$as_me: failed program was:" >&5
21000sed 's/^/| /' conftest.$ac_ext >&5
21001
21002ac_lo=`expr '(' $ac_mid ')' + 1`
21003fi
21004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21005done
21006case $ac_lo in
21007?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21008'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21009See \`config.log' for more details." >&5
21010echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21011See \`config.log' for more details." >&2;}
21012 { (exit 1); exit 1; }; } ;;
21013esac
21014else
21015 if test "$cross_compiling" = yes; then
3565d135
RR
21016 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21017See \`config.log' for more details." >&5
21018echo "$as_me: error: cannot run test program while cross compiling
21019See \`config.log' for more details." >&2;}
238ecede 21020 { (exit 1); exit 1; }; }
a848cd7e
SC
21021else
21022 cat >conftest.$ac_ext <<_ACEOF
21023/* confdefs.h. */
21024_ACEOF
21025cat confdefs.h >>conftest.$ac_ext
21026cat >>conftest.$ac_ext <<_ACEOF
21027/* end confdefs.h. */
21028
83d8eb47
MW
21029 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21030 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21031 # error "fake wchar_t"
21032 #endif
21033 #ifdef HAVE_WCHAR_H
21034 # ifdef __CYGWIN__
21035 # include <stddef.h>
21036 # endif
21037 # include <wchar.h>
21038 #endif
21039 #ifdef HAVE_STDLIB_H
21040 # include <stdlib.h>
21041 #endif
21042 #include <stdio.h>
21043
21044
21045
21046long longval () { return (long) (sizeof (wchar_t)); }
21047unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21048#include <stdio.h>
21049#include <stdlib.h>
21050int
21051main ()
21052{
a848cd7e 21053
238ecede
MW
21054 FILE *f = fopen ("conftest.val", "w");
21055 if (! f)
21056 exit (1);
21057 if (((long) (sizeof (wchar_t))) < 0)
21058 {
21059 long i = longval ();
21060 if (i != ((long) (sizeof (wchar_t))))
21061 exit (1);
21062 fprintf (f, "%ld\n", i);
21063 }
21064 else
21065 {
21066 unsigned long i = ulongval ();
21067 if (i != ((long) (sizeof (wchar_t))))
21068 exit (1);
21069 fprintf (f, "%lu\n", i);
21070 }
21071 exit (ferror (f) || fclose (f) != 0);
21072
21073 ;
21074 return 0;
21075}
a848cd7e
SC
21076_ACEOF
21077rm -f conftest$ac_exeext
21078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21079 (eval $ac_link) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084 (eval $ac_try) 2>&5
21085 ac_status=$?
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); }; }; then
238ecede 21088 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21089else
21090 echo "$as_me: program exited with status $ac_status" >&5
21091echo "$as_me: failed program was:" >&5
21092sed 's/^/| /' conftest.$ac_ext >&5
21093
21094( exit $ac_status )
238ecede
MW
21095{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21096See \`config.log' for more details." >&5
21097echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21098See \`config.log' for more details." >&2;}
21099 { (exit 1); exit 1; }; }
a848cd7e 21100fi
ac1cb8d3 21101rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21102fi
a848cd7e 21103fi
238ecede
MW
21104rm -f conftest.val
21105else
21106 ac_cv_sizeof_wchar_t=0
21107fi
21108fi
21109echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21110echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21111cat >>confdefs.h <<_ACEOF
238ecede 21112#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21113_ACEOF
21114
21115
47a7e797
MW
21116if test "$ac_cv_sizeof_wchar_t" != "0"; then
21117 wxUSE_WCHAR_T=yes
21118else
21119 wxUSE_WCHAR_T=no
21120fi
238ecede 21121
ba3d13e1
VZ
21122echo "$as_me:$LINENO: checking for va_copy" >&5
21123echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21124if test "${wx_cv_func_va_copy+set}" = set; then
21125 echo $ECHO_N "(cached) $ECHO_C" >&6
21126else
21127
21128 cat >conftest.$ac_ext <<_ACEOF
21129
21130 #include <stdarg.h>
21131 void foo(char *f, ...)
21132 {
21133 va_list ap1, ap2;
21134 va_start(ap1, f);
21135 va_copy(ap2, ap1);
21136 va_end(ap2);
21137 va_end(ap1);
21138 }
5886b072
VZ
21139 int main()
21140 {
b902e639
VZ
21141 foo("hi", 17);
21142 return 0;
5886b072 21143 }
ba3d13e1
VZ
21144_ACEOF
21145rm -f conftest.$ac_objext conftest$ac_exeext
21146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21147 (eval $ac_link) 2>conftest.er1
21148 ac_status=$?
21149 grep -v '^ *+' conftest.er1 >conftest.err
21150 rm -f conftest.er1
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } &&
3565d135
RR
21154 { ac_try='test -z "$ac_c_werror_flag"
21155 || test ! -s conftest.err'
ba3d13e1
VZ
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21158 ac_status=$?
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; } &&
21161 { ac_try='test -s conftest$ac_exeext'
21162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163 (eval $ac_try) 2>&5
21164 ac_status=$?
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; }; then
21167 wx_cv_func_va_copy=yes
21168else
21169 echo "$as_me: failed program was:" >&5
21170sed 's/^/| /' conftest.$ac_ext >&5
21171
21172wx_cv_func_va_copy=no
21173
21174fi
21175rm -f conftest.err conftest.$ac_objext \
21176 conftest$ac_exeext conftest.$ac_ext
21177
21178
21179fi
21180echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21181echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21182
21183if test $wx_cv_func_va_copy = "yes"; then
21184 cat >>confdefs.h <<\_ACEOF
21185#define HAVE_VA_COPY 1
21186_ACEOF
21187
21188else
21189 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21190echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21191if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193else
21194
21195 if test "$cross_compiling" = yes; then
21196 wx_cv_type_va_list_lvalue=yes
21197
21198else
21199 cat >conftest.$ac_ext <<_ACEOF
21200
21201 #include <stdarg.h>
21202 int foo(char *f, ...)
21203 {
21204 va_list ap1, ap2;
21205 va_start(ap1, f);
21206 ap2 = ap1;
21207 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21208 return 1;
21209 va_end(ap2);
21210 va_end(ap1);
21211 return 0;
21212 }
21213 int main()
21214 {
21215 return foo("hi", 17);
21216 }
21217_ACEOF
21218rm -f conftest$ac_exeext
21219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21220 (eval $ac_link) 2>&5
21221 ac_status=$?
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 wx_cv_type_va_list_lvalue=yes
21230else
21231 echo "$as_me: program exited with status $ac_status" >&5
21232echo "$as_me: failed program was:" >&5
21233sed 's/^/| /' conftest.$ac_ext >&5
21234
21235( exit $ac_status )
21236wx_cv_type_va_list_lvalue=no
21237fi
21238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21239fi
21240
21241
21242fi
21243echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21244echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21245
21246 if test $wx_cv_type_va_list_lvalue != "yes"; then
21247 cat >>confdefs.h <<\_ACEOF
21248#define VA_LIST_IS_ARRAY 1
21249_ACEOF
21250
21251 fi
21252fi
21253
a848cd7e
SC
21254# Check whether --enable-largefile or --disable-largefile was given.
21255if test "${enable_largefile+set}" = set; then
21256 enableval="$enable_largefile"
21257
21258fi;
21259if test "$enable_largefile" != no; then
21260 wx_largefile=no
21261
21262 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21263echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21264if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21266else
21267
21268 cat >conftest.$ac_ext <<_ACEOF
21269/* confdefs.h. */
21270_ACEOF
21271cat confdefs.h >>conftest.$ac_ext
21272cat >>conftest.$ac_ext <<_ACEOF
21273/* end confdefs.h. */
21274#define _FILE_OFFSET_BITS 64
21275 #include <sys/types.h>
21276int
21277main ()
21278{
21279typedef struct {
21280 unsigned int field: sizeof(off_t) == 8;
21281} wxlf;
21282
21283 ;
21284 return 0;
21285}
21286_ACEOF
21287rm -f conftest.$ac_objext
21288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21289 (eval $ac_compile) 2>conftest.er1
a848cd7e 21290 ac_status=$?
ac1cb8d3
VS
21291 grep -v '^ *+' conftest.er1 >conftest.err
21292 rm -f conftest.er1
21293 cat conftest.err >&5
a848cd7e
SC
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
3565d135
RR
21296 { ac_try='test -z "$ac_c_werror_flag"
21297 || test ! -s conftest.err'
ac1cb8d3
VS
21298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299 (eval $ac_try) 2>&5
21300 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; } &&
21303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 ac_cv_sys_file_offset_bits=64
21310else
21311 echo "$as_me: failed program was:" >&5
21312sed 's/^/| /' conftest.$ac_ext >&5
21313
21314ac_cv_sys_file_offset_bits=no
21315fi
ac1cb8d3 21316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21317
21318
21319fi
21320echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21321echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21322
21323 if test "$ac_cv_sys_file_offset_bits" != no; then
21324 wx_largefile=yes
21325 cat >>confdefs.h <<_ACEOF
21326#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21327_ACEOF
21328
21329 fi
21330
21331 if test "x$wx_largefile" != "xyes"; then
21332
21333 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21334echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21335if test "${ac_cv_sys_large_files+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21337else
21338
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#define _LARGE_FILES 1
21346 #include <sys/types.h>
21347int
21348main ()
21349{
21350typedef struct {
21351 unsigned int field: sizeof(off_t) == 8;
21352} wxlf;
21353
21354 ;
21355 return 0;
21356}
21357_ACEOF
21358rm -f conftest.$ac_objext
21359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21360 (eval $ac_compile) 2>conftest.er1
a848cd7e 21361 ac_status=$?
ac1cb8d3
VS
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
a848cd7e
SC
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
3565d135
RR
21367 { ac_try='test -z "$ac_c_werror_flag"
21368 || test ! -s conftest.err'
ac1cb8d3
VS
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 ac_cv_sys_large_files=1
21381else
21382 echo "$as_me: failed program was:" >&5
21383sed 's/^/| /' conftest.$ac_ext >&5
21384
21385ac_cv_sys_large_files=no
21386fi
ac1cb8d3 21387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21388
21389
21390fi
21391echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21392echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21393
21394 if test "$ac_cv_sys_large_files" != no; then
21395 wx_largefile=yes
21396 cat >>confdefs.h <<_ACEOF
21397#define _LARGE_FILES $ac_cv_sys_large_files
21398_ACEOF
21399
21400 fi
21401
21402 fi
21403
21404 echo "$as_me:$LINENO: checking if large file support is available" >&5
21405echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21406 if test "x$wx_largefile" = "xyes"; then
21407 cat >>confdefs.h <<\_ACEOF
21408#define HAVE_LARGEFILE_SUPPORT 1
21409_ACEOF
21410
21411 fi
21412 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21413echo "${ECHO_T}$wx_largefile" >&6
21414fi
21415
5b674b9d
DE
21416
21417if test "x$wx_largefile" = "xyes"; then
21418 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21419 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21420
21421 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21422 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21423echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21424if test "${wx_cv_STDC_EXT_required+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21426else
21427
21428
21429
21430 ac_ext=cc
21431ac_cpp='$CXXCPP $CPPFLAGS'
21432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21435
21436 cat >conftest.$ac_ext <<_ACEOF
21437/* confdefs.h. */
21438_ACEOF
21439cat confdefs.h >>conftest.$ac_ext
21440cat >>conftest.$ac_ext <<_ACEOF
21441/* end confdefs.h. */
21442
21443int
21444main ()
21445{
21446
21447 #ifndef __STDC_EXT__
21448 choke me
21449 #endif
21450
21451 ;
21452 return 0;
21453}
21454_ACEOF
21455rm -f conftest.$ac_objext
21456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21457 (eval $ac_compile) 2>conftest.er1
21458 ac_status=$?
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } &&
3565d135
RR
21464 { ac_try='test -z "$ac_cxx_werror_flag"
21465 || test ! -s conftest.err'
00421666
MW
21466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21468 ac_status=$?
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; } &&
21471 { ac_try='test -s conftest.$ac_objext'
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; }; then
21477 wx_cv_STDC_EXT_required=no
21478else
21479 echo "$as_me: failed program was:" >&5
21480sed 's/^/| /' conftest.$ac_ext >&5
21481
21482wx_cv_STDC_EXT_required=yes
21483
21484fi
21485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21486 ac_ext=c
21487ac_cpp='$CPP $CPPFLAGS'
21488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21490ac_compiler_gnu=$ac_cv_c_compiler_gnu
21491
21492
21493
21494fi
21495echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21496echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21497 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21498 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21499 fi
21500 fi
5b674b9d 21501 else
5ff751d6 21502 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21503 fi
21504 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21505echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21506if test "${ac_cv_sys_largefile_source+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21508else
21509 while :; do
21510 ac_cv_sys_largefile_source=no
21511 cat >conftest.$ac_ext <<_ACEOF
21512/* confdefs.h. */
21513_ACEOF
21514cat confdefs.h >>conftest.$ac_ext
21515cat >>conftest.$ac_ext <<_ACEOF
21516/* end confdefs.h. */
21517#include <stdio.h>
21518int
21519main ()
21520{
21521return !fseeko;
21522 ;
21523 return 0;
21524}
21525_ACEOF
21526rm -f conftest.$ac_objext
21527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21528 (eval $ac_compile) 2>conftest.er1
21529 ac_status=$?
21530 grep -v '^ *+' conftest.er1 >conftest.err
21531 rm -f conftest.er1
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } &&
3565d135
RR
21535 { ac_try='test -z "$ac_c_werror_flag"
21536 || test ! -s conftest.err'
5294a27e
VZ
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21539 ac_status=$?
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; } &&
21542 { ac_try='test -s conftest.$ac_objext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 break
21549else
21550 echo "$as_me: failed program was:" >&5
21551sed 's/^/| /' conftest.$ac_ext >&5
21552
21553fi
21554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21555 cat >conftest.$ac_ext <<_ACEOF
21556/* confdefs.h. */
21557_ACEOF
21558cat confdefs.h >>conftest.$ac_ext
21559cat >>conftest.$ac_ext <<_ACEOF
21560/* end confdefs.h. */
21561#define _LARGEFILE_SOURCE 1
21562#include <stdio.h>
21563int
21564main ()
21565{
21566return !fseeko;
21567 ;
21568 return 0;
21569}
21570_ACEOF
21571rm -f conftest.$ac_objext
21572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21573 (eval $ac_compile) 2>conftest.er1
21574 ac_status=$?
21575 grep -v '^ *+' conftest.er1 >conftest.err
21576 rm -f conftest.er1
21577 cat conftest.err >&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } &&
3565d135
RR
21580 { ac_try='test -z "$ac_c_werror_flag"
21581 || test ! -s conftest.err'
5294a27e
VZ
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; } &&
21587 { ac_try='test -s conftest.$ac_objext'
21588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21589 (eval $ac_try) 2>&5
21590 ac_status=$?
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; }; then
21593 ac_cv_sys_largefile_source=1; break
21594else
21595 echo "$as_me: failed program was:" >&5
21596sed 's/^/| /' conftest.$ac_ext >&5
21597
21598fi
21599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21600 break
21601done
21602fi
21603echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21604echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21605if test "$ac_cv_sys_largefile_source" != no; then
21606
21607cat >>confdefs.h <<_ACEOF
21608#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21609_ACEOF
21610
21611fi
21612rm -f conftest*
21613
21614# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21615# in glibc 2.1.3, but that breaks too many other things.
21616# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21617echo "$as_me:$LINENO: checking for fseeko" >&5
21618echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21619if test "${ac_cv_func_fseeko+set}" = set; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21621else
21622 cat >conftest.$ac_ext <<_ACEOF
21623/* confdefs.h. */
21624_ACEOF
21625cat confdefs.h >>conftest.$ac_ext
21626cat >>conftest.$ac_ext <<_ACEOF
21627/* end confdefs.h. */
21628#include <stdio.h>
21629int
21630main ()
21631{
21632return fseeko && fseeko (stdin, 0, 0);
21633 ;
21634 return 0;
21635}
21636_ACEOF
21637rm -f conftest.$ac_objext conftest$ac_exeext
21638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21639 (eval $ac_link) 2>conftest.er1
21640 ac_status=$?
21641 grep -v '^ *+' conftest.er1 >conftest.err
21642 rm -f conftest.er1
21643 cat conftest.err >&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } &&
3565d135
RR
21646 { ac_try='test -z "$ac_c_werror_flag"
21647 || test ! -s conftest.err'
5294a27e
VZ
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; } &&
21653 { ac_try='test -s conftest$ac_exeext'
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; }; then
21659 ac_cv_func_fseeko=yes
21660else
21661 echo "$as_me: failed program was:" >&5
21662sed 's/^/| /' conftest.$ac_ext >&5
21663
21664ac_cv_func_fseeko=no
21665fi
21666rm -f conftest.err conftest.$ac_objext \
21667 conftest$ac_exeext conftest.$ac_ext
21668fi
21669echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21670echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21671if test $ac_cv_func_fseeko = yes; then
21672
21673cat >>confdefs.h <<\_ACEOF
21674#define HAVE_FSEEKO 1
21675_ACEOF
21676
21677fi
21678
5b674b9d 21679 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21680 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21681 fi
a848cd7e
SC
21682fi
21683
21684echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21685echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21686if test "${ac_cv_c_bigendian+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21688else
21689 ac_cv_c_bigendian=unknown
21690# See if sys/param.h defines the BYTE_ORDER macro.
21691cat >conftest.$ac_ext <<_ACEOF
21692/* confdefs.h. */
21693_ACEOF
21694cat confdefs.h >>conftest.$ac_ext
21695cat >>conftest.$ac_ext <<_ACEOF
21696/* end confdefs.h. */
21697#include <sys/types.h>
21698#include <sys/param.h>
21699int
21700main ()
21701{
21702
21703#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21704 bogus endian macros
21705#endif
21706 ;
21707 return 0;
21708}
21709_ACEOF
21710rm -f conftest.$ac_objext
21711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21712 (eval $ac_compile) 2>conftest.er1
a848cd7e 21713 ac_status=$?
ac1cb8d3
VS
21714 grep -v '^ *+' conftest.er1 >conftest.err
21715 rm -f conftest.er1
21716 cat conftest.err >&5
a848cd7e
SC
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } &&
3565d135
RR
21719 { ac_try='test -z "$ac_c_werror_flag"
21720 || test ! -s conftest.err'
ac1cb8d3
VS
21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; } &&
21726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; }; then
21732 # It does; now see whether it defined to BIG_ENDIAN or not.
21733cat >conftest.$ac_ext <<_ACEOF
21734/* confdefs.h. */
21735_ACEOF
21736cat confdefs.h >>conftest.$ac_ext
21737cat >>conftest.$ac_ext <<_ACEOF
21738/* end confdefs.h. */
21739#include <sys/types.h>
21740#include <sys/param.h>
21741int
21742main ()
21743{
21744
21745#if BYTE_ORDER != BIG_ENDIAN
21746 not big endian
21747#endif
21748 ;
21749 return 0;
21750}
21751_ACEOF
21752rm -f conftest.$ac_objext
21753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21754 (eval $ac_compile) 2>conftest.er1
a848cd7e 21755 ac_status=$?
ac1cb8d3
VS
21756 grep -v '^ *+' conftest.er1 >conftest.err
21757 rm -f conftest.er1
21758 cat conftest.err >&5
a848cd7e
SC
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } &&
3565d135
RR
21761 { ac_try='test -z "$ac_c_werror_flag"
21762 || test ! -s conftest.err'
ac1cb8d3
VS
21763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764 (eval $ac_try) 2>&5
21765 ac_status=$?
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); }; } &&
21768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770 (eval $ac_try) 2>&5
21771 ac_status=$?
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); }; }; then
21774 ac_cv_c_bigendian=yes
21775else
21776 echo "$as_me: failed program was:" >&5
21777sed 's/^/| /' conftest.$ac_ext >&5
21778
21779ac_cv_c_bigendian=no
21780fi
ac1cb8d3 21781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21782else
21783 echo "$as_me: failed program was:" >&5
21784sed 's/^/| /' conftest.$ac_ext >&5
21785
21786fi
ac1cb8d3 21787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21788if test $ac_cv_c_bigendian = unknown; then
21789if test "$cross_compiling" = yes; then
21790 ac_cv_c_bigendian=unknown
21791else
21792 cat >conftest.$ac_ext <<_ACEOF
21793/* confdefs.h. */
21794_ACEOF
21795cat confdefs.h >>conftest.$ac_ext
21796cat >>conftest.$ac_ext <<_ACEOF
21797/* end confdefs.h. */
21798main () {
21799 /* Are we little or big endian? From Harbison&Steele. */
21800 union
21801 {
21802 long l;
21803 char c[sizeof (long)];
21804 } u;
21805 u.l = 1;
21806 exit (u.c[sizeof (long) - 1] == 1);
21807}
21808_ACEOF
21809rm -f conftest$ac_exeext
21810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21811 (eval $ac_link) 2>&5
21812 ac_status=$?
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21820 ac_cv_c_bigendian=no
21821else
21822 echo "$as_me: program exited with status $ac_status" >&5
21823echo "$as_me: failed program was:" >&5
21824sed 's/^/| /' conftest.$ac_ext >&5
21825
21826( exit $ac_status )
21827ac_cv_c_bigendian=yes
21828fi
ac1cb8d3 21829rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21830fi
21831fi
21832fi
21833echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21834echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21835if test $ac_cv_c_bigendian = unknown; then
21836 { 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
21837echo "$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;}
21838fi
21839if test $ac_cv_c_bigendian = yes; then
21840 cat >>confdefs.h <<\_ACEOF
21841#define WORDS_BIGENDIAN 1
21842_ACEOF
21843
21844fi
21845
21846
21847ac_ext=cc
21848ac_cpp='$CXXCPP $CPPFLAGS'
21849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21852echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21853echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21854if test -z "$CXXCPP"; then
21855 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21857else
21858 # Double quotes because CXXCPP needs to be expanded
21859 for CXXCPP in "$CXX -E" "/lib/cpp"
21860 do
21861 ac_preproc_ok=false
21862for ac_cxx_preproc_warn_flag in '' yes
21863do
21864 # Use a header file that comes with gcc, so configuring glibc
21865 # with a fresh cross-compiler works.
21866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21867 # <limits.h> exists even on freestanding compilers.
21868 # On the NeXT, cc -E runs the code through the compiler's parser,
21869 # not just through cpp. "Syntax error" is here to catch this case.
21870 cat >conftest.$ac_ext <<_ACEOF
21871/* confdefs.h. */
21872_ACEOF
21873cat confdefs.h >>conftest.$ac_ext
21874cat >>conftest.$ac_ext <<_ACEOF
21875/* end confdefs.h. */
21876#ifdef __STDC__
21877# include <limits.h>
21878#else
21879# include <assert.h>
21880#endif
ac1cb8d3 21881 Syntax error
a848cd7e
SC
21882_ACEOF
21883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21885 ac_status=$?
21886 grep -v '^ *+' conftest.er1 >conftest.err
21887 rm -f conftest.er1
21888 cat conftest.err >&5
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); } >/dev/null; then
21891 if test -s conftest.err; then
21892 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21893 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21894 else
21895 ac_cpp_err=
21896 fi
21897else
21898 ac_cpp_err=yes
21899fi
21900if test -z "$ac_cpp_err"; then
21901 :
21902else
21903 echo "$as_me: failed program was:" >&5
21904sed 's/^/| /' conftest.$ac_ext >&5
21905
21906 # Broken: fails on valid input.
21907continue
21908fi
21909rm -f conftest.err conftest.$ac_ext
21910
21911 # OK, works on sane cases. Now check whether non-existent headers
21912 # can be detected and how.
21913 cat >conftest.$ac_ext <<_ACEOF
21914/* confdefs.h. */
21915_ACEOF
21916cat confdefs.h >>conftest.$ac_ext
21917cat >>conftest.$ac_ext <<_ACEOF
21918/* end confdefs.h. */
21919#include <ac_nonexistent.h>
21920_ACEOF
21921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21923 ac_status=$?
21924 grep -v '^ *+' conftest.er1 >conftest.err
21925 rm -f conftest.er1
21926 cat conftest.err >&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } >/dev/null; then
21929 if test -s conftest.err; then
21930 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21931 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21932 else
21933 ac_cpp_err=
21934 fi
21935else
21936 ac_cpp_err=yes
21937fi
21938if test -z "$ac_cpp_err"; then
21939 # Broken: success on invalid input.
21940continue
21941else
21942 echo "$as_me: failed program was:" >&5
21943sed 's/^/| /' conftest.$ac_ext >&5
21944
21945 # Passes both tests.
21946ac_preproc_ok=:
21947break
21948fi
21949rm -f conftest.err conftest.$ac_ext
21950
21951done
21952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21953rm -f conftest.err conftest.$ac_ext
21954if $ac_preproc_ok; then
21955 break
21956fi
21957
21958 done
21959 ac_cv_prog_CXXCPP=$CXXCPP
21960
21961fi
21962 CXXCPP=$ac_cv_prog_CXXCPP
21963else
21964 ac_cv_prog_CXXCPP=$CXXCPP
21965fi
21966echo "$as_me:$LINENO: result: $CXXCPP" >&5
21967echo "${ECHO_T}$CXXCPP" >&6
21968ac_preproc_ok=false
21969for ac_cxx_preproc_warn_flag in '' yes
21970do
21971 # Use a header file that comes with gcc, so configuring glibc
21972 # with a fresh cross-compiler works.
21973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21974 # <limits.h> exists even on freestanding compilers.
21975 # On the NeXT, cc -E runs the code through the compiler's parser,
21976 # not just through cpp. "Syntax error" is here to catch this case.
21977 cat >conftest.$ac_ext <<_ACEOF
21978/* confdefs.h. */
21979_ACEOF
21980cat confdefs.h >>conftest.$ac_ext
21981cat >>conftest.$ac_ext <<_ACEOF
21982/* end confdefs.h. */
21983#ifdef __STDC__
21984# include <limits.h>
21985#else
21986# include <assert.h>
21987#endif
ac1cb8d3 21988 Syntax error
a848cd7e
SC
21989_ACEOF
21990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21992 ac_status=$?
21993 grep -v '^ *+' conftest.er1 >conftest.err
21994 rm -f conftest.er1
21995 cat conftest.err >&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } >/dev/null; then
21998 if test -s conftest.err; then
21999 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22000 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22001 else
22002 ac_cpp_err=
22003 fi
22004else
22005 ac_cpp_err=yes
22006fi
22007if test -z "$ac_cpp_err"; then
22008 :
22009else
22010 echo "$as_me: failed program was:" >&5
22011sed 's/^/| /' conftest.$ac_ext >&5
22012
22013 # Broken: fails on valid input.
22014continue
22015fi
22016rm -f conftest.err conftest.$ac_ext
22017
22018 # OK, works on sane cases. Now check whether non-existent headers
22019 # can be detected and how.
22020 cat >conftest.$ac_ext <<_ACEOF
22021/* confdefs.h. */
22022_ACEOF
22023cat confdefs.h >>conftest.$ac_ext
22024cat >>conftest.$ac_ext <<_ACEOF
22025/* end confdefs.h. */
22026#include <ac_nonexistent.h>
22027_ACEOF
22028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22030 ac_status=$?
22031 grep -v '^ *+' conftest.er1 >conftest.err
22032 rm -f conftest.er1
22033 cat conftest.err >&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); } >/dev/null; then
22036 if test -s conftest.err; then
22037 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22038 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22039 else
22040 ac_cpp_err=
22041 fi
22042else
22043 ac_cpp_err=yes
22044fi
22045if test -z "$ac_cpp_err"; then
22046 # Broken: success on invalid input.
22047continue
22048else
22049 echo "$as_me: failed program was:" >&5
22050sed 's/^/| /' conftest.$ac_ext >&5
22051
22052 # Passes both tests.
22053ac_preproc_ok=:
22054break
22055fi
22056rm -f conftest.err conftest.$ac_ext
22057
22058done
22059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22060rm -f conftest.err conftest.$ac_ext
22061if $ac_preproc_ok; then
22062 :
22063else
22064 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22065See \`config.log' for more details." >&5
22066echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22067See \`config.log' for more details." >&2;}
22068 { (exit 1); exit 1; }; }
22069fi
22070
22071ac_ext=cc
22072ac_cpp='$CXXCPP $CPPFLAGS'
22073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22076
22077
22078
22079
22080
22081 ac_ext=cc
22082ac_cpp='$CXXCPP $CPPFLAGS'
22083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22086
22087
22088
22089for ac_header in iostream
22090do
22091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22092if eval "test \"\${$as_ac_Header+set}\" = set"; then
22093 echo "$as_me:$LINENO: checking for $ac_header" >&5
22094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22095if eval "test \"\${$as_ac_Header+set}\" = set"; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22097fi
22098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22100else
22101 # Is the header compilable?
22102echo "$as_me:$LINENO: checking $ac_header usability" >&5
22103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22104cat >conftest.$ac_ext <<_ACEOF
22105/* confdefs.h. */
22106_ACEOF
22107cat confdefs.h >>conftest.$ac_ext
22108cat >>conftest.$ac_ext <<_ACEOF
22109/* end confdefs.h. */
22110$ac_includes_default
22111#include <$ac_header>
22112_ACEOF
22113rm -f conftest.$ac_objext
22114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22115 (eval $ac_compile) 2>conftest.er1
a848cd7e 22116 ac_status=$?
ac1cb8d3
VS
22117 grep -v '^ *+' conftest.er1 >conftest.err
22118 rm -f conftest.er1
22119 cat conftest.err >&5
a848cd7e
SC
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } &&
3565d135
RR
22122 { ac_try='test -z "$ac_cxx_werror_flag"
22123 || test ! -s conftest.err'
ac1cb8d3
VS
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; } &&
22129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22132 ac_status=$?
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; }; then
22135 ac_header_compiler=yes
22136else
22137 echo "$as_me: failed program was:" >&5
22138sed 's/^/| /' conftest.$ac_ext >&5
22139
22140ac_header_compiler=no
22141fi
ac1cb8d3 22142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22143echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22144echo "${ECHO_T}$ac_header_compiler" >&6
22145
22146# Is the header present?
22147echo "$as_me:$LINENO: checking $ac_header presence" >&5
22148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22149cat >conftest.$ac_ext <<_ACEOF
22150/* confdefs.h. */
22151_ACEOF
22152cat confdefs.h >>conftest.$ac_ext
22153cat >>conftest.$ac_ext <<_ACEOF
22154/* end confdefs.h. */
22155#include <$ac_header>
22156_ACEOF
22157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22159 ac_status=$?
22160 grep -v '^ *+' conftest.er1 >conftest.err
22161 rm -f conftest.er1
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } >/dev/null; then
22165 if test -s conftest.err; then
22166 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22167 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22168 else
22169 ac_cpp_err=
22170 fi
22171else
22172 ac_cpp_err=yes
22173fi
22174if test -z "$ac_cpp_err"; then
22175 ac_header_preproc=yes
22176else
22177 echo "$as_me: failed program was:" >&5
22178sed 's/^/| /' conftest.$ac_ext >&5
22179
22180 ac_header_preproc=no
22181fi
22182rm -f conftest.err conftest.$ac_ext
22183echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22184echo "${ECHO_T}$ac_header_preproc" >&6
22185
22186# So? What about this header?
ac1cb8d3
VS
22187case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22188 yes:no: )
a848cd7e
SC
22189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22193 ac_header_preproc=yes
a848cd7e 22194 ;;
ac1cb8d3 22195 no:yes:* )
a848cd7e
SC
22196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22208 (
22209 cat <<\_ASBOX
ac1cb8d3
VS
22210## ----------------------------------------- ##
22211## Report this to wx-dev@lists.wxwidgets.org ##
22212## ----------------------------------------- ##
a848cd7e
SC
22213_ASBOX
22214 ) |
22215 sed "s/^/$as_me: WARNING: /" >&2
22216 ;;
22217esac
22218echo "$as_me:$LINENO: checking for $ac_header" >&5
22219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22220if eval "test \"\${$as_ac_Header+set}\" = set"; then
22221 echo $ECHO_N "(cached) $ECHO_C" >&6
22222else
ac1cb8d3 22223 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22224fi
22225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22227
22228fi
22229if test `eval echo '${'$as_ac_Header'}'` = yes; then
22230 cat >>confdefs.h <<_ACEOF
22231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22232_ACEOF
22233
22234fi
22235
22236done
22237
22238
22239 if test "$ac_cv_header_iostream" = "yes" ; then
22240 :
22241 else
22242 cat >>confdefs.h <<\_ACEOF
22243#define wxUSE_IOSTREAMH 1
22244_ACEOF
22245
22246 fi
22247
22248 ac_ext=c
22249ac_cpp='$CPP $CPPFLAGS'
22250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22252ac_compiler_gnu=$ac_cv_c_compiler_gnu
22253
22254
22255
22256
22257 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22258echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22259if test "${wx_cv_cpp_bool+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22261else
22262
22263
22264
22265 ac_ext=cc
22266ac_cpp='$CXXCPP $CPPFLAGS'
22267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22270
22271
22272 cat >conftest.$ac_ext <<_ACEOF
22273/* confdefs.h. */
22274_ACEOF
22275cat confdefs.h >>conftest.$ac_ext
22276cat >>conftest.$ac_ext <<_ACEOF
22277/* end confdefs.h. */
22278
22279
22280int
22281main ()
22282{
22283
22284 bool b = true;
22285
22286 return 0;
22287
22288 ;
22289 return 0;
22290}
22291_ACEOF
22292rm -f conftest.$ac_objext
22293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22294 (eval $ac_compile) 2>conftest.er1
a848cd7e 22295 ac_status=$?
ac1cb8d3
VS
22296 grep -v '^ *+' conftest.er1 >conftest.err
22297 rm -f conftest.er1
22298 cat conftest.err >&5
a848cd7e
SC
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } &&
3565d135
RR
22301 { ac_try='test -z "$ac_cxx_werror_flag"
22302 || test ! -s conftest.err'
ac1cb8d3
VS
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; } &&
22308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310 (eval $ac_try) 2>&5
22311 ac_status=$?
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); }; }; then
22314
22315 wx_cv_cpp_bool=yes
22316
22317else
22318 echo "$as_me: failed program was:" >&5
22319sed 's/^/| /' conftest.$ac_ext >&5
22320
22321
22322 wx_cv_cpp_bool=no
22323
22324
22325fi
ac1cb8d3 22326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22327
22328 ac_ext=c
22329ac_cpp='$CPP $CPPFLAGS'
22330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22332ac_compiler_gnu=$ac_cv_c_compiler_gnu
22333
22334
22335fi
22336echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22337echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22338
22339 if test "$wx_cv_cpp_bool" = "yes"; then
22340 cat >>confdefs.h <<\_ACEOF
22341#define HAVE_BOOL 1
22342_ACEOF
22343
22344 fi
22345
22346
22347
22348 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22349echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22350if test "${wx_cv_explicit+set}" = set; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22352else
22353
22354
22355
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 cat >conftest.$ac_ext <<_ACEOF
22364/* confdefs.h. */
22365_ACEOF
22366cat confdefs.h >>conftest.$ac_ext
22367cat >>conftest.$ac_ext <<_ACEOF
22368/* end confdefs.h. */
22369
22370 class Foo { public: explicit Foo(int) {} };
22371
22372int
22373main ()
22374{
22375
22376 return 0;
22377
22378 ;
22379 return 0;
22380}
22381_ACEOF
22382rm -f conftest.$ac_objext
22383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22384 (eval $ac_compile) 2>conftest.er1
a848cd7e 22385 ac_status=$?
ac1cb8d3
VS
22386 grep -v '^ *+' conftest.er1 >conftest.err
22387 rm -f conftest.er1
22388 cat conftest.err >&5
a848cd7e
SC
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
3565d135
RR
22391 { ac_try='test -z "$ac_cxx_werror_flag"
22392 || test ! -s conftest.err'
ac1cb8d3
VS
22393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; } &&
22398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; }; then
22404
22405 cat >conftest.$ac_ext <<_ACEOF
22406/* confdefs.h. */
22407_ACEOF
22408cat confdefs.h >>conftest.$ac_ext
22409cat >>conftest.$ac_ext <<_ACEOF
22410/* end confdefs.h. */
22411
22412 class Foo { public: explicit Foo(int) {} };
22413 static void TakeFoo(const Foo& foo) { }
22414
22415int
22416main ()
22417{
22418
22419 TakeFoo(17);
22420 return 0;
22421
22422 ;
22423 return 0;
22424}
22425_ACEOF
22426rm -f conftest.$ac_objext
22427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22428 (eval $ac_compile) 2>conftest.er1
a848cd7e 22429 ac_status=$?
ac1cb8d3
VS
22430 grep -v '^ *+' conftest.er1 >conftest.err
22431 rm -f conftest.er1
22432 cat conftest.err >&5
a848cd7e
SC
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } &&
3565d135
RR
22435 { ac_try='test -z "$ac_cxx_werror_flag"
22436 || test ! -s conftest.err'
ac1cb8d3
VS
22437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22438 (eval $ac_try) 2>&5
22439 ac_status=$?
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); }; } &&
22442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22445 ac_status=$?
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; }; then
22448 wx_cv_explicit=no
22449else
22450 echo "$as_me: failed program was:" >&5
22451sed 's/^/| /' conftest.$ac_ext >&5
22452
22453wx_cv_explicit=yes
22454
22455fi
ac1cb8d3 22456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22457
22458else
22459 echo "$as_me: failed program was:" >&5
22460sed 's/^/| /' conftest.$ac_ext >&5
22461
22462wx_cv_explicit=no
22463
22464fi
ac1cb8d3 22465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22466
22467 ac_ext=c
22468ac_cpp='$CPP $CPPFLAGS'
22469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22471ac_compiler_gnu=$ac_cv_c_compiler_gnu
22472
22473
22474fi
22475echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22476echo "${ECHO_T}$wx_cv_explicit" >&6
22477
22478 if test "$wx_cv_explicit" = "yes"; then
22479 cat >>confdefs.h <<\_ACEOF
22480#define HAVE_EXPLICIT 1
22481_ACEOF
22482
22483 fi
22484
22485
22486echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22487echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22488if test "${ac_cv_cxx_const_cast+set}" = set; then
22489 echo $ECHO_N "(cached) $ECHO_C" >&6
22490else
22491
22492
22493 ac_ext=cc
22494ac_cpp='$CXXCPP $CPPFLAGS'
22495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22498
22499 cat >conftest.$ac_ext <<_ACEOF
22500/* confdefs.h. */
22501_ACEOF
22502cat confdefs.h >>conftest.$ac_ext
22503cat >>conftest.$ac_ext <<_ACEOF
22504/* end confdefs.h. */
22505
22506int
22507main ()
22508{
22509int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22510 ;
22511 return 0;
22512}
22513_ACEOF
22514rm -f conftest.$ac_objext
22515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22516 (eval $ac_compile) 2>conftest.er1
a848cd7e 22517 ac_status=$?
ac1cb8d3
VS
22518 grep -v '^ *+' conftest.er1 >conftest.err
22519 rm -f conftest.er1
22520 cat conftest.err >&5
a848cd7e
SC
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); } &&
3565d135
RR
22523 { ac_try='test -z "$ac_cxx_werror_flag"
22524 || test ! -s conftest.err'
ac1cb8d3
VS
22525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526 (eval $ac_try) 2>&5
22527 ac_status=$?
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; } &&
22530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532 (eval $ac_try) 2>&5
22533 ac_status=$?
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; }; then
22536 ac_cv_cxx_const_cast=yes
22537else
22538 echo "$as_me: failed program was:" >&5
22539sed 's/^/| /' conftest.$ac_ext >&5
22540
22541ac_cv_cxx_const_cast=no
22542fi
ac1cb8d3 22543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22544 ac_ext=c
22545ac_cpp='$CPP $CPPFLAGS'
22546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22548ac_compiler_gnu=$ac_cv_c_compiler_gnu
22549
22550
22551fi
22552echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22553echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22554if test "$ac_cv_cxx_const_cast" = yes; then
22555
22556cat >>confdefs.h <<\_ACEOF
22557#define HAVE_CONST_CAST
22558_ACEOF
22559
22560fi
22561
7714864e
RL
22562echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22563echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22564if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22566else
22567
22568
22569 ac_ext=cc
22570ac_cpp='$CXXCPP $CPPFLAGS'
22571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22574
22575 cat >conftest.$ac_ext <<_ACEOF
22576/* confdefs.h. */
22577_ACEOF
22578cat confdefs.h >>conftest.$ac_ext
22579cat >>conftest.$ac_ext <<_ACEOF
22580/* end confdefs.h. */
22581#include <typeinfo>
22582class Base { public : Base () {} virtual void f () = 0;};
22583class Derived : public Base { public : Derived () {} virtual void f () {} };
22584class Unrelated { public : Unrelated () {} };
22585int g (Unrelated&) { return 0; }
22586int
22587main ()
22588{
22589
22590Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22591 ;
22592 return 0;
22593}
22594_ACEOF
22595rm -f conftest.$ac_objext
22596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22597 (eval $ac_compile) 2>conftest.er1
22598 ac_status=$?
22599 grep -v '^ *+' conftest.er1 >conftest.err
22600 rm -f conftest.er1
22601 cat conftest.err >&5
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } &&
3565d135
RR
22604 { ac_try='test -z "$ac_cxx_werror_flag"
22605 || test ! -s conftest.err'
7714864e
RL
22606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607 (eval $ac_try) 2>&5
22608 ac_status=$?
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }; } &&
22611 { ac_try='test -s conftest.$ac_objext'
22612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613 (eval $ac_try) 2>&5
22614 ac_status=$?
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; }; then
22617 ac_cv_cxx_reinterpret_cast=yes
22618else
22619 echo "$as_me: failed program was:" >&5
22620sed 's/^/| /' conftest.$ac_ext >&5
22621
22622ac_cv_cxx_reinterpret_cast=no
22623fi
22624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22625 ac_ext=c
22626ac_cpp='$CPP $CPPFLAGS'
22627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22629ac_compiler_gnu=$ac_cv_c_compiler_gnu
22630
22631
22632fi
22633echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22634echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22635if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22636
22637cat >>confdefs.h <<\_ACEOF
22638#define HAVE_REINTERPRET_CAST
22639_ACEOF
22640
22641fi
22642
a848cd7e
SC
22643echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22644echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22645if test "${ac_cv_cxx_static_cast+set}" = set; then
22646 echo $ECHO_N "(cached) $ECHO_C" >&6
22647else
22648
22649
22650 ac_ext=cc
22651ac_cpp='$CXXCPP $CPPFLAGS'
22652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22655
22656 cat >conftest.$ac_ext <<_ACEOF
22657/* confdefs.h. */
22658_ACEOF
22659cat confdefs.h >>conftest.$ac_ext
22660cat >>conftest.$ac_ext <<_ACEOF
22661/* end confdefs.h. */
22662#include <typeinfo>
22663class Base { public : Base () {} virtual void f () = 0; };
22664class Derived : public Base { public : Derived () {} virtual void f () {} };
22665int g (Derived&) { return 0; }
22666int
22667main ()
22668{
22669
22670Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22671 ;
22672 return 0;
22673}
22674_ACEOF
22675rm -f conftest.$ac_objext
22676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22677 (eval $ac_compile) 2>conftest.er1
a848cd7e 22678 ac_status=$?
ac1cb8d3
VS
22679 grep -v '^ *+' conftest.er1 >conftest.err
22680 rm -f conftest.er1
22681 cat conftest.err >&5
a848cd7e
SC
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } &&
3565d135
RR
22684 { ac_try='test -z "$ac_cxx_werror_flag"
22685 || test ! -s conftest.err'
ac1cb8d3
VS
22686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22687 (eval $ac_try) 2>&5
22688 ac_status=$?
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); }; } &&
22691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22693 (eval $ac_try) 2>&5
22694 ac_status=$?
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); }; }; then
22697 ac_cv_cxx_static_cast=yes
22698else
22699 echo "$as_me: failed program was:" >&5
22700sed 's/^/| /' conftest.$ac_ext >&5
22701
22702ac_cv_cxx_static_cast=no
22703fi
ac1cb8d3 22704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22705 ac_ext=c
22706ac_cpp='$CPP $CPPFLAGS'
22707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22709ac_compiler_gnu=$ac_cv_c_compiler_gnu
22710
22711
22712fi
22713echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22714echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22715if test "$ac_cv_cxx_static_cast" = yes; then
22716
22717cat >>confdefs.h <<\_ACEOF
22718#define HAVE_STATIC_CAST
22719_ACEOF
22720
22721fi
22722
22723
3c28b7cb 22724if test "x$SUNCXX" = xyes; then
c92ad099 22725 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22726fi
22727
9122d155 22728if test "x$SUNCC" = xyes; then
c92ad099 22729 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22730fi
22731
0ad5d837 22732if test "x$SGICC" = "xyes"; then
c92ad099 22733 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22734fi
22735if test "x$SGICXX" = "xyes"; then
c92ad099 22736 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22737fi
22738
2eef8513 22739if test "x$HPCC" = "xyes"; then
c92ad099 22740 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22741fi
22742if test "x$HPCXX" = "xyes"; then
c92ad099 22743 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22744fi
22745
22746if test "x$COMPAQCXX" = "xyes"; then
22747 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22748fi
22749
f56c22b4 22750if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22751 ac_ext=cc
22752ac_cpp='$CXXCPP $CPPFLAGS'
22753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22756
22757
f56c22b4
MW
22758 if test "$wxUSE_UNICODE" = "yes"; then
22759 std_string="std::wstring"
22760 char_type="wchar_t"
22761 else
22762 std_string="std::string"
22763 char_type="char"
22764 fi
22765
22766 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22767echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22768 cat >conftest.$ac_ext <<_ACEOF
22769/* confdefs.h. */
22770_ACEOF
22771cat confdefs.h >>conftest.$ac_ext
22772cat >>conftest.$ac_ext <<_ACEOF
22773/* end confdefs.h. */
22774#include <string>
a848cd7e
SC
22775int
22776main ()
22777{
f56c22b4 22778$std_string foo;
a848cd7e
SC
22779 ;
22780 return 0;
22781}
22782_ACEOF
22783rm -f conftest.$ac_objext
22784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22785 (eval $ac_compile) 2>conftest.er1
a848cd7e 22786 ac_status=$?
ac1cb8d3
VS
22787 grep -v '^ *+' conftest.er1 >conftest.err
22788 rm -f conftest.er1
22789 cat conftest.err >&5
a848cd7e
SC
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } &&
3565d135
RR
22792 { ac_try='test -z "$ac_cxx_werror_flag"
22793 || test ! -s conftest.err'
ac1cb8d3
VS
22794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795 (eval $ac_try) 2>&5
22796 ac_status=$?
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); }; } &&
22799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801 (eval $ac_try) 2>&5
22802 ac_status=$?
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); }; }; then
22805 echo "$as_me:$LINENO: result: yes" >&5
22806echo "${ECHO_T}yes" >&6
0a08f02a
MB
22807 cat >>confdefs.h <<\_ACEOF
22808#define HAVE_STD_WSTRING 1
22809_ACEOF
22810
a848cd7e
SC
22811else
22812 echo "$as_me: failed program was:" >&5
22813sed 's/^/| /' conftest.$ac_ext >&5
22814
22815echo "$as_me:$LINENO: result: no" >&5
22816echo "${ECHO_T}no" >&6
f56c22b4
MW
22817 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22818echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22819 cat >conftest.$ac_ext <<_ACEOF
22820/* confdefs.h. */
22821_ACEOF
22822cat confdefs.h >>conftest.$ac_ext
22823cat >>conftest.$ac_ext <<_ACEOF
22824/* end confdefs.h. */
22825
22826 #ifdef HAVE_WCHAR_H
22827 # ifdef __CYGWIN__
22828 # include <stddef.h>
22829 # endif
22830 # include <wchar.h>
22831 #endif
22832 #ifdef HAVE_STDLIB_H
22833 # include <stdlib.h>
22834 #endif
22835 #include <stdio.h>
22836 #include <string>
22837
22838int
22839main ()
22840{
f56c22b4
MW
22841std::basic_string<$char_type> foo;
22842 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22843 ;
22844 return 0;
22845}
22846_ACEOF
22847rm -f conftest.$ac_objext
22848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22849 (eval $ac_compile) 2>conftest.er1
22850 ac_status=$?
22851 grep -v '^ *+' conftest.er1 >conftest.err
22852 rm -f conftest.er1
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } &&
3565d135
RR
22856 { ac_try='test -z "$ac_cxx_werror_flag"
22857 || test ! -s conftest.err'
0a08f02a
MB
22858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22859 (eval $ac_try) 2>&5
22860 ac_status=$?
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); }; } &&
22863 { ac_try='test -s conftest.$ac_objext'
22864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22866 ac_status=$?
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); }; }; then
22869 echo "$as_me:$LINENO: result: yes" >&5
22870echo "${ECHO_T}yes" >&6
22871else
22872 echo "$as_me: failed program was:" >&5
22873sed 's/^/| /' conftest.$ac_ext >&5
22874
22875echo "$as_me:$LINENO: result: no" >&5
22876echo "${ECHO_T}no" >&6
f56c22b4 22877 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22878 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22879echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22880 { (exit 1); exit 1; }; }
22881 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22882 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22883echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22884 { (exit 1); exit 1; }; }
f56c22b4
MW
22885 else
22886 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22887echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22888 wxUSE_STD_STRING=no
22889 fi
22890
0a08f02a 22891
a848cd7e 22892fi
ac1cb8d3 22893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22894
0a08f02a
MB
22895fi
22896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22897
22898 ac_ext=c
22899ac_cpp='$CPP $CPPFLAGS'
22900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22902ac_compiler_gnu=$ac_cv_c_compiler_gnu
22903
22904fi
22905
22906if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22907 ac_ext=cc
22908ac_cpp='$CXXCPP $CPPFLAGS'
22909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22912
22913
22914 echo "$as_me:$LINENO: checking for std::istream" >&5
22915echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22916if test "${ac_cv_type_std__istream+set}" = set; then
22917 echo $ECHO_N "(cached) $ECHO_C" >&6
22918else
22919 cat >conftest.$ac_ext <<_ACEOF
22920/* confdefs.h. */
22921_ACEOF
22922cat confdefs.h >>conftest.$ac_ext
22923cat >>conftest.$ac_ext <<_ACEOF
22924/* end confdefs.h. */
22925#include <iostream>
22926
22927int
22928main ()
22929{
22930if ((std::istream *) 0)
22931 return 0;
22932if (sizeof (std::istream))
22933 return 0;
22934 ;
22935 return 0;
22936}
22937_ACEOF
22938rm -f conftest.$ac_objext
22939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22940 (eval $ac_compile) 2>conftest.er1
22941 ac_status=$?
22942 grep -v '^ *+' conftest.er1 >conftest.err
22943 rm -f conftest.er1
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } &&
3565d135
RR
22947 { ac_try='test -z "$ac_cxx_werror_flag"
22948 || test ! -s conftest.err'
f56c22b4
MW
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22951 ac_status=$?
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; } &&
22954 { ac_try='test -s conftest.$ac_objext'
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22957 ac_status=$?
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; }; then
22960 ac_cv_type_std__istream=yes
22961else
22962 echo "$as_me: failed program was:" >&5
22963sed 's/^/| /' conftest.$ac_ext >&5
22964
22965ac_cv_type_std__istream=no
22966fi
22967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22968fi
22969echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22970echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22971if test $ac_cv_type_std__istream = yes; then
22972
22973cat >>confdefs.h <<_ACEOF
22974#define HAVE_STD__ISTREAM 1
22975_ACEOF
22976
22977
22978else
22979 wxUSE_STD_IOSTREAM=no
22980fi
22981echo "$as_me:$LINENO: checking for std::ostream" >&5
22982echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22983if test "${ac_cv_type_std__ostream+set}" = set; then
22984 echo $ECHO_N "(cached) $ECHO_C" >&6
22985else
22986 cat >conftest.$ac_ext <<_ACEOF
22987/* confdefs.h. */
22988_ACEOF
22989cat confdefs.h >>conftest.$ac_ext
22990cat >>conftest.$ac_ext <<_ACEOF
22991/* end confdefs.h. */
22992#include <iostream>
22993
22994int
22995main ()
22996{
22997if ((std::ostream *) 0)
22998 return 0;
22999if (sizeof (std::ostream))
23000 return 0;
23001 ;
23002 return 0;
23003}
23004_ACEOF
23005rm -f conftest.$ac_objext
23006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23007 (eval $ac_compile) 2>conftest.er1
23008 ac_status=$?
23009 grep -v '^ *+' conftest.er1 >conftest.err
23010 rm -f conftest.er1
23011 cat conftest.err >&5
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); } &&
3565d135
RR
23014 { ac_try='test -z "$ac_cxx_werror_flag"
23015 || test ! -s conftest.err'
f56c22b4
MW
23016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23018 ac_status=$?
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; } &&
23021 { ac_try='test -s conftest.$ac_objext'
23022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023 (eval $ac_try) 2>&5
23024 ac_status=$?
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); }; }; then
23027 ac_cv_type_std__ostream=yes
23028else
23029 echo "$as_me: failed program was:" >&5
23030sed 's/^/| /' conftest.$ac_ext >&5
23031
23032ac_cv_type_std__ostream=no
23033fi
23034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23035fi
23036echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23037echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23038if test $ac_cv_type_std__ostream = yes; then
23039
23040cat >>confdefs.h <<_ACEOF
23041#define HAVE_STD__OSTREAM 1
23042_ACEOF
23043
23044
23045else
23046 wxUSE_STD_IOSTREAM=no
23047fi
23048
23049
23050 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23051 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23052 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23053echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23054 { (exit 1); exit 1; }; }
23055 else
23056 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23057echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23058 fi
f56c22b4
MW
23059 fi
23060
23061 ac_ext=c
23062ac_cpp='$CPP $CPPFLAGS'
23063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
23065ac_compiler_gnu=$ac_cv_c_compiler_gnu
23066
23067fi
23068
23069if test "$wxUSE_STL" = "yes"; then
23070 ac_ext=cc
23071ac_cpp='$CXXCPP $CPPFLAGS'
23072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23075
23076
23077 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23078echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23079 cat >conftest.$ac_ext <<_ACEOF
23080/* confdefs.h. */
23081_ACEOF
23082cat confdefs.h >>conftest.$ac_ext
23083cat >>conftest.$ac_ext <<_ACEOF
23084/* end confdefs.h. */
23085#include <string>
0a08f02a
MB
23086 #include <functional>
23087 #include <algorithm>
23088 #include <vector>
23089 #include <list>
a848cd7e
SC
23090int
23091main ()
23092{
0a08f02a
MB
23093std::vector<int> moo;
23094 std::list<int> foo;
23095 std::vector<int>::iterator it =
23096 std::find_if(moo.begin(), moo.end(),
23097 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23098 ;
23099 return 0;
23100}
23101_ACEOF
23102rm -f conftest.$ac_objext
23103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23104 (eval $ac_compile) 2>conftest.er1
a848cd7e 23105 ac_status=$?
ac1cb8d3
VS
23106 grep -v '^ *+' conftest.er1 >conftest.err
23107 rm -f conftest.er1
23108 cat conftest.err >&5
a848cd7e
SC
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } &&
3565d135
RR
23111 { ac_try='test -z "$ac_cxx_werror_flag"
23112 || test ! -s conftest.err'
ac1cb8d3
VS
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; } &&
23118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
23124 echo "$as_me:$LINENO: result: yes" >&5
23125echo "${ECHO_T}yes" >&6
a848cd7e
SC
23126else
23127 echo "$as_me: failed program was:" >&5
23128sed 's/^/| /' conftest.$ac_ext >&5
23129
23130echo "$as_me:$LINENO: result: no" >&5
23131echo "${ECHO_T}no" >&6
0a08f02a
MB
23132 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23133echo "$as_me: error: Basic STL functionality missing" >&2;}
23134 { (exit 1); exit 1; }; }
a848cd7e 23135fi
ac1cb8d3 23136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23137
23138 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23139echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23140 cat >conftest.$ac_ext <<_ACEOF
23141/* confdefs.h. */
23142_ACEOF
23143cat confdefs.h >>conftest.$ac_ext
23144cat >>conftest.$ac_ext <<_ACEOF
23145/* end confdefs.h. */
23146#include <string>
23147int
23148main ()
23149{
23150std::string foo, bar;
23151 foo.compare(bar);
23152 foo.compare(1, 1, bar);
23153 foo.compare(1, 1, bar, 1, 1);
23154 foo.compare("");
23155 foo.compare(1, 1, "");
23156 foo.compare(1, 1, "", 2);
23157 ;
23158 return 0;
23159}
23160_ACEOF
23161rm -f conftest.$ac_objext
23162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23163 (eval $ac_compile) 2>conftest.er1
a848cd7e 23164 ac_status=$?
ac1cb8d3
VS
23165 grep -v '^ *+' conftest.er1 >conftest.err
23166 rm -f conftest.er1
23167 cat conftest.err >&5
a848cd7e
SC
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); } &&
3565d135
RR
23170 { ac_try='test -z "$ac_cxx_werror_flag"
23171 || test ! -s conftest.err'
ac1cb8d3
VS
23172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23173 (eval $ac_try) 2>&5
23174 ac_status=$?
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); }; } &&
23177 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23179 (eval $ac_try) 2>&5
23180 ac_status=$?
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); }; }; then
23183 echo "$as_me:$LINENO: result: yes" >&5
23184echo "${ECHO_T}yes" >&6
23185 cat >>confdefs.h <<\_ACEOF
23186#define HAVE_STD_STRING_COMPARE 1
23187_ACEOF
23188
23189else
23190 echo "$as_me: failed program was:" >&5
23191sed 's/^/| /' conftest.$ac_ext >&5
23192
23193echo "$as_me:$LINENO: result: no" >&5
23194echo "${ECHO_T}no" >&6
23195fi
ac1cb8d3 23196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23197
23198 if test "${ac_cv_header_hash_map+set}" = set; then
23199 echo "$as_me:$LINENO: checking for hash_map" >&5
23200echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23201if test "${ac_cv_header_hash_map+set}" = set; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
23203fi
23204echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23205echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23206else
23207 # Is the header compilable?
23208echo "$as_me:$LINENO: checking hash_map usability" >&5
23209echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23210cat >conftest.$ac_ext <<_ACEOF
23211/* confdefs.h. */
23212_ACEOF
23213cat confdefs.h >>conftest.$ac_ext
23214cat >>conftest.$ac_ext <<_ACEOF
23215/* end confdefs.h. */
23216$ac_includes_default
23217#include <hash_map>
23218_ACEOF
23219rm -f conftest.$ac_objext
23220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23221 (eval $ac_compile) 2>conftest.er1
bdcade0a 23222 ac_status=$?
ac1cb8d3
VS
23223 grep -v '^ *+' conftest.er1 >conftest.err
23224 rm -f conftest.er1
23225 cat conftest.err >&5
bdcade0a
MB
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } &&
3565d135
RR
23228 { ac_try='test -z "$ac_cxx_werror_flag"
23229 || test ! -s conftest.err'
ac1cb8d3
VS
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; } &&
23235 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237 (eval $ac_try) 2>&5
23238 ac_status=$?
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); }; }; then
23241 ac_header_compiler=yes
23242else
23243 echo "$as_me: failed program was:" >&5
23244sed 's/^/| /' conftest.$ac_ext >&5
23245
23246ac_header_compiler=no
23247fi
ac1cb8d3 23248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23249echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23250echo "${ECHO_T}$ac_header_compiler" >&6
23251
23252# Is the header present?
23253echo "$as_me:$LINENO: checking hash_map presence" >&5
23254echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23255cat >conftest.$ac_ext <<_ACEOF
23256/* confdefs.h. */
23257_ACEOF
23258cat confdefs.h >>conftest.$ac_ext
23259cat >>conftest.$ac_ext <<_ACEOF
23260/* end confdefs.h. */
23261#include <hash_map>
23262_ACEOF
23263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23265 ac_status=$?
23266 grep -v '^ *+' conftest.er1 >conftest.err
23267 rm -f conftest.er1
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } >/dev/null; then
23271 if test -s conftest.err; then
23272 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23273 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23274 else
23275 ac_cpp_err=
23276 fi
23277else
23278 ac_cpp_err=yes
23279fi
23280if test -z "$ac_cpp_err"; then
23281 ac_header_preproc=yes
23282else
23283 echo "$as_me: failed program was:" >&5
23284sed 's/^/| /' conftest.$ac_ext >&5
23285
23286 ac_header_preproc=no
23287fi
23288rm -f conftest.err conftest.$ac_ext
23289echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23290echo "${ECHO_T}$ac_header_preproc" >&6
23291
23292# So? What about this header?
ac1cb8d3
VS
23293case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23294 yes:no: )
bdcade0a
MB
23295 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23296echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23297 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23298echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23299 ac_header_preproc=yes
bdcade0a 23300 ;;
ac1cb8d3 23301 no:yes:* )
bdcade0a
MB
23302 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23303echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23304 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23305echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23306 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23307echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23308 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23309echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23310 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23311echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23312 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23313echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23314 (
23315 cat <<\_ASBOX
ac1cb8d3
VS
23316## ----------------------------------------- ##
23317## Report this to wx-dev@lists.wxwidgets.org ##
23318## ----------------------------------------- ##
bdcade0a
MB
23319_ASBOX
23320 ) |
23321 sed "s/^/$as_me: WARNING: /" >&2
23322 ;;
23323esac
23324echo "$as_me:$LINENO: checking for hash_map" >&5
23325echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23326if test "${ac_cv_header_hash_map+set}" = set; then
23327 echo $ECHO_N "(cached) $ECHO_C" >&6
23328else
23329 ac_cv_header_hash_map=$ac_header_preproc
23330fi
23331echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23332echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23333
23334fi
23335if test $ac_cv_header_hash_map = yes; then
23336 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23337echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23338 cat >conftest.$ac_ext <<_ACEOF
23339/* confdefs.h. */
23340_ACEOF
23341cat confdefs.h >>conftest.$ac_ext
23342cat >>conftest.$ac_ext <<_ACEOF
23343/* end confdefs.h. */
23344#include <hash_map>
23345 #include <hash_set>
23346int
23347main ()
23348{
23349std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23350 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23351 ;
23352 return 0;
23353}
23354_ACEOF
23355rm -f conftest.$ac_objext
23356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23357 (eval $ac_compile) 2>conftest.er1
bdcade0a 23358 ac_status=$?
ac1cb8d3
VS
23359 grep -v '^ *+' conftest.er1 >conftest.err
23360 rm -f conftest.er1
23361 cat conftest.err >&5
bdcade0a
MB
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); } &&
3565d135
RR
23364 { ac_try='test -z "$ac_cxx_werror_flag"
23365 || test ! -s conftest.err'
ac1cb8d3
VS
23366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23367 (eval $ac_try) 2>&5
23368 ac_status=$?
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); }; } &&
23371 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23373 (eval $ac_try) 2>&5
23374 ac_status=$?
23375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); }; }; then
23377 echo "$as_me:$LINENO: result: yes" >&5
23378echo "${ECHO_T}yes" >&6
23379 cat >>confdefs.h <<\_ACEOF
23380#define HAVE_HASH_MAP 1
23381_ACEOF
23382
23383 cat >>confdefs.h <<\_ACEOF
23384#define HAVE_STD_HASH_MAP 1
23385_ACEOF
23386
23387else
23388 echo "$as_me: failed program was:" >&5
23389sed 's/^/| /' conftest.$ac_ext >&5
23390
23391echo "$as_me:$LINENO: result: no" >&5
23392echo "${ECHO_T}no" >&6
23393fi
ac1cb8d3 23394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23395
23396fi
23397
23398
23399
23400 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23401 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23402echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23403if test "${ac_cv_header_ext_hash_map+set}" = set; then
23404 echo $ECHO_N "(cached) $ECHO_C" >&6
23405fi
23406echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23407echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23408else
23409 # Is the header compilable?
23410echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23411echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23412cat >conftest.$ac_ext <<_ACEOF
23413/* confdefs.h. */
23414_ACEOF
23415cat confdefs.h >>conftest.$ac_ext
23416cat >>conftest.$ac_ext <<_ACEOF
23417/* end confdefs.h. */
23418$ac_includes_default
23419#include <ext/hash_map>
23420_ACEOF
23421rm -f conftest.$ac_objext
23422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23423 (eval $ac_compile) 2>conftest.er1
bdcade0a 23424 ac_status=$?
ac1cb8d3
VS
23425 grep -v '^ *+' conftest.er1 >conftest.err
23426 rm -f conftest.er1
23427 cat conftest.err >&5
bdcade0a
MB
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); } &&
3565d135
RR
23430 { ac_try='test -z "$ac_cxx_werror_flag"
23431 || test ! -s conftest.err'
ac1cb8d3
VS
23432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433 (eval $ac_try) 2>&5
23434 ac_status=$?
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); }; } &&
23437 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439 (eval $ac_try) 2>&5
23440 ac_status=$?
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); }; }; then
23443 ac_header_compiler=yes
23444else
23445 echo "$as_me: failed program was:" >&5
23446sed 's/^/| /' conftest.$ac_ext >&5
23447
23448ac_header_compiler=no
23449fi
ac1cb8d3 23450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23452echo "${ECHO_T}$ac_header_compiler" >&6
23453
23454# Is the header present?
23455echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23456echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23457cat >conftest.$ac_ext <<_ACEOF
23458/* confdefs.h. */
23459_ACEOF
23460cat confdefs.h >>conftest.$ac_ext
23461cat >>conftest.$ac_ext <<_ACEOF
23462/* end confdefs.h. */
23463#include <ext/hash_map>
23464_ACEOF
23465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23467 ac_status=$?
23468 grep -v '^ *+' conftest.er1 >conftest.err
23469 rm -f conftest.er1
23470 cat conftest.err >&5
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } >/dev/null; then
23473 if test -s conftest.err; then
23474 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23475 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23476 else
23477 ac_cpp_err=
23478 fi
23479else
23480 ac_cpp_err=yes
23481fi
23482if test -z "$ac_cpp_err"; then
23483 ac_header_preproc=yes
23484else
23485 echo "$as_me: failed program was:" >&5
23486sed 's/^/| /' conftest.$ac_ext >&5
23487
23488 ac_header_preproc=no
23489fi
23490rm -f conftest.err conftest.$ac_ext
23491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23492echo "${ECHO_T}$ac_header_preproc" >&6
23493
23494# So? What about this header?
ac1cb8d3
VS
23495case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23496 yes:no: )
bdcade0a
MB
23497 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23498echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23499 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23500echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23501 ac_header_preproc=yes
bdcade0a 23502 ;;
ac1cb8d3 23503 no:yes:* )
bdcade0a
MB
23504 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23505echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23506 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23507echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23508 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23509echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23510 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23511echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23512 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23513echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23514 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23515echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23516 (
23517 cat <<\_ASBOX
ac1cb8d3
VS
23518## ----------------------------------------- ##
23519## Report this to wx-dev@lists.wxwidgets.org ##
23520## ----------------------------------------- ##
bdcade0a
MB
23521_ASBOX
23522 ) |
23523 sed "s/^/$as_me: WARNING: /" >&2
23524 ;;
23525esac
23526echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23527echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23528if test "${ac_cv_header_ext_hash_map+set}" = set; then
23529 echo $ECHO_N "(cached) $ECHO_C" >&6
23530else
23531 ac_cv_header_ext_hash_map=$ac_header_preproc
23532fi
23533echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23534echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23535
23536fi
23537if test $ac_cv_header_ext_hash_map = yes; then
23538 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23539echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23540 cat >conftest.$ac_ext <<_ACEOF
23541/* confdefs.h. */
23542_ACEOF
23543cat confdefs.h >>conftest.$ac_ext
23544cat >>conftest.$ac_ext <<_ACEOF
23545/* end confdefs.h. */
23546#include <ext/hash_map>
23547 #include <ext/hash_set>
23548int
23549main ()
23550{
23551__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23552 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23553 ;
23554 return 0;
23555}
23556_ACEOF
23557rm -f conftest.$ac_objext
23558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23559 (eval $ac_compile) 2>conftest.er1
bdcade0a 23560 ac_status=$?
ac1cb8d3
VS
23561 grep -v '^ *+' conftest.er1 >conftest.err
23562 rm -f conftest.er1
23563 cat conftest.err >&5
bdcade0a
MB
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } &&
3565d135
RR
23566 { ac_try='test -z "$ac_cxx_werror_flag"
23567 || test ! -s conftest.err'
ac1cb8d3
VS
23568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569 (eval $ac_try) 2>&5
23570 ac_status=$?
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; } &&
23573 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575 (eval $ac_try) 2>&5
23576 ac_status=$?
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); }; }; then
23579 echo "$as_me:$LINENO: result: yes" >&5
23580echo "${ECHO_T}yes" >&6
23581 cat >>confdefs.h <<\_ACEOF
23582#define HAVE_EXT_HASH_MAP 1
23583_ACEOF
23584
23585 cat >>confdefs.h <<\_ACEOF
23586#define HAVE_GNU_CXX_HASH_MAP 1
23587_ACEOF
23588
23589else
23590 echo "$as_me: failed program was:" >&5
23591sed 's/^/| /' conftest.$ac_ext >&5
23592
23593echo "$as_me:$LINENO: result: no" >&5
23594echo "${ECHO_T}no" >&6
23595fi
ac1cb8d3 23596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23597
23598fi
23599
23600
a848cd7e
SC
23601
23602 ac_ext=c
23603ac_cpp='$CPP $CPPFLAGS'
23604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23606ac_compiler_gnu=$ac_cv_c_compiler_gnu
23607
23608fi
23609
23610
23611SEARCH_INCLUDE="\
23612 /usr/local/include \
23613 \
23614 /usr/Motif-2.1/include \
23615 /usr/Motif-1.2/include \
23616 /usr/include/Motif1.2 \
a848cd7e
SC
23617 \
23618 /usr/dt/include \
23619 /usr/openwin/include \
23620 \
23621 /usr/include/Xm \
23622 \
23623 /usr/X11R6/include \
23624 /usr/X11R6.4/include \
23625 /usr/X11R5/include \
23626 /usr/X11R4/include \
23627 \
23628 /usr/include/X11R6 \
23629 /usr/include/X11R5 \
23630 /usr/include/X11R4 \
23631 \
23632 /usr/local/X11R6/include \
23633 /usr/local/X11R5/include \
23634 /usr/local/X11R4/include \
23635 \
23636 /usr/local/include/X11R6 \
23637 /usr/local/include/X11R5 \
23638 /usr/local/include/X11R4 \
23639 \
23640 /usr/X11/include \
23641 /usr/include/X11 \
23642 /usr/local/X11/include \
23643 /usr/local/include/X11 \
23644 \
a848cd7e 23645 /usr/XFree86/include/X11 \
e051b34e
MW
23646 /usr/pkg/include \
23647 \
a848cd7e
SC
23648 /usr/openwin/share/include"
23649
6f9cf1e6 23650echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23651echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23652
23653case "${host}" in
23654 *-*-irix6* )
23655 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23656 echo $ECHO_N "(cached) $ECHO_C" >&6
23657else
23658
c687b303
VZ
23659 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23660 for e in a so sl dylib dll.a; do
23661 libc="$d/libc.$e"
23662 if test -f $libc; then
23663 save_LIBS="$LIBS"
23664 LIBS="$libc"
23665 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23666int main() { return 0; }
23667_ACEOF
23668rm -f conftest.$ac_objext conftest$ac_exeext
23669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23670 (eval $ac_link) 2>conftest.er1
23671 ac_status=$?
23672 grep -v '^ *+' conftest.er1 >conftest.err
23673 rm -f conftest.er1
23674 cat conftest.err >&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } &&
3565d135
RR
23677 { ac_try='test -z "$ac_c_werror_flag"
23678 || test ! -s conftest.err'
0ad5d837
VZ
23679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23680 (eval $ac_try) 2>&5
23681 ac_status=$?
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); }; } &&
23684 { ac_try='test -s conftest$ac_exeext'
23685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23686 (eval $ac_try) 2>&5
23687 ac_status=$?
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); }; }; then
23690 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23691else
23692 echo "$as_me: failed program was:" >&5
23693sed 's/^/| /' conftest.$ac_ext >&5
23694
23695fi
23696rm -f conftest.err conftest.$ac_objext \
23697 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23698 LIBS="$save_LIBS"
23699 if test "x$wx_cv_std_libpath" != "x"; then
23700 break 2
23701 fi
23702 fi
23703 done
23704 done
23705 if test "x$wx_cv_std_libpath" = "x"; then
23706 wx_cv_std_libpath="lib"
0ad5d837 23707 fi
0ad5d837
VZ
23708
23709
23710fi
6f9cf1e6
MW
23711
23712 ;;
23713
23714 *-*-solaris2* )
23715 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23716 wx_cv_std_libpath="lib/64"
23717 else
23718 wx_cv_std_libpath="lib"
23719 fi
23720 ;;
23721
23722 *-*-linux* )
23723 if test "$ac_cv_sizeof_void_p" = 8 -a \
23724 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23725 wx_cv_std_libpath="lib64"
23726 else
23727 wx_cv_std_libpath="lib"
23728 fi
c687b303
VZ
23729 ;;
23730
23731 *)
23732 wx_cv_std_libpath="lib";
23733 ;;
23734esac
0ad5d837 23735
6f9cf1e6
MW
23736echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23737echo "${ECHO_T}$wx_cv_std_libpath" >&6
23738
23739SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23740
3eca31dc
MW
23741if test "$build" != "$host" -a "$GCC" = yes; then
23742 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23743 cross_root=`dirname $cross_root`
23744 cross_root=`dirname $cross_root`
23745
23746 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23747 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23748 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23749
23750 if test -z "$PKG_CONFIG_PATH"; then
23751 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23752 export PKG_CONFIG_PATH
23753 fi
23754
23755 if test -z "$x_includes" -o "$x_includes" = NONE; then
23756
23757ac_find_includes=
23758for ac_dir in $SEARCH_INCLUDE /usr/include;
23759 do
23760 if test -f "$ac_dir/X11/Intrinsic.h"; then
23761 ac_find_includes=$ac_dir
23762 break
23763 fi
23764 done
23765
23766 x_includes=$ac_find_includes
23767 fi
23768 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23769
0ad5d837
VZ
23770 ac_find_libraries=
23771 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23772 do
23773 for ac_extension in a so sl dylib dll.a; do
23774 if test -f "$ac_dir/libXt.$ac_extension"; then
23775 ac_find_libraries=$ac_dir
23776 break 2
23777 fi
23778 done
23779 done
23780
23781 x_libraries=$ac_find_libraries
23782 fi
23783 fi
23784fi
23785
a848cd7e
SC
23786
23787cat >confcache <<\_ACEOF
23788# This file is a shell script that caches the results of configure
23789# tests run on this system so they can be shared between configure
23790# scripts and configure runs, see configure's option --config-cache.
23791# It is not useful on other systems. If it contains results you don't
23792# want to keep, you may remove or edit it.
23793#
23794# config.status only pays attention to the cache file if you give it
23795# the --recheck option to rerun configure.
23796#
23797# `ac_cv_env_foo' variables (set or unset) will be overridden when
23798# loading this file, other *unset* `ac_cv_foo' will be assigned the
23799# following values.
23800
23801_ACEOF
23802
23803# The following way of writing the cache mishandles newlines in values,
23804# but we know of no workaround that is simple, portable, and efficient.
23805# So, don't put newlines in cache variables' values.
23806# Ultrix sh set writes to stderr and can't be redirected directly,
23807# and sets the high bit in the cache file unless we assign to the vars.
23808{
23809 (set) 2>&1 |
23810 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23811 *ac_space=\ *)
23812 # `set' does not quote correctly, so add quotes (double-quote
23813 # substitution turns \\\\ into \\, and sed turns \\ into \).
23814 sed -n \
ac1cb8d3
VS
23815 "s/'/'\\\\''/g;
23816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23817 ;;
23818 *)
23819 # `set' quotes correctly as required by POSIX, so do not add quotes.
23820 sed -n \
ac1cb8d3 23821 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23822 ;;
23823 esac;
23824} |
23825 sed '
23826 t clear
23827 : clear
23828 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23829 t end
23830 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23831 : end' >>confcache
23832if diff $cache_file confcache >/dev/null 2>&1; then :; else
23833 if test -w $cache_file; then
23834 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23835 cat confcache >$cache_file
23836 else
23837 echo "not updating unwritable cache $cache_file"
23838 fi
23839fi
23840rm -f confcache
23841
23842if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23843 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23844echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23845if test "${wx_cv_lib_glibc21+set}" = set; then
23846 echo $ECHO_N "(cached) $ECHO_C" >&6
23847else
23848
23849 cat >conftest.$ac_ext <<_ACEOF
23850/* confdefs.h. */
23851_ACEOF
23852cat confdefs.h >>conftest.$ac_ext
23853cat >>conftest.$ac_ext <<_ACEOF
23854/* end confdefs.h. */
23855#include <features.h>
23856int
23857main ()
23858{
23859
23860 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23861 not glibc 2.1
a848cd7e
SC
23862 #endif
23863
23864 ;
23865 return 0;
23866}
23867_ACEOF
23868rm -f conftest.$ac_objext
23869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23870 (eval $ac_compile) 2>conftest.er1
a848cd7e 23871 ac_status=$?
ac1cb8d3
VS
23872 grep -v '^ *+' conftest.er1 >conftest.err
23873 rm -f conftest.er1
23874 cat conftest.err >&5
a848cd7e
SC
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); } &&
3565d135
RR
23877 { ac_try='test -z "$ac_c_werror_flag"
23878 || test ! -s conftest.err'
ac1cb8d3
VS
23879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23880 (eval $ac_try) 2>&5
23881 ac_status=$?
23882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883 (exit $ac_status); }; } &&
23884 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23886 (eval $ac_try) 2>&5
23887 ac_status=$?
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); }; }; then
23890
23891 wx_cv_lib_glibc21=yes
23892
23893else
23894 echo "$as_me: failed program was:" >&5
23895sed 's/^/| /' conftest.$ac_ext >&5
23896
23897
23898 wx_cv_lib_glibc21=no
23899
23900
23901fi
ac1cb8d3 23902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23903
23904fi
23905echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23906echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23907 if test "$wx_cv_lib_glibc21" = "yes"; then
23908 cat >>confdefs.h <<\_ACEOF
23909#define wxHAVE_GLIBC2 1
23910_ACEOF
23911
23912 fi
23913fi
23914
23915if test "x$wx_cv_lib_glibc21" = "xyes"; then
23916 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23917 cat >>confdefs.h <<\_ACEOF
23918#define _GNU_SOURCE 1
23919_ACEOF
23920
23921 fi
23922fi
23923
23924
23925
23926if test "$wxUSE_REGEX" != "no"; then
23927 cat >>confdefs.h <<\_ACEOF
23928#define wxUSE_REGEX 1
23929_ACEOF
23930
23931
23932 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23933 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23934echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23935 wxUSE_REGEX=builtin
23936 fi
23937
23938 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23939 if test "${ac_cv_header_regex_h+set}" = set; then
23940 echo "$as_me:$LINENO: checking for regex.h" >&5
23941echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23942if test "${ac_cv_header_regex_h+set}" = set; then
23943 echo $ECHO_N "(cached) $ECHO_C" >&6
23944fi
23945echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23946echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23947else
23948 # Is the header compilable?
23949echo "$as_me:$LINENO: checking regex.h usability" >&5
23950echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23951cat >conftest.$ac_ext <<_ACEOF
23952/* confdefs.h. */
23953_ACEOF
23954cat confdefs.h >>conftest.$ac_ext
23955cat >>conftest.$ac_ext <<_ACEOF
23956/* end confdefs.h. */
23957$ac_includes_default
23958#include <regex.h>
23959_ACEOF
23960rm -f conftest.$ac_objext
23961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23962 (eval $ac_compile) 2>conftest.er1
a848cd7e 23963 ac_status=$?
ac1cb8d3
VS
23964 grep -v '^ *+' conftest.er1 >conftest.err
23965 rm -f conftest.er1
23966 cat conftest.err >&5
a848cd7e
SC
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } &&
3565d135
RR
23969 { ac_try='test -z "$ac_c_werror_flag"
23970 || test ! -s conftest.err'
ac1cb8d3
VS
23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23973 ac_status=$?
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; } &&
23976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23978 (eval $ac_try) 2>&5
23979 ac_status=$?
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); }; }; then
23982 ac_header_compiler=yes
23983else
23984 echo "$as_me: failed program was:" >&5
23985sed 's/^/| /' conftest.$ac_ext >&5
23986
23987ac_header_compiler=no
23988fi
ac1cb8d3 23989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23991echo "${ECHO_T}$ac_header_compiler" >&6
23992
23993# Is the header present?
23994echo "$as_me:$LINENO: checking regex.h presence" >&5
23995echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23996cat >conftest.$ac_ext <<_ACEOF
23997/* confdefs.h. */
23998_ACEOF
23999cat confdefs.h >>conftest.$ac_ext
24000cat >>conftest.$ac_ext <<_ACEOF
24001/* end confdefs.h. */
24002#include <regex.h>
24003_ACEOF
24004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24006 ac_status=$?
24007 grep -v '^ *+' conftest.er1 >conftest.err
24008 rm -f conftest.er1
24009 cat conftest.err >&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } >/dev/null; then
24012 if test -s conftest.err; then
24013 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24015 else
24016 ac_cpp_err=
24017 fi
24018else
24019 ac_cpp_err=yes
24020fi
24021if test -z "$ac_cpp_err"; then
24022 ac_header_preproc=yes
24023else
24024 echo "$as_me: failed program was:" >&5
24025sed 's/^/| /' conftest.$ac_ext >&5
24026
24027 ac_header_preproc=no
24028fi
24029rm -f conftest.err conftest.$ac_ext
24030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24031echo "${ECHO_T}$ac_header_preproc" >&6
24032
24033# So? What about this header?
ac1cb8d3
VS
24034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24035 yes:no: )
a848cd7e
SC
24036 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24037echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24038 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24039echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24040 ac_header_preproc=yes
a848cd7e 24041 ;;
ac1cb8d3 24042 no:yes:* )
a848cd7e
SC
24043 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24044echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24045 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24046echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24047 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24048echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24049 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24050echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24051 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24052echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24053 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24054echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24055 (
24056 cat <<\_ASBOX
ac1cb8d3
VS
24057## ----------------------------------------- ##
24058## Report this to wx-dev@lists.wxwidgets.org ##
24059## ----------------------------------------- ##
a848cd7e
SC
24060_ASBOX
24061 ) |
24062 sed "s/^/$as_me: WARNING: /" >&2
24063 ;;
24064esac
24065echo "$as_me:$LINENO: checking for regex.h" >&5
24066echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24067if test "${ac_cv_header_regex_h+set}" = set; then
24068 echo $ECHO_N "(cached) $ECHO_C" >&6
24069else
24070 ac_cv_header_regex_h=$ac_header_preproc
24071fi
24072echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24073echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24074
24075fi
24076if test $ac_cv_header_regex_h = yes; then
24077
ab0f0edd
MW
24078
24079for ac_func in regcomp re_search
a848cd7e
SC
24080do
24081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24082echo "$as_me:$LINENO: checking for $ac_func" >&5
24083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24084if eval "test \"\${$as_ac_var+set}\" = set"; then
24085 echo $ECHO_N "(cached) $ECHO_C" >&6
24086else
24087 cat >conftest.$ac_ext <<_ACEOF
24088/* confdefs.h. */
24089_ACEOF
24090cat confdefs.h >>conftest.$ac_ext
24091cat >>conftest.$ac_ext <<_ACEOF
24092/* end confdefs.h. */
ac1cb8d3
VS
24093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24095#define $ac_func innocuous_$ac_func
24096
a848cd7e
SC
24097/* System header to define __stub macros and hopefully few prototypes,
24098 which can conflict with char $ac_func (); below.
24099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24100 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24101
a848cd7e
SC
24102#ifdef __STDC__
24103# include <limits.h>
24104#else
24105# include <assert.h>
24106#endif
ac1cb8d3
VS
24107
24108#undef $ac_func
24109
a848cd7e
SC
24110/* Override any gcc2 internal prototype to avoid an error. */
24111#ifdef __cplusplus
24112extern "C"
24113{
24114#endif
24115/* We use char because int might match the return type of a gcc2
24116 builtin and then its argument prototype would still apply. */
24117char $ac_func ();
24118/* The GNU C library defines this for functions which it implements
24119 to always fail with ENOSYS. Some functions are actually named
24120 something starting with __ and the normal name is an alias. */
24121#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24122choke me
24123#else
24124char (*f) () = $ac_func;
24125#endif
24126#ifdef __cplusplus
24127}
24128#endif
24129
24130int
24131main ()
24132{
24133return f != $ac_func;
24134 ;
24135 return 0;
24136}
24137_ACEOF
24138rm -f conftest.$ac_objext conftest$ac_exeext
24139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24140 (eval $ac_link) 2>conftest.er1
a848cd7e 24141 ac_status=$?
ac1cb8d3
VS
24142 grep -v '^ *+' conftest.er1 >conftest.err
24143 rm -f conftest.er1
24144 cat conftest.err >&5
a848cd7e
SC
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); } &&
3565d135
RR
24147 { ac_try='test -z "$ac_c_werror_flag"
24148 || test ! -s conftest.err'
ac1cb8d3
VS
24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); }; } &&
24154 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24156 (eval $ac_try) 2>&5
24157 ac_status=$?
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); }; }; then
24160 eval "$as_ac_var=yes"
24161else
24162 echo "$as_me: failed program was:" >&5
24163sed 's/^/| /' conftest.$ac_ext >&5
24164
24165eval "$as_ac_var=no"
24166fi
ac1cb8d3
VS
24167rm -f conftest.err conftest.$ac_objext \
24168 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24169fi
24170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24172if test `eval echo '${'$as_ac_var'}'` = yes; then
24173 cat >>confdefs.h <<_ACEOF
24174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24175_ACEOF
24176
24177fi
24178done
24179
24180fi
24181
24182
24183
24184 if test "x$ac_cv_func_regcomp" != "xyes"; then
24185 if test "$wxUSE_REGEX" = "sys" ; then
24186 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24187echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24188 { (exit 1); exit 1; }; }
24189 else
24190 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24191echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24192 wxUSE_REGEX=builtin
24193 fi
24194 else
24195 wxUSE_REGEX=sys
24196 cat >>confdefs.h <<\_ACEOF
24197#define WX_NO_REGEX_ADVANCED 1
24198_ACEOF
24199
24200 fi
24201 fi
24202fi
24203
24204
24205ZLIB_LINK=
24206if test "$wxUSE_ZLIB" != "no" ; then
24207 cat >>confdefs.h <<\_ACEOF
24208#define wxUSE_ZLIB 1
24209_ACEOF
24210
24211
24212 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24213 if test "$USE_DARWIN" = 1; then
24214 system_zlib_h_ok="yes"
24215 else
24216 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24217echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24218if test "${ac_cv_header_zlib_h+set}" = set; then
24219 echo $ECHO_N "(cached) $ECHO_C" >&6
24220else
24221 if test "$cross_compiling" = yes; then
24222 unset ac_cv_header_zlib_h
24223
24224else
24225 cat >conftest.$ac_ext <<_ACEOF
24226/* confdefs.h. */
24227_ACEOF
24228cat confdefs.h >>conftest.$ac_ext
24229cat >>conftest.$ac_ext <<_ACEOF
24230/* end confdefs.h. */
24231
24232 #include <zlib.h>
24233 #include <stdio.h>
24234
24235 int main()
24236 {
24237 FILE *f=fopen("conftestval", "w");
24238 if (!f) exit(1);
24239 fprintf(f, "%s",
24240 ZLIB_VERSION[0] == '1' &&
24241 (ZLIB_VERSION[2] > '1' ||
24242 (ZLIB_VERSION[2] == '1' &&
24243 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24244 exit(0);
24245 }
24246
24247_ACEOF
24248rm -f conftest$ac_exeext
24249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24250 (eval $ac_link) 2>&5
24251 ac_status=$?
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24255 (eval $ac_try) 2>&5
24256 ac_status=$?
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); }; }; then
24259 ac_cv_header_zlib_h=`cat conftestval`
24260else
24261 echo "$as_me: program exited with status $ac_status" >&5
24262echo "$as_me: failed program was:" >&5
24263sed 's/^/| /' conftest.$ac_ext >&5
24264
24265( exit $ac_status )
24266ac_cv_header_zlib_h=no
24267fi
ac1cb8d3 24268rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24269fi
24270
24271fi
24272echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24273echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24274 if test "${ac_cv_header_zlib_h+set}" = set; then
24275 echo "$as_me:$LINENO: checking for zlib.h" >&5
24276echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24277if test "${ac_cv_header_zlib_h+set}" = set; then
24278 echo $ECHO_N "(cached) $ECHO_C" >&6
24279fi
24280echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24281echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24282else
24283 # Is the header compilable?
24284echo "$as_me:$LINENO: checking zlib.h usability" >&5
24285echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24286cat >conftest.$ac_ext <<_ACEOF
24287/* confdefs.h. */
24288_ACEOF
24289cat confdefs.h >>conftest.$ac_ext
24290cat >>conftest.$ac_ext <<_ACEOF
24291/* end confdefs.h. */
24292$ac_includes_default
24293#include <zlib.h>
24294_ACEOF
24295rm -f conftest.$ac_objext
24296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24297 (eval $ac_compile) 2>conftest.er1
a848cd7e 24298 ac_status=$?
ac1cb8d3
VS
24299 grep -v '^ *+' conftest.er1 >conftest.err
24300 rm -f conftest.er1
24301 cat conftest.err >&5
a848cd7e
SC
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); } &&
3565d135
RR
24304 { ac_try='test -z "$ac_c_werror_flag"
24305 || test ! -s conftest.err'
ac1cb8d3
VS
24306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24307 (eval $ac_try) 2>&5
24308 ac_status=$?
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); }; } &&
24311 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24313 (eval $ac_try) 2>&5
24314 ac_status=$?
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); }; }; then
24317 ac_header_compiler=yes
24318else
24319 echo "$as_me: failed program was:" >&5
24320sed 's/^/| /' conftest.$ac_ext >&5
24321
24322ac_header_compiler=no
24323fi
ac1cb8d3 24324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24325echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24326echo "${ECHO_T}$ac_header_compiler" >&6
24327
24328# Is the header present?
24329echo "$as_me:$LINENO: checking zlib.h presence" >&5
24330echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24331cat >conftest.$ac_ext <<_ACEOF
24332/* confdefs.h. */
24333_ACEOF
24334cat confdefs.h >>conftest.$ac_ext
24335cat >>conftest.$ac_ext <<_ACEOF
24336/* end confdefs.h. */
24337#include <zlib.h>
24338_ACEOF
24339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24341 ac_status=$?
24342 grep -v '^ *+' conftest.er1 >conftest.err
24343 rm -f conftest.er1
24344 cat conftest.err >&5
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); } >/dev/null; then
24347 if test -s conftest.err; then
24348 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24350 else
24351 ac_cpp_err=
24352 fi
24353else
24354 ac_cpp_err=yes
24355fi
24356if test -z "$ac_cpp_err"; then
24357 ac_header_preproc=yes
24358else
24359 echo "$as_me: failed program was:" >&5
24360sed 's/^/| /' conftest.$ac_ext >&5
24361
24362 ac_header_preproc=no
24363fi
24364rm -f conftest.err conftest.$ac_ext
24365echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24366echo "${ECHO_T}$ac_header_preproc" >&6
24367
24368# So? What about this header?
ac1cb8d3
VS
24369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24370 yes:no: )
a848cd7e
SC
24371 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24372echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24373 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24374echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24375 ac_header_preproc=yes
a848cd7e 24376 ;;
ac1cb8d3 24377 no:yes:* )
a848cd7e
SC
24378 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24379echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24380 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24381echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24382 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24383echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24384 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24385echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24386 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24387echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24388 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24389echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24390 (
24391 cat <<\_ASBOX
ac1cb8d3
VS
24392## ----------------------------------------- ##
24393## Report this to wx-dev@lists.wxwidgets.org ##
24394## ----------------------------------------- ##
a848cd7e
SC
24395_ASBOX
24396 ) |
24397 sed "s/^/$as_me: WARNING: /" >&2
24398 ;;
24399esac
24400echo "$as_me:$LINENO: checking for zlib.h" >&5
24401echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24402if test "${ac_cv_header_zlib_h+set}" = set; then
24403 echo $ECHO_N "(cached) $ECHO_C" >&6
24404else
24405 ac_cv_header_zlib_h=$ac_header_preproc
24406fi
24407echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24408echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24409
24410fi
24411
24412
24413
24414 system_zlib_h_ok=$ac_cv_header_zlib_h
24415 fi
24416
24417 if test "$system_zlib_h_ok" = "yes"; then
24418 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24419echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24420if test "${ac_cv_lib_z_deflate+set}" = set; then
24421 echo $ECHO_N "(cached) $ECHO_C" >&6
24422else
24423 ac_check_lib_save_LIBS=$LIBS
24424LIBS="-lz $LIBS"
24425cat >conftest.$ac_ext <<_ACEOF
24426/* confdefs.h. */
24427_ACEOF
24428cat confdefs.h >>conftest.$ac_ext
24429cat >>conftest.$ac_ext <<_ACEOF
24430/* end confdefs.h. */
24431
24432/* Override any gcc2 internal prototype to avoid an error. */
24433#ifdef __cplusplus
24434extern "C"
24435#endif
24436/* We use char because int might match the return type of a gcc2
24437 builtin and then its argument prototype would still apply. */
24438char deflate ();
24439int
24440main ()
24441{
24442deflate ();
24443 ;
24444 return 0;
24445}
24446_ACEOF
24447rm -f conftest.$ac_objext conftest$ac_exeext
24448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24449 (eval $ac_link) 2>conftest.er1
a848cd7e 24450 ac_status=$?
ac1cb8d3
VS
24451 grep -v '^ *+' conftest.er1 >conftest.err
24452 rm -f conftest.er1
24453 cat conftest.err >&5
a848cd7e
SC
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); } &&
3565d135
RR
24456 { ac_try='test -z "$ac_c_werror_flag"
24457 || test ! -s conftest.err'
ac1cb8d3
VS
24458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24459 (eval $ac_try) 2>&5
24460 ac_status=$?
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); }; } &&
24463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24465 (eval $ac_try) 2>&5
24466 ac_status=$?
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); }; }; then
24469 ac_cv_lib_z_deflate=yes
24470else
24471 echo "$as_me: failed program was:" >&5
24472sed 's/^/| /' conftest.$ac_ext >&5
24473
24474ac_cv_lib_z_deflate=no
24475fi
ac1cb8d3
VS
24476rm -f conftest.err conftest.$ac_objext \
24477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24478LIBS=$ac_check_lib_save_LIBS
24479fi
24480echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24481echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24482if test $ac_cv_lib_z_deflate = yes; then
24483 ZLIB_LINK=" -lz"
24484fi
24485
24486 fi
24487
24488 if test "x$ZLIB_LINK" = "x" ; then
24489 if test "$wxUSE_ZLIB" = "sys" ; then
24490 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24491echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24492 { (exit 1); exit 1; }; }
24493 else
24494 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24495echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24496 wxUSE_ZLIB=builtin
24497 fi
24498 else
24499 wxUSE_ZLIB=sys
24500 fi
24501 fi
24502fi
24503
24504
24505PNG_LINK=
24506if test "$wxUSE_LIBPNG" != "no" ; then
24507 cat >>confdefs.h <<\_ACEOF
24508#define wxUSE_LIBPNG 1
24509_ACEOF
24510
24511
24512 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24513 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24514echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24515 wxUSE_LIBPNG=sys
24516 fi
24517
24518 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24519 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24520echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24521 wxUSE_LIBPNG=builtin
24522 fi
24523
24524 if test "$wxUSE_MGL" != 1 ; then
24525 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24526 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24527echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24528if test "${ac_cv_header_png_h+set}" = set; then
24529 echo $ECHO_N "(cached) $ECHO_C" >&6
24530else
24531 if test "$cross_compiling" = yes; then
24532 unset ac_cv_header_png_h
24533
24534else
24535 cat >conftest.$ac_ext <<_ACEOF
24536/* confdefs.h. */
24537_ACEOF
24538cat confdefs.h >>conftest.$ac_ext
24539cat >>conftest.$ac_ext <<_ACEOF
24540/* end confdefs.h. */
24541
24542 #include <png.h>
24543 #include <stdio.h>
24544
24545 int main()
24546 {
24547 FILE *f=fopen("conftestval", "w");
24548 if (!f) exit(1);
24549 fprintf(f, "%s",
24550 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24551 exit(0);
24552 }
24553
24554_ACEOF
24555rm -f conftest$ac_exeext
24556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24557 (eval $ac_link) 2>&5
24558 ac_status=$?
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24562 (eval $ac_try) 2>&5
24563 ac_status=$?
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); }; }; then
24566 ac_cv_header_png_h=`cat conftestval`
24567else
24568 echo "$as_me: program exited with status $ac_status" >&5
24569echo "$as_me: failed program was:" >&5
24570sed 's/^/| /' conftest.$ac_ext >&5
24571
24572( exit $ac_status )
24573ac_cv_header_png_h=no
24574fi
ac1cb8d3 24575rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24576fi
24577
24578fi
24579echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24580echo "${ECHO_T}$ac_cv_header_png_h" >&6
24581 if test "${ac_cv_header_png_h+set}" = set; then
24582 echo "$as_me:$LINENO: checking for png.h" >&5
24583echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24584if test "${ac_cv_header_png_h+set}" = set; then
24585 echo $ECHO_N "(cached) $ECHO_C" >&6
24586fi
24587echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24588echo "${ECHO_T}$ac_cv_header_png_h" >&6
24589else
24590 # Is the header compilable?
24591echo "$as_me:$LINENO: checking png.h usability" >&5
24592echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24593cat >conftest.$ac_ext <<_ACEOF
24594/* confdefs.h. */
24595_ACEOF
24596cat confdefs.h >>conftest.$ac_ext
24597cat >>conftest.$ac_ext <<_ACEOF
24598/* end confdefs.h. */
24599$ac_includes_default
24600#include <png.h>
24601_ACEOF
24602rm -f conftest.$ac_objext
24603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24604 (eval $ac_compile) 2>conftest.er1
a848cd7e 24605 ac_status=$?
ac1cb8d3
VS
24606 grep -v '^ *+' conftest.er1 >conftest.err
24607 rm -f conftest.er1
24608 cat conftest.err >&5
a848cd7e
SC
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); } &&
3565d135
RR
24611 { ac_try='test -z "$ac_c_werror_flag"
24612 || test ! -s conftest.err'
ac1cb8d3
VS
24613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24614 (eval $ac_try) 2>&5
24615 ac_status=$?
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); }; } &&
24618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24620 (eval $ac_try) 2>&5
24621 ac_status=$?
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); }; }; then
24624 ac_header_compiler=yes
24625else
24626 echo "$as_me: failed program was:" >&5
24627sed 's/^/| /' conftest.$ac_ext >&5
24628
24629ac_header_compiler=no
24630fi
ac1cb8d3 24631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24633echo "${ECHO_T}$ac_header_compiler" >&6
24634
24635# Is the header present?
24636echo "$as_me:$LINENO: checking png.h presence" >&5
24637echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24638cat >conftest.$ac_ext <<_ACEOF
24639/* confdefs.h. */
24640_ACEOF
24641cat confdefs.h >>conftest.$ac_ext
24642cat >>conftest.$ac_ext <<_ACEOF
24643/* end confdefs.h. */
24644#include <png.h>
24645_ACEOF
24646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24648 ac_status=$?
24649 grep -v '^ *+' conftest.er1 >conftest.err
24650 rm -f conftest.er1
24651 cat conftest.err >&5
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } >/dev/null; then
24654 if test -s conftest.err; then
24655 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24657 else
24658 ac_cpp_err=
24659 fi
24660else
24661 ac_cpp_err=yes
24662fi
24663if test -z "$ac_cpp_err"; then
24664 ac_header_preproc=yes
24665else
24666 echo "$as_me: failed program was:" >&5
24667sed 's/^/| /' conftest.$ac_ext >&5
24668
24669 ac_header_preproc=no
24670fi
24671rm -f conftest.err conftest.$ac_ext
24672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24673echo "${ECHO_T}$ac_header_preproc" >&6
24674
24675# So? What about this header?
ac1cb8d3
VS
24676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24677 yes:no: )
a848cd7e
SC
24678 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24679echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24680 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24681echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24682 ac_header_preproc=yes
a848cd7e 24683 ;;
ac1cb8d3 24684 no:yes:* )
a848cd7e
SC
24685 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24686echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24687 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24688echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24689 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24690echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24691 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24692echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24693 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24694echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24695 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24696echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24697 (
24698 cat <<\_ASBOX
ac1cb8d3
VS
24699## ----------------------------------------- ##
24700## Report this to wx-dev@lists.wxwidgets.org ##
24701## ----------------------------------------- ##
a848cd7e
SC
24702_ASBOX
24703 ) |
24704 sed "s/^/$as_me: WARNING: /" >&2
24705 ;;
24706esac
24707echo "$as_me:$LINENO: checking for png.h" >&5
24708echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24709if test "${ac_cv_header_png_h+set}" = set; then
24710 echo $ECHO_N "(cached) $ECHO_C" >&6
24711else
24712 ac_cv_header_png_h=$ac_header_preproc
24713fi
24714echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24715echo "${ECHO_T}$ac_cv_header_png_h" >&6
24716
24717fi
24718
24719
24720
24721 if test "$ac_cv_header_png_h" = "yes"; then
24722 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24723echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24724if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24725 echo $ECHO_N "(cached) $ECHO_C" >&6
24726else
24727 ac_check_lib_save_LIBS=$LIBS
24728LIBS="-lpng -lz -lm $LIBS"
24729cat >conftest.$ac_ext <<_ACEOF
24730/* confdefs.h. */
24731_ACEOF
24732cat confdefs.h >>conftest.$ac_ext
24733cat >>conftest.$ac_ext <<_ACEOF
24734/* end confdefs.h. */
24735
24736/* Override any gcc2 internal prototype to avoid an error. */
24737#ifdef __cplusplus
24738extern "C"
24739#endif
24740/* We use char because int might match the return type of a gcc2
24741 builtin and then its argument prototype would still apply. */
24742char png_check_sig ();
24743int
24744main ()
24745{
24746png_check_sig ();
24747 ;
24748 return 0;
24749}
24750_ACEOF
24751rm -f conftest.$ac_objext conftest$ac_exeext
24752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24753 (eval $ac_link) 2>conftest.er1
a848cd7e 24754 ac_status=$?
ac1cb8d3
VS
24755 grep -v '^ *+' conftest.er1 >conftest.err
24756 rm -f conftest.er1
24757 cat conftest.err >&5
a848cd7e
SC
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } &&
3565d135
RR
24760 { ac_try='test -z "$ac_c_werror_flag"
24761 || test ! -s conftest.err'
ac1cb8d3
VS
24762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24763 (eval $ac_try) 2>&5
24764 ac_status=$?
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); }; } &&
24767 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24769 (eval $ac_try) 2>&5
24770 ac_status=$?
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); }; }; then
24773 ac_cv_lib_png_png_check_sig=yes
24774else
24775 echo "$as_me: failed program was:" >&5
24776sed 's/^/| /' conftest.$ac_ext >&5
24777
24778ac_cv_lib_png_png_check_sig=no
24779fi
ac1cb8d3
VS
24780rm -f conftest.err conftest.$ac_objext \
24781 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24782LIBS=$ac_check_lib_save_LIBS
24783fi
24784echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24785echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24786if test $ac_cv_lib_png_png_check_sig = yes; then
24787 PNG_LINK=" -lpng -lz"
24788fi
24789
24790 fi
24791
24792 if test "x$PNG_LINK" = "x" ; then
24793 if test "$wxUSE_LIBPNG" = "sys" ; then
24794 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24795echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24796 { (exit 1); exit 1; }; }
24797 else
24798 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24799echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24800 wxUSE_LIBPNG=builtin
24801 fi
24802 else
24803 wxUSE_LIBPNG=sys
24804 fi
24805 fi
24806 fi
24807
24808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24809fi
24810
24811
24812JPEG_LINK=
24813if test "$wxUSE_LIBJPEG" != "no" ; then
24814 cat >>confdefs.h <<\_ACEOF
24815#define wxUSE_LIBJPEG 1
24816_ACEOF
24817
24818
24819 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24820 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24821echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24822 wxUSE_LIBJPEG=sys
24823 fi
24824
24825 if test "$wxUSE_MGL" != 1 ; then
24826 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24827 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24828echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24829 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24831else
24832 cat >conftest.$ac_ext <<_ACEOF
24833/* confdefs.h. */
24834_ACEOF
24835cat confdefs.h >>conftest.$ac_ext
24836cat >>conftest.$ac_ext <<_ACEOF
24837/* end confdefs.h. */
24838
24839 #undef HAVE_STDLIB_H
24840 #include <stdio.h>
24841 #include <jpeglib.h>
24842
24843int
24844main ()
24845{
24846
24847
24848 ;
24849 return 0;
24850}
24851_ACEOF
24852rm -f conftest.$ac_objext
24853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24854 (eval $ac_compile) 2>conftest.er1
a848cd7e 24855 ac_status=$?
ac1cb8d3
VS
24856 grep -v '^ *+' conftest.er1 >conftest.err
24857 rm -f conftest.er1
24858 cat conftest.err >&5
a848cd7e
SC
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); } &&
3565d135
RR
24861 { ac_try='test -z "$ac_c_werror_flag"
24862 || test ! -s conftest.err'
ac1cb8d3
VS
24863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24864 (eval $ac_try) 2>&5
24865 ac_status=$?
24866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); }; } &&
24868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24870 (eval $ac_try) 2>&5
24871 ac_status=$?
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); }; }; then
24874 ac_cv_header_jpeglib_h=yes
24875else
24876 echo "$as_me: failed program was:" >&5
24877sed 's/^/| /' conftest.$ac_ext >&5
24878
24879ac_cv_header_jpeglib_h=no
24880
24881fi
ac1cb8d3 24882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24883
24884fi
24885
24886 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24887echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24888
24889 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24890 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24891echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24892if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24893 echo $ECHO_N "(cached) $ECHO_C" >&6
24894else
24895 ac_check_lib_save_LIBS=$LIBS
24896LIBS="-ljpeg $LIBS"
24897cat >conftest.$ac_ext <<_ACEOF
24898/* confdefs.h. */
24899_ACEOF
24900cat confdefs.h >>conftest.$ac_ext
24901cat >>conftest.$ac_ext <<_ACEOF
24902/* end confdefs.h. */
24903
24904/* Override any gcc2 internal prototype to avoid an error. */
24905#ifdef __cplusplus
24906extern "C"
24907#endif
24908/* We use char because int might match the return type of a gcc2
24909 builtin and then its argument prototype would still apply. */
24910char jpeg_read_header ();
24911int
24912main ()
24913{
24914jpeg_read_header ();
24915 ;
24916 return 0;
24917}
24918_ACEOF
24919rm -f conftest.$ac_objext conftest$ac_exeext
24920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24921 (eval $ac_link) 2>conftest.er1
a848cd7e 24922 ac_status=$?
ac1cb8d3
VS
24923 grep -v '^ *+' conftest.er1 >conftest.err
24924 rm -f conftest.er1
24925 cat conftest.err >&5
a848cd7e
SC
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); } &&
3565d135
RR
24928 { ac_try='test -z "$ac_c_werror_flag"
24929 || test ! -s conftest.err'
ac1cb8d3
VS
24930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24931 (eval $ac_try) 2>&5
24932 ac_status=$?
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; } &&
24935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937 (eval $ac_try) 2>&5
24938 ac_status=$?
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; }; then
24941 ac_cv_lib_jpeg_jpeg_read_header=yes
24942else
24943 echo "$as_me: failed program was:" >&5
24944sed 's/^/| /' conftest.$ac_ext >&5
24945
24946ac_cv_lib_jpeg_jpeg_read_header=no
24947fi
ac1cb8d3
VS
24948rm -f conftest.err conftest.$ac_objext \
24949 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24950LIBS=$ac_check_lib_save_LIBS
24951fi
24952echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24953echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24954if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24955 JPEG_LINK=" -ljpeg"
24956fi
24957
24958 fi
24959
24960 if test "x$JPEG_LINK" = "x" ; then
24961 if test "$wxUSE_LIBJPEG" = "sys" ; then
24962 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24963echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24964 { (exit 1); exit 1; }; }
24965 else
24966 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24967echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24968 wxUSE_LIBJPEG=builtin
24969 fi
24970 else
24971 wxUSE_LIBJPEG=sys
24972 fi
24973 fi
24974 fi
24975fi
24976
24977
24978TIFF_LINK=
24979TIFF_PREREQ_LINKS=-lm
24980if test "$wxUSE_LIBTIFF" != "no" ; then
24981 cat >>confdefs.h <<\_ACEOF
24982#define wxUSE_LIBTIFF 1
24983_ACEOF
24984
24985
24986 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24987 if test "$wxUSE_LIBJPEG" = "sys"; then
24988 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24989 fi
24990 if test "$wxUSE_ZLIB" = "sys"; then
24991 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24992 fi
24993 if test "${ac_cv_header_tiffio_h+set}" = set; then
24994 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24995echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24996if test "${ac_cv_header_tiffio_h+set}" = set; then
24997 echo $ECHO_N "(cached) $ECHO_C" >&6
24998fi
24999echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25000echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25001else
25002 # Is the header compilable?
25003echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25004echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25005cat >conftest.$ac_ext <<_ACEOF
25006/* confdefs.h. */
25007_ACEOF
25008cat confdefs.h >>conftest.$ac_ext
25009cat >>conftest.$ac_ext <<_ACEOF
25010/* end confdefs.h. */
25011$ac_includes_default
25012#include <tiffio.h>
25013_ACEOF
25014rm -f conftest.$ac_objext
25015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25016 (eval $ac_compile) 2>conftest.er1
a848cd7e 25017 ac_status=$?
ac1cb8d3
VS
25018 grep -v '^ *+' conftest.er1 >conftest.err
25019 rm -f conftest.er1
25020 cat conftest.err >&5
a848cd7e
SC
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } &&
3565d135
RR
25023 { ac_try='test -z "$ac_c_werror_flag"
25024 || test ! -s conftest.err'
ac1cb8d3
VS
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25027 ac_status=$?
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; } &&
25030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); }; }; then
25036 ac_header_compiler=yes
25037else
25038 echo "$as_me: failed program was:" >&5
25039sed 's/^/| /' conftest.$ac_ext >&5
25040
25041ac_header_compiler=no
25042fi
ac1cb8d3 25043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25045echo "${ECHO_T}$ac_header_compiler" >&6
25046
25047# Is the header present?
25048echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25049echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25050cat >conftest.$ac_ext <<_ACEOF
25051/* confdefs.h. */
25052_ACEOF
25053cat confdefs.h >>conftest.$ac_ext
25054cat >>conftest.$ac_ext <<_ACEOF
25055/* end confdefs.h. */
25056#include <tiffio.h>
25057_ACEOF
25058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25060 ac_status=$?
25061 grep -v '^ *+' conftest.er1 >conftest.err
25062 rm -f conftest.er1
25063 cat conftest.err >&5
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); } >/dev/null; then
25066 if test -s conftest.err; then
25067 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25069 else
25070 ac_cpp_err=
25071 fi
25072else
25073 ac_cpp_err=yes
25074fi
25075if test -z "$ac_cpp_err"; then
25076 ac_header_preproc=yes
25077else
25078 echo "$as_me: failed program was:" >&5
25079sed 's/^/| /' conftest.$ac_ext >&5
25080
25081 ac_header_preproc=no
25082fi
25083rm -f conftest.err conftest.$ac_ext
25084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25085echo "${ECHO_T}$ac_header_preproc" >&6
25086
25087# So? What about this header?
ac1cb8d3
VS
25088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25089 yes:no: )
a848cd7e
SC
25090 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25091echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25092 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25093echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25094 ac_header_preproc=yes
a848cd7e 25095 ;;
ac1cb8d3 25096 no:yes:* )
a848cd7e
SC
25097 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25098echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25099 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25100echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25101 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25102echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25103 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25104echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25105 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25106echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25107 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25108echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25109 (
25110 cat <<\_ASBOX
ac1cb8d3
VS
25111## ----------------------------------------- ##
25112## Report this to wx-dev@lists.wxwidgets.org ##
25113## ----------------------------------------- ##
a848cd7e
SC
25114_ASBOX
25115 ) |
25116 sed "s/^/$as_me: WARNING: /" >&2
25117 ;;
25118esac
25119echo "$as_me:$LINENO: checking for tiffio.h" >&5
25120echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25121if test "${ac_cv_header_tiffio_h+set}" = set; then
25122 echo $ECHO_N "(cached) $ECHO_C" >&6
25123else
25124 ac_cv_header_tiffio_h=$ac_header_preproc
25125fi
25126echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25127echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25128
25129fi
25130if test $ac_cv_header_tiffio_h = yes; then
25131
25132 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25133echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25134if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25135 echo $ECHO_N "(cached) $ECHO_C" >&6
25136else
25137 ac_check_lib_save_LIBS=$LIBS
25138LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25139cat >conftest.$ac_ext <<_ACEOF
25140/* confdefs.h. */
25141_ACEOF
25142cat confdefs.h >>conftest.$ac_ext
25143cat >>conftest.$ac_ext <<_ACEOF
25144/* end confdefs.h. */
25145
25146/* Override any gcc2 internal prototype to avoid an error. */
25147#ifdef __cplusplus
25148extern "C"
25149#endif
25150/* We use char because int might match the return type of a gcc2
25151 builtin and then its argument prototype would still apply. */
25152char TIFFError ();
25153int
25154main ()
25155{
25156TIFFError ();
25157 ;
25158 return 0;
25159}
25160_ACEOF
25161rm -f conftest.$ac_objext conftest$ac_exeext
25162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25163 (eval $ac_link) 2>conftest.er1
a848cd7e 25164 ac_status=$?
ac1cb8d3
VS
25165 grep -v '^ *+' conftest.er1 >conftest.err
25166 rm -f conftest.er1
25167 cat conftest.err >&5
a848cd7e
SC
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } &&
3565d135
RR
25170 { ac_try='test -z "$ac_c_werror_flag"
25171 || test ! -s conftest.err'
ac1cb8d3
VS
25172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173 (eval $ac_try) 2>&5
25174 ac_status=$?
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); }; } &&
25177 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); }; }; then
25183 ac_cv_lib_tiff_TIFFError=yes
25184else
25185 echo "$as_me: failed program was:" >&5
25186sed 's/^/| /' conftest.$ac_ext >&5
25187
25188ac_cv_lib_tiff_TIFFError=no
25189fi
ac1cb8d3
VS
25190rm -f conftest.err conftest.$ac_objext \
25191 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25192LIBS=$ac_check_lib_save_LIBS
25193fi
25194echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25195echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25196if test $ac_cv_lib_tiff_TIFFError = yes; then
25197 TIFF_LINK=" -ltiff"
25198fi
25199
25200
25201
25202fi
25203
25204
25205
25206 if test "x$TIFF_LINK" = "x" ; then
25207 if test "$wxUSE_LIBTIFF" = "sys" ; then
25208 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25209echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25210 { (exit 1); exit 1; }; }
25211 else
25212 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25213echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25214 wxUSE_LIBTIFF=builtin
25215 fi
25216 else
25217 wxUSE_LIBTIFF=sys
25218 fi
25219 fi
25220fi
25221
25222
47a7e797
MW
25223if test "$wxUSE_WCHAR_T" != "yes"; then
25224 if test "$wxUSE_EXPAT" != "no"; then
25225 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25226echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25227 wxUSE_EXPAT=no
25228 fi
25229 if test "$wxUSE_XML" != "no"; then
25230 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25231echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25232 wxUSE_XML=no
25233 fi
25234fi
25235
a848cd7e
SC
25236if test "$wxUSE_EXPAT" != "no"; then
25237 wxUSE_XML=yes
25238 cat >>confdefs.h <<\_ACEOF
25239#define wxUSE_EXPAT 1
25240_ACEOF
25241
25242 cat >>confdefs.h <<\_ACEOF
25243#define wxUSE_XML 1
25244_ACEOF
25245
25246
25247 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25248 if test "${ac_cv_header_expat_h+set}" = set; then
25249 echo "$as_me:$LINENO: checking for expat.h" >&5
25250echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25251if test "${ac_cv_header_expat_h+set}" = set; then
25252 echo $ECHO_N "(cached) $ECHO_C" >&6
25253fi
25254echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25255echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25256else
25257 # Is the header compilable?
25258echo "$as_me:$LINENO: checking expat.h usability" >&5
25259echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25260cat >conftest.$ac_ext <<_ACEOF
25261/* confdefs.h. */
25262_ACEOF
25263cat confdefs.h >>conftest.$ac_ext
25264cat >>conftest.$ac_ext <<_ACEOF
25265/* end confdefs.h. */
25266$ac_includes_default
25267#include <expat.h>
25268_ACEOF
25269rm -f conftest.$ac_objext
25270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25271 (eval $ac_compile) 2>conftest.er1
a848cd7e 25272 ac_status=$?
ac1cb8d3
VS
25273 grep -v '^ *+' conftest.er1 >conftest.err
25274 rm -f conftest.er1
25275 cat conftest.err >&5
a848cd7e
SC
25276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277 (exit $ac_status); } &&
3565d135
RR
25278 { ac_try='test -z "$ac_c_werror_flag"
25279 || test ! -s conftest.err'
ac1cb8d3
VS
25280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281 (eval $ac_try) 2>&5
25282 ac_status=$?
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); }; } &&
25285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287 (eval $ac_try) 2>&5
25288 ac_status=$?
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); }; }; then
25291 ac_header_compiler=yes
25292else
25293 echo "$as_me: failed program was:" >&5
25294sed 's/^/| /' conftest.$ac_ext >&5
25295
25296ac_header_compiler=no
25297fi
ac1cb8d3 25298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25299echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25300echo "${ECHO_T}$ac_header_compiler" >&6
25301
25302# Is the header present?
25303echo "$as_me:$LINENO: checking expat.h presence" >&5
25304echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25305cat >conftest.$ac_ext <<_ACEOF
25306/* confdefs.h. */
25307_ACEOF
25308cat confdefs.h >>conftest.$ac_ext
25309cat >>conftest.$ac_ext <<_ACEOF
25310/* end confdefs.h. */
25311#include <expat.h>
25312_ACEOF
25313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25315 ac_status=$?
25316 grep -v '^ *+' conftest.er1 >conftest.err
25317 rm -f conftest.er1
25318 cat conftest.err >&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } >/dev/null; then
25321 if test -s conftest.err; then
25322 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25324 else
25325 ac_cpp_err=
25326 fi
25327else
25328 ac_cpp_err=yes
25329fi
25330if test -z "$ac_cpp_err"; then
25331 ac_header_preproc=yes
25332else
25333 echo "$as_me: failed program was:" >&5
25334sed 's/^/| /' conftest.$ac_ext >&5
25335
25336 ac_header_preproc=no
25337fi
25338rm -f conftest.err conftest.$ac_ext
25339echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25340echo "${ECHO_T}$ac_header_preproc" >&6
25341
25342# So? What about this header?
ac1cb8d3
VS
25343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25344 yes:no: )
a848cd7e
SC
25345 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25346echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25347 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25348echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25349 ac_header_preproc=yes
a848cd7e 25350 ;;
ac1cb8d3 25351 no:yes:* )
a848cd7e
SC
25352 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25353echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25354 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25355echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25356 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25357echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25358 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25359echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25360 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25361echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25362 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25363echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25364 (
25365 cat <<\_ASBOX
ac1cb8d3
VS
25366## ----------------------------------------- ##
25367## Report this to wx-dev@lists.wxwidgets.org ##
25368## ----------------------------------------- ##
a848cd7e
SC
25369_ASBOX
25370 ) |
25371 sed "s/^/$as_me: WARNING: /" >&2
25372 ;;
25373esac
25374echo "$as_me:$LINENO: checking for expat.h" >&5
25375echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25376if test "${ac_cv_header_expat_h+set}" = set; then
25377 echo $ECHO_N "(cached) $ECHO_C" >&6
25378else
25379 ac_cv_header_expat_h=$ac_header_preproc
25380fi
25381echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25382echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25383
25384fi
25385if test $ac_cv_header_expat_h = yes; then
25386 found_expat_h=1
25387fi
25388
25389
25390 if test "x$found_expat_h" = "x1"; then
25391 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25392echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25393if test "${wx_cv_expat_is_not_broken+set}" = set; then
25394 echo $ECHO_N "(cached) $ECHO_C" >&6
25395else
25396
25397
25398
25399 ac_ext=cc
25400ac_cpp='$CXXCPP $CPPFLAGS'
25401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25404
25405 cat >conftest.$ac_ext <<_ACEOF
25406/* confdefs.h. */
25407_ACEOF
25408cat confdefs.h >>conftest.$ac_ext
25409cat >>conftest.$ac_ext <<_ACEOF
25410/* end confdefs.h. */
25411#include <expat.h>
25412int
25413main ()
25414{
25415
25416 ;
25417 return 0;
25418}
25419_ACEOF
25420rm -f conftest.$ac_objext
25421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25422 (eval $ac_compile) 2>conftest.er1
a848cd7e 25423 ac_status=$?
ac1cb8d3
VS
25424 grep -v '^ *+' conftest.er1 >conftest.err
25425 rm -f conftest.er1
25426 cat conftest.err >&5
a848cd7e
SC
25427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428 (exit $ac_status); } &&
3565d135
RR
25429 { ac_try='test -z "$ac_cxx_werror_flag"
25430 || test ! -s conftest.err'
ac1cb8d3
VS
25431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25432 (eval $ac_try) 2>&5
25433 ac_status=$?
25434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435 (exit $ac_status); }; } &&
25436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25438 (eval $ac_try) 2>&5
25439 ac_status=$?
25440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); }; }; then
25442 wx_cv_expat_is_not_broken=yes
25443else
25444 echo "$as_me: failed program was:" >&5
25445sed 's/^/| /' conftest.$ac_ext >&5
25446
25447wx_cv_expat_is_not_broken=no
25448
25449fi
ac1cb8d3 25450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25451 ac_ext=c
25452ac_cpp='$CPP $CPPFLAGS'
25453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25455ac_compiler_gnu=$ac_cv_c_compiler_gnu
25456
25457
25458
25459fi
25460echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25461echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25462 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25463 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25464echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25465if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25466 echo $ECHO_N "(cached) $ECHO_C" >&6
25467else
25468 ac_check_lib_save_LIBS=$LIBS
25469LIBS="-lexpat $LIBS"
25470cat >conftest.$ac_ext <<_ACEOF
25471/* confdefs.h. */
25472_ACEOF
25473cat confdefs.h >>conftest.$ac_ext
25474cat >>conftest.$ac_ext <<_ACEOF
25475/* end confdefs.h. */
25476
25477/* Override any gcc2 internal prototype to avoid an error. */
25478#ifdef __cplusplus
25479extern "C"
25480#endif
25481/* We use char because int might match the return type of a gcc2
25482 builtin and then its argument prototype would still apply. */
25483char XML_ParserCreate ();
25484int
25485main ()
25486{
25487XML_ParserCreate ();
25488 ;
25489 return 0;
25490}
25491_ACEOF
25492rm -f conftest.$ac_objext conftest$ac_exeext
25493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25494 (eval $ac_link) 2>conftest.er1
a848cd7e 25495 ac_status=$?
ac1cb8d3
VS
25496 grep -v '^ *+' conftest.er1 >conftest.err
25497 rm -f conftest.er1
25498 cat conftest.err >&5
a848cd7e
SC
25499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500 (exit $ac_status); } &&
3565d135
RR
25501 { ac_try='test -z "$ac_c_werror_flag"
25502 || test ! -s conftest.err'
ac1cb8d3
VS
25503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25504 (eval $ac_try) 2>&5
25505 ac_status=$?
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); }; } &&
25508 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25510 (eval $ac_try) 2>&5
25511 ac_status=$?
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); }; }; then
25514 ac_cv_lib_expat_XML_ParserCreate=yes
25515else
25516 echo "$as_me: failed program was:" >&5
25517sed 's/^/| /' conftest.$ac_ext >&5
25518
25519ac_cv_lib_expat_XML_ParserCreate=no
25520fi
ac1cb8d3
VS
25521rm -f conftest.err conftest.$ac_objext \
25522 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25523LIBS=$ac_check_lib_save_LIBS
25524fi
25525echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25526echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25527if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25528 EXPAT_LINK=" -lexpat"
25529fi
25530
25531 fi
25532 fi
25533 if test "x$EXPAT_LINK" = "x" ; then
25534 if test "$wxUSE_EXPAT" = "sys" ; then
25535 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25536echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25537 { (exit 1); exit 1; }; }
25538 else
25539 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25540echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25541 wxUSE_EXPAT=builtin
25542 fi
25543 else
25544 wxUSE_EXPAT=sys
25545 fi
25546 fi
25547 if test "$wxUSE_EXPAT" = "builtin" ; then
25548
25549
25550subdirs="$subdirs src/expat"
25551
25552 fi
25553fi
25554
25555
25556
25557if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25558 if test "${ac_cv_header_mspack_h+set}" = set; then
25559 echo "$as_me:$LINENO: checking for mspack.h" >&5
25560echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25561if test "${ac_cv_header_mspack_h+set}" = set; then
25562 echo $ECHO_N "(cached) $ECHO_C" >&6
25563fi
25564echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25565echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25566else
25567 # Is the header compilable?
25568echo "$as_me:$LINENO: checking mspack.h usability" >&5
25569echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25570cat >conftest.$ac_ext <<_ACEOF
25571/* confdefs.h. */
25572_ACEOF
25573cat confdefs.h >>conftest.$ac_ext
25574cat >>conftest.$ac_ext <<_ACEOF
25575/* end confdefs.h. */
25576$ac_includes_default
25577#include <mspack.h>
25578_ACEOF
25579rm -f conftest.$ac_objext
25580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25581 (eval $ac_compile) 2>conftest.er1
a848cd7e 25582 ac_status=$?
ac1cb8d3
VS
25583 grep -v '^ *+' conftest.er1 >conftest.err
25584 rm -f conftest.er1
25585 cat conftest.err >&5
a848cd7e
SC
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } &&
3565d135
RR
25588 { ac_try='test -z "$ac_c_werror_flag"
25589 || test ! -s conftest.err'
ac1cb8d3
VS
25590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591 (eval $ac_try) 2>&5
25592 ac_status=$?
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); }; } &&
25595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597 (eval $ac_try) 2>&5
25598 ac_status=$?
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }; }; then
25601 ac_header_compiler=yes
25602else
25603 echo "$as_me: failed program was:" >&5
25604sed 's/^/| /' conftest.$ac_ext >&5
25605
25606ac_header_compiler=no
25607fi
ac1cb8d3 25608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25609echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25610echo "${ECHO_T}$ac_header_compiler" >&6
25611
25612# Is the header present?
25613echo "$as_me:$LINENO: checking mspack.h presence" >&5
25614echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25615cat >conftest.$ac_ext <<_ACEOF
25616/* confdefs.h. */
25617_ACEOF
25618cat confdefs.h >>conftest.$ac_ext
25619cat >>conftest.$ac_ext <<_ACEOF
25620/* end confdefs.h. */
25621#include <mspack.h>
25622_ACEOF
25623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25625 ac_status=$?
25626 grep -v '^ *+' conftest.er1 >conftest.err
25627 rm -f conftest.er1
25628 cat conftest.err >&5
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630 (exit $ac_status); } >/dev/null; then
25631 if test -s conftest.err; then
25632 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25634 else
25635 ac_cpp_err=
25636 fi
25637else
25638 ac_cpp_err=yes
25639fi
25640if test -z "$ac_cpp_err"; then
25641 ac_header_preproc=yes
25642else
25643 echo "$as_me: failed program was:" >&5
25644sed 's/^/| /' conftest.$ac_ext >&5
25645
25646 ac_header_preproc=no
25647fi
25648rm -f conftest.err conftest.$ac_ext
25649echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25650echo "${ECHO_T}$ac_header_preproc" >&6
25651
25652# So? What about this header?
ac1cb8d3
VS
25653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25654 yes:no: )
a848cd7e
SC
25655 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25656echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25657 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25658echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25659 ac_header_preproc=yes
a848cd7e 25660 ;;
ac1cb8d3 25661 no:yes:* )
a848cd7e
SC
25662 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25663echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25664 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25665echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25666 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25667echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25668 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25669echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25670 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25671echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25672 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25673echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25674 (
25675 cat <<\_ASBOX
ac1cb8d3
VS
25676## ----------------------------------------- ##
25677## Report this to wx-dev@lists.wxwidgets.org ##
25678## ----------------------------------------- ##
a848cd7e
SC
25679_ASBOX
25680 ) |
25681 sed "s/^/$as_me: WARNING: /" >&2
25682 ;;
25683esac
25684echo "$as_me:$LINENO: checking for mspack.h" >&5
25685echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25686if test "${ac_cv_header_mspack_h+set}" = set; then
25687 echo $ECHO_N "(cached) $ECHO_C" >&6
25688else
25689 ac_cv_header_mspack_h=$ac_header_preproc
25690fi
25691echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25692echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25693
25694fi
25695if test $ac_cv_header_mspack_h = yes; then
25696 found_mspack_h=1
25697fi
25698
25699
25700 if test "x$found_mspack_h" = "x1"; then
25701 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25702echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25703if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25704 echo $ECHO_N "(cached) $ECHO_C" >&6
25705else
25706 ac_check_lib_save_LIBS=$LIBS
25707LIBS="-lmspack $LIBS"
25708cat >conftest.$ac_ext <<_ACEOF
25709/* confdefs.h. */
25710_ACEOF
25711cat confdefs.h >>conftest.$ac_ext
25712cat >>conftest.$ac_ext <<_ACEOF
25713/* end confdefs.h. */
25714
25715/* Override any gcc2 internal prototype to avoid an error. */
25716#ifdef __cplusplus
25717extern "C"
25718#endif
25719/* We use char because int might match the return type of a gcc2
25720 builtin and then its argument prototype would still apply. */
25721char mspack_create_chm_decompressor ();
25722int
25723main ()
25724{
25725mspack_create_chm_decompressor ();
25726 ;
25727 return 0;
25728}
25729_ACEOF
25730rm -f conftest.$ac_objext conftest$ac_exeext
25731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25732 (eval $ac_link) 2>conftest.er1
a848cd7e 25733 ac_status=$?
ac1cb8d3
VS
25734 grep -v '^ *+' conftest.er1 >conftest.err
25735 rm -f conftest.er1
25736 cat conftest.err >&5
a848cd7e
SC
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } &&
3565d135
RR
25739 { ac_try='test -z "$ac_c_werror_flag"
25740 || test ! -s conftest.err'
ac1cb8d3
VS
25741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742 (eval $ac_try) 2>&5
25743 ac_status=$?
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); }; } &&
25746 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748 (eval $ac_try) 2>&5
25749 ac_status=$?
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); }; }; then
25752 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25753else
25754 echo "$as_me: failed program was:" >&5
25755sed 's/^/| /' conftest.$ac_ext >&5
25756
25757ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25758fi
ac1cb8d3
VS
25759rm -f conftest.err conftest.$ac_objext \
25760 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25761LIBS=$ac_check_lib_save_LIBS
25762fi
25763echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25764echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25765if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25766 MSPACK_LINK=" -lmspack"
25767fi
25768
25769 fi
25770 if test "x$MSPACK_LINK" = "x" ; then
25771 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25772 fi
25773fi
25774
25775if test "$wxUSE_LIBMSPACK" != "no"; then
25776 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25777#define wxUSE_LIBMSPACK 1
25778_ACEOF
25779
a848cd7e
SC
25780fi
25781
25782
25783
25784AFMINSTALL=
25785WIN32INSTALL=
25786
25787TOOLKIT=
25788TOOLKIT_INCLUDE=
25789WIDGET_SET=
25790
25791if test "$USE_WIN32" = 1 ; then
25792
25793for ac_header in w32api.h
25794do
25795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25796if eval "test \"\${$as_ac_Header+set}\" = set"; then
25797 echo "$as_me:$LINENO: checking for $ac_header" >&5
25798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25799if eval "test \"\${$as_ac_Header+set}\" = set"; then
25800 echo $ECHO_N "(cached) $ECHO_C" >&6
25801fi
25802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25804else
25805 # Is the header compilable?
25806echo "$as_me:$LINENO: checking $ac_header usability" >&5
25807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25808cat >conftest.$ac_ext <<_ACEOF
25809/* confdefs.h. */
25810_ACEOF
25811cat confdefs.h >>conftest.$ac_ext
25812cat >>conftest.$ac_ext <<_ACEOF
25813/* end confdefs.h. */
25814$ac_includes_default
25815#include <$ac_header>
25816_ACEOF
25817rm -f conftest.$ac_objext
25818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25819 (eval $ac_compile) 2>conftest.er1
a848cd7e 25820 ac_status=$?
ac1cb8d3
VS
25821 grep -v '^ *+' conftest.er1 >conftest.err
25822 rm -f conftest.er1
25823 cat conftest.err >&5
a848cd7e
SC
25824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 (exit $ac_status); } &&
3565d135
RR
25826 { ac_try='test -z "$ac_c_werror_flag"
25827 || test ! -s conftest.err'
ac1cb8d3
VS
25828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25829 (eval $ac_try) 2>&5
25830 ac_status=$?
25831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832 (exit $ac_status); }; } &&
25833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25835 (eval $ac_try) 2>&5
25836 ac_status=$?
25837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838 (exit $ac_status); }; }; then
25839 ac_header_compiler=yes
25840else
25841 echo "$as_me: failed program was:" >&5
25842sed 's/^/| /' conftest.$ac_ext >&5
25843
25844ac_header_compiler=no
25845fi
ac1cb8d3 25846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25848echo "${ECHO_T}$ac_header_compiler" >&6
25849
25850# Is the header present?
25851echo "$as_me:$LINENO: checking $ac_header presence" >&5
25852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25853cat >conftest.$ac_ext <<_ACEOF
25854/* confdefs.h. */
25855_ACEOF
25856cat confdefs.h >>conftest.$ac_ext
25857cat >>conftest.$ac_ext <<_ACEOF
25858/* end confdefs.h. */
25859#include <$ac_header>
25860_ACEOF
25861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25863 ac_status=$?
25864 grep -v '^ *+' conftest.er1 >conftest.err
25865 rm -f conftest.er1
25866 cat conftest.err >&5
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); } >/dev/null; then
25869 if test -s conftest.err; then
25870 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25872 else
25873 ac_cpp_err=
25874 fi
25875else
25876 ac_cpp_err=yes
25877fi
25878if test -z "$ac_cpp_err"; then
25879 ac_header_preproc=yes
25880else
25881 echo "$as_me: failed program was:" >&5
25882sed 's/^/| /' conftest.$ac_ext >&5
25883
25884 ac_header_preproc=no
25885fi
25886rm -f conftest.err conftest.$ac_ext
25887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25888echo "${ECHO_T}$ac_header_preproc" >&6
25889
25890# So? What about this header?
ac1cb8d3
VS
25891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25892 yes:no: )
a848cd7e
SC
25893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25897 ac_header_preproc=yes
a848cd7e 25898 ;;
ac1cb8d3 25899 no:yes:* )
a848cd7e
SC
25900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25912 (
25913 cat <<\_ASBOX
ac1cb8d3
VS
25914## ----------------------------------------- ##
25915## Report this to wx-dev@lists.wxwidgets.org ##
25916## ----------------------------------------- ##
a848cd7e
SC
25917_ASBOX
25918 ) |
25919 sed "s/^/$as_me: WARNING: /" >&2
25920 ;;
25921esac
25922echo "$as_me:$LINENO: checking for $ac_header" >&5
25923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25924if eval "test \"\${$as_ac_Header+set}\" = set"; then
25925 echo $ECHO_N "(cached) $ECHO_C" >&6
25926else
ac1cb8d3 25927 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25928fi
25929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25931
25932fi
25933if test `eval echo '${'$as_ac_Header'}'` = yes; then
25934 cat >>confdefs.h <<_ACEOF
25935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25936_ACEOF
25937
25938fi
25939
25940done
25941
25942 if test "${ac_cv_header_windows_h+set}" = set; then
25943 echo "$as_me:$LINENO: checking for windows.h" >&5
25944echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25945if test "${ac_cv_header_windows_h+set}" = set; then
25946 echo $ECHO_N "(cached) $ECHO_C" >&6
25947fi
25948echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25949echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25950else
25951 # Is the header compilable?
25952echo "$as_me:$LINENO: checking windows.h usability" >&5
25953echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25954cat >conftest.$ac_ext <<_ACEOF
25955/* confdefs.h. */
25956_ACEOF
25957cat confdefs.h >>conftest.$ac_ext
25958cat >>conftest.$ac_ext <<_ACEOF
25959/* end confdefs.h. */
25960$ac_includes_default
25961#include <windows.h>
25962_ACEOF
25963rm -f conftest.$ac_objext
25964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25965 (eval $ac_compile) 2>conftest.er1
a848cd7e 25966 ac_status=$?
ac1cb8d3
VS
25967 grep -v '^ *+' conftest.er1 >conftest.err
25968 rm -f conftest.er1
25969 cat conftest.err >&5
a848cd7e
SC
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } &&
3565d135
RR
25972 { ac_try='test -z "$ac_c_werror_flag"
25973 || test ! -s conftest.err'
ac1cb8d3
VS
25974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975 (eval $ac_try) 2>&5
25976 ac_status=$?
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); }; } &&
25979 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25981 (eval $ac_try) 2>&5
25982 ac_status=$?
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); }; }; then
25985 ac_header_compiler=yes
25986else
25987 echo "$as_me: failed program was:" >&5
25988sed 's/^/| /' conftest.$ac_ext >&5
25989
25990ac_header_compiler=no
25991fi
ac1cb8d3 25992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25993echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25994echo "${ECHO_T}$ac_header_compiler" >&6
25995
25996# Is the header present?
25997echo "$as_me:$LINENO: checking windows.h presence" >&5
25998echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25999cat >conftest.$ac_ext <<_ACEOF
26000/* confdefs.h. */
26001_ACEOF
26002cat confdefs.h >>conftest.$ac_ext
26003cat >>conftest.$ac_ext <<_ACEOF
26004/* end confdefs.h. */
26005#include <windows.h>
26006_ACEOF
26007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26009 ac_status=$?
26010 grep -v '^ *+' conftest.er1 >conftest.err
26011 rm -f conftest.er1
26012 cat conftest.err >&5
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); } >/dev/null; then
26015 if test -s conftest.err; then
26016 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26018 else
26019 ac_cpp_err=
26020 fi
26021else
26022 ac_cpp_err=yes
26023fi
26024if test -z "$ac_cpp_err"; then
26025 ac_header_preproc=yes
26026else
26027 echo "$as_me: failed program was:" >&5
26028sed 's/^/| /' conftest.$ac_ext >&5
26029
26030 ac_header_preproc=no
26031fi
26032rm -f conftest.err conftest.$ac_ext
26033echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26034echo "${ECHO_T}$ac_header_preproc" >&6
26035
26036# So? What about this header?
ac1cb8d3
VS
26037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26038 yes:no: )
a848cd7e
SC
26039 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26040echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26041 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26042echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26043 ac_header_preproc=yes
a848cd7e 26044 ;;
ac1cb8d3 26045 no:yes:* )
a848cd7e
SC
26046 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26047echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26048 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26049echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26050 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26051echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26052 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26053echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26054 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26055echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26056 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26057echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26058 (
26059 cat <<\_ASBOX
ac1cb8d3
VS
26060## ----------------------------------------- ##
26061## Report this to wx-dev@lists.wxwidgets.org ##
26062## ----------------------------------------- ##
a848cd7e
SC
26063_ASBOX
26064 ) |
26065 sed "s/^/$as_me: WARNING: /" >&2
26066 ;;
26067esac
26068echo "$as_me:$LINENO: checking for windows.h" >&5
26069echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26070if test "${ac_cv_header_windows_h+set}" = set; then
26071 echo $ECHO_N "(cached) $ECHO_C" >&6
26072else
26073 ac_cv_header_windows_h=$ac_header_preproc
26074fi
26075echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26076echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26077
26078fi
26079if test $ac_cv_header_windows_h = yes; then
26080 :
26081else
26082
26083 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26084echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26085 { (exit 1); exit 1; }; }
26086
26087fi
26088
26089
26090
26091 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26092
26093 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26094 LIBS="$LIBS -loleacc"
26095 fi
26096
26097 case "${host}" in
26098 *-*-cygwin* )
26099 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26100 esac
26101
26102 if test "$wxUSE_ODBC" = "sys" ; then
26103 wxUSE_ODBC = "yes"
26104 fi
26105 if test "$wxUSE_ODBC" = "yes" ; then
26106 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26107 cat >>confdefs.h <<\_ACEOF
26108#define wxUSE_ODBC 1
26109_ACEOF
26110
26111 fi
26112
370d2fd7 26113 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26114 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26115
004ee6da 26116 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26117
a848cd7e
SC
26118 WIN32INSTALL=win32install
26119fi
26120
26121if test "$wxUSE_GUI" = "yes"; then
26122 USE_GUI=1
26123
26124 GUI_TK_LIBRARY=
26125
26126 WXGTK12=
26127 WXGTK127=
26128 WXGTK20=
26129 WXGPE=
26130
207bc66c
RN
26131 if test "$wxUSE_COCOA" = 1 ; then
26132 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26133 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26134echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26135 wxUSE_PRINTING_ARCHITECTURE=no
26136 fi
26137 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26138 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26139echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26140 wxUSE_DRAG_AND_DROP=no
26141 fi
26142 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26143 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26144echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26145 wxUSE_DRAGIMAGE=no
26146 fi
26147 fi
26148
a848cd7e
SC
26149 if test "$wxUSE_MSW" = 1 ; then
26150 TOOLKIT=MSW
26151 GUIDIST=MSW_DIST
26152
ceec2216 26153 case "${host}" in
a848cd7e
SC
26154 *-*-mingw32* )
26155 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26156 esac
26157 fi
26158
26159 if test "$wxUSE_GTK" = 1; then
26160 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26161echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26162
26163 gtk_version_cached=1
26164 if test "${wx_cv_lib_gtk+set}" = set; then
26165 echo $ECHO_N "(cached) $ECHO_C" >&6
26166else
26167
26168 gtk_version_cached=0
26169 echo "$as_me:$LINENO: result: " >&5
26170echo "${ECHO_T}" >&6
26171
26172 GTK_MODULES=
26173 if test "$wxUSE_THREADS" = "yes"; then
26174 GTK_MODULES=gthread
26175 fi
26176
f597b41c 26177 wx_cv_lib_gtk=
5001df0d
MW
26178 if test "x$wxGTK_VERSION" != "x1"
26179 then
26180 case "${host}" in
26181 *-*-solaris2* )
26182 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26183 enable_gtktest=no
5001df0d
MW
26184 fi
26185 esac
26186
a848cd7e
SC
26187 # Check whether --enable-gtktest or --disable-gtktest was given.
26188if test "${enable_gtktest+set}" = set; then
26189 enableval="$enable_gtktest"
26190
26191else
26192 enable_gtktest=yes
26193fi;
26194
26195 pkg_config_args=gtk+-2.0
26196 for module in . $GTK_MODULES
26197 do
26198 case "$module" in
26199 gthread)
26200 pkg_config_args="$pkg_config_args gthread-2.0"
26201 ;;
26202 esac
26203 done
26204
26205 no_gtk=""
26206
26207 # Extract the first word of "pkg-config", so it can be a program name with args.
26208set dummy pkg-config; ac_word=$2
26209echo "$as_me:$LINENO: checking for $ac_word" >&5
26210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26211if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26212 echo $ECHO_N "(cached) $ECHO_C" >&6
26213else
26214 case $PKG_CONFIG in
26215 [\\/]* | ?:[\\/]*)
26216 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26217 ;;
26218 *)
26219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26220for as_dir in $PATH
26221do
26222 IFS=$as_save_IFS
26223 test -z "$as_dir" && as_dir=.
26224 for ac_exec_ext in '' $ac_executable_extensions; do
26225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26226 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26228 break 2
26229 fi
26230done
26231done
26232
26233 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26234 ;;
26235esac
26236fi
26237PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26238
26239if test -n "$PKG_CONFIG"; then
26240 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26241echo "${ECHO_T}$PKG_CONFIG" >&6
26242else
26243 echo "$as_me:$LINENO: result: no" >&5
26244echo "${ECHO_T}no" >&6
26245fi
26246
26247
26248 if test x$PKG_CONFIG != xno ; then
26249 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26250 :
26251 else
c2218763 26252 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26253 no_gtk=yes
26254 PKG_CONFIG=no
26255 fi
26256 else
26257 no_gtk=yes
26258 fi
26259
26260 min_gtk_version=2.0.0
26261 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26262echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26263
26264 if test x$PKG_CONFIG != xno ; then
26265 ## don't try to run the test against uninstalled libtool libs
26266 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26267 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26268 enable_gtktest=no
26269 fi
26270
26271 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26272 :
26273 else
26274 no_gtk=yes
26275 fi
26276 fi
26277
26278 if test x"$no_gtk" = x ; then
26279 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26280 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26281 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26282 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26283 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26284 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26285 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26286 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26287 if test "x$enable_gtktest" = "xyes" ; then
26288 ac_save_CFLAGS="$CFLAGS"
26289 ac_save_LIBS="$LIBS"
26290 CFLAGS="$CFLAGS $GTK_CFLAGS"
26291 LIBS="$GTK_LIBS $LIBS"
26292 rm -f conf.gtktest
26293 if test "$cross_compiling" = yes; then
26294 echo $ac_n "cross compiling; assumed OK... $ac_c"
26295else
26296 cat >conftest.$ac_ext <<_ACEOF
26297/* confdefs.h. */
26298_ACEOF
26299cat confdefs.h >>conftest.$ac_ext
26300cat >>conftest.$ac_ext <<_ACEOF
26301/* end confdefs.h. */
26302
26303#include <gtk/gtk.h>
26304#include <stdio.h>
26305#include <stdlib.h>
26306
26307int
26308main ()
26309{
26310 int major, minor, micro;
26311 char *tmp_version;
26312
26313 system ("touch conf.gtktest");
26314
26315 /* HP/UX 9 (%@#!) writes to sscanf strings */
26316 tmp_version = g_strdup("$min_gtk_version");
26317 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26318 printf("%s, bad version string\n", "$min_gtk_version");
26319 exit(1);
26320 }
26321
26322 if ((gtk_major_version != $gtk_config_major_version) ||
26323 (gtk_minor_version != $gtk_config_minor_version) ||
26324 (gtk_micro_version != $gtk_config_micro_version))
26325 {
26326 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26327 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26328 gtk_major_version, gtk_minor_version, gtk_micro_version);
26329 printf ("*** was found! If pkg-config was correct, then it is best\n");
26330 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26331 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26332 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26333 printf("*** required on your system.\n");
26334 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26335 printf("*** to point to the correct configuration files\n");
26336 }
26337 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26338 (gtk_minor_version != GTK_MINOR_VERSION) ||
26339 (gtk_micro_version != GTK_MICRO_VERSION))
26340 {
26341 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26342 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26343 printf("*** library (version %d.%d.%d)\n",
26344 gtk_major_version, gtk_minor_version, gtk_micro_version);
26345 }
26346 else
26347 {
26348 if ((gtk_major_version > major) ||
26349 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26350 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26351 {
26352 return 0;
26353 }
26354 else
26355 {
26356 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26357 gtk_major_version, gtk_minor_version, gtk_micro_version);
26358 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26359 major, minor, micro);
26360 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26361 printf("***\n");
26362 printf("*** If you have already installed a sufficiently new version, this error\n");
26363 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26364 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26365 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26366 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26367 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26368 printf("*** so that the correct libraries are found at run-time))\n");
26369 }
26370 }
26371 return 1;
26372}
26373
26374_ACEOF
26375rm -f conftest$ac_exeext
26376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26377 (eval $ac_link) 2>&5
26378 ac_status=$?
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26382 (eval $ac_try) 2>&5
26383 ac_status=$?
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); }; }; then
26386 :
26387else
26388 echo "$as_me: program exited with status $ac_status" >&5
26389echo "$as_me: failed program was:" >&5
26390sed 's/^/| /' conftest.$ac_ext >&5
26391
26392( exit $ac_status )
26393no_gtk=yes
26394fi
ac1cb8d3 26395rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26396fi
26397 CFLAGS="$ac_save_CFLAGS"
26398 LIBS="$ac_save_LIBS"
26399 fi
26400 fi
26401 if test "x$no_gtk" = x ; then
26402 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26403echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26404 wx_cv_lib_gtk=2.0
26405 else
26406 echo "$as_me:$LINENO: result: no" >&5
26407echo "${ECHO_T}no" >&6
26408 if test "$PKG_CONFIG" = "no" ; then
26409 echo "*** A new enough version of pkg-config was not found."
26410 echo "*** See http://pkgconfig.sourceforge.net"
26411 else
26412 if test -f conf.gtktest ; then
26413 :
26414 else
26415 echo "*** Could not run GTK+ test program, checking why..."
26416 ac_save_CFLAGS="$CFLAGS"
26417 ac_save_LIBS="$LIBS"
26418 CFLAGS="$CFLAGS $GTK_CFLAGS"
26419 LIBS="$LIBS $GTK_LIBS"
26420 cat >conftest.$ac_ext <<_ACEOF
26421/* confdefs.h. */
26422_ACEOF
26423cat confdefs.h >>conftest.$ac_ext
26424cat >>conftest.$ac_ext <<_ACEOF
26425/* end confdefs.h. */
26426
26427#include <gtk/gtk.h>
26428#include <stdio.h>
26429
26430int
26431main ()
26432{
26433 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26434 ;
26435 return 0;
26436}
26437_ACEOF
26438rm -f conftest.$ac_objext conftest$ac_exeext
26439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26440 (eval $ac_link) 2>conftest.er1
a848cd7e 26441 ac_status=$?
ac1cb8d3
VS
26442 grep -v '^ *+' conftest.er1 >conftest.err
26443 rm -f conftest.er1
26444 cat conftest.err >&5
a848cd7e
SC
26445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); } &&
3565d135
RR
26447 { ac_try='test -z "$ac_c_werror_flag"
26448 || test ! -s conftest.err'
ac1cb8d3
VS
26449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450 (eval $ac_try) 2>&5
26451 ac_status=$?
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); }; } &&
26454 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26456 (eval $ac_try) 2>&5
26457 ac_status=$?
26458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26459 (exit $ac_status); }; }; then
26460 echo "*** The test program compiled, but did not run. This usually means"
26461 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26462 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26463 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26464 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26465 echo "*** is required on your system"
26466 echo "***"
26467 echo "*** If you have an old version installed, it is best to remove it, although"
26468 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26469else
26470 echo "$as_me: failed program was:" >&5
26471sed 's/^/| /' conftest.$ac_ext >&5
26472
26473 echo "*** The test program failed to compile or link. See the file config.log for the"
26474 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26475fi
ac1cb8d3
VS
26476rm -f conftest.err conftest.$ac_objext \
26477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26478 CFLAGS="$ac_save_CFLAGS"
26479 LIBS="$ac_save_LIBS"
26480 fi
26481 fi
26482 GTK_CFLAGS=""
26483 GTK_LIBS=""
26484 :
26485 fi
26486
26487
26488 rm -f conf.gtktest
26489
5001df0d
MW
26490
26491 case "${host}" in
26492 *-*-solaris2* )
26493 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26494 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26495 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26496 fi
26497 if test "$wxUSE_SHARED" != "yes"; then
26498 GTK_LIBS="$GTK_LIBS -lX11"
26499 fi
26500 esac
f597b41c
MW
26501 fi
26502
f34ca037
MW
26503 if test -z "$wx_cv_lib_gtk"; then
26504 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26505
26506# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26507if test "${with_gtk_prefix+set}" = set; then
26508 withval="$with_gtk_prefix"
26509 gtk_config_prefix="$withval"
26510else
26511 gtk_config_prefix=""
26512fi;
26513
26514# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26515if test "${with_gtk_exec_prefix+set}" = set; then
26516 withval="$with_gtk_exec_prefix"
26517 gtk_config_exec_prefix="$withval"
26518else
26519 gtk_config_exec_prefix=""
26520fi;
26521# Check whether --enable-gtktest or --disable-gtktest was given.
26522if test "${enable_gtktest+set}" = set; then
26523 enableval="$enable_gtktest"
26524
26525else
26526 enable_gtktest=yes
26527fi;
26528
26529 for module in . $GTK_MODULES
26530 do
26531 case "$module" in
26532 gthread)
26533 gtk_config_args="$gtk_config_args gthread"
26534 ;;
26535 esac
26536 done
26537
26538 if test x$gtk_config_exec_prefix != x ; then
26539 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26540 if test x${GTK_CONFIG+set} != xset ; then
26541 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26542 fi
26543 fi
26544 if test x$gtk_config_prefix != x ; then
26545 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26546 if test x${GTK_CONFIG+set} != xset ; then
26547 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26548 fi
26549 fi
26550
26551 # Extract the first word of "gtk-config", so it can be a program name with args.
26552set dummy gtk-config; ac_word=$2
26553echo "$as_me:$LINENO: checking for $ac_word" >&5
26554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26555if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26556 echo $ECHO_N "(cached) $ECHO_C" >&6
26557else
26558 case $GTK_CONFIG in
26559 [\\/]* | ?:[\\/]*)
26560 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26561 ;;
26562 *)
26563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26564for as_dir in $PATH
26565do
26566 IFS=$as_save_IFS
26567 test -z "$as_dir" && as_dir=.
26568 for ac_exec_ext in '' $ac_executable_extensions; do
26569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26570 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26572 break 2
26573 fi
26574done
26575done
26576
26577 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26578 ;;
26579esac
26580fi
26581GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26582
26583if test -n "$GTK_CONFIG"; then
26584 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26585echo "${ECHO_T}$GTK_CONFIG" >&6
26586else
26587 echo "$as_me:$LINENO: result: no" >&5
26588echo "${ECHO_T}no" >&6
26589fi
26590
26591 min_gtk_version=1.2.7
26592 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26593echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26594 no_gtk=""
26595 if test "$GTK_CONFIG" = "no" ; then
26596 no_gtk=yes
26597 else
26598 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26599 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26600 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26601 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26602 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26603 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26604 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26605 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26606 if test "x$enable_gtktest" = "xyes" ; then
26607 ac_save_CFLAGS="$CFLAGS"
26608 ac_save_LIBS="$LIBS"
26609 CFLAGS="$CFLAGS $GTK_CFLAGS"
26610 LIBS="$GTK_LIBS $LIBS"
26611 rm -f conf.gtktest
26612 if test "$cross_compiling" = yes; then
26613 echo $ac_n "cross compiling; assumed OK... $ac_c"
26614else
26615 cat >conftest.$ac_ext <<_ACEOF
26616/* confdefs.h. */
26617_ACEOF
26618cat confdefs.h >>conftest.$ac_ext
26619cat >>conftest.$ac_ext <<_ACEOF
26620/* end confdefs.h. */
26621
26622#include <gtk/gtk.h>
26623#include <stdio.h>
26624#include <stdlib.h>
26625
26626int
26627main ()
26628{
26629 int major, minor, micro;
26630 char *tmp_version;
26631
26632 system ("touch conf.gtktest");
26633
26634 /* HP/UX 9 (%@#!) writes to sscanf strings */
26635 tmp_version = g_strdup("$min_gtk_version");
26636 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26637 printf("%s, bad version string\n", "$min_gtk_version");
26638 exit(1);
26639 }
26640
26641 if ((gtk_major_version != $gtk_config_major_version) ||
26642 (gtk_minor_version != $gtk_config_minor_version) ||
26643 (gtk_micro_version != $gtk_config_micro_version))
26644 {
26645 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26646 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26647 gtk_major_version, gtk_minor_version, gtk_micro_version);
26648 printf ("*** was found! If gtk-config was correct, then it is best\n");
26649 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26650 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26651 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26652 printf("*** required on your system.\n");
26653 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26654 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26655 printf("*** before re-running configure\n");
26656 }
26657#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26658 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26659 (gtk_minor_version != GTK_MINOR_VERSION) ||
26660 (gtk_micro_version != GTK_MICRO_VERSION))
26661 {
26662 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26663 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26664 printf("*** library (version %d.%d.%d)\n",
26665 gtk_major_version, gtk_minor_version, gtk_micro_version);
26666 }
26667#endif /* defined (GTK_MAJOR_VERSION) ... */
26668 else
26669 {
26670 if ((gtk_major_version > major) ||
26671 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26672 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26673 {
26674 return 0;
26675 }
26676 else
26677 {
26678 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26679 gtk_major_version, gtk_minor_version, gtk_micro_version);
26680 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26681 major, minor, micro);
26682 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26683 printf("***\n");
26684 printf("*** If you have already installed a sufficiently new version, this error\n");
26685 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26686 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26687 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26688 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26689 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26690 printf("*** so that the correct libraries are found at run-time))\n");
26691 }
26692 }
26693 return 1;
26694}
26695
26696_ACEOF
26697rm -f conftest$ac_exeext
26698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26699 (eval $ac_link) 2>&5
26700 ac_status=$?
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704 (eval $ac_try) 2>&5
26705 ac_status=$?
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); }; }; then
26708 :
26709else
26710 echo "$as_me: program exited with status $ac_status" >&5
26711echo "$as_me: failed program was:" >&5
26712sed 's/^/| /' conftest.$ac_ext >&5
26713
26714( exit $ac_status )
26715no_gtk=yes
26716fi
ac1cb8d3 26717rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26718fi
26719 CFLAGS="$ac_save_CFLAGS"
26720 LIBS="$ac_save_LIBS"
26721 fi
26722 fi
26723 if test "x$no_gtk" = x ; then
26724 echo "$as_me:$LINENO: result: yes" >&5
26725echo "${ECHO_T}yes" >&6
26726 wx_cv_lib_gtk=1.2.7
26727 else
26728 echo "$as_me:$LINENO: result: no" >&5
26729echo "${ECHO_T}no" >&6
26730 if test "$GTK_CONFIG" = "no" ; then
26731 echo "*** The gtk-config script installed by GTK could not be found"
26732 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26733 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26734 echo "*** full path to gtk-config."
26735 else
26736 if test -f conf.gtktest ; then
26737 :
26738 else
26739 echo "*** Could not run GTK test program, checking why..."
26740 CFLAGS="$CFLAGS $GTK_CFLAGS"
26741 LIBS="$LIBS $GTK_LIBS"
26742 cat >conftest.$ac_ext <<_ACEOF
26743/* confdefs.h. */
26744_ACEOF
26745cat confdefs.h >>conftest.$ac_ext
26746cat >>conftest.$ac_ext <<_ACEOF
26747/* end confdefs.h. */
26748
26749#include <gtk/gtk.h>
26750#include <stdio.h>
26751
26752int
26753main ()
26754{
26755 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26756 ;
26757 return 0;
26758}
26759_ACEOF
26760rm -f conftest.$ac_objext conftest$ac_exeext
26761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26762 (eval $ac_link) 2>conftest.er1
a848cd7e 26763 ac_status=$?
ac1cb8d3
VS
26764 grep -v '^ *+' conftest.er1 >conftest.err
26765 rm -f conftest.er1
26766 cat conftest.err >&5
a848cd7e
SC
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); } &&
3565d135
RR
26769 { ac_try='test -z "$ac_c_werror_flag"
26770 || test ! -s conftest.err'
ac1cb8d3
VS
26771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26772 (eval $ac_try) 2>&5
26773 ac_status=$?
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); }; } &&
26776 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778 (eval $ac_try) 2>&5
26779 ac_status=$?
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; }; then
26782 echo "*** The test program compiled, but did not run. This usually means"
26783 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26784 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26785 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26786 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26787 echo "*** is required on your system"
26788 echo "***"
26789 echo "*** If you have an old version installed, it is best to remove it, although"
26790 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26791 echo "***"
26792 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26793 echo "*** came with the system with the command"
26794 echo "***"
26795 echo "*** rpm --erase --nodeps gtk gtk-devel"
26796else
26797 echo "$as_me: failed program was:" >&5
26798sed 's/^/| /' conftest.$ac_ext >&5
26799
26800 echo "*** The test program failed to compile or link. See the file config.log for the"
26801 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26802 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26803 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26804fi
ac1cb8d3
VS
26805rm -f conftest.err conftest.$ac_objext \
26806 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26807 CFLAGS="$ac_save_CFLAGS"
26808 LIBS="$ac_save_LIBS"
26809 fi
26810 fi
26811 GTK_CFLAGS=""
26812 GTK_LIBS=""
26813 :
26814 fi
26815
26816
26817 rm -f conf.gtktest
26818
26819
f34ca037 26820 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26821
26822# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26823if test "${with_gtk_prefix+set}" = set; then
26824 withval="$with_gtk_prefix"
26825 gtk_config_prefix="$withval"
26826else
26827 gtk_config_prefix=""
26828fi;
26829
26830# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26831if test "${with_gtk_exec_prefix+set}" = set; then
26832 withval="$with_gtk_exec_prefix"
26833 gtk_config_exec_prefix="$withval"
26834else
26835 gtk_config_exec_prefix=""
26836fi;
26837# Check whether --enable-gtktest or --disable-gtktest was given.
26838if test "${enable_gtktest+set}" = set; then
26839 enableval="$enable_gtktest"
26840
26841else
26842 enable_gtktest=yes
26843fi;
26844
26845 for module in . $GTK_MODULES
26846 do
26847 case "$module" in
26848 gthread)
26849 gtk_config_args="$gtk_config_args gthread"
26850 ;;
26851 esac
26852 done
26853
26854 if test x$gtk_config_exec_prefix != x ; then
26855 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26856 if test x${GTK_CONFIG+set} != xset ; then
26857 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26858 fi
26859 fi
26860 if test x$gtk_config_prefix != x ; then
26861 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26862 if test x${GTK_CONFIG+set} != xset ; then
26863 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26864 fi
26865 fi
26866
26867 # Extract the first word of "gtk-config", so it can be a program name with args.
26868set dummy gtk-config; ac_word=$2
26869echo "$as_me:$LINENO: checking for $ac_word" >&5
26870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26871if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26872 echo $ECHO_N "(cached) $ECHO_C" >&6
26873else
26874 case $GTK_CONFIG in
26875 [\\/]* | ?:[\\/]*)
26876 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26877 ;;
26878 *)
26879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26880for as_dir in $PATH
26881do
26882 IFS=$as_save_IFS
26883 test -z "$as_dir" && as_dir=.
26884 for ac_exec_ext in '' $ac_executable_extensions; do
26885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26886 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26888 break 2
26889 fi
26890done
26891done
26892
26893 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26894 ;;
26895esac
26896fi
26897GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26898
26899if test -n "$GTK_CONFIG"; then
26900 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26901echo "${ECHO_T}$GTK_CONFIG" >&6
26902else
26903 echo "$as_me:$LINENO: result: no" >&5
26904echo "${ECHO_T}no" >&6
26905fi
26906
26907 min_gtk_version=1.2.3
26908 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26909echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26910 no_gtk=""
26911 if test "$GTK_CONFIG" = "no" ; then
26912 no_gtk=yes
26913 else
26914 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26915 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26916 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26918 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26919 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26920 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26921 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26922 if test "x$enable_gtktest" = "xyes" ; then
26923 ac_save_CFLAGS="$CFLAGS"
26924 ac_save_LIBS="$LIBS"
26925 CFLAGS="$CFLAGS $GTK_CFLAGS"
26926 LIBS="$GTK_LIBS $LIBS"
26927 rm -f conf.gtktest
26928 if test "$cross_compiling" = yes; then
26929 echo $ac_n "cross compiling; assumed OK... $ac_c"
26930else
26931 cat >conftest.$ac_ext <<_ACEOF
26932/* confdefs.h. */
26933_ACEOF
26934cat confdefs.h >>conftest.$ac_ext
26935cat >>conftest.$ac_ext <<_ACEOF
26936/* end confdefs.h. */
26937
26938#include <gtk/gtk.h>
26939#include <stdio.h>
26940#include <stdlib.h>
26941
26942int
26943main ()
26944{
26945 int major, minor, micro;
26946 char *tmp_version;
26947
26948 system ("touch conf.gtktest");
26949
26950 /* HP/UX 9 (%@#!) writes to sscanf strings */
26951 tmp_version = g_strdup("$min_gtk_version");
26952 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26953 printf("%s, bad version string\n", "$min_gtk_version");
26954 exit(1);
26955 }
26956
26957 if ((gtk_major_version != $gtk_config_major_version) ||
26958 (gtk_minor_version != $gtk_config_minor_version) ||
26959 (gtk_micro_version != $gtk_config_micro_version))
26960 {
26961 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26962 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26963 gtk_major_version, gtk_minor_version, gtk_micro_version);
26964 printf ("*** was found! If gtk-config was correct, then it is best\n");
26965 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26966 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26967 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26968 printf("*** required on your system.\n");
26969 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26970 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26971 printf("*** before re-running configure\n");
26972 }
26973#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26974 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26975 (gtk_minor_version != GTK_MINOR_VERSION) ||
26976 (gtk_micro_version != GTK_MICRO_VERSION))
26977 {
26978 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26979 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26980 printf("*** library (version %d.%d.%d)\n",
26981 gtk_major_version, gtk_minor_version, gtk_micro_version);
26982 }
26983#endif /* defined (GTK_MAJOR_VERSION) ... */
26984 else
26985 {
26986 if ((gtk_major_version > major) ||
26987 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26988 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26989 {
26990 return 0;
26991 }
26992 else
26993 {
26994 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26995 gtk_major_version, gtk_minor_version, gtk_micro_version);
26996 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26997 major, minor, micro);
26998 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26999 printf("***\n");
27000 printf("*** If you have already installed a sufficiently new version, this error\n");
27001 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27002 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27003 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27004 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27005 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27006 printf("*** so that the correct libraries are found at run-time))\n");
27007 }
27008 }
27009 return 1;
27010}
27011
27012_ACEOF
27013rm -f conftest$ac_exeext
27014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27015 (eval $ac_link) 2>&5
27016 ac_status=$?
27017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27020 (eval $ac_try) 2>&5
27021 ac_status=$?
27022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023 (exit $ac_status); }; }; then
27024 :
27025else
27026 echo "$as_me: program exited with status $ac_status" >&5
27027echo "$as_me: failed program was:" >&5
27028sed 's/^/| /' conftest.$ac_ext >&5
27029
27030( exit $ac_status )
27031no_gtk=yes
27032fi
ac1cb8d3 27033rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27034fi
27035 CFLAGS="$ac_save_CFLAGS"
27036 LIBS="$ac_save_LIBS"
27037 fi
27038 fi
27039 if test "x$no_gtk" = x ; then
27040 echo "$as_me:$LINENO: result: yes" >&5
27041echo "${ECHO_T}yes" >&6
27042 wx_cv_lib_gtk=1.2.3
27043 else
27044 echo "$as_me:$LINENO: result: no" >&5
27045echo "${ECHO_T}no" >&6
27046 if test "$GTK_CONFIG" = "no" ; then
27047 echo "*** The gtk-config script installed by GTK could not be found"
27048 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27049 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27050 echo "*** full path to gtk-config."
27051 else
27052 if test -f conf.gtktest ; then
27053 :
27054 else
27055 echo "*** Could not run GTK test program, checking why..."
27056 CFLAGS="$CFLAGS $GTK_CFLAGS"
27057 LIBS="$LIBS $GTK_LIBS"
27058 cat >conftest.$ac_ext <<_ACEOF
27059/* confdefs.h. */
27060_ACEOF
27061cat confdefs.h >>conftest.$ac_ext
27062cat >>conftest.$ac_ext <<_ACEOF
27063/* end confdefs.h. */
27064
27065#include <gtk/gtk.h>
27066#include <stdio.h>
27067
27068int
27069main ()
27070{
27071 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27072 ;
27073 return 0;
27074}
27075_ACEOF
27076rm -f conftest.$ac_objext conftest$ac_exeext
27077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27078 (eval $ac_link) 2>conftest.er1
a848cd7e 27079 ac_status=$?
ac1cb8d3
VS
27080 grep -v '^ *+' conftest.er1 >conftest.err
27081 rm -f conftest.er1
27082 cat conftest.err >&5
a848cd7e
SC
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); } &&
3565d135
RR
27085 { ac_try='test -z "$ac_c_werror_flag"
27086 || test ! -s conftest.err'
ac1cb8d3
VS
27087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088 (eval $ac_try) 2>&5
27089 ac_status=$?
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; } &&
27092 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27094 (eval $ac_try) 2>&5
27095 ac_status=$?
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); }; }; then
27098 echo "*** The test program compiled, but did not run. This usually means"
27099 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27100 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27101 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27102 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27103 echo "*** is required on your system"
27104 echo "***"
27105 echo "*** If you have an old version installed, it is best to remove it, although"
27106 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27107 echo "***"
27108 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27109 echo "*** came with the system with the command"
27110 echo "***"
27111 echo "*** rpm --erase --nodeps gtk gtk-devel"
27112else
27113 echo "$as_me: failed program was:" >&5
27114sed 's/^/| /' conftest.$ac_ext >&5
27115
27116 echo "*** The test program failed to compile or link. See the file config.log for the"
27117 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27118 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27119 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27120fi
ac1cb8d3
VS
27121rm -f conftest.err conftest.$ac_objext \
27122 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27123 CFLAGS="$ac_save_CFLAGS"
27124 LIBS="$ac_save_LIBS"
27125 fi
27126 fi
27127 GTK_CFLAGS=""
27128 GTK_LIBS=""
27129 :
27130 fi
27131
27132
27133 rm -f conf.gtktest
27134
f34ca037 27135 fi
a848cd7e
SC
27136 fi
27137 fi
27138
27139 if test -z "$wx_cv_lib_gtk"; then
27140 wx_cv_lib_gtk=none
27141 else
27142 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27143 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27144 fi
27145
27146
27147fi
27148
27149
27150 if test "$gtk_version_cached" = 1; then
27151 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27152echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27153 fi
27154
27155 case "$wx_cv_lib_gtk" in
27156 2.0) WXGTK20=1
27157 TOOLKIT_VERSION=2
27158 ;;
27159 1.2.7) WXGTK127=1
27160 WXGTK12=1
27161 ;;
27162 1.2.3) WXGTK12=1
27163 ;;
27164 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27165The development files for GTK+ were not found. For GTK+ 2, please
27166ensure that pkg-config is in the path and that gtk+-2.0.pc is
27167installed. For GTK+ 1.2 please check that gtk-config is in the path,
27168and that the version is 1.2.3 or above. Also check that the
27169libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27170--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27171 " >&5
27172echo "$as_me: error:
f597b41c
MW
27173The development files for GTK+ were not found. For GTK+ 2, please
27174ensure that pkg-config is in the path and that gtk+-2.0.pc is
27175installed. For GTK+ 1.2 please check that gtk-config is in the path,
27176and that the version is 1.2.3 or above. Also check that the
27177libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27178--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27179 " >&2;}
27180 { (exit 1); exit 1; }; }
27181 ;;
27182 esac
27183
27184 if test "$WXGTK20" = 1; then
304205f1
VS
27185 save_CFLAGS="$CFLAGS"
27186 save_LIBS="$LIBS"
c92ad099 27187 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27188 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27189
d12aef51
VZ
27190 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27191echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27192 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27193/* confdefs.h. */
27194_ACEOF
27195cat confdefs.h >>conftest.$ac_ext
27196cat >>conftest.$ac_ext <<_ACEOF
27197/* end confdefs.h. */
304205f1 27198
d12aef51 27199 #include <gtk/gtk.h>
304205f1 27200
d12aef51
VZ
27201int
27202main ()
27203{
304205f1 27204
d12aef51 27205 void *f = gtk_icon_size_lookup;
abc736fd
MW
27206
27207 ;
27208 return 0;
27209}
27210_ACEOF
27211rm -f conftest.$ac_objext
27212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27213 (eval $ac_compile) 2>conftest.er1
27214 ac_status=$?
27215 grep -v '^ *+' conftest.er1 >conftest.err
27216 rm -f conftest.er1
27217 cat conftest.err >&5
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); } &&
3565d135
RR
27220 { ac_try='test -z "$ac_c_werror_flag"
27221 || test ! -s conftest.err'
abc736fd
MW
27222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223 (eval $ac_try) 2>&5
27224 ac_status=$?
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; } &&
27227 { ac_try='test -s conftest.$ac_objext'
27228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27229 (eval $ac_try) 2>&5
27230 ac_status=$?
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; }; then
27233
27234 echo "$as_me:$LINENO: result: no" >&5
27235echo "${ECHO_T}no" >&6
27236
27237else
27238 echo "$as_me: failed program was:" >&5
27239sed 's/^/| /' conftest.$ac_ext >&5
27240
27241
27242 cat >>confdefs.h <<\_ACEOF
27243#define NEED_GTK_ICON_SIZE_LOOKUP 1
27244_ACEOF
27245
27246 echo "$as_me:$LINENO: result: yes" >&5
27247echo "${ECHO_T}yes" >&6
27248
27249fi
27250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27251
9755e73b
VS
27252 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27253echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27254 cat >conftest.$ac_ext <<_ACEOF
27255/* confdefs.h. */
27256_ACEOF
27257cat confdefs.h >>conftest.$ac_ext
27258cat >>conftest.$ac_ext <<_ACEOF
27259/* end confdefs.h. */
27260
27261 #include <gtk/gtk.h>
27262
27263int
27264main ()
27265{
27266
27267 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27268 Not GTK+ 2.4
9755e73b
VS
27269 #endif
27270
27271 ;
27272 return 0;
27273}
27274_ACEOF
27275rm -f conftest.$ac_objext
27276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27277 (eval $ac_compile) 2>conftest.er1
27278 ac_status=$?
27279 grep -v '^ *+' conftest.er1 >conftest.err
27280 rm -f conftest.er1
27281 cat conftest.err >&5
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); } &&
3565d135
RR
27284 { ac_try='test -z "$ac_c_werror_flag"
27285 || test ! -s conftest.err'
9755e73b
VS
27286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27287 (eval $ac_try) 2>&5
27288 ac_status=$?
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); }; } &&
27291 { ac_try='test -s conftest.$ac_objext'
27292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27293 (eval $ac_try) 2>&5
27294 ac_status=$?
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); }; }; then
27297
27298 cat >>confdefs.h <<\_ACEOF
27299#define __WXGTK24__ 1
27300_ACEOF
27301
27302 echo "$as_me:$LINENO: result: yes" >&5
27303echo "${ECHO_T}yes" >&6
27304
27305else
27306 echo "$as_me: failed program was:" >&5
27307sed 's/^/| /' conftest.$ac_ext >&5
27308
27309
27310 echo "$as_me:$LINENO: result: no" >&5
27311echo "${ECHO_T}no" >&6
27312
27313fi
27314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27315
304205f1
VS
27316 CFLAGS="$save_CFLAGS"
27317 LIBS="$save_LIBS"
a848cd7e
SC
27318 else
27319 if test "$wxUSE_UNICODE" = "yes"; then
27320 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27321echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27322 wxUSE_UNICODE=no
27323 fi
27324 fi
27325
27326 if test "$USE_DARWIN" != 1; then
27327
27328for ac_func in poll
27329do
27330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27331echo "$as_me:$LINENO: checking for $ac_func" >&5
27332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27333if eval "test \"\${$as_ac_var+set}\" = set"; then
27334 echo $ECHO_N "(cached) $ECHO_C" >&6
27335else
27336 cat >conftest.$ac_ext <<_ACEOF
27337/* confdefs.h. */
27338_ACEOF
27339cat confdefs.h >>conftest.$ac_ext
27340cat >>conftest.$ac_ext <<_ACEOF
27341/* end confdefs.h. */
ac1cb8d3
VS
27342/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27344#define $ac_func innocuous_$ac_func
27345
a848cd7e
SC
27346/* System header to define __stub macros and hopefully few prototypes,
27347 which can conflict with char $ac_func (); below.
27348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27349 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27350
a848cd7e
SC
27351#ifdef __STDC__
27352# include <limits.h>
27353#else
27354# include <assert.h>
27355#endif
ac1cb8d3
VS
27356
27357#undef $ac_func
27358
a848cd7e
SC
27359/* Override any gcc2 internal prototype to avoid an error. */
27360#ifdef __cplusplus
27361extern "C"
27362{
27363#endif
27364/* We use char because int might match the return type of a gcc2
27365 builtin and then its argument prototype would still apply. */
27366char $ac_func ();
27367/* The GNU C library defines this for functions which it implements
27368 to always fail with ENOSYS. Some functions are actually named
27369 something starting with __ and the normal name is an alias. */
27370#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27371choke me
27372#else
27373char (*f) () = $ac_func;
27374#endif
27375#ifdef __cplusplus
27376}
27377#endif
27378
27379int
27380main ()
27381{
27382return f != $ac_func;
27383 ;
27384 return 0;
27385}
27386_ACEOF
27387rm -f conftest.$ac_objext conftest$ac_exeext
27388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27389 (eval $ac_link) 2>conftest.er1
a848cd7e 27390 ac_status=$?
ac1cb8d3
VS
27391 grep -v '^ *+' conftest.er1 >conftest.err
27392 rm -f conftest.er1
27393 cat conftest.err >&5
a848cd7e
SC
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); } &&
3565d135
RR
27396 { ac_try='test -z "$ac_c_werror_flag"
27397 || test ! -s conftest.err'
ac1cb8d3
VS
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; } &&
27403 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; }; then
27409 eval "$as_ac_var=yes"
27410else
27411 echo "$as_me: failed program was:" >&5
27412sed 's/^/| /' conftest.$ac_ext >&5
27413
27414eval "$as_ac_var=no"
27415fi
ac1cb8d3
VS
27416rm -f conftest.err conftest.$ac_objext \
27417 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27418fi
27419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27420echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27421if test `eval echo '${'$as_ac_var'}'` = yes; then
27422 cat >>confdefs.h <<_ACEOF
27423#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27424_ACEOF
27425
27426fi
27427done
27428
27429 fi
27430
27431 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27432 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27433
27434 AFMINSTALL=afminstall
27435 TOOLKIT=GTK
27436 GUIDIST=GTK_DIST
27437
27438 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27439echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27440if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27441 echo $ECHO_N "(cached) $ECHO_C" >&6
27442else
27443 ac_check_lib_save_LIBS=$LIBS
27444LIBS="-lgdk $LIBS"
27445cat >conftest.$ac_ext <<_ACEOF
27446/* confdefs.h. */
27447_ACEOF
27448cat confdefs.h >>conftest.$ac_ext
27449cat >>conftest.$ac_ext <<_ACEOF
27450/* end confdefs.h. */
27451
27452/* Override any gcc2 internal prototype to avoid an error. */
27453#ifdef __cplusplus
27454extern "C"
27455#endif
27456/* We use char because int might match the return type of a gcc2
27457 builtin and then its argument prototype would still apply. */
27458char gdk_im_open ();
27459int
27460main ()
27461{
27462gdk_im_open ();
27463 ;
27464 return 0;
27465}
27466_ACEOF
27467rm -f conftest.$ac_objext conftest$ac_exeext
27468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27469 (eval $ac_link) 2>conftest.er1
a848cd7e 27470 ac_status=$?
ac1cb8d3
VS
27471 grep -v '^ *+' conftest.er1 >conftest.err
27472 rm -f conftest.er1
27473 cat conftest.err >&5
a848cd7e
SC
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); } &&
3565d135
RR
27476 { ac_try='test -z "$ac_c_werror_flag"
27477 || test ! -s conftest.err'
ac1cb8d3
VS
27478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27479 (eval $ac_try) 2>&5
27480 ac_status=$?
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); }; } &&
27483 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27485 (eval $ac_try) 2>&5
27486 ac_status=$?
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); }; }; then
27489 ac_cv_lib_gdk_gdk_im_open=yes
27490else
27491 echo "$as_me: failed program was:" >&5
27492sed 's/^/| /' conftest.$ac_ext >&5
27493
27494ac_cv_lib_gdk_gdk_im_open=no
27495fi
ac1cb8d3
VS
27496rm -f conftest.err conftest.$ac_objext \
27497 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27498LIBS=$ac_check_lib_save_LIBS
27499fi
27500echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27501echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27502if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27503 cat >>confdefs.h <<\_ACEOF
27504#define HAVE_XIM 1
27505_ACEOF
27506
27507fi
27508
27509
27510
27511 if test "$wxUSE_GPE" = "yes"; then
27512 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27513echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27514
0ad5d837
VZ
27515 ac_find_libraries=
27516 for ac_dir in $SEARCH_LIB;
a848cd7e 27517 do
3eca31dc 27518 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27519 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27520 ac_find_libraries=$ac_dir
27521 break 2
27522 fi
27523 done
27524 done
27525
27526 if test "$ac_find_libraries" != "" ; then
27527
0ad5d837 27528 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27529 ac_path_to_link=""
27530 else
0ad5d837
VZ
27531 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27532 result=$?
27533 if test $result = 0; then
27534 ac_path_to_link=""
27535 else
27536 ac_path_to_link=" -L$ac_find_libraries"
27537 fi
a848cd7e
SC
27538 fi
27539
27540 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27541 WXGPE=1
0ad5d837
VZ
27542 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27543echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27544 else
27545 echo "$as_me:$LINENO: result: not found" >&5
27546echo "${ECHO_T}not found" >&6
27547 fi
27548
27549 fi
27550 fi
27551
27552 if test "$wxUSE_MGL" = 1; then
27553 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27554echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27555 if test "x$MGL_ROOT" = x ; then
27556 echo "$as_me:$LINENO: result: not found" >&5
27557echo "${ECHO_T}not found" >&6
27558 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27559echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27560 { (exit 1); exit 1; }; }
27561 else
27562 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27563echo "${ECHO_T}$MGL_ROOT" >&6
27564 fi
27565
27566 echo "$as_me:$LINENO: checking for libmgl location" >&5
27567echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27568 case "${host}" in
27569 *-*-linux* )
27570 if test "x$wxUSE_SHARED" = xyes ; then
27571 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27572 else
27573 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27574 fi
27575 ;;
27576 *-pc-msdosdjgpp )
27577 mgl_os_candidates="dos32/dj2"
27578 ;;
27579 *)
27580 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27581echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27582 { (exit 1); exit 1; }; }
27583 esac
27584
27585 mgl_lib_type=""
27586 mgl_os=""
27587
27588 for mgl_os_i in $mgl_os_candidates ; do
27589 if test "x$mgl_os" = x ; then
27590 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27591 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27592 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27593 mgl_lib_type=debug
27594 mgl_os=$mgl_os_i
27595 fi
27596 fi
27597 if test "x$mgl_lib_type" = x ; then
27598 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27599 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27600 mgl_lib_type=release
27601 mgl_os=$mgl_os_i
27602 fi
27603 fi
27604 fi
27605 done
27606
27607 if test "x$mgl_os" = x ; then
27608 echo "$as_me:$LINENO: result: not found" >&5
27609echo "${ECHO_T}not found" >&6
27610 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27611echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27612 { (exit 1); exit 1; }; }
27613 fi
27614 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27615echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27616
27617 wxUSE_UNIVERSAL="yes"
27618
27619 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27620 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27621
27622 AFMINSTALL=afminstall
27623 TOOLKIT=MGL
27624 GUIDIST=MGL_DIST
27625 fi
27626
27627 if test "$wxUSE_MICROWIN" = 1; then
27628 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27629echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27630 if test "x$MICROWINDOWS" = x ; then
27631 echo "$as_me:$LINENO: result: not found" >&5
27632echo "${ECHO_T}not found" >&6
27633 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27634echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27635 { (exit 1); exit 1; }; }
27636 else
27637 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27638echo "${ECHO_T}$MICROWINDOWS" >&6
27639 fi
27640
27641 if test -f $MICROWINDOWS/lib/libmwin.a; then
27642 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27643echo "${ECHO_T}MicroWindows' libraries found." >&6
27644 else
27645 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27646echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27647 { (exit 1); exit 1; }; }
27648 fi
27649
27650 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27651 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27652
27653 wxUSE_UNIVERSAL="yes"
27654
27655 AFMINSTALL=afminstall
27656 TOOLKIT=MICROWIN
27657 GUIDIST=MICROWIN_DIST
27658
27659 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27660 fi
27661
74b84332 27662 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
3565d135 27663 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27664echo $ECHO_N "checking for X... $ECHO_C" >&6
27665
27666
27667# Check whether --with-x or --without-x was given.
27668if test "${with_x+set}" = set; then
27669 withval="$with_x"
27670
27671fi;
27672# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27673if test "x$with_x" = xno; then
27674 # The user explicitly disabled X.
27675 have_x=disabled
27676else
27677 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27678 # Both variables are already set.
27679 have_x=yes
27680 else
27681 if test "${ac_cv_have_x+set}" = set; then
27682 echo $ECHO_N "(cached) $ECHO_C" >&6
27683else
27684 # One or both of the vars are not set, and there is no cached value.
27685ac_x_includes=no ac_x_libraries=no
27686rm -fr conftest.dir
27687if mkdir conftest.dir; then
27688 cd conftest.dir
27689 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27690 cat >Imakefile <<'_ACEOF'
27691acfindx:
27692 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27693_ACEOF
27694 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27695 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27696 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27697 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27698 for ac_extension in a so sl; do
27699 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27700 test -f $ac_im_libdir/libX11.$ac_extension; then
27701 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27702 fi
27703 done
27704 # Screen out bogus values from the imake configuration. They are
27705 # bogus both because they are the default anyway, and because
27706 # using them would break gcc on systems where it needs fixed includes.
27707 case $ac_im_incroot in
27708 /usr/include) ;;
27709 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27710 esac
27711 case $ac_im_usrlibdir in
27712 /usr/lib | /lib) ;;
27713 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27714 esac
27715 fi
27716 cd ..
27717 rm -fr conftest.dir
27718fi
27719
27720# Standard set of common directories for X headers.
27721# Check X11 before X11Rn because it is often a symlink to the current release.
27722ac_x_header_dirs='
27723/usr/X11/include
27724/usr/X11R6/include
27725/usr/X11R5/include
27726/usr/X11R4/include
27727
27728/usr/include/X11
27729/usr/include/X11R6
27730/usr/include/X11R5
27731/usr/include/X11R4
27732
27733/usr/local/X11/include
27734/usr/local/X11R6/include
27735/usr/local/X11R5/include
27736/usr/local/X11R4/include
27737
27738/usr/local/include/X11
27739/usr/local/include/X11R6
27740/usr/local/include/X11R5
27741/usr/local/include/X11R4
27742
27743/usr/X386/include
27744/usr/x386/include
27745/usr/XFree86/include/X11
27746
27747/usr/include
27748/usr/local/include
27749/usr/unsupported/include
27750/usr/athena/include
27751/usr/local/x11r5/include
27752/usr/lpp/Xamples/include
27753
27754/usr/openwin/include
27755/usr/openwin/share/include'
27756
27757if test "$ac_x_includes" = no; then
3565d135 27758 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
27759 # First, try using that file with no special directory specified.
27760 cat >conftest.$ac_ext <<_ACEOF
27761/* confdefs.h. */
27762_ACEOF
27763cat confdefs.h >>conftest.$ac_ext
27764cat >>conftest.$ac_ext <<_ACEOF
27765/* end confdefs.h. */
3565d135 27766#include <X11/Intrinsic.h>
a848cd7e
SC
27767_ACEOF
27768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27770 ac_status=$?
27771 grep -v '^ *+' conftest.er1 >conftest.err
27772 rm -f conftest.er1
27773 cat conftest.err >&5
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); } >/dev/null; then
27776 if test -s conftest.err; then
27777 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27779 else
27780 ac_cpp_err=
27781 fi
27782else
27783 ac_cpp_err=yes
27784fi
27785if test -z "$ac_cpp_err"; then
27786 # We can compile using X headers with no special include directory.
27787ac_x_includes=
27788else
27789 echo "$as_me: failed program was:" >&5
27790sed 's/^/| /' conftest.$ac_ext >&5
27791
27792 for ac_dir in $ac_x_header_dirs; do
3565d135 27793 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
27794 ac_x_includes=$ac_dir
27795 break
27796 fi
27797done
27798fi
27799rm -f conftest.err conftest.$ac_ext
27800fi # $ac_x_includes = no
27801
27802if test "$ac_x_libraries" = no; then
27803 # Check for the libraries.
27804 # See if we find them without any special options.
27805 # Don't add to $LIBS permanently.
27806 ac_save_LIBS=$LIBS
3565d135 27807 LIBS="-lXt $LIBS"
a848cd7e
SC
27808 cat >conftest.$ac_ext <<_ACEOF
27809/* confdefs.h. */
27810_ACEOF
27811cat confdefs.h >>conftest.$ac_ext
27812cat >>conftest.$ac_ext <<_ACEOF
27813/* end confdefs.h. */
3565d135 27814#include <X11/Intrinsic.h>
a848cd7e
SC
27815int
27816main ()
27817{
3565d135 27818XtMalloc (0)
a848cd7e
SC
27819 ;
27820 return 0;
27821}
27822_ACEOF
27823rm -f conftest.$ac_objext conftest$ac_exeext
27824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27825 (eval $ac_link) 2>conftest.er1
a848cd7e 27826 ac_status=$?
ac1cb8d3
VS
27827 grep -v '^ *+' conftest.er1 >conftest.err
27828 rm -f conftest.er1
27829 cat conftest.err >&5
a848cd7e
SC
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); } &&
3565d135
RR
27832 { ac_try='test -z "$ac_c_werror_flag"
27833 || test ! -s conftest.err'
ac1cb8d3
VS
27834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835 (eval $ac_try) 2>&5
27836 ac_status=$?
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; } &&
27839 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841 (eval $ac_try) 2>&5
27842 ac_status=$?
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); }; }; then
27845 LIBS=$ac_save_LIBS
27846# We can link X programs with no special library path.
27847ac_x_libraries=
27848else
27849 echo "$as_me: failed program was:" >&5
27850sed 's/^/| /' conftest.$ac_ext >&5
27851
27852LIBS=$ac_save_LIBS
27853for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27854do
27855 # Don't even attempt the hair of trying to link an X program!
27856 for ac_extension in a so sl; do
3565d135 27857 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
27858 ac_x_libraries=$ac_dir
27859 break 2
27860 fi
27861 done
27862done
27863fi
ac1cb8d3
VS
27864rm -f conftest.err conftest.$ac_objext \
27865 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27866fi # $ac_x_libraries = no
27867
27868if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27869 # Didn't find X anywhere. Cache the known absence of X.
27870 ac_cv_have_x="have_x=no"
27871else
27872 # Record where we found X for the cache.
27873 ac_cv_have_x="have_x=yes \
ac1cb8d3 27874 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27875fi
27876fi
27877
27878 fi
27879 eval "$ac_cv_have_x"
27880fi # $with_x != no
27881
27882if test "$have_x" != yes; then
27883 echo "$as_me:$LINENO: result: $have_x" >&5
27884echo "${ECHO_T}$have_x" >&6
27885 no_x=yes
27886else
27887 # If each of the values was on the command line, it overrides each guess.
27888 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27889 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27890 # Update the cache value to reflect the command line values.
27891 ac_cv_have_x="have_x=yes \
27892 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3565d135
RR
27893 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
27894echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
27895fi
27896
27897if test "$no_x" = yes; then
27898 # Not all programs may use this symbol, but it does not hurt to define it.
27899
27900cat >>confdefs.h <<\_ACEOF
27901#define X_DISPLAY_MISSING 1
27902_ACEOF
27903
27904 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27905else
27906 if test -n "$x_includes"; then
27907 X_CFLAGS="$X_CFLAGS -I$x_includes"
27908 fi
27909
27910 # It would also be nice to do this for all -L options, not just this one.
27911 if test -n "$x_libraries"; then
27912 X_LIBS="$X_LIBS -L$x_libraries"
27913 # For Solaris; some versions of Sun CC require a space after -R and
27914 # others require no space. Words are not sufficient . . . .
27915 case `(uname -sr) 2>/dev/null` in
27916 "SunOS 5"*)
27917 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27918echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27919 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27920 cat >conftest.$ac_ext <<_ACEOF
27921/* confdefs.h. */
27922_ACEOF
27923cat confdefs.h >>conftest.$ac_ext
27924cat >>conftest.$ac_ext <<_ACEOF
27925/* end confdefs.h. */
27926
27927int
27928main ()
27929{
27930
27931 ;
27932 return 0;
27933}
27934_ACEOF
27935rm -f conftest.$ac_objext conftest$ac_exeext
27936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27937 (eval $ac_link) 2>conftest.er1
a848cd7e 27938 ac_status=$?
ac1cb8d3
VS
27939 grep -v '^ *+' conftest.er1 >conftest.err
27940 rm -f conftest.er1
27941 cat conftest.err >&5
a848cd7e
SC
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); } &&
3565d135
RR
27944 { ac_try='test -z "$ac_c_werror_flag"
27945 || test ! -s conftest.err'
ac1cb8d3
VS
27946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27947 (eval $ac_try) 2>&5
27948 ac_status=$?
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); }; } &&
27951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27953 (eval $ac_try) 2>&5
27954 ac_status=$?
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); }; }; then
27957 ac_R_nospace=yes
27958else
27959 echo "$as_me: failed program was:" >&5
27960sed 's/^/| /' conftest.$ac_ext >&5
27961
27962ac_R_nospace=no
27963fi
ac1cb8d3
VS
27964rm -f conftest.err conftest.$ac_objext \
27965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27966 if test $ac_R_nospace = yes; then
27967 echo "$as_me:$LINENO: result: no" >&5
27968echo "${ECHO_T}no" >&6
27969 X_LIBS="$X_LIBS -R$x_libraries"
27970 else
27971 LIBS="$ac_xsave_LIBS -R $x_libraries"
27972 cat >conftest.$ac_ext <<_ACEOF
27973/* confdefs.h. */
27974_ACEOF
27975cat confdefs.h >>conftest.$ac_ext
27976cat >>conftest.$ac_ext <<_ACEOF
27977/* end confdefs.h. */
27978
27979int
27980main ()
27981{
27982
27983 ;
27984 return 0;
27985}
27986_ACEOF
27987rm -f conftest.$ac_objext conftest$ac_exeext
27988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27989 (eval $ac_link) 2>conftest.er1
a848cd7e 27990 ac_status=$?
ac1cb8d3
VS
27991 grep -v '^ *+' conftest.er1 >conftest.err
27992 rm -f conftest.er1
27993 cat conftest.err >&5
a848cd7e
SC
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); } &&
3565d135
RR
27996 { ac_try='test -z "$ac_c_werror_flag"
27997 || test ! -s conftest.err'
ac1cb8d3
VS
27998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27999 (eval $ac_try) 2>&5
28000 ac_status=$?
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); }; } &&
28003 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28005 (eval $ac_try) 2>&5
28006 ac_status=$?
28007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008 (exit $ac_status); }; }; then
28009 ac_R_space=yes
28010else
28011 echo "$as_me: failed program was:" >&5
28012sed 's/^/| /' conftest.$ac_ext >&5
28013
28014ac_R_space=no
28015fi
ac1cb8d3
VS
28016rm -f conftest.err conftest.$ac_objext \
28017 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28018 if test $ac_R_space = yes; then
28019 echo "$as_me:$LINENO: result: yes" >&5
28020echo "${ECHO_T}yes" >&6
28021 X_LIBS="$X_LIBS -R $x_libraries"
28022 else
28023 echo "$as_me:$LINENO: result: neither works" >&5
28024echo "${ECHO_T}neither works" >&6
28025 fi
28026 fi
28027 LIBS=$ac_xsave_LIBS
28028 esac
28029 fi
28030
28031 # Check for system-dependent libraries X programs must link with.
28032 # Do this before checking for the system-independent R6 libraries
28033 # (-lICE), since we may need -lsocket or whatever for X linking.
28034
28035 if test "$ISC" = yes; then
28036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28037 else
28038 # Martyn Johnson says this is needed for Ultrix, if the X
28039 # libraries were built with DECnet support. And Karl Berry says
28040 # the Alpha needs dnet_stub (dnet does not exist).
28041 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28042 cat >conftest.$ac_ext <<_ACEOF
28043/* confdefs.h. */
28044_ACEOF
28045cat confdefs.h >>conftest.$ac_ext
28046cat >>conftest.$ac_ext <<_ACEOF
28047/* end confdefs.h. */
28048
28049/* Override any gcc2 internal prototype to avoid an error. */
28050#ifdef __cplusplus
28051extern "C"
28052#endif
28053/* We use char because int might match the return type of a gcc2
28054 builtin and then its argument prototype would still apply. */
28055char XOpenDisplay ();
28056int
28057main ()
28058{
28059XOpenDisplay ();
28060 ;
28061 return 0;
28062}
28063_ACEOF
28064rm -f conftest.$ac_objext conftest$ac_exeext
28065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28066 (eval $ac_link) 2>conftest.er1
a848cd7e 28067 ac_status=$?
ac1cb8d3
VS
28068 grep -v '^ *+' conftest.er1 >conftest.err
28069 rm -f conftest.er1
28070 cat conftest.err >&5
a848cd7e
SC
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); } &&
3565d135
RR
28073 { ac_try='test -z "$ac_c_werror_flag"
28074 || test ! -s conftest.err'
ac1cb8d3
VS
28075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076 (eval $ac_try) 2>&5
28077 ac_status=$?
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; } &&
28080 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082 (eval $ac_try) 2>&5
28083 ac_status=$?
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
28086 :
28087else
28088 echo "$as_me: failed program was:" >&5
28089sed 's/^/| /' conftest.$ac_ext >&5
28090
28091echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28092echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28093if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28094 echo $ECHO_N "(cached) $ECHO_C" >&6
28095else
28096 ac_check_lib_save_LIBS=$LIBS
28097LIBS="-ldnet $LIBS"
28098cat >conftest.$ac_ext <<_ACEOF
28099/* confdefs.h. */
28100_ACEOF
28101cat confdefs.h >>conftest.$ac_ext
28102cat >>conftest.$ac_ext <<_ACEOF
28103/* end confdefs.h. */
28104
28105/* Override any gcc2 internal prototype to avoid an error. */
28106#ifdef __cplusplus
28107extern "C"
28108#endif
28109/* We use char because int might match the return type of a gcc2
28110 builtin and then its argument prototype would still apply. */
28111char dnet_ntoa ();
28112int
28113main ()
28114{
28115dnet_ntoa ();
28116 ;
28117 return 0;
28118}
28119_ACEOF
28120rm -f conftest.$ac_objext conftest$ac_exeext
28121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28122 (eval $ac_link) 2>conftest.er1
a848cd7e 28123 ac_status=$?
ac1cb8d3
VS
28124 grep -v '^ *+' conftest.er1 >conftest.err
28125 rm -f conftest.er1
28126 cat conftest.err >&5
a848cd7e
SC
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); } &&
3565d135
RR
28129 { ac_try='test -z "$ac_c_werror_flag"
28130 || test ! -s conftest.err'
ac1cb8d3
VS
28131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28132 (eval $ac_try) 2>&5
28133 ac_status=$?
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); }; } &&
28136 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28138 (eval $ac_try) 2>&5
28139 ac_status=$?
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); }; }; then
28142 ac_cv_lib_dnet_dnet_ntoa=yes
28143else
28144 echo "$as_me: failed program was:" >&5
28145sed 's/^/| /' conftest.$ac_ext >&5
28146
28147ac_cv_lib_dnet_dnet_ntoa=no
28148fi
ac1cb8d3
VS
28149rm -f conftest.err conftest.$ac_objext \
28150 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28151LIBS=$ac_check_lib_save_LIBS
28152fi
28153echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28154echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28155if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28156 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28157fi
28158
28159 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28160 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28161echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28162if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28163 echo $ECHO_N "(cached) $ECHO_C" >&6
28164else
28165 ac_check_lib_save_LIBS=$LIBS
28166LIBS="-ldnet_stub $LIBS"
28167cat >conftest.$ac_ext <<_ACEOF
28168/* confdefs.h. */
28169_ACEOF
28170cat confdefs.h >>conftest.$ac_ext
28171cat >>conftest.$ac_ext <<_ACEOF
28172/* end confdefs.h. */
28173
28174/* Override any gcc2 internal prototype to avoid an error. */
28175#ifdef __cplusplus
28176extern "C"
28177#endif
28178/* We use char because int might match the return type of a gcc2
28179 builtin and then its argument prototype would still apply. */
28180char dnet_ntoa ();
28181int
28182main ()
28183{
28184dnet_ntoa ();
28185 ;
28186 return 0;
28187}
28188_ACEOF
28189rm -f conftest.$ac_objext conftest$ac_exeext
28190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28191 (eval $ac_link) 2>conftest.er1
a848cd7e 28192 ac_status=$?
ac1cb8d3
VS
28193 grep -v '^ *+' conftest.er1 >conftest.err
28194 rm -f conftest.er1
28195 cat conftest.err >&5
a848cd7e
SC
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); } &&
3565d135
RR
28198 { ac_try='test -z "$ac_c_werror_flag"
28199 || test ! -s conftest.err'
ac1cb8d3
VS
28200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28201 (eval $ac_try) 2>&5
28202 ac_status=$?
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); }; } &&
28205 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28207 (eval $ac_try) 2>&5
28208 ac_status=$?
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); }; }; then
28211 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28212else
28213 echo "$as_me: failed program was:" >&5
28214sed 's/^/| /' conftest.$ac_ext >&5
28215
28216ac_cv_lib_dnet_stub_dnet_ntoa=no
28217fi
ac1cb8d3
VS
28218rm -f conftest.err conftest.$ac_objext \
28219 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28220LIBS=$ac_check_lib_save_LIBS
28221fi
28222echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28223echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28224if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28225 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28226fi
28227
28228 fi
28229fi
ac1cb8d3
VS
28230rm -f conftest.err conftest.$ac_objext \
28231 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28232 LIBS="$ac_xsave_LIBS"
28233
28234 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28235 # to get the SysV transport functions.
28236 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28237 # needs -lnsl.
28238 # The nsl library prevents programs from opening the X display
28239 # on Irix 5.2, according to T.E. Dickey.
28240 # The functions gethostbyname, getservbyname, and inet_addr are
28241 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28242 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28243echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28244if test "${ac_cv_func_gethostbyname+set}" = set; then
28245 echo $ECHO_N "(cached) $ECHO_C" >&6
28246else
28247 cat >conftest.$ac_ext <<_ACEOF
28248/* confdefs.h. */
28249_ACEOF
28250cat confdefs.h >>conftest.$ac_ext
28251cat >>conftest.$ac_ext <<_ACEOF
28252/* end confdefs.h. */
ac1cb8d3
VS
28253/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28255#define gethostbyname innocuous_gethostbyname
28256
a848cd7e
SC
28257/* System header to define __stub macros and hopefully few prototypes,
28258 which can conflict with char gethostbyname (); below.
28259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28260 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28261
a848cd7e
SC
28262#ifdef __STDC__
28263# include <limits.h>
28264#else
28265# include <assert.h>
28266#endif
ac1cb8d3
VS
28267
28268#undef gethostbyname
28269
a848cd7e
SC
28270/* Override any gcc2 internal prototype to avoid an error. */
28271#ifdef __cplusplus
28272extern "C"
28273{
28274#endif
28275/* We use char because int might match the return type of a gcc2
28276 builtin and then its argument prototype would still apply. */
28277char gethostbyname ();
28278/* The GNU C library defines this for functions which it implements
28279 to always fail with ENOSYS. Some functions are actually named
28280 something starting with __ and the normal name is an alias. */
28281#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28282choke me
28283#else
28284char (*f) () = gethostbyname;
28285#endif
28286#ifdef __cplusplus
28287}
28288#endif
28289
28290int
28291main ()
28292{
28293return f != gethostbyname;
28294 ;
28295 return 0;
28296}
28297_ACEOF
28298rm -f conftest.$ac_objext conftest$ac_exeext
28299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28300 (eval $ac_link) 2>conftest.er1
a848cd7e 28301 ac_status=$?
ac1cb8d3
VS
28302 grep -v '^ *+' conftest.er1 >conftest.err
28303 rm -f conftest.er1
28304 cat conftest.err >&5
a848cd7e
SC
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); } &&
3565d135
RR
28307 { ac_try='test -z "$ac_c_werror_flag"
28308 || test ! -s conftest.err'
ac1cb8d3
VS
28309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28310 (eval $ac_try) 2>&5
28311 ac_status=$?
28312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313 (exit $ac_status); }; } &&
28314 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28316 (eval $ac_try) 2>&5
28317 ac_status=$?
28318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319 (exit $ac_status); }; }; then
28320 ac_cv_func_gethostbyname=yes
28321else
28322 echo "$as_me: failed program was:" >&5
28323sed 's/^/| /' conftest.$ac_ext >&5
28324
28325ac_cv_func_gethostbyname=no
28326fi
ac1cb8d3
VS
28327rm -f conftest.err conftest.$ac_objext \
28328 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28329fi
28330echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28331echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28332
28333 if test $ac_cv_func_gethostbyname = no; then
28334 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28335echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28336if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28337 echo $ECHO_N "(cached) $ECHO_C" >&6
28338else
28339 ac_check_lib_save_LIBS=$LIBS
28340LIBS="-lnsl $LIBS"
28341cat >conftest.$ac_ext <<_ACEOF
28342/* confdefs.h. */
28343_ACEOF
28344cat confdefs.h >>conftest.$ac_ext
28345cat >>conftest.$ac_ext <<_ACEOF
28346/* end confdefs.h. */
28347
28348/* Override any gcc2 internal prototype to avoid an error. */
28349#ifdef __cplusplus
28350extern "C"
28351#endif
28352/* We use char because int might match the return type of a gcc2
28353 builtin and then its argument prototype would still apply. */
28354char gethostbyname ();
28355int
28356main ()
28357{
28358gethostbyname ();
28359 ;
28360 return 0;
28361}
28362_ACEOF
28363rm -f conftest.$ac_objext conftest$ac_exeext
28364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28365 (eval $ac_link) 2>conftest.er1
28366 ac_status=$?
28367 grep -v '^ *+' conftest.er1 >conftest.err
28368 rm -f conftest.er1
28369 cat conftest.err >&5
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); } &&
3565d135
RR
28372 { ac_try='test -z "$ac_c_werror_flag"
28373 || test ! -s conftest.err'
ac1cb8d3
VS
28374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28375 (eval $ac_try) 2>&5
28376 ac_status=$?
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); }; } &&
28379 { ac_try='test -s conftest$ac_exeext'
28380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28381 (eval $ac_try) 2>&5
28382 ac_status=$?
28383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); }; }; then
28385 ac_cv_lib_nsl_gethostbyname=yes
28386else
28387 echo "$as_me: failed program was:" >&5
28388sed 's/^/| /' conftest.$ac_ext >&5
28389
28390ac_cv_lib_nsl_gethostbyname=no
28391fi
28392rm -f conftest.err conftest.$ac_objext \
28393 conftest$ac_exeext conftest.$ac_ext
28394LIBS=$ac_check_lib_save_LIBS
28395fi
28396echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28397echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28398if test $ac_cv_lib_nsl_gethostbyname = yes; then
28399 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28400fi
28401
28402 if test $ac_cv_lib_nsl_gethostbyname = no; then
28403 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28404echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28405if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28406 echo $ECHO_N "(cached) $ECHO_C" >&6
28407else
28408 ac_check_lib_save_LIBS=$LIBS
28409LIBS="-lbsd $LIBS"
28410cat >conftest.$ac_ext <<_ACEOF
28411/* confdefs.h. */
28412_ACEOF
28413cat confdefs.h >>conftest.$ac_ext
28414cat >>conftest.$ac_ext <<_ACEOF
28415/* end confdefs.h. */
28416
28417/* Override any gcc2 internal prototype to avoid an error. */
28418#ifdef __cplusplus
28419extern "C"
28420#endif
28421/* We use char because int might match the return type of a gcc2
28422 builtin and then its argument prototype would still apply. */
28423char gethostbyname ();
28424int
28425main ()
28426{
28427gethostbyname ();
28428 ;
28429 return 0;
28430}
28431_ACEOF
28432rm -f conftest.$ac_objext conftest$ac_exeext
28433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28434 (eval $ac_link) 2>conftest.er1
a848cd7e 28435 ac_status=$?
ac1cb8d3
VS
28436 grep -v '^ *+' conftest.er1 >conftest.err
28437 rm -f conftest.er1
28438 cat conftest.err >&5
a848cd7e
SC
28439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440 (exit $ac_status); } &&
3565d135
RR
28441 { ac_try='test -z "$ac_c_werror_flag"
28442 || test ! -s conftest.err'
a848cd7e
SC
28443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28444 (eval $ac_try) 2>&5
28445 ac_status=$?
28446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28447 (exit $ac_status); }; } &&
28448 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28450 (eval $ac_try) 2>&5
28451 ac_status=$?
28452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453 (exit $ac_status); }; }; then
28454 ac_cv_lib_bsd_gethostbyname=yes
28455else
28456 echo "$as_me: failed program was:" >&5
28457sed 's/^/| /' conftest.$ac_ext >&5
28458
28459ac_cv_lib_bsd_gethostbyname=no
28460fi
ac1cb8d3
VS
28461rm -f conftest.err conftest.$ac_objext \
28462 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28463LIBS=$ac_check_lib_save_LIBS
28464fi
28465echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28466echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28467if test $ac_cv_lib_bsd_gethostbyname = yes; then
28468 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28469fi
28470
28471 fi
28472 fi
28473
28474 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28475 # socket/setsockopt and other routines are undefined under SCO ODT
28476 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28477 # on later versions), says Simon Leinen: it contains gethostby*
28478 # variants that don't use the name server (or something). -lsocket
28479 # must be given before -lnsl if both are needed. We assume that
28480 # if connect needs -lnsl, so does gethostbyname.
28481 echo "$as_me:$LINENO: checking for connect" >&5
28482echo $ECHO_N "checking for connect... $ECHO_C" >&6
28483if test "${ac_cv_func_connect+set}" = set; then
28484 echo $ECHO_N "(cached) $ECHO_C" >&6
28485else
28486 cat >conftest.$ac_ext <<_ACEOF
28487/* confdefs.h. */
28488_ACEOF
28489cat confdefs.h >>conftest.$ac_ext
28490cat >>conftest.$ac_ext <<_ACEOF
28491/* end confdefs.h. */
ac1cb8d3
VS
28492/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28494#define connect innocuous_connect
28495
a848cd7e
SC
28496/* System header to define __stub macros and hopefully few prototypes,
28497 which can conflict with char connect (); below.
28498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28499 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28500
a848cd7e
SC
28501#ifdef __STDC__
28502# include <limits.h>
28503#else
28504# include <assert.h>
28505#endif
ac1cb8d3
VS
28506
28507#undef connect
28508
a848cd7e
SC
28509/* Override any gcc2 internal prototype to avoid an error. */
28510#ifdef __cplusplus
28511extern "C"
28512{
28513#endif
28514/* We use char because int might match the return type of a gcc2
28515 builtin and then its argument prototype would still apply. */
28516char connect ();
28517/* The GNU C library defines this for functions which it implements
28518 to always fail with ENOSYS. Some functions are actually named
28519 something starting with __ and the normal name is an alias. */
28520#if defined (__stub_connect) || defined (__stub___connect)
28521choke me
28522#else
28523char (*f) () = connect;
28524#endif
28525#ifdef __cplusplus
28526}
28527#endif
28528
28529int
28530main ()
28531{
28532return f != connect;
28533 ;
28534 return 0;
28535}
28536_ACEOF
28537rm -f conftest.$ac_objext conftest$ac_exeext
28538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28539 (eval $ac_link) 2>conftest.er1
a848cd7e 28540 ac_status=$?
ac1cb8d3
VS
28541 grep -v '^ *+' conftest.er1 >conftest.err
28542 rm -f conftest.er1
28543 cat conftest.err >&5
a848cd7e
SC
28544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 (exit $ac_status); } &&
3565d135
RR
28546 { ac_try='test -z "$ac_c_werror_flag"
28547 || test ! -s conftest.err'
ac1cb8d3
VS
28548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28549 (eval $ac_try) 2>&5
28550 ac_status=$?
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); }; } &&
28553 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28555 (eval $ac_try) 2>&5
28556 ac_status=$?
28557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558 (exit $ac_status); }; }; then
28559 ac_cv_func_connect=yes
28560else
28561 echo "$as_me: failed program was:" >&5
28562sed 's/^/| /' conftest.$ac_ext >&5
28563
28564ac_cv_func_connect=no
28565fi
ac1cb8d3
VS
28566rm -f conftest.err conftest.$ac_objext \
28567 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28568fi
28569echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28570echo "${ECHO_T}$ac_cv_func_connect" >&6
28571
28572 if test $ac_cv_func_connect = no; then
28573 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28574echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28575if test "${ac_cv_lib_socket_connect+set}" = set; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28577else
28578 ac_check_lib_save_LIBS=$LIBS
28579LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28580cat >conftest.$ac_ext <<_ACEOF
28581/* confdefs.h. */
28582_ACEOF
28583cat confdefs.h >>conftest.$ac_ext
28584cat >>conftest.$ac_ext <<_ACEOF
28585/* end confdefs.h. */
28586
28587/* Override any gcc2 internal prototype to avoid an error. */
28588#ifdef __cplusplus
28589extern "C"
28590#endif
28591/* We use char because int might match the return type of a gcc2
28592 builtin and then its argument prototype would still apply. */
28593char connect ();
28594int
28595main ()
28596{
28597connect ();
28598 ;
28599 return 0;
28600}
28601_ACEOF
28602rm -f conftest.$ac_objext conftest$ac_exeext
28603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28604 (eval $ac_link) 2>conftest.er1
a848cd7e 28605 ac_status=$?
ac1cb8d3
VS
28606 grep -v '^ *+' conftest.er1 >conftest.err
28607 rm -f conftest.er1
28608 cat conftest.err >&5
a848cd7e
SC
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); } &&
3565d135
RR
28611 { ac_try='test -z "$ac_c_werror_flag"
28612 || test ! -s conftest.err'
ac1cb8d3
VS
28613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614 (eval $ac_try) 2>&5
28615 ac_status=$?
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); }; } &&
28618 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620 (eval $ac_try) 2>&5
28621 ac_status=$?
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); }; }; then
28624 ac_cv_lib_socket_connect=yes
28625else
28626 echo "$as_me: failed program was:" >&5
28627sed 's/^/| /' conftest.$ac_ext >&5
28628
28629ac_cv_lib_socket_connect=no
28630fi
ac1cb8d3
VS
28631rm -f conftest.err conftest.$ac_objext \
28632 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28633LIBS=$ac_check_lib_save_LIBS
28634fi
28635echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28636echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28637if test $ac_cv_lib_socket_connect = yes; then
28638 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28639fi
28640
28641 fi
28642
28643 # Guillermo Gomez says -lposix is necessary on A/UX.
28644 echo "$as_me:$LINENO: checking for remove" >&5
28645echo $ECHO_N "checking for remove... $ECHO_C" >&6
28646if test "${ac_cv_func_remove+set}" = set; then
28647 echo $ECHO_N "(cached) $ECHO_C" >&6
28648else
28649 cat >conftest.$ac_ext <<_ACEOF
28650/* confdefs.h. */
28651_ACEOF
28652cat confdefs.h >>conftest.$ac_ext
28653cat >>conftest.$ac_ext <<_ACEOF
28654/* end confdefs.h. */
ac1cb8d3
VS
28655/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28657#define remove innocuous_remove
28658
a848cd7e
SC
28659/* System header to define __stub macros and hopefully few prototypes,
28660 which can conflict with char remove (); below.
28661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28662 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28663
a848cd7e
SC
28664#ifdef __STDC__
28665# include <limits.h>
28666#else
28667# include <assert.h>
28668#endif
ac1cb8d3
VS
28669
28670#undef remove
28671
a848cd7e
SC
28672/* Override any gcc2 internal prototype to avoid an error. */
28673#ifdef __cplusplus
28674extern "C"
28675{
28676#endif
28677/* We use char because int might match the return type of a gcc2
28678 builtin and then its argument prototype would still apply. */
28679char remove ();
28680/* The GNU C library defines this for functions which it implements
28681 to always fail with ENOSYS. Some functions are actually named
28682 something starting with __ and the normal name is an alias. */
28683#if defined (__stub_remove) || defined (__stub___remove)
28684choke me
28685#else
28686char (*f) () = remove;
28687#endif
28688#ifdef __cplusplus
28689}
28690#endif
28691
28692int
28693main ()
28694{
28695return f != remove;
28696 ;
28697 return 0;
28698}
28699_ACEOF
28700rm -f conftest.$ac_objext conftest$ac_exeext
28701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28702 (eval $ac_link) 2>conftest.er1
a848cd7e 28703 ac_status=$?
ac1cb8d3
VS
28704 grep -v '^ *+' conftest.er1 >conftest.err
28705 rm -f conftest.er1
28706 cat conftest.err >&5
a848cd7e
SC
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); } &&
3565d135
RR
28709 { ac_try='test -z "$ac_c_werror_flag"
28710 || test ! -s conftest.err'
ac1cb8d3
VS
28711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28712 (eval $ac_try) 2>&5
28713 ac_status=$?
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); }; } &&
28716 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718 (eval $ac_try) 2>&5
28719 ac_status=$?
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; }; then
28722 ac_cv_func_remove=yes
28723else
28724 echo "$as_me: failed program was:" >&5
28725sed 's/^/| /' conftest.$ac_ext >&5
28726
28727ac_cv_func_remove=no
28728fi
ac1cb8d3
VS
28729rm -f conftest.err conftest.$ac_objext \
28730 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28731fi
28732echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28733echo "${ECHO_T}$ac_cv_func_remove" >&6
28734
28735 if test $ac_cv_func_remove = no; then
28736 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28737echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28738if test "${ac_cv_lib_posix_remove+set}" = set; then
28739 echo $ECHO_N "(cached) $ECHO_C" >&6
28740else
28741 ac_check_lib_save_LIBS=$LIBS
28742LIBS="-lposix $LIBS"
28743cat >conftest.$ac_ext <<_ACEOF
28744/* confdefs.h. */
28745_ACEOF
28746cat confdefs.h >>conftest.$ac_ext
28747cat >>conftest.$ac_ext <<_ACEOF
28748/* end confdefs.h. */
28749
28750/* Override any gcc2 internal prototype to avoid an error. */
28751#ifdef __cplusplus
28752extern "C"
28753#endif
28754/* We use char because int might match the return type of a gcc2
28755 builtin and then its argument prototype would still apply. */
28756char remove ();
28757int
28758main ()
28759{
28760remove ();
28761 ;
28762 return 0;
28763}
28764_ACEOF
28765rm -f conftest.$ac_objext conftest$ac_exeext
28766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28767 (eval $ac_link) 2>conftest.er1
a848cd7e 28768 ac_status=$?
ac1cb8d3
VS
28769 grep -v '^ *+' conftest.er1 >conftest.err
28770 rm -f conftest.er1
28771 cat conftest.err >&5
a848cd7e
SC
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } &&
3565d135
RR
28774 { ac_try='test -z "$ac_c_werror_flag"
28775 || test ! -s conftest.err'
ac1cb8d3
VS
28776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28777 (eval $ac_try) 2>&5
28778 ac_status=$?
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); }; } &&
28781 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28783 (eval $ac_try) 2>&5
28784 ac_status=$?
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); }; }; then
28787 ac_cv_lib_posix_remove=yes
28788else
28789 echo "$as_me: failed program was:" >&5
28790sed 's/^/| /' conftest.$ac_ext >&5
28791
28792ac_cv_lib_posix_remove=no
28793fi
ac1cb8d3
VS
28794rm -f conftest.err conftest.$ac_objext \
28795 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28796LIBS=$ac_check_lib_save_LIBS
28797fi
28798echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28799echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28800if test $ac_cv_lib_posix_remove = yes; then
28801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28802fi
28803
28804 fi
28805
28806 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28807 echo "$as_me:$LINENO: checking for shmat" >&5
28808echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28809if test "${ac_cv_func_shmat+set}" = set; then
28810 echo $ECHO_N "(cached) $ECHO_C" >&6
28811else
28812 cat >conftest.$ac_ext <<_ACEOF
28813/* confdefs.h. */
28814_ACEOF
28815cat confdefs.h >>conftest.$ac_ext
28816cat >>conftest.$ac_ext <<_ACEOF
28817/* end confdefs.h. */
ac1cb8d3
VS
28818/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28820#define shmat innocuous_shmat
28821
a848cd7e
SC
28822/* System header to define __stub macros and hopefully few prototypes,
28823 which can conflict with char shmat (); below.
28824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28825 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28826
a848cd7e
SC
28827#ifdef __STDC__
28828# include <limits.h>
28829#else
28830# include <assert.h>
28831#endif
ac1cb8d3
VS
28832
28833#undef shmat
28834
a848cd7e
SC
28835/* Override any gcc2 internal prototype to avoid an error. */
28836#ifdef __cplusplus
28837extern "C"
28838{
28839#endif
28840/* We use char because int might match the return type of a gcc2
28841 builtin and then its argument prototype would still apply. */
28842char shmat ();
28843/* The GNU C library defines this for functions which it implements
28844 to always fail with ENOSYS. Some functions are actually named
28845 something starting with __ and the normal name is an alias. */
28846#if defined (__stub_shmat) || defined (__stub___shmat)
28847choke me
28848#else
28849char (*f) () = shmat;
28850#endif
28851#ifdef __cplusplus
28852}
28853#endif
28854
28855int
28856main ()
28857{
28858return f != shmat;
28859 ;
28860 return 0;
28861}
28862_ACEOF
28863rm -f conftest.$ac_objext conftest$ac_exeext
28864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28865 (eval $ac_link) 2>conftest.er1
a848cd7e 28866 ac_status=$?
ac1cb8d3
VS
28867 grep -v '^ *+' conftest.er1 >conftest.err
28868 rm -f conftest.er1
28869 cat conftest.err >&5
a848cd7e
SC
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); } &&
3565d135
RR
28872 { ac_try='test -z "$ac_c_werror_flag"
28873 || test ! -s conftest.err'
ac1cb8d3
VS
28874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28875 (eval $ac_try) 2>&5
28876 ac_status=$?
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; } &&
28879 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881 (eval $ac_try) 2>&5
28882 ac_status=$?
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; }; then
28885 ac_cv_func_shmat=yes
28886else
28887 echo "$as_me: failed program was:" >&5
28888sed 's/^/| /' conftest.$ac_ext >&5
28889
28890ac_cv_func_shmat=no
28891fi
ac1cb8d3
VS
28892rm -f conftest.err conftest.$ac_objext \
28893 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28894fi
28895echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28896echo "${ECHO_T}$ac_cv_func_shmat" >&6
28897
28898 if test $ac_cv_func_shmat = no; then
28899 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28900echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28901if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28902 echo $ECHO_N "(cached) $ECHO_C" >&6
28903else
28904 ac_check_lib_save_LIBS=$LIBS
28905LIBS="-lipc $LIBS"
28906cat >conftest.$ac_ext <<_ACEOF
28907/* confdefs.h. */
28908_ACEOF
28909cat confdefs.h >>conftest.$ac_ext
28910cat >>conftest.$ac_ext <<_ACEOF
28911/* end confdefs.h. */
28912
28913/* Override any gcc2 internal prototype to avoid an error. */
28914#ifdef __cplusplus
28915extern "C"
28916#endif
28917/* We use char because int might match the return type of a gcc2
28918 builtin and then its argument prototype would still apply. */
28919char shmat ();
28920int
28921main ()
28922{
28923shmat ();
28924 ;
28925 return 0;
28926}
28927_ACEOF
28928rm -f conftest.$ac_objext conftest$ac_exeext
28929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28930 (eval $ac_link) 2>conftest.er1
a848cd7e 28931 ac_status=$?
ac1cb8d3
VS
28932 grep -v '^ *+' conftest.er1 >conftest.err
28933 rm -f conftest.er1
28934 cat conftest.err >&5
a848cd7e
SC
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); } &&
3565d135
RR
28937 { ac_try='test -z "$ac_c_werror_flag"
28938 || test ! -s conftest.err'
ac1cb8d3
VS
28939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28940 (eval $ac_try) 2>&5
28941 ac_status=$?
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); }; } &&
28944 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28946 (eval $ac_try) 2>&5
28947 ac_status=$?
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); }; }; then
28950 ac_cv_lib_ipc_shmat=yes
28951else
28952 echo "$as_me: failed program was:" >&5
28953sed 's/^/| /' conftest.$ac_ext >&5
28954
28955ac_cv_lib_ipc_shmat=no
28956fi
ac1cb8d3
VS
28957rm -f conftest.err conftest.$ac_objext \
28958 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28959LIBS=$ac_check_lib_save_LIBS
28960fi
28961echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28962echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28963if test $ac_cv_lib_ipc_shmat = yes; then
28964 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28965fi
28966
28967 fi
28968 fi
28969
28970 # Check for libraries that X11R6 Xt/Xaw programs need.
28971 ac_save_LDFLAGS=$LDFLAGS
28972 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28973 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28974 # check for ICE first), but we must link in the order -lSM -lICE or
28975 # we get undefined symbols. So assume we have SM if we have ICE.
28976 # These have to be linked with before -lX11, unlike the other
28977 # libraries we check for below, so use a different variable.
28978 # John Interrante, Karl Berry
28979 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28980echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28981if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28982 echo $ECHO_N "(cached) $ECHO_C" >&6
28983else
28984 ac_check_lib_save_LIBS=$LIBS
28985LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28986cat >conftest.$ac_ext <<_ACEOF
28987/* confdefs.h. */
28988_ACEOF
28989cat confdefs.h >>conftest.$ac_ext
28990cat >>conftest.$ac_ext <<_ACEOF
28991/* end confdefs.h. */
28992
28993/* Override any gcc2 internal prototype to avoid an error. */
28994#ifdef __cplusplus
28995extern "C"
28996#endif
28997/* We use char because int might match the return type of a gcc2
28998 builtin and then its argument prototype would still apply. */
28999char IceConnectionNumber ();
29000int
29001main ()
29002{
29003IceConnectionNumber ();
29004 ;
29005 return 0;
29006}
29007_ACEOF
29008rm -f conftest.$ac_objext conftest$ac_exeext
29009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29010 (eval $ac_link) 2>conftest.er1
a848cd7e 29011 ac_status=$?
ac1cb8d3
VS
29012 grep -v '^ *+' conftest.er1 >conftest.err
29013 rm -f conftest.er1
29014 cat conftest.err >&5
a848cd7e
SC
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); } &&
3565d135
RR
29017 { ac_try='test -z "$ac_c_werror_flag"
29018 || test ! -s conftest.err'
ac1cb8d3
VS
29019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020 (eval $ac_try) 2>&5
29021 ac_status=$?
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; } &&
29024 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026 (eval $ac_try) 2>&5
29027 ac_status=$?
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; }; then
29030 ac_cv_lib_ICE_IceConnectionNumber=yes
29031else
29032 echo "$as_me: failed program was:" >&5
29033sed 's/^/| /' conftest.$ac_ext >&5
29034
29035ac_cv_lib_ICE_IceConnectionNumber=no
29036fi
ac1cb8d3
VS
29037rm -f conftest.err conftest.$ac_objext \
29038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29039LIBS=$ac_check_lib_save_LIBS
29040fi
29041echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29042echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29043if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29044 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29045fi
29046
29047 LDFLAGS=$ac_save_LDFLAGS
29048
29049fi
29050
29051
29052 if test "$no_x" = "yes"; then
89d90d6d
VZ
29053 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29054echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29055 { (exit 1); exit 1; }; }
a848cd7e
SC
29056 fi
29057
74b84332
VS
29058 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29059 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29060 AFMINSTALL=afminstall
29061 COMPILED_X_PROGRAM=0
29062
74b84332
VS
29063 fi
29064
29065 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29066 if test "$wxUSE_NANOX" = "yes"; then
29067 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29068echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29069 if test "x$MICROWIN" = x ; then
29070 echo "$as_me:$LINENO: result: not found" >&5
29071echo "${ECHO_T}not found" >&6
29072 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29073echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29074 { (exit 1); exit 1; }; }
29075 else
29076 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29077echo "${ECHO_T}$MICROWIN" >&6
29078 cat >>confdefs.h <<\_ACEOF
29079#define wxUSE_NANOX 1
29080_ACEOF
29081
29082 fi
29083 fi
29084
29085 if test "$wxUSE_UNICODE" = "yes"; then
29086
29087 succeeded=no
29088
29089 if test -z "$PKG_CONFIG"; then
29090 # Extract the first word of "pkg-config", so it can be a program name with args.
29091set dummy pkg-config; ac_word=$2
29092echo "$as_me:$LINENO: checking for $ac_word" >&5
29093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29094if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29096else
29097 case $PKG_CONFIG in
29098 [\\/]* | ?:[\\/]*)
29099 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29100 ;;
29101 *)
29102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29103for as_dir in $PATH
29104do
29105 IFS=$as_save_IFS
29106 test -z "$as_dir" && as_dir=.
29107 for ac_exec_ext in '' $ac_executable_extensions; do
29108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29109 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29111 break 2
29112 fi
29113done
29114done
29115
29116 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29117 ;;
29118esac
29119fi
29120PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29121
29122if test -n "$PKG_CONFIG"; then
29123 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29124echo "${ECHO_T}$PKG_CONFIG" >&6
29125else
29126 echo "$as_me:$LINENO: result: no" >&5
29127echo "${ECHO_T}no" >&6
29128fi
29129
29130 fi
29131
29132 if test "$PKG_CONFIG" = "no" ; then
29133 echo "*** The pkg-config script could not be found. Make sure it is"
29134 echo "*** in your path, or set the PKG_CONFIG environment variable"
29135 echo "*** to the full path to pkg-config."
29136 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29137 else
29138 PKG_CONFIG_MIN_VERSION=0.9.0
29139 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29140 echo "$as_me:$LINENO: checking for pangox" >&5
29141echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29142
29143 if $PKG_CONFIG --exists "pangox" ; then
29144 echo "$as_me:$LINENO: result: yes" >&5
29145echo "${ECHO_T}yes" >&6
29146 succeeded=yes
29147
29148 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29149echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29150 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29151 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29152echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29153
29154 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29155echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29156 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29157 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29158echo "${ECHO_T}$PANGOX_LIBS" >&6
29159 else
29160 PANGOX_CFLAGS=""
29161 PANGOX_LIBS=""
29162 ## If we have a custom action on failure, don't print errors, but
29163 ## do set a variable so people can do so.
29164 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29165
29166 fi
29167
29168
29169
29170 else
29171 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29172 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29173 fi
29174 fi
29175
29176 if test $succeeded = yes; then
29177
c92ad099 29178 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29179 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29180
29181 else
29182
29183 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29184echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29185 { (exit 1); exit 1; }; }
29186
29187
29188 fi
29189
29190
29191 succeeded=no
29192
29193 if test -z "$PKG_CONFIG"; then
29194 # Extract the first word of "pkg-config", so it can be a program name with args.
29195set dummy pkg-config; ac_word=$2
29196echo "$as_me:$LINENO: checking for $ac_word" >&5
29197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29198if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29199 echo $ECHO_N "(cached) $ECHO_C" >&6
29200else
29201 case $PKG_CONFIG in
29202 [\\/]* | ?:[\\/]*)
29203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29204 ;;
29205 *)
29206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29207for as_dir in $PATH
29208do
29209 IFS=$as_save_IFS
29210 test -z "$as_dir" && as_dir=.
29211 for ac_exec_ext in '' $ac_executable_extensions; do
29212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29215 break 2
29216 fi
29217done
29218done
29219
29220 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29221 ;;
29222esac
29223fi
29224PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29225
29226if test -n "$PKG_CONFIG"; then
29227 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29228echo "${ECHO_T}$PKG_CONFIG" >&6
29229else
29230 echo "$as_me:$LINENO: result: no" >&5
29231echo "${ECHO_T}no" >&6
29232fi
29233
29234 fi
29235
29236 if test "$PKG_CONFIG" = "no" ; then
29237 echo "*** The pkg-config script could not be found. Make sure it is"
29238 echo "*** in your path, or set the PKG_CONFIG environment variable"
29239 echo "*** to the full path to pkg-config."
29240 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29241 else
29242 PKG_CONFIG_MIN_VERSION=0.9.0
29243 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29244 echo "$as_me:$LINENO: checking for pangoft2" >&5
29245echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29246
29247 if $PKG_CONFIG --exists "pangoft2" ; then
29248 echo "$as_me:$LINENO: result: yes" >&5
29249echo "${ECHO_T}yes" >&6
29250 succeeded=yes
29251
29252 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29253echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29254 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29255 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29256echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29257
29258 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29259echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29260 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29261 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29262echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29263 else
29264 PANGOFT2_CFLAGS=""
29265 PANGOFT2_LIBS=""
29266 ## If we have a custom action on failure, don't print errors, but
29267 ## do set a variable so people can do so.
29268 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29269
29270 fi
29271
29272
29273
29274 else
29275 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29276 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29277 fi
29278 fi
29279
29280 if test $succeeded = yes; then
29281
c92ad099 29282 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29283 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29284
29285 else
29286
29287 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29288echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29289 wxUSE_PRINTING_ARCHITECTURE="no"
29290
29291
29292 fi
29293
29294
29295 succeeded=no
29296
29297 if test -z "$PKG_CONFIG"; then
29298 # Extract the first word of "pkg-config", so it can be a program name with args.
29299set dummy pkg-config; ac_word=$2
29300echo "$as_me:$LINENO: checking for $ac_word" >&5
29301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29302if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29303 echo $ECHO_N "(cached) $ECHO_C" >&6
29304else
29305 case $PKG_CONFIG in
29306 [\\/]* | ?:[\\/]*)
29307 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29308 ;;
29309 *)
29310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29311for as_dir in $PATH
29312do
29313 IFS=$as_save_IFS
29314 test -z "$as_dir" && as_dir=.
29315 for ac_exec_ext in '' $ac_executable_extensions; do
29316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29317 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29319 break 2
29320 fi
29321done
29322done
29323
29324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29325 ;;
29326esac
29327fi
29328PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29329
29330if test -n "$PKG_CONFIG"; then
29331 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29332echo "${ECHO_T}$PKG_CONFIG" >&6
29333else
29334 echo "$as_me:$LINENO: result: no" >&5
29335echo "${ECHO_T}no" >&6
29336fi
29337
29338 fi
29339
29340 if test "$PKG_CONFIG" = "no" ; then
29341 echo "*** The pkg-config script could not be found. Make sure it is"
29342 echo "*** in your path, or set the PKG_CONFIG environment variable"
29343 echo "*** to the full path to pkg-config."
29344 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29345 else
29346 PKG_CONFIG_MIN_VERSION=0.9.0
29347 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29348 echo "$as_me:$LINENO: checking for pangoxft" >&5
29349echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29350
29351 if $PKG_CONFIG --exists "pangoxft" ; then
29352 echo "$as_me:$LINENO: result: yes" >&5
29353echo "${ECHO_T}yes" >&6
29354 succeeded=yes
29355
29356 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29357echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29358 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29359 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29360echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29361
29362 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29363echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29364 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29365 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29366echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29367 else
29368 PANGOXFT_CFLAGS=""
29369 PANGOXFT_LIBS=""
29370 ## If we have a custom action on failure, don't print errors, but
29371 ## do set a variable so people can do so.
29372 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29373
29374 fi
29375
29376
29377
29378 else
29379 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29380 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29381 fi
29382 fi
29383
29384 if test $succeeded = yes; then
29385
4ae1af05
MB
29386 cat >>confdefs.h <<\_ACEOF
29387#define HAVE_PANGO_XFT 1
29388_ACEOF
29389
c92ad099 29390 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29391 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29392
29393 else
29394
29395 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29396echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29397
29398
29399 fi
29400
304205f1
VS
29401 save_CFLAGS="$CFLAGS"
29402 save_LIBS="$LIBS"
c92ad099 29403 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
304205f1
VS
29404 LIBS="$LIBS $PANGOX_LIBS"
29405
29406for ac_func in pango_font_family_is_monospace
29407do
29408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29409echo "$as_me:$LINENO: checking for $ac_func" >&5
29410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29411if eval "test \"\${$as_ac_var+set}\" = set"; then
29412 echo $ECHO_N "(cached) $ECHO_C" >&6
29413else
29414 cat >conftest.$ac_ext <<_ACEOF
29415/* confdefs.h. */
29416_ACEOF
29417cat confdefs.h >>conftest.$ac_ext
29418cat >>conftest.$ac_ext <<_ACEOF
29419/* end confdefs.h. */
29420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29422#define $ac_func innocuous_$ac_func
29423
29424/* System header to define __stub macros and hopefully few prototypes,
29425 which can conflict with char $ac_func (); below.
29426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29427 <limits.h> exists even on freestanding compilers. */
29428
29429#ifdef __STDC__
29430# include <limits.h>
29431#else
29432# include <assert.h>
29433#endif
29434
29435#undef $ac_func
29436
29437/* Override any gcc2 internal prototype to avoid an error. */
29438#ifdef __cplusplus
29439extern "C"
29440{
29441#endif
29442/* We use char because int might match the return type of a gcc2
29443 builtin and then its argument prototype would still apply. */
29444char $ac_func ();
29445/* The GNU C library defines this for functions which it implements
29446 to always fail with ENOSYS. Some functions are actually named
29447 something starting with __ and the normal name is an alias. */
29448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29449choke me
29450#else
29451char (*f) () = $ac_func;
29452#endif
29453#ifdef __cplusplus
29454}
29455#endif
29456
29457int
29458main ()
29459{
29460return f != $ac_func;
29461 ;
29462 return 0;
29463}
29464_ACEOF
29465rm -f conftest.$ac_objext conftest$ac_exeext
29466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29467 (eval $ac_link) 2>conftest.er1
29468 ac_status=$?
29469 grep -v '^ *+' conftest.er1 >conftest.err
29470 rm -f conftest.er1
29471 cat conftest.err >&5
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); } &&
3565d135
RR
29474 { ac_try='test -z "$ac_c_werror_flag"
29475 || test ! -s conftest.err'
304205f1
VS
29476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29477 (eval $ac_try) 2>&5
29478 ac_status=$?
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); }; } &&
29481 { ac_try='test -s conftest$ac_exeext'
29482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29483 (eval $ac_try) 2>&5
29484 ac_status=$?
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; }; then
29487 eval "$as_ac_var=yes"
29488else
29489 echo "$as_me: failed program was:" >&5
29490sed 's/^/| /' conftest.$ac_ext >&5
29491
29492eval "$as_ac_var=no"
29493fi
29494rm -f conftest.err conftest.$ac_objext \
29495 conftest$ac_exeext conftest.$ac_ext
29496fi
29497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29498echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29499if test `eval echo '${'$as_ac_var'}'` = yes; then
29500 cat >>confdefs.h <<_ACEOF
29501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29502_ACEOF
29503
29504fi
29505done
29506
29507 CFLAGS="$save_CFLAGS"
29508 LIBS="$save_LIBS"
a848cd7e
SC
29509 fi
29510
29511 wxUSE_UNIVERSAL="yes"
29512
29513 if test "$wxUSE_NANOX" = "yes"; then
29514 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29515 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"
29516 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29517 else
29518 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29519 fi
29520
a848cd7e
SC
29521 TOOLKIT=X11
29522 GUIDIST=X11_DIST
29523 fi
29524
29525 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29526 if test "$wxUSE_UNICODE" = "yes"; then
29527 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29528echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29529 { (exit 1); exit 1; }; }
29530 fi
29531
74b84332
VS
29532 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29533echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29534
74b84332
VS
29535ac_find_includes=
29536for ac_dir in $SEARCH_INCLUDE /usr/include;
29537 do
29538 if test -f "$ac_dir/Xm/Xm.h"; then
29539 ac_find_includes=$ac_dir
29540 break
29541 fi
29542 done
a848cd7e 29543
74b84332
VS
29544 if test "$ac_find_includes" != "" ; then
29545 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29546echo "${ECHO_T}found in $ac_find_includes" >&6
29547
29548 if test "x$ac_find_includes" = "x/usr/include"; then
29549 ac_path_to_include=""
29550 else
29551 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29552 result=$?
29553 if test $result = 0; then
29554 ac_path_to_include=""
29555 else
29556 ac_path_to_include=" -I$ac_find_includes"
29557 fi
a848cd7e
SC
29558 fi
29559
74b84332
VS
29560 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29561 else
e051b34e 29562 save_CFLAGS=$CFLAGS
c92ad099 29563 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 29564
74b84332 29565 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29566/* confdefs.h. */
29567_ACEOF
29568cat confdefs.h >>conftest.$ac_ext
29569cat >>conftest.$ac_ext <<_ACEOF
29570/* end confdefs.h. */
29571
74b84332
VS
29572 #include <Xm/Xm.h>
29573
a848cd7e
SC
29574int
29575main ()
29576{
29577
74b84332
VS
29578 int version;
29579 version = xmUseVersion;
29580
a848cd7e
SC
29581 ;
29582 return 0;
29583}
29584_ACEOF
74b84332
VS
29585rm -f conftest.$ac_objext
29586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29587 (eval $ac_compile) 2>conftest.er1
a848cd7e 29588 ac_status=$?
ac1cb8d3
VS
29589 grep -v '^ *+' conftest.er1 >conftest.err
29590 rm -f conftest.er1
29591 cat conftest.err >&5
a848cd7e
SC
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); } &&
3565d135
RR
29594 { ac_try='test -z "$ac_c_werror_flag"
29595 || test ! -s conftest.err'
ac1cb8d3
VS
29596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29597 (eval $ac_try) 2>&5
29598 ac_status=$?
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); }; } &&
74b84332 29601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29603 (eval $ac_try) 2>&5
29604 ac_status=$?
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); }; }; then
74b84332
VS
29607
29608 echo "$as_me:$LINENO: result: found in default search path" >&5
29609echo "${ECHO_T}found in default search path" >&6
29610 COMPILED_X_PROGRAM=1
29611
a848cd7e
SC
29612else
29613 echo "$as_me: failed program was:" >&5
29614sed 's/^/| /' conftest.$ac_ext >&5
29615
a848cd7e 29616
74b84332
VS
29617 echo "$as_me:$LINENO: result: no" >&5
29618echo "${ECHO_T}no" >&6
e051b34e
MW
29619 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29620echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29621 { (exit 1); exit 1; }; }
a848cd7e 29622
a848cd7e 29623
a848cd7e 29624fi
74b84332 29625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29626
29627 CFLAGS=$save_CFLAGS
74b84332
VS
29628 fi
29629
0ad5d837
VZ
29630
29631 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29632echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29633
0ad5d837
VZ
29634 ac_find_libraries=
29635 for ac_dir in $SEARCH_LIB;
74b84332 29636 do
3eca31dc 29637 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29638 if test -f "$ac_dir/libXm.$ac_extension"; then
29639 ac_find_libraries=$ac_dir
29640 break 2
a848cd7e 29641 fi
74b84332
VS
29642 done
29643 done
a848cd7e 29644
0ad5d837
VZ
29645
29646 if test "x$ac_find_libraries" != "x" ; then
29647 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29648echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29649
74b84332 29650
0ad5d837 29651 if test "$ac_find_libraries" = "default location"; then
74b84332 29652 ac_path_to_link=""
a848cd7e 29653 else
0ad5d837
VZ
29654 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29655 result=$?
29656 if test $result = 0; then
29657 ac_path_to_link=""
29658 else
29659 ac_path_to_link=" -L$ac_find_libraries"
29660 fi
74b84332
VS
29661 fi
29662
0ad5d837
VZ
29663 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29664 else
29665 save_CFLAGS=$CFLAGS
c92ad099 29666 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
29667 save_LIBS="$LIBS"
29668 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29669
0ad5d837 29670 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29671/* confdefs.h. */
29672_ACEOF
29673cat confdefs.h >>conftest.$ac_ext
29674cat >>conftest.$ac_ext <<_ACEOF
29675/* end confdefs.h. */
29676
0ad5d837 29677 #include <Xm/Xm.h>
74b84332 29678
a848cd7e
SC
29679int
29680main ()
29681{
74b84332 29682
0ad5d837
VZ
29683 int version;
29684 version = xmUseVersion;
74b84332 29685
a848cd7e
SC
29686 ;
29687 return 0;
29688}
29689_ACEOF
0ad5d837
VZ
29690rm -f conftest.$ac_objext conftest$ac_exeext
29691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29692 (eval $ac_link) 2>conftest.er1
a848cd7e 29693 ac_status=$?
ac1cb8d3
VS
29694 grep -v '^ *+' conftest.er1 >conftest.err
29695 rm -f conftest.er1
29696 cat conftest.err >&5
a848cd7e
SC
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); } &&
3565d135
RR
29699 { ac_try='test -z "$ac_c_werror_flag"
29700 || test ! -s conftest.err'
ac1cb8d3
VS
29701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29702 (eval $ac_try) 2>&5
29703 ac_status=$?
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; } &&
0ad5d837 29706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29708 (eval $ac_try) 2>&5
29709 ac_status=$?
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711 (exit $ac_status); }; }; then
74b84332 29712
0ad5d837 29713 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29714echo "${ECHO_T}found in default search path" >&6
0ad5d837 29715 COMPILED_X_PROGRAM=1
74b84332 29716
a848cd7e
SC
29717else
29718 echo "$as_me: failed program was:" >&5
29719sed 's/^/| /' conftest.$ac_ext >&5
29720
74b84332 29721
6f9cf1e6 29722 echo "$as_me:$LINENO: result: no" >&5
74b84332 29723echo "${ECHO_T}no" >&6
6f9cf1e6 29724 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29725echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29726 { (exit 1); exit 1; }; }
29727
29728
29729fi
0ad5d837
VZ
29730rm -f conftest.err conftest.$ac_objext \
29731 conftest$ac_exeext conftest.$ac_ext
74b84332 29732
0ad5d837 29733 CFLAGS=$save_CFLAGS
6f9cf1e6 29734 LIBS="$save_LIBS"
74b84332
VS
29735 fi
29736
29737 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29738echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29739 libp_link=""
29740 libsm_ice_link=""
29741 libs_found=0
29742 for libp in "" " -lXp"; do
29743 if test "$libs_found" = "0"; then
29744 for libsm_ice in "" " -lSM -lICE"; do
29745 if test "$libs_found" = "0"; then
29746 save_LIBS="$LIBS"
29747 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29748 save_CFLAGS=$CFLAGS
c92ad099 29749 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
29750
29751 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29752/* confdefs.h. */
29753_ACEOF
29754cat confdefs.h >>conftest.$ac_ext
29755cat >>conftest.$ac_ext <<_ACEOF
29756/* end confdefs.h. */
29757
74b84332
VS
29758 #include <Xm/Xm.h>
29759 #include <Xm/List.h>
29760
a848cd7e
SC
29761int
29762main ()
29763{
74b84332
VS
29764
29765 XmString string = NULL;
29766 Widget w = NULL;
29767 int position = 0;
29768 XmListAddItem(w, string, position);
29769
a848cd7e
SC
29770 ;
29771 return 0;
29772}
29773_ACEOF
29774rm -f conftest.$ac_objext conftest$ac_exeext
29775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29776 (eval $ac_link) 2>conftest.er1
a848cd7e 29777 ac_status=$?
ac1cb8d3
VS
29778 grep -v '^ *+' conftest.er1 >conftest.err
29779 rm -f conftest.er1
29780 cat conftest.err >&5
a848cd7e
SC
29781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782 (exit $ac_status); } &&
3565d135
RR
29783 { ac_try='test -z "$ac_c_werror_flag"
29784 || test ! -s conftest.err'
ac1cb8d3
VS
29785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 (eval $ac_try) 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; } &&
29790 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792 (eval $ac_try) 2>&5
29793 ac_status=$?
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; }; then
29796
29797 libp_link="$libp"
29798 libsm_ice_link="$libsm_ice"
29799 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29800echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29801 libs_found=1
29802
29803else
29804 echo "$as_me: failed program was:" >&5
29805sed 's/^/| /' conftest.$ac_ext >&5
29806
29807
29808
29809fi
ac1cb8d3
VS
29810rm -f conftest.err conftest.$ac_objext \
29811 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29812
29813 LIBS="$save_LIBS"
29814 CFLAGS=$save_CFLAGS
29815 fi
29816 done
29817 fi
29818 done
29819
29820 if test "$libs_found" = "0"; then
29821 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29822echo "${ECHO_T}can't find the right libraries" >&6
29823 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29824echo "$as_me: error: can't link a simple motif program" >&2;}
29825 { (exit 1); exit 1; }; }
29826 fi
29827
62fa8b3a
MW
29828 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29829echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29830if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29831 echo $ECHO_N "(cached) $ECHO_C" >&6
29832else
29833 ac_check_lib_save_LIBS=$LIBS
29834LIBS="-lSgm $LIBS"
29835cat >conftest.$ac_ext <<_ACEOF
29836/* confdefs.h. */
29837_ACEOF
29838cat confdefs.h >>conftest.$ac_ext
29839cat >>conftest.$ac_ext <<_ACEOF
29840/* end confdefs.h. */
29841
29842/* Override any gcc2 internal prototype to avoid an error. */
29843#ifdef __cplusplus
29844extern "C"
29845#endif
29846/* We use char because int might match the return type of a gcc2
29847 builtin and then its argument prototype would still apply. */
29848char SgCreateList ();
29849int
29850main ()
29851{
29852SgCreateList ();
29853 ;
29854 return 0;
29855}
29856_ACEOF
29857rm -f conftest.$ac_objext conftest$ac_exeext
29858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29859 (eval $ac_link) 2>conftest.er1
29860 ac_status=$?
29861 grep -v '^ *+' conftest.er1 >conftest.err
29862 rm -f conftest.er1
29863 cat conftest.err >&5
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); } &&
3565d135
RR
29866 { ac_try='test -z "$ac_c_werror_flag"
29867 || test ! -s conftest.err'
62fa8b3a
MW
29868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29869 (eval $ac_try) 2>&5
29870 ac_status=$?
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); }; } &&
29873 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29879 ac_cv_lib_Sgm_SgCreateList=yes
29880else
29881 echo "$as_me: failed program was:" >&5
29882sed 's/^/| /' conftest.$ac_ext >&5
29883
29884ac_cv_lib_Sgm_SgCreateList=no
29885fi
29886rm -f conftest.err conftest.$ac_objext \
29887 conftest$ac_exeext conftest.$ac_ext
29888LIBS=$ac_check_lib_save_LIBS
29889fi
29890echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29891echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29892if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29893 libsgm_link=" -lSgm"
29894fi
29895
29896
a848cd7e 29897 save_CFLAGS=$CFLAGS
c92ad099 29898 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 29899
a848cd7e
SC
29900 echo "$as_me:$LINENO: checking for Motif 2" >&5
29901echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29902if test "${wx_cv_lib_motif2+set}" = set; then
29903 echo $ECHO_N "(cached) $ECHO_C" >&6
29904else
29905 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29906/* confdefs.h. */
29907_ACEOF
29908cat confdefs.h >>conftest.$ac_ext
29909cat >>conftest.$ac_ext <<_ACEOF
29910/* end confdefs.h. */
29911
0ad5d837 29912 #include <Xm/Xm.h>
a848cd7e
SC
29913
29914int
29915main ()
29916{
29917
0ad5d837
VZ
29918 #if XmVersion < 2000
29919 Not Motif 2
29920 #endif
a848cd7e
SC
29921
29922 ;
29923 return 0;
29924}
29925_ACEOF
29926rm -f conftest.$ac_objext
29927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29928 (eval $ac_compile) 2>conftest.er1
a848cd7e 29929 ac_status=$?
ac1cb8d3
VS
29930 grep -v '^ *+' conftest.er1 >conftest.err
29931 rm -f conftest.er1
29932 cat conftest.err >&5
a848cd7e
SC
29933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934 (exit $ac_status); } &&
3565d135
RR
29935 { ac_try='test -z "$ac_c_werror_flag"
29936 || test ! -s conftest.err'
ac1cb8d3
VS
29937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29938 (eval $ac_try) 2>&5
29939 ac_status=$?
29940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941 (exit $ac_status); }; } &&
29942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944 (eval $ac_try) 2>&5
29945 ac_status=$?
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; }; then
0ad5d837 29948 wx_cv_lib_motif2="yes"
a848cd7e
SC
29949else
29950 echo "$as_me: failed program was:" >&5
29951sed 's/^/| /' conftest.$ac_ext >&5
29952
0ad5d837
VZ
29953wx_cv_lib_motif2="no"
29954fi
29955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29956fi
29957echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29958echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29959 if test "$wx_cv_lib_motif2" = "yes"; then
29960 cat >>confdefs.h <<\_ACEOF
29961#define __WXMOTIF20__ 1
29962_ACEOF
a848cd7e 29963
0ad5d837
VZ
29964 else
29965 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29966#define __WXMOTIF20__ 0
29967_ACEOF
29968
0ad5d837 29969 fi
2113bc77
MW
29970
29971 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29972echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29973if test "${wx_cv_lib_lesstif+set}" = set; then
29974 echo $ECHO_N "(cached) $ECHO_C" >&6
29975else
29976 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29977/* confdefs.h. */
29978_ACEOF
29979cat confdefs.h >>conftest.$ac_ext
29980cat >>conftest.$ac_ext <<_ACEOF
29981/* end confdefs.h. */
29982
0ad5d837 29983 #include <Xm/Xm.h>
2113bc77
MW
29984
29985int
29986main ()
29987{
29988
0ad5d837
VZ
29989 #if !defined(LesstifVersion) || LesstifVersion <= 0
29990 Not Lesstif
29991 #endif
2113bc77
MW
29992
29993 ;
29994 return 0;
29995}
29996_ACEOF
29997rm -f conftest.$ac_objext
29998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29999 (eval $ac_compile) 2>conftest.er1
30000 ac_status=$?
30001 grep -v '^ *+' conftest.er1 >conftest.err
30002 rm -f conftest.er1
30003 cat conftest.err >&5
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); } &&
3565d135
RR
30006 { ac_try='test -z "$ac_c_werror_flag"
30007 || test ! -s conftest.err'
2113bc77
MW
30008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30009 (eval $ac_try) 2>&5
30010 ac_status=$?
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); }; } &&
30013 { ac_try='test -s conftest.$ac_objext'
30014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30015 (eval $ac_try) 2>&5
30016 ac_status=$?
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; }; then
0ad5d837 30019 wx_cv_lib_lesstif="yes"
2113bc77
MW
30020else
30021 echo "$as_me: failed program was:" >&5
30022sed 's/^/| /' conftest.$ac_ext >&5
30023
0ad5d837
VZ
30024wx_cv_lib_lesstif="no"
30025fi
30026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30027
0ad5d837
VZ
30028fi
30029echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30030echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30031 if test "$wx_cv_lib_lesstif" = "yes"; then
30032 cat >>confdefs.h <<\_ACEOF
30033#define __WXLESSTIF__ 1
30034_ACEOF
30035
30036 else
30037 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30038#define __WXLESSTIF__ 0
30039_ACEOF
30040
0ad5d837 30041 fi
2113bc77 30042
a848cd7e
SC
30043 CFLAGS=$save_CFLAGS
30044
62fa8b3a 30045 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30046 TOOLKIT=MOTIF
30047 GUIDIST=MOTIF_DIST
30048 fi
30049
74b84332 30050 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30051 if test "$wxUSE_LIBXPM" = "sys"; then
30052 echo "$as_me:$LINENO: checking for Xpm library" >&5
30053echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30054
0ad5d837
VZ
30055 ac_find_libraries=
30056 for ac_dir in $SEARCH_LIB;
a848cd7e 30057 do
3eca31dc 30058 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30059 if test -f "$ac_dir/libXpm.$ac_extension"; then
30060 ac_find_libraries=$ac_dir
30061 break 2
30062 fi
30063 done
30064 done
30065
30066 if test "$ac_find_libraries" != "" ; then
30067
0ad5d837 30068 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30069 ac_path_to_link=""
30070 else
0ad5d837
VZ
30071 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30072 result=$?
30073 if test $result = 0; then
30074 ac_path_to_link=""
30075 else
30076 ac_path_to_link=" -L$ac_find_libraries"
30077 fi
a848cd7e
SC
30078 fi
30079
30080 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30081 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30082echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30083
30084 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30085echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30086if test "${wx_cv_x11_xpm_h+set}" = set; then
30087 echo $ECHO_N "(cached) $ECHO_C" >&6
30088else
30089
30090 save_CFLAGS=$CFLAGS
c92ad099 30091 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30092
30093 cat >conftest.$ac_ext <<_ACEOF
30094/* confdefs.h. */
30095_ACEOF
30096cat confdefs.h >>conftest.$ac_ext
30097cat >>conftest.$ac_ext <<_ACEOF
30098/* end confdefs.h. */
30099
30100 #include <X11/xpm.h>
30101
30102int
30103main ()
30104{
30105
30106 int version;
30107 version = XpmLibraryVersion();
30108
30109 ;
30110 return 0;
30111}
30112_ACEOF
30113rm -f conftest.$ac_objext
30114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30115 (eval $ac_compile) 2>conftest.er1
a848cd7e 30116 ac_status=$?
ac1cb8d3
VS
30117 grep -v '^ *+' conftest.er1 >conftest.err
30118 rm -f conftest.er1
30119 cat conftest.err >&5
a848cd7e
SC
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); } &&
3565d135
RR
30122 { ac_try='test -z "$ac_c_werror_flag"
30123 || test ! -s conftest.err'
ac1cb8d3
VS
30124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30125 (eval $ac_try) 2>&5
30126 ac_status=$?
30127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); }; } &&
30129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30131 (eval $ac_try) 2>&5
30132 ac_status=$?
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); }; }; then
30135 wx_cv_x11_xpm_h=yes
30136else
30137 echo "$as_me: failed program was:" >&5
30138sed 's/^/| /' conftest.$ac_ext >&5
30139
30140wx_cv_x11_xpm_h=no
30141
30142fi
ac1cb8d3 30143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30144
30145 CFLAGS=$save_CFLAGS
30146
30147
30148fi
30149echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30150echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30151
30152 if test $wx_cv_x11_xpm_h = "yes"; then
30153 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30154 cat >>confdefs.h <<\_ACEOF
30155#define wxHAVE_LIB_XPM 1
30156_ACEOF
30157
30158 else
30159 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30160echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30161 fi
30162 fi
30163
30164 fi
30165
30166 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30167echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30168if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30169 echo $ECHO_N "(cached) $ECHO_C" >&6
30170else
30171 ac_check_lib_save_LIBS=$LIBS
30172LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30173cat >conftest.$ac_ext <<_ACEOF
30174/* confdefs.h. */
30175_ACEOF
30176cat confdefs.h >>conftest.$ac_ext
30177cat >>conftest.$ac_ext <<_ACEOF
30178/* end confdefs.h. */
30179
30180/* Override any gcc2 internal prototype to avoid an error. */
30181#ifdef __cplusplus
30182extern "C"
30183#endif
30184/* We use char because int might match the return type of a gcc2
30185 builtin and then its argument prototype would still apply. */
30186char XShapeQueryExtension ();
30187int
30188main ()
30189{
30190XShapeQueryExtension ();
30191 ;
30192 return 0;
30193}
30194_ACEOF
30195rm -f conftest.$ac_objext conftest$ac_exeext
30196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30197 (eval $ac_link) 2>conftest.er1
a848cd7e 30198 ac_status=$?
ac1cb8d3
VS
30199 grep -v '^ *+' conftest.er1 >conftest.err
30200 rm -f conftest.er1
30201 cat conftest.err >&5
a848cd7e
SC
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); } &&
3565d135
RR
30204 { ac_try='test -z "$ac_c_werror_flag"
30205 || test ! -s conftest.err'
ac1cb8d3
VS
30206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207 (eval $ac_try) 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; } &&
30211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30213 (eval $ac_try) 2>&5
30214 ac_status=$?
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); }; }; then
30217 ac_cv_lib_Xext_XShapeQueryExtension=yes
30218else
30219 echo "$as_me: failed program was:" >&5
30220sed 's/^/| /' conftest.$ac_ext >&5
30221
30222ac_cv_lib_Xext_XShapeQueryExtension=no
30223fi
ac1cb8d3
VS
30224rm -f conftest.err conftest.$ac_objext \
30225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30226LIBS=$ac_check_lib_save_LIBS
30227fi
30228echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30229echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30230if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30231
30232 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30233 wxHAVE_XEXT_LIB=1
30234
30235fi
30236
30237
30238 if test "$wxHAVE_XEXT_LIB" = 1; then
30239 save_CFLAGS="$CFLAGS"
c92ad099 30240 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30241
30242 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30243echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30244 cat >conftest.$ac_ext <<_ACEOF
30245/* confdefs.h. */
30246_ACEOF
30247cat confdefs.h >>conftest.$ac_ext
30248cat >>conftest.$ac_ext <<_ACEOF
30249/* end confdefs.h. */
30250
30251 #include <X11/Xlib.h>
30252 #include <X11/extensions/shape.h>
30253
30254int
30255main ()
30256{
30257
30258 int dummy1, dummy2;
30259 XShapeQueryExtension((Display*)NULL,
30260 (int*)NULL, (int*)NULL);
30261
30262 ;
30263 return 0;
30264}
30265_ACEOF
30266rm -f conftest.$ac_objext
30267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30268 (eval $ac_compile) 2>conftest.er1
a848cd7e 30269 ac_status=$?
ac1cb8d3
VS
30270 grep -v '^ *+' conftest.er1 >conftest.err
30271 rm -f conftest.er1
30272 cat conftest.err >&5
a848cd7e
SC
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); } &&
3565d135
RR
30275 { ac_try='test -z "$ac_c_werror_flag"
30276 || test ! -s conftest.err'
ac1cb8d3
VS
30277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278 (eval $ac_try) 2>&5
30279 ac_status=$?
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; } &&
30282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30284 (eval $ac_try) 2>&5
30285 ac_status=$?
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; }; then
30288
30289 cat >>confdefs.h <<\_ACEOF
30290#define HAVE_XSHAPE 1
30291_ACEOF
30292
30293 echo "$as_me:$LINENO: result: found" >&5
30294echo "${ECHO_T}found" >&6
30295
30296else
30297 echo "$as_me: failed program was:" >&5
30298sed 's/^/| /' conftest.$ac_ext >&5
30299
30300
30301 echo "$as_me:$LINENO: result: not found" >&5
30302echo "${ECHO_T}not found" >&6
30303
30304fi
ac1cb8d3 30305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30306 CFLAGS="$save_CFLAGS"
30307
30308 fi
30309 fi
30310
30311 if test "$wxUSE_MAC" = 1; then
30312 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30313echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30314 if test "$GCC" = yes; then
30315 echo "$as_me:$LINENO: result: gcc" >&5
30316echo "${ECHO_T}gcc" >&6
30317 CPPFLAGS_PASCAL="-fpascal-strings"
30318 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30319 echo "$as_me:$LINENO: result: xlc" >&5
30320echo "${ECHO_T}xlc" >&6
30321 CPPFLAGS_PASCAL="-qmacpstr"
30322 else
30323 echo "$as_me:$LINENO: result: none" >&5
30324echo "${ECHO_T}none" >&6
30325 fi
30326
1e9e8aba 30327 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30328 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30329 else
c92ad099 30330 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30331 fi
a848cd7e 30332
a848cd7e
SC
30333 TOOLKIT=MAC
30334 GUIDIST=MACX_DIST
dd21ced8 30335 WXBASEPORT="_carbon"
a848cd7e
SC
30336 fi
30337
30338 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30339 TOOLKIT=COCOA
30340 GUIDIST=COCOA_DIST
30341 fi
30342
30343 if test "$wxUSE_PM" = 1; then
30344 TOOLKIT=PM
de59c161
RD
30345 GUIDIST=PM_DIST
30346 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30347echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30348if test "${wx_cv_spbcdata+set}" = set; then
30349 echo $ECHO_N "(cached) $ECHO_C" >&6
30350else
30351
30352 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30353/* confdefs.h. */
30354_ACEOF
30355cat confdefs.h >>conftest.$ac_ext
30356cat >>conftest.$ac_ext <<_ACEOF
30357/* end confdefs.h. */
30358
30359 #define INCL_PM
30360 #include <os2.h>
30361
30362int
30363main ()
30364{
30365
30366 SPBCDATA test;
30367
30368 ;
30369 return 0;
30370}
30371_ACEOF
30372rm -f conftest.$ac_objext
30373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30374 (eval $ac_compile) 2>conftest.er1
de59c161 30375 ac_status=$?
ac1cb8d3
VS
30376 grep -v '^ *+' conftest.er1 >conftest.err
30377 rm -f conftest.er1
30378 cat conftest.err >&5
de59c161
RD
30379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380 (exit $ac_status); } &&
3565d135
RR
30381 { ac_try='test -z "$ac_c_werror_flag"
30382 || test ! -s conftest.err'
ac1cb8d3
VS
30383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30384 (eval $ac_try) 2>&5
30385 ac_status=$?
30386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387 (exit $ac_status); }; } &&
30388 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30390 (eval $ac_try) 2>&5
30391 ac_status=$?
30392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393 (exit $ac_status); }; }; then
30394 wx_cv_spbcdata=yes
30395else
30396 echo "$as_me: failed program was:" >&5
30397sed 's/^/| /' conftest.$ac_ext >&5
30398
30399wx_cv_spbcdata=no
30400
30401fi
ac1cb8d3 30402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30403
30404
30405fi
30406echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30407echo "${ECHO_T}$wx_cv_spbcdata" >&6
30408
30409 if test $wx_cv_spbcdata = "yes"; then
30410 cat >>confdefs.h <<\_ACEOF
30411#define HAVE_SPBCDATA 1
30412_ACEOF
30413
30414 fi
a848cd7e
SC
30415 fi
30416
30417 if test "$TOOLKIT" = "PM" ; then
30418 TOOLKIT_DIR="os2"
30419 else
30420 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30421 fi
30422
a848cd7e 30423 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30424 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30425 WIDGET_SET=univ
a848cd7e
SC
30426 fi
30427
30428 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30429 DISTDIR="wx\$(TOOLKIT)"
30430else
30431 USE_GUI=0
30432
30433 TOOLKIT_DIR="base"
30434
30435 if test "$USE_WIN32" = 1 ; then
a848cd7e 30436 TOOLKIT="MSW"
a848cd7e
SC
30437 fi
30438
a848cd7e
SC
30439 GUIDIST="BASE_DIST"
30440 DISTDIR="wxBase"
30441fi
30442
30443
d12aef51
VZ
30444if test "$wxUSE_GUI" = "yes"; then
30445 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30446
30447for ac_header in X11/Xlib.h
30448do
30449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30450if eval "test \"\${$as_ac_Header+set}\" = set"; then
30451 echo "$as_me:$LINENO: checking for $ac_header" >&5
30452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30453if eval "test \"\${$as_ac_Header+set}\" = set"; then
30454 echo $ECHO_N "(cached) $ECHO_C" >&6
30455fi
30456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30458else
30459 # Is the header compilable?
30460echo "$as_me:$LINENO: checking $ac_header usability" >&5
30461echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30462cat >conftest.$ac_ext <<_ACEOF
30463/* confdefs.h. */
30464_ACEOF
30465cat confdefs.h >>conftest.$ac_ext
30466cat >>conftest.$ac_ext <<_ACEOF
30467/* end confdefs.h. */
30468$ac_includes_default
30469#include <$ac_header>
30470_ACEOF
30471rm -f conftest.$ac_objext
30472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30473 (eval $ac_compile) 2>conftest.er1
30474 ac_status=$?
30475 grep -v '^ *+' conftest.er1 >conftest.err
30476 rm -f conftest.er1
30477 cat conftest.err >&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); } &&
3565d135
RR
30480 { ac_try='test -z "$ac_c_werror_flag"
30481 || test ! -s conftest.err'
d12aef51
VZ
30482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30483 (eval $ac_try) 2>&5
30484 ac_status=$?
30485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30486 (exit $ac_status); }; } &&
30487 { ac_try='test -s conftest.$ac_objext'
30488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30489 (eval $ac_try) 2>&5
30490 ac_status=$?
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); }; }; then
30493 ac_header_compiler=yes
30494else
30495 echo "$as_me: failed program was:" >&5
30496sed 's/^/| /' conftest.$ac_ext >&5
30497
30498ac_header_compiler=no
30499fi
30500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30501echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30502echo "${ECHO_T}$ac_header_compiler" >&6
30503
30504# Is the header present?
30505echo "$as_me:$LINENO: checking $ac_header presence" >&5
30506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30507cat >conftest.$ac_ext <<_ACEOF
30508/* confdefs.h. */
30509_ACEOF
30510cat confdefs.h >>conftest.$ac_ext
30511cat >>conftest.$ac_ext <<_ACEOF
30512/* end confdefs.h. */
30513#include <$ac_header>
30514_ACEOF
30515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30517 ac_status=$?
30518 grep -v '^ *+' conftest.er1 >conftest.err
30519 rm -f conftest.er1
30520 cat conftest.err >&5
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); } >/dev/null; then
30523 if test -s conftest.err; then
30524 ac_cpp_err=$ac_c_preproc_warn_flag
30525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30526 else
30527 ac_cpp_err=
30528 fi
30529else
30530 ac_cpp_err=yes
30531fi
30532if test -z "$ac_cpp_err"; then
30533 ac_header_preproc=yes
30534else
30535 echo "$as_me: failed program was:" >&5
30536sed 's/^/| /' conftest.$ac_ext >&5
30537
30538 ac_header_preproc=no
30539fi
30540rm -f conftest.err conftest.$ac_ext
30541echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30542echo "${ECHO_T}$ac_header_preproc" >&6
30543
30544# So? What about this header?
30545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30546 yes:no: )
30547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30550echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30551 ac_header_preproc=yes
30552 ;;
30553 no:yes:* )
30554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30559echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30561echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30563echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30565echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30566 (
30567 cat <<\_ASBOX
30568## ----------------------------------------- ##
30569## Report this to wx-dev@lists.wxwidgets.org ##
30570## ----------------------------------------- ##
30571_ASBOX
30572 ) |
30573 sed "s/^/$as_me: WARNING: /" >&2
30574 ;;
30575esac
30576echo "$as_me:$LINENO: checking for $ac_header" >&5
30577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30578if eval "test \"\${$as_ac_Header+set}\" = set"; then
30579 echo $ECHO_N "(cached) $ECHO_C" >&6
30580else
30581 eval "$as_ac_Header=\$ac_header_preproc"
30582fi
30583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30585
30586fi
30587if test `eval echo '${'$as_ac_Header'}'` = yes; then
30588 cat >>confdefs.h <<_ACEOF
30589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30590_ACEOF
30591
30592fi
30593
30594done
30595
30596
30597for ac_header in X11/XKBlib.h
30598do
30599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30600echo "$as_me:$LINENO: checking for $ac_header" >&5
30601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30602if eval "test \"\${$as_ac_Header+set}\" = set"; then
30603 echo $ECHO_N "(cached) $ECHO_C" >&6
30604else
30605 cat >conftest.$ac_ext <<_ACEOF
30606/* confdefs.h. */
30607_ACEOF
30608cat confdefs.h >>conftest.$ac_ext
30609cat >>conftest.$ac_ext <<_ACEOF
30610/* end confdefs.h. */
30611
30612 #if HAVE_X11_XLIB_H
30613 #include <X11/Xlib.h>
30614 #endif
30615
30616
30617#include <$ac_header>
30618_ACEOF
30619rm -f conftest.$ac_objext
30620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30621 (eval $ac_compile) 2>conftest.er1
30622 ac_status=$?
30623 grep -v '^ *+' conftest.er1 >conftest.err
30624 rm -f conftest.er1
30625 cat conftest.err >&5
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); } &&
3565d135
RR
30628 { ac_try='test -z "$ac_c_werror_flag"
30629 || test ! -s conftest.err'
d12aef51
VZ
30630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631 (eval $ac_try) 2>&5
30632 ac_status=$?
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634 (exit $ac_status); }; } &&
30635 { ac_try='test -s conftest.$ac_objext'
30636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30637 (eval $ac_try) 2>&5
30638 ac_status=$?
30639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30640 (exit $ac_status); }; }; then
30641 eval "$as_ac_Header=yes"
30642else
30643 echo "$as_me: failed program was:" >&5
30644sed 's/^/| /' conftest.$ac_ext >&5
30645
30646eval "$as_ac_Header=no"
30647fi
30648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30649fi
30650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30652if test `eval echo '${'$as_ac_Header'}'` = yes; then
30653 cat >>confdefs.h <<_ACEOF
30654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30655_ACEOF
30656
30657fi
30658
30659done
30660
30661 fi
30662fi
30663
a848cd7e
SC
30664
30665
30666IODBC_C_SRC=""
30667
30668
30669if test "$TOOLKIT" != "MSW" ; then
30670
30671 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30672
30673 if test "${ac_cv_header_sql_h+set}" = set; then
30674 echo "$as_me:$LINENO: checking for sql.h" >&5
30675echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30676if test "${ac_cv_header_sql_h+set}" = set; then
30677 echo $ECHO_N "(cached) $ECHO_C" >&6
30678fi
30679echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30680echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30681else
30682 # Is the header compilable?
30683echo "$as_me:$LINENO: checking sql.h usability" >&5
30684echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30685cat >conftest.$ac_ext <<_ACEOF
30686/* confdefs.h. */
30687_ACEOF
30688cat confdefs.h >>conftest.$ac_ext
30689cat >>conftest.$ac_ext <<_ACEOF
30690/* end confdefs.h. */
30691$ac_includes_default
30692#include <sql.h>
30693_ACEOF
30694rm -f conftest.$ac_objext
30695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30696 (eval $ac_compile) 2>conftest.er1
a848cd7e 30697 ac_status=$?
ac1cb8d3
VS
30698 grep -v '^ *+' conftest.er1 >conftest.err
30699 rm -f conftest.er1
30700 cat conftest.err >&5
a848cd7e
SC
30701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702 (exit $ac_status); } &&
3565d135
RR
30703 { ac_try='test -z "$ac_c_werror_flag"
30704 || test ! -s conftest.err'
ac1cb8d3
VS
30705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30706 (eval $ac_try) 2>&5
30707 ac_status=$?
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; } &&
30710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30712 (eval $ac_try) 2>&5
30713 ac_status=$?
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; }; then
30716 ac_header_compiler=yes
30717else
30718 echo "$as_me: failed program was:" >&5
30719sed 's/^/| /' conftest.$ac_ext >&5
30720
30721ac_header_compiler=no
30722fi
ac1cb8d3 30723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30724echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30725echo "${ECHO_T}$ac_header_compiler" >&6
30726
30727# Is the header present?
30728echo "$as_me:$LINENO: checking sql.h presence" >&5
30729echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30730cat >conftest.$ac_ext <<_ACEOF
30731/* confdefs.h. */
30732_ACEOF
30733cat confdefs.h >>conftest.$ac_ext
30734cat >>conftest.$ac_ext <<_ACEOF
30735/* end confdefs.h. */
30736#include <sql.h>
30737_ACEOF
30738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30740 ac_status=$?
30741 grep -v '^ *+' conftest.er1 >conftest.err
30742 rm -f conftest.er1
30743 cat conftest.err >&5
30744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745 (exit $ac_status); } >/dev/null; then
30746 if test -s conftest.err; then
30747 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30749 else
30750 ac_cpp_err=
30751 fi
30752else
30753 ac_cpp_err=yes
30754fi
30755if test -z "$ac_cpp_err"; then
30756 ac_header_preproc=yes
30757else
30758 echo "$as_me: failed program was:" >&5
30759sed 's/^/| /' conftest.$ac_ext >&5
30760
30761 ac_header_preproc=no
30762fi
30763rm -f conftest.err conftest.$ac_ext
30764echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30765echo "${ECHO_T}$ac_header_preproc" >&6
30766
30767# So? What about this header?
ac1cb8d3
VS
30768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30769 yes:no: )
a848cd7e
SC
30770 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30771echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30772 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30773echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30774 ac_header_preproc=yes
a848cd7e 30775 ;;
ac1cb8d3 30776 no:yes:* )
a848cd7e
SC
30777 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30778echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30779 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30780echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30781 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30782echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30783 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30784echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30785 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30786echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30787 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30788echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30789 (
30790 cat <<\_ASBOX
ac1cb8d3
VS
30791## ----------------------------------------- ##
30792## Report this to wx-dev@lists.wxwidgets.org ##
30793## ----------------------------------------- ##
a848cd7e
SC
30794_ASBOX
30795 ) |
30796 sed "s/^/$as_me: WARNING: /" >&2
30797 ;;
30798esac
30799echo "$as_me:$LINENO: checking for sql.h" >&5
30800echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30801if test "${ac_cv_header_sql_h+set}" = set; then
30802 echo $ECHO_N "(cached) $ECHO_C" >&6
30803else
30804 ac_cv_header_sql_h=$ac_header_preproc
30805fi
30806echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30807echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30808
30809fi
30810if test $ac_cv_header_sql_h = yes; then
30811 found_sql_h=1
30812fi
30813
30814
30815 if test "x$found_sql_h" = "x1" ; then
30816 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30817echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30818if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30819 echo $ECHO_N "(cached) $ECHO_C" >&6
30820else
30821 ac_check_lib_save_LIBS=$LIBS
30822LIBS="-liodbc $LIBS"
30823cat >conftest.$ac_ext <<_ACEOF
30824/* confdefs.h. */
30825_ACEOF
30826cat confdefs.h >>conftest.$ac_ext
30827cat >>conftest.$ac_ext <<_ACEOF
30828/* end confdefs.h. */
30829
30830/* Override any gcc2 internal prototype to avoid an error. */
30831#ifdef __cplusplus
30832extern "C"
30833#endif
30834/* We use char because int might match the return type of a gcc2
30835 builtin and then its argument prototype would still apply. */
30836char SQLAllocEnv ();
30837int
30838main ()
30839{
30840SQLAllocEnv ();
30841 ;
30842 return 0;
30843}
30844_ACEOF
30845rm -f conftest.$ac_objext conftest$ac_exeext
30846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30847 (eval $ac_link) 2>conftest.er1
a848cd7e 30848 ac_status=$?
ac1cb8d3
VS
30849 grep -v '^ *+' conftest.er1 >conftest.err
30850 rm -f conftest.er1
30851 cat conftest.err >&5
a848cd7e
SC
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); } &&
3565d135
RR
30854 { ac_try='test -z "$ac_c_werror_flag"
30855 || test ! -s conftest.err'
ac1cb8d3
VS
30856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30857 (eval $ac_try) 2>&5
30858 ac_status=$?
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); }; } &&
30861 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30863 (eval $ac_try) 2>&5
30864 ac_status=$?
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); }; }; then
30867 ac_cv_lib_iodbc_SQLAllocEnv=yes
30868else
30869 echo "$as_me: failed program was:" >&5
30870sed 's/^/| /' conftest.$ac_ext >&5
30871
30872ac_cv_lib_iodbc_SQLAllocEnv=no
30873fi
ac1cb8d3
VS
30874rm -f conftest.err conftest.$ac_objext \
30875 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30876LIBS=$ac_check_lib_save_LIBS
30877fi
30878echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30879echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30880if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30881 ODBC_LINK=" -liodbc"
30882else
30883
30884 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30885echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30886if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30887 echo $ECHO_N "(cached) $ECHO_C" >&6
30888else
30889 ac_check_lib_save_LIBS=$LIBS
30890LIBS="-lunixodbc $LIBS"
30891cat >conftest.$ac_ext <<_ACEOF
30892/* confdefs.h. */
30893_ACEOF
30894cat confdefs.h >>conftest.$ac_ext
30895cat >>conftest.$ac_ext <<_ACEOF
30896/* end confdefs.h. */
30897
30898/* Override any gcc2 internal prototype to avoid an error. */
30899#ifdef __cplusplus
30900extern "C"
30901#endif
30902/* We use char because int might match the return type of a gcc2
30903 builtin and then its argument prototype would still apply. */
30904char SQLAllocEnv ();
30905int
30906main ()
30907{
30908SQLAllocEnv ();
30909 ;
30910 return 0;
30911}
30912_ACEOF
30913rm -f conftest.$ac_objext conftest$ac_exeext
30914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30915 (eval $ac_link) 2>conftest.er1
a848cd7e 30916 ac_status=$?
ac1cb8d3
VS
30917 grep -v '^ *+' conftest.er1 >conftest.err
30918 rm -f conftest.er1
30919 cat conftest.err >&5
a848cd7e
SC
30920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921 (exit $ac_status); } &&
3565d135
RR
30922 { ac_try='test -z "$ac_c_werror_flag"
30923 || test ! -s conftest.err'
ac1cb8d3
VS
30924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30925 (eval $ac_try) 2>&5
30926 ac_status=$?
30927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30928 (exit $ac_status); }; } &&
30929 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30931 (eval $ac_try) 2>&5
30932 ac_status=$?
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); }; }; then
30935 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30936else
30937 echo "$as_me: failed program was:" >&5
30938sed 's/^/| /' conftest.$ac_ext >&5
30939
30940ac_cv_lib_unixodbc_SQLAllocEnv=no
30941fi
ac1cb8d3
VS
30942rm -f conftest.err conftest.$ac_objext \
30943 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30944LIBS=$ac_check_lib_save_LIBS
30945fi
30946echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30947echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30948if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30949 ODBC_LINK=" -lunixodbc"
30950else
30951
30952 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30953echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30954if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30955 echo $ECHO_N "(cached) $ECHO_C" >&6
30956else
30957 ac_check_lib_save_LIBS=$LIBS
30958LIBS="-lodbc $LIBS"
30959cat >conftest.$ac_ext <<_ACEOF
30960/* confdefs.h. */
30961_ACEOF
30962cat confdefs.h >>conftest.$ac_ext
30963cat >>conftest.$ac_ext <<_ACEOF
30964/* end confdefs.h. */
30965
30966/* Override any gcc2 internal prototype to avoid an error. */
30967#ifdef __cplusplus
30968extern "C"
30969#endif
30970/* We use char because int might match the return type of a gcc2
30971 builtin and then its argument prototype would still apply. */
30972char SQLAllocEnv ();
30973int
30974main ()
30975{
30976SQLAllocEnv ();
30977 ;
30978 return 0;
30979}
30980_ACEOF
30981rm -f conftest.$ac_objext conftest$ac_exeext
30982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30983 (eval $ac_link) 2>conftest.er1
a848cd7e 30984 ac_status=$?
ac1cb8d3
VS
30985 grep -v '^ *+' conftest.er1 >conftest.err
30986 rm -f conftest.er1
30987 cat conftest.err >&5
a848cd7e
SC
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); } &&
3565d135
RR
30990 { ac_try='test -z "$ac_c_werror_flag"
30991 || test ! -s conftest.err'
ac1cb8d3
VS
30992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993 (eval $ac_try) 2>&5
30994 ac_status=$?
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; } &&
30997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30999 (eval $ac_try) 2>&5
31000 ac_status=$?
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); }; }; then
31003 ac_cv_lib_odbc_SQLAllocEnv=yes
31004else
31005 echo "$as_me: failed program was:" >&5
31006sed 's/^/| /' conftest.$ac_ext >&5
31007
31008ac_cv_lib_odbc_SQLAllocEnv=no
31009fi
ac1cb8d3
VS
31010rm -f conftest.err conftest.$ac_objext \
31011 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31012LIBS=$ac_check_lib_save_LIBS
31013fi
31014echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31015echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31016if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31017 ODBC_LINK=" -lodbc"
31018fi
31019
31020
31021fi
31022
31023
31024fi
31025
31026 fi
31027 if test "x$ODBC_LINK" = "x" ; then
31028 if test "$wxUSE_ODBC" = "sys" ; then
31029 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31030echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31031 { (exit 1); exit 1; }; }
31032 else
31033 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31034echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31035 wxUSE_ODBC=builtin
31036 fi
31037 else
31038 wxUSE_ODBC=sys
31039 fi
31040 fi
a848cd7e 31041
2da0c077
RD
31042 if test "$wxUSE_ODBC" = "builtin" ; then
31043 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31044#define wxUSE_BUILTIN_IODBC 1
31045_ACEOF
31046
a848cd7e
SC
31047 fi
31048fi
31049
2da0c077
RD
31050if test "$wxUSE_ODBC" != "no" ; then
31051 cat >>confdefs.h <<\_ACEOF
31052#define wxUSE_ODBC 1
31053_ACEOF
31054
31055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31056
5ff751d6 31057 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31058fi
a848cd7e 31059
01cb68df 31060
a848cd7e 31061if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31062 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31063 echo "$as_me:$LINENO: checking for Xinerama" >&5
31064echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31065
0ad5d837
VZ
31066 ac_find_libraries=
31067 for ac_dir in $SEARCH_LIB;
31068 do
31069 for ac_extension in a so sl dylib dll.a; do
31070 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31071 ac_find_libraries=$ac_dir
31072 break 2
31073 fi
31074 done
31075 done
31076
a848cd7e
SC
31077 if test "$ac_find_libraries" != "" ; then
31078
0ad5d837 31079 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31080 ac_path_to_link=""
31081 else
0ad5d837
VZ
31082 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31083 result=$?
31084 if test $result = 0; then
31085 ac_path_to_link=""
31086 else
31087 ac_path_to_link=" -L$ac_find_libraries"
31088 fi
a848cd7e
SC
31089 fi
31090
31091 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31092 LDFLAGS="$LDFLAGS $ac_path_to_link"
31093 fi
31094 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31095 echo "$as_me:$LINENO: result: yes" >&5
31096echo "${ECHO_T}yes" >&6
31097
31098 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31099echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31100
0ad5d837
VZ
31101 ac_find_libraries=
31102 for ac_dir in $SEARCH_LIB;
a848cd7e 31103 do
3eca31dc 31104 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31105 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31106 ac_find_libraries=$ac_dir
31107 break 2
31108 fi
31109 done
31110 done
31111
31112 if test "$ac_find_libraries" != "" ; then
31113 echo "$as_me:$LINENO: result: yes" >&5
31114echo "${ECHO_T}yes" >&6
31115
31116for ac_header in X11/extensions/xf86vmode.h
31117do
31118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31119echo "$as_me:$LINENO: checking for $ac_header" >&5
31120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31121if eval "test \"\${$as_ac_Header+set}\" = set"; then
31122 echo $ECHO_N "(cached) $ECHO_C" >&6
31123else
31124 cat >conftest.$ac_ext <<_ACEOF
31125/* confdefs.h. */
31126_ACEOF
31127cat confdefs.h >>conftest.$ac_ext
31128cat >>conftest.$ac_ext <<_ACEOF
31129/* end confdefs.h. */
31130
31131 #if HAVE_X11_XLIB_H
31132 #include <X11/Xlib.h>
31133 #endif
31134
31135
31136#include <$ac_header>
31137_ACEOF
31138rm -f conftest.$ac_objext
31139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31140 (eval $ac_compile) 2>conftest.er1
a848cd7e 31141 ac_status=$?
ac1cb8d3
VS
31142 grep -v '^ *+' conftest.er1 >conftest.err
31143 rm -f conftest.er1
31144 cat conftest.err >&5
a848cd7e
SC
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); } &&
3565d135
RR
31147 { ac_try='test -z "$ac_c_werror_flag"
31148 || test ! -s conftest.err'
ac1cb8d3
VS
31149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31150 (eval $ac_try) 2>&5
31151 ac_status=$?
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); }; } &&
31154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31156 (eval $ac_try) 2>&5
31157 ac_status=$?
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; }; then
31160 eval "$as_ac_Header=yes"
31161else
31162 echo "$as_me: failed program was:" >&5
31163sed 's/^/| /' conftest.$ac_ext >&5
31164
31165eval "$as_ac_Header=no"
31166fi
ac1cb8d3 31167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31168fi
31169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31171if test `eval echo '${'$as_ac_Header'}'` = yes; then
31172 cat >>confdefs.h <<_ACEOF
31173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31174_ACEOF
31175
31176 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31177
31178fi
31179
31180done
31181
31182 else
31183 echo "$as_me:$LINENO: result: no" >&5
31184echo "${ECHO_T}no" >&6
31185 fi
31186
31187 else
31188 echo "$as_me:$LINENO: result: no" >&5
31189echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31190 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31191echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31192 wxUSE_DISPLAY="no"
31193 fi
01cb68df
RG
31194 elif test "$wxUSE_MSW" = 1; then
31195
31196
31197for ac_header in multimon.h ddraw.h
31198do
31199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31200echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31202if eval "test \"\${$as_ac_Header+set}\" = set"; then
31203 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31204else
5294a27e 31205 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31206/* confdefs.h. */
31207_ACEOF
31208cat confdefs.h >>conftest.$ac_ext
31209cat >>conftest.$ac_ext <<_ACEOF
31210/* end confdefs.h. */
5294a27e
VZ
31211#include <windows.h>
31212
01cb68df
RG
31213#include <$ac_header>
31214_ACEOF
31215rm -f conftest.$ac_objext
31216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31217 (eval $ac_compile) 2>conftest.er1
01cb68df 31218 ac_status=$?
ac1cb8d3
VS
31219 grep -v '^ *+' conftest.er1 >conftest.err
31220 rm -f conftest.er1
31221 cat conftest.err >&5
01cb68df
RG
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); } &&
3565d135
RR
31224 { ac_try='test -z "$ac_c_werror_flag"
31225 || test ! -s conftest.err'
ac1cb8d3
VS
31226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227 (eval $ac_try) 2>&5
31228 ac_status=$?
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; } &&
31231 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31233 (eval $ac_try) 2>&5
31234 ac_status=$?
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); }; }; then
5294a27e 31237 eval "$as_ac_Header=yes"
01cb68df
RG
31238else
31239 echo "$as_me: failed program was:" >&5
31240sed 's/^/| /' conftest.$ac_ext >&5
31241
5294a27e 31242eval "$as_ac_Header=no"
01cb68df 31243fi
ac1cb8d3 31244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31245fi
31246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31247echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31248if test `eval echo '${'$as_ac_Header'}'` = yes; then
31249 cat >>confdefs.h <<_ACEOF
31250#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31251_ACEOF
31252
31253else
31254
5294a27e
VZ
31255 wxUSE_DISPLAY="no"
31256 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 31257echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
31258
31259fi
31260
31261done
31262
a848cd7e
SC
31263 fi
31264fi
31265
31266
31267USE_OPENGL=0
31268if test "$wxUSE_OPENGL" = "yes"; then
31269 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31270 OPENGL_LIBS="-framework OpenGL -framework AGL"
31271 elif test "$wxUSE_MSW" = 1; then
31272 OPENGL_LIBS="-lopengl32 -lglu32"
31273 else
31274
31275
31276ac_find_includes=
31277for ac_dir in $SEARCH_INCLUDE /usr/include;
31278 do
31279 if test -f "$ac_dir/GL/gl.h"; then
31280 ac_find_includes=$ac_dir
31281 break
31282 fi
31283 done
31284
31285 if test "$ac_find_includes" != "" ; then
31286 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31287echo "${ECHO_T}found in $ac_find_includes" >&6
31288
31289 if test "x$ac_find_includes" = "x/usr/include"; then
31290 ac_path_to_include=""
31291 else
31292 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31293 result=$?
31294 if test $result = 0; then
31295 ac_path_to_include=""
31296 else
31297 ac_path_to_include=" -I$ac_find_includes"
31298 fi
31299 fi
31300
c92ad099 31301 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31302 fi
31303
31304 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31305 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31306echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31307if test "${ac_cv_header_GL_gl_h+set}" = set; then
31308 echo $ECHO_N "(cached) $ECHO_C" >&6
31309fi
31310echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31311echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31312else
31313 # Is the header compilable?
31314echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31315echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31316cat >conftest.$ac_ext <<_ACEOF
31317/* confdefs.h. */
31318_ACEOF
31319cat confdefs.h >>conftest.$ac_ext
31320cat >>conftest.$ac_ext <<_ACEOF
31321/* end confdefs.h. */
31322$ac_includes_default
31323#include <GL/gl.h>
31324_ACEOF
31325rm -f conftest.$ac_objext
31326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31327 (eval $ac_compile) 2>conftest.er1
a848cd7e 31328 ac_status=$?
ac1cb8d3
VS
31329 grep -v '^ *+' conftest.er1 >conftest.err
31330 rm -f conftest.er1
31331 cat conftest.err >&5
a848cd7e
SC
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); } &&
3565d135
RR
31334 { ac_try='test -z "$ac_c_werror_flag"
31335 || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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 ac_header_compiler=yes
31348else
31349 echo "$as_me: failed program was:" >&5
31350sed 's/^/| /' conftest.$ac_ext >&5
31351
31352ac_header_compiler=no
31353fi
ac1cb8d3 31354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31356echo "${ECHO_T}$ac_header_compiler" >&6
31357
31358# Is the header present?
31359echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31360echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31361cat >conftest.$ac_ext <<_ACEOF
31362/* confdefs.h. */
31363_ACEOF
31364cat confdefs.h >>conftest.$ac_ext
31365cat >>conftest.$ac_ext <<_ACEOF
31366/* end confdefs.h. */
31367#include <GL/gl.h>
31368_ACEOF
31369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31371 ac_status=$?
31372 grep -v '^ *+' conftest.er1 >conftest.err
31373 rm -f conftest.er1
31374 cat conftest.err >&5
31375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376 (exit $ac_status); } >/dev/null; then
31377 if test -s conftest.err; then
31378 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31380 else
31381 ac_cpp_err=
31382 fi
31383else
31384 ac_cpp_err=yes
31385fi
31386if test -z "$ac_cpp_err"; then
31387 ac_header_preproc=yes
31388else
31389 echo "$as_me: failed program was:" >&5
31390sed 's/^/| /' conftest.$ac_ext >&5
31391
31392 ac_header_preproc=no
31393fi
31394rm -f conftest.err conftest.$ac_ext
31395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31396echo "${ECHO_T}$ac_header_preproc" >&6
31397
31398# So? What about this header?
ac1cb8d3
VS
31399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31400 yes:no: )
a848cd7e
SC
31401 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31402echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31403 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31404echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31405 ac_header_preproc=yes
a848cd7e 31406 ;;
ac1cb8d3 31407 no:yes:* )
a848cd7e
SC
31408 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31409echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31410 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31411echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31412 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31413echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31414 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31415echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31416 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31417echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31418 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31419echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31420 (
31421 cat <<\_ASBOX
ac1cb8d3
VS
31422## ----------------------------------------- ##
31423## Report this to wx-dev@lists.wxwidgets.org ##
31424## ----------------------------------------- ##
a848cd7e
SC
31425_ASBOX
31426 ) |
31427 sed "s/^/$as_me: WARNING: /" >&2
31428 ;;
31429esac
31430echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31431echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31432if test "${ac_cv_header_GL_gl_h+set}" = set; then
31433 echo $ECHO_N "(cached) $ECHO_C" >&6
31434else
31435 ac_cv_header_GL_gl_h=$ac_header_preproc
31436fi
31437echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31438echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31439
31440fi
31441if test $ac_cv_header_GL_gl_h = yes; then
31442
31443 found_gl=0
31444
31445 echo "$as_me:$LINENO: checking for -lGL" >&5
31446echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31447
0ad5d837
VZ
31448 ac_find_libraries=
31449 for ac_dir in $SEARCH_LIB;
a848cd7e 31450 do
3eca31dc 31451 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31452 if test -f "$ac_dir/libGL.$ac_extension"; then
31453 ac_find_libraries=$ac_dir
31454 break 2
31455 fi
31456 done
31457 done
31458
31459 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31460 echo "$as_me:$LINENO: result: yes" >&5
31461echo "${ECHO_T}yes" >&6
31462
a848cd7e 31463
0ad5d837 31464 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31465 ac_path_to_link=""
31466 else
0ad5d837
VZ
31467 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31468 result=$?
31469 if test $result = 0; then
31470 ac_path_to_link=""
31471 else
31472 ac_path_to_link=" -L$ac_find_libraries"
31473 fi
a848cd7e
SC
31474 fi
31475
31476 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31477 LDFLAGS_GL="$ac_path_to_link"
31478 fi
31479
69120ee4
VZ
31480 echo "$as_me:$LINENO: checking for -lGLU" >&5
31481echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31482
0ad5d837
VZ
31483 ac_find_libraries=
31484 for ac_dir in $SEARCH_LIB;
31485 do
31486 for ac_extension in a so sl dylib dll.a; do
31487 if test -f "$ac_dir/libGLU.$ac_extension"; then
31488 ac_find_libraries=$ac_dir
31489 break 2
31490 fi
31491 done
31492 done
31493
a848cd7e
SC
31494 if test "$ac_find_libraries" != "" ; then
31495
0ad5d837 31496 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31497 ac_path_to_link=""
31498 else
0ad5d837
VZ
31499 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31500 result=$?
31501 if test $result = 0; then
31502 ac_path_to_link=""
31503 else
31504 ac_path_to_link=" -L$ac_find_libraries"
31505 fi
a848cd7e
SC
31506 fi
31507
31508 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31509 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31510 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31511 fi
31512
31513 found_gl=1
31514 OPENGL_LIBS="-lGL -lGLU"
31515 echo "$as_me:$LINENO: result: yes" >&5
31516echo "${ECHO_T}yes" >&6
69120ee4
VZ
31517 else
31518 echo "$as_me:$LINENO: result: no" >&5
31519echo "${ECHO_T}no" >&6
a848cd7e 31520 fi
69120ee4
VZ
31521 else
31522 echo "$as_me:$LINENO: result: no" >&5
31523echo "${ECHO_T}no" >&6
a848cd7e
SC
31524 fi
31525
31526 if test "$found_gl" != 1; then
a848cd7e
SC
31527 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31528echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31529
0ad5d837
VZ
31530 ac_find_libraries=
31531 for ac_dir in $SEARCH_LIB;
a848cd7e 31532 do
3eca31dc 31533 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31534 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31535 ac_find_libraries=$ac_dir
31536 break 2
31537 fi
31538 done
31539 done
31540
31541 if test "$ac_find_libraries" != "" ; then
31542
0ad5d837 31543 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31544 ac_path_to_link=""
31545 else
0ad5d837
VZ
31546 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31547 result=$?
31548 if test $result = 0; then
31549 ac_path_to_link=""
31550 else
31551 ac_path_to_link=" -L$ac_find_libraries"
31552 fi
a848cd7e
SC
31553 fi
31554
31555 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31556 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31557 echo "$as_me:$LINENO: result: yes" >&5
31558echo "${ECHO_T}yes" >&6
31559 else
31560 echo "$as_me:$LINENO: result: no" >&5
31561echo "${ECHO_T}no" >&6
31562 fi
31563 fi
31564
31565fi
31566
31567
31568
31569 if test "x$OPENGL_LIBS" = "x"; then
31570 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31571echo "$as_me: error: OpenGL libraries not available" >&2;}
31572 { (exit 1); exit 1; }; }
31573 fi
31574 fi
31575
31576 if test "$wxUSE_OPENGL" = "yes"; then
31577 USE_OPENGL=1
31578 cat >>confdefs.h <<\_ACEOF
31579#define wxUSE_OPENGL 1
31580_ACEOF
31581
31582 cat >>confdefs.h <<\_ACEOF
31583#define wxUSE_GLCANVAS 1
31584_ACEOF
31585
31586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31587 fi
31588fi
31589
a848cd7e
SC
31590
31591if test -n "$TOOLKIT" ; then
31592 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31593fi
31594
a848cd7e
SC
31595
31596
31597if test "$wxUSE_SHARED" = "yes"; then
31598 case "${host}" in
31599 *-pc-msdosdjgpp )
31600 wxUSE_SHARED=no
31601 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31602echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31603 ;;
31604 esac
31605fi
31606
a848cd7e 31607if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31608
31609
31610 found_versioning=no
31611
31612
31613 if test $found_versioning = no ; then
31614 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31615echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31616if test "${wx_cv_version_script+set}" = set; then
31617 echo $ECHO_N "(cached) $ECHO_C" >&6
31618else
31619
31620 echo "VER_1 { *; };" >conftest.sym
31621 echo "int main() { return 0; }" >conftest.cpp
31622
31623 if { ac_try='
31624 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31625 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31627 (eval $ac_try) 2>&5
31628 ac_status=$?
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); }; } ; then
31631 if test -s conftest.stderr ; then
31632 wx_cv_version_script=no
31633 else
31634 wx_cv_version_script=yes
31635 fi
31636 else
31637 wx_cv_version_script=no
31638 fi
e5d4b470
MW
31639
31640 if test $wx_cv_version_script = yes
31641 then
31642 echo "struct B { virtual ~B() { } }; \
31643 struct D : public B { }; \
31644 void F() { D d; }" > conftest.cpp
31645
31646 if { ac_try='
31647 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31648 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31650 (eval $ac_try) 2>&5
31651 ac_status=$?
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); }; } &&
31654 { ac_try='
31655 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31656 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31658 (eval $ac_try) 2>&5
31659 ac_status=$?
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); }; }
31662 then
31663 if { ac_try='
31664 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31665 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31667 (eval $ac_try) 2>&5
31668 ac_status=$?
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); }; }
31671 then
31672 wx_cv_version_script=yes
31673 else
31674 wx_cv_version_script=no
31675 fi
31676 fi
31677 fi
31678
a848cd7e 31679 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31680 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31681
31682fi
31683echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31684echo "${ECHO_T}$wx_cv_version_script" >&6
31685 if test $wx_cv_version_script = yes ; then
31686 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31687 fi
31688 fi
31689
31690
31691 case "${host}" in
31692 *-*-linux* | *-*-gnu* )
31693 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31694 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31695 ;;
a848cd7e
SC
31696
31697 *-*-solaris2* )
31698 if test "$GCC" = yes ; then
c92ad099 31699 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
31700
31701 saveLdflags="$LDFLAGS"
31702 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31703 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31704echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31705 cat >conftest.$ac_ext <<_ACEOF
31706/* confdefs.h. */
31707_ACEOF
31708cat confdefs.h >>conftest.$ac_ext
31709cat >>conftest.$ac_ext <<_ACEOF
31710/* end confdefs.h. */
31711
31712int
31713main ()
31714{
31715
31716 ;
31717 return 0;
31718}
31719_ACEOF
31720rm -f conftest.$ac_objext conftest$ac_exeext
31721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31722 (eval $ac_link) 2>conftest.er1
a848cd7e 31723 ac_status=$?
ac1cb8d3
VS
31724 grep -v '^ *+' conftest.er1 >conftest.err
31725 rm -f conftest.er1
31726 cat conftest.err >&5
a848cd7e
SC
31727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728 (exit $ac_status); } &&
3565d135
RR
31729 { ac_try='test -z "$ac_c_werror_flag"
31730 || test ! -s conftest.err'
ac1cb8d3
VS
31731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31732 (eval $ac_try) 2>&5
31733 ac_status=$?
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; } &&
31736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31738 (eval $ac_try) 2>&5
31739 ac_status=$?
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); }; }; then
31742
31743 echo "$as_me:$LINENO: result: yes" >&5
31744echo "${ECHO_T}yes" >&6
31745 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31746 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31747
31748else
31749 echo "$as_me: failed program was:" >&5
31750sed 's/^/| /' conftest.$ac_ext >&5
31751
31752
31753 echo "$as_me:$LINENO: result: no" >&5
31754echo "${ECHO_T}no" >&6
31755 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31756echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31757 LDFLAGS="$saveLdflags -Wl,-R,/"
31758 cat >conftest.$ac_ext <<_ACEOF
31759/* confdefs.h. */
31760_ACEOF
31761cat confdefs.h >>conftest.$ac_ext
31762cat >>conftest.$ac_ext <<_ACEOF
31763/* end confdefs.h. */
31764
31765int
31766main ()
31767{
31768
31769 ;
31770 return 0;
31771}
31772_ACEOF
31773rm -f conftest.$ac_objext conftest$ac_exeext
31774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31775 (eval $ac_link) 2>conftest.er1
a848cd7e 31776 ac_status=$?
ac1cb8d3
VS
31777 grep -v '^ *+' conftest.er1 >conftest.err
31778 rm -f conftest.er1
31779 cat conftest.err >&5
a848cd7e
SC
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); } &&
3565d135
RR
31782 { ac_try='test -z "$ac_c_werror_flag"
31783 || test ! -s conftest.err'
ac1cb8d3
VS
31784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31785 (eval $ac_try) 2>&5
31786 ac_status=$?
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); }; } &&
31789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31791 (eval $ac_try) 2>&5
31792 ac_status=$?
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; }; then
31795
ffa0583f 31796 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31797echo "${ECHO_T}yes" >&6
ffa0583f
RL
31798 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31799 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31800
a848cd7e
SC
31801else
31802 echo "$as_me: failed program was:" >&5
31803sed 's/^/| /' conftest.$ac_ext >&5
31804
31805
31806 echo "$as_me:$LINENO: result: no" >&5
31807echo "${ECHO_T}no" >&6
31808
31809fi
ac1cb8d3
VS
31810rm -f conftest.err conftest.$ac_objext \
31811 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31812
31813fi
ac1cb8d3
VS
31814rm -f conftest.err conftest.$ac_objext \
31815 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31816 LDFLAGS="$saveLdflags"
31817 else
a848cd7e 31818 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31819 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31820 fi
31821 ;;
31822
cfda0ea8 31823 *-*-darwin* )
0caebc27
MW
31824 install_name_tool=`which install_name_tool`
31825 if test "$install_name_tool" -a -x "$install_name_tool"; then
31826 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31827 cat <<EOF >change-install-names
a848cd7e
SC
31828#!/bin/sh
31829libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31830inst_cmd="install_name_tool "
31831for i in \${libnames} ; do
31832 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31833done
31834\${inst_cmd} \${3}
31835EOF
0caebc27
MW
31836 chmod +x change-install-names
31837 fi
a848cd7e
SC
31838 ;;
31839
31840 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
31841 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
31842 ;;
a848cd7e 31843
81f90336
MW
31844 *-*-hpux* )
31845 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31846 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 31847 ;;
81f90336 31848
a848cd7e 31849 esac
ceec2216 31850
ffa0583f
RL
31851 if test $wxUSE_RPATH = "no"; then
31852 SAMPLES_RPATH_FLAG=''
31853 SAMPLES_RPATH_POSTLINK=''
31854 WXCONFIG_RPATH=''
31855 fi
31856
31857 SHARED=1
31858
31859else
31860
ceec2216
RL
31861 config_linkage_component="-static"
31862 SHARED=0
ffa0583f 31863
ceec2216 31864fi
a848cd7e 31865
a848cd7e 31866
ceec2216
RL
31867UNICODE=0
31868lib_unicode_suffix=
31869WX_CHARTYPE="ansi"
31870if test "$wxUSE_UNICODE" = "yes"; then
31871 lib_unicode_suffix=u
31872 WX_CHARTYPE="unicode"
31873 UNICODE=1
a848cd7e
SC
31874fi
31875
ceec2216
RL
31876lib_debug_suffix=
31877WX_DEBUGTYPE="release"
31878DEBUG_FLAG=0
31879if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31880 lib_debug_suffix=d
31881 WX_DEBUGTYPE="debug"
31882 DEBUG_FLAG=1
31883fi
a848cd7e 31884
ceec2216
RL
31885WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31886WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31887
ceec2216
RL
31888DEBUG_INFO=0
31889if test "$wxUSE_DEBUG_INFO" = "yes"; then
31890 DEBUG_INFO=1
31891fi
a848cd7e 31892
ceec2216 31893WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31894
ceec2216 31895TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31896
ceec2216 31897TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31898
ceec2216
RL
31899if test "$cross_compiling" = "yes"; then
31900 HOST_SUFFIX="-$host_alias"
31901 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31902 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31903fi
31904
dd21ced8 31905WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31906if test "${TOOLKIT_DIR}" = "os2"; then
31907 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31908else
31909 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31910fi
ceec2216
RL
31911
31912
31913
1d1af5ea
DE
31914if test "$wxUSE_COCOA" = 1; then
31915
31916
31917 ac_ext=c
31918ac_cpp='$CPP $CPPFLAGS'
31919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31921ac_compiler_gnu=$ac_cv_c_compiler_gnu
31922
31923ac_ext=m
31924
31925 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31926echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31927 cat >conftest.$ac_ext <<_ACEOF
31928/* confdefs.h. */
31929_ACEOF
31930cat confdefs.h >>conftest.$ac_ext
31931cat >>conftest.$ac_ext <<_ACEOF
31932/* end confdefs.h. */
31933#include <AppKit/NSEvent.h>
31934#include <CoreFoundation/CoreFoundation.h>
31935
31936int
31937main ()
31938{
31939
31940 ;
31941 return 0;
31942}
31943_ACEOF
31944rm -f conftest.$ac_objext
31945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31946 (eval $ac_compile) 2>conftest.er1
31947 ac_status=$?
31948 grep -v '^ *+' conftest.er1 >conftest.err
31949 rm -f conftest.er1
31950 cat conftest.err >&5
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); } &&
3565d135
RR
31953 { ac_try='test -z "$ac_c_werror_flag"
31954 || test ! -s conftest.err'
1d1af5ea
DE
31955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31956 (eval $ac_try) 2>&5
31957 ac_status=$?
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; } &&
31960 { ac_try='test -s conftest.$ac_objext'
31961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31962 (eval $ac_try) 2>&5
31963 ac_status=$?
31964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965 (exit $ac_status); }; }; then
31966 echo "$as_me:$LINENO: result: no" >&5
31967echo "${ECHO_T}no" >&6
31968else
31969 echo "$as_me: failed program was:" >&5
31970sed 's/^/| /' conftest.$ac_ext >&5
31971
31972echo "$as_me:$LINENO: result: yes" >&5
31973echo "${ECHO_T}yes" >&6
31974 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31975echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31976 cat >conftest.$ac_ext <<_ACEOF
31977/* confdefs.h. */
31978_ACEOF
31979cat confdefs.h >>conftest.$ac_ext
31980cat >>conftest.$ac_ext <<_ACEOF
31981/* end confdefs.h. */
31982#define __Point__ 1
31983#include <AppKit/NSEvent.h>
31984#include <CoreFoundation/CoreFoundation.h>
31985
31986int
31987main ()
31988{
31989
31990 ;
31991 return 0;
31992}
31993_ACEOF
31994rm -f conftest.$ac_objext
31995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31996 (eval $ac_compile) 2>conftest.er1
31997 ac_status=$?
31998 grep -v '^ *+' conftest.er1 >conftest.err
31999 rm -f conftest.er1
32000 cat conftest.err >&5
32001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002 (exit $ac_status); } &&
3565d135
RR
32003 { ac_try='test -z "$ac_c_werror_flag"
32004 || test ! -s conftest.err'
1d1af5ea
DE
32005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32006 (eval $ac_try) 2>&5
32007 ac_status=$?
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); }; } &&
32010 { ac_try='test -s conftest.$ac_objext'
32011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32012 (eval $ac_try) 2>&5
32013 ac_status=$?
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); }; }; then
32016 echo "$as_me:$LINENO: result: yes" >&5
32017echo "${ECHO_T}yes" >&6
32018 cat >>confdefs.h <<\_ACEOF
32019#define __Point__ 1
32020_ACEOF
32021
32022
32023else
32024 echo "$as_me: failed program was:" >&5
32025sed 's/^/| /' conftest.$ac_ext >&5
32026
32027{ { echo "$as_me:$LINENO: error: no
32028See \`config.log' for more details." >&5
32029echo "$as_me: error: no
32030See \`config.log' for more details." >&2;}
32031 { (exit 1); exit 1; }; }
32032
32033fi
32034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32035
32036fi
32037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32038 ac_ext=c
32039ac_cpp='$CPP $CPPFLAGS'
32040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32042ac_compiler_gnu=$ac_cv_c_compiler_gnu
32043
32044fi
32045
a848cd7e 32046if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32047 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32048 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32049
a848cd7e 32050 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32051
32052 # Extract the first word of "Rez", so it can be a program name with args.
32053set dummy Rez; ac_word=$2
32054echo "$as_me:$LINENO: checking for $ac_word" >&5
32055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32056if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32057 echo $ECHO_N "(cached) $ECHO_C" >&6
32058else
8ced02f6
DE
32059 if test -n "$REZ"; then
32060 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32061else
32062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32063for as_dir in $PATH
32064do
32065 IFS=$as_save_IFS
32066 test -z "$as_dir" && as_dir=.
32067 for ac_exec_ext in '' $ac_executable_extensions; do
32068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32069 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32071 break 2
32072 fi
32073done
32074done
32075
8ced02f6 32076 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32077fi
32078fi
8ced02f6
DE
32079REZ=$ac_cv_prog_REZ
32080if test -n "$REZ"; then
32081 echo "$as_me:$LINENO: result: $REZ" >&5
32082echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32083else
32084 echo "$as_me:$LINENO: result: no" >&5
32085echo "${ECHO_T}no" >&6
32086fi
32087
32088 # Extract the first word of "DeRez", so it can be a program name with args.
32089set dummy DeRez; ac_word=$2
32090echo "$as_me:$LINENO: checking for $ac_word" >&5
32091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32092if test "${ac_cv_prog_DEREZ+set}" = set; then
32093 echo $ECHO_N "(cached) $ECHO_C" >&6
32094else
32095 if test -n "$DEREZ"; then
32096 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32097else
32098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32099for as_dir in $PATH
32100do
32101 IFS=$as_save_IFS
32102 test -z "$as_dir" && as_dir=.
32103 for ac_exec_ext in '' $ac_executable_extensions; do
32104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32105 ac_cv_prog_DEREZ="DeRez"
32106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32107 break 2
32108 fi
32109done
32110done
32111
32112 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32113fi
32114fi
32115DEREZ=$ac_cv_prog_DEREZ
32116if test -n "$DEREZ"; then
32117 echo "$as_me:$LINENO: result: $DEREZ" >&5
32118echo "${ECHO_T}$DEREZ" >&6
32119else
32120 echo "$as_me:$LINENO: result: no" >&5
32121echo "${ECHO_T}no" >&6
32122fi
32123
32124 # Extract the first word of "SetFile", so it can be a program name with args.
32125set dummy SetFile; ac_word=$2
32126echo "$as_me:$LINENO: checking for $ac_word" >&5
32127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32128if test "${ac_cv_prog_SETFILE+set}" = set; then
32129 echo $ECHO_N "(cached) $ECHO_C" >&6
32130else
32131 if test -n "$SETFILE"; then
32132 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32133else
32134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32135for as_dir in $PATH
32136do
32137 IFS=$as_save_IFS
32138 test -z "$as_dir" && as_dir=.
32139 for ac_exec_ext in '' $ac_executable_extensions; do
32140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32141 ac_cv_prog_SETFILE="SetFile"
32142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32143 break 2
32144 fi
32145done
32146done
32147
32148 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32149fi
32150fi
32151SETFILE=$ac_cv_prog_SETFILE
32152if test -n "$SETFILE"; then
32153 echo "$as_me:$LINENO: result: $SETFILE" >&5
32154echo "${ECHO_T}$SETFILE" >&6
32155else
32156 echo "$as_me:$LINENO: result: no" >&5
32157echo "${ECHO_T}no" >&6
32158fi
32159
32160
32161 MACSETFILE="\$(SETFILE)"
32162
32163 if test "$wxUSE_MAC" = 1; then
8ced02f6 32164 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32165 RESCOMP="$REZ"
32166 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32167 else
004ee6da
RL
32168 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32169 RESCOMP="echo -n \| $REZ"
32170 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32171 fi
004ee6da 32172
a848cd7e 32173else
ffa0583f 32174 MACSETFILE="@true"
a848cd7e 32175
8ced02f6 32176 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32177 RESCOMP="emxbind"
32178 WXCONFIG_RESFLAGS="-ep"
32179
32180 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32181 else
8ced02f6 32182 POSTLINK_COMMAND="@true"
a848cd7e 32183 fi
004ee6da 32184
a848cd7e
SC
32185fi
32186
32187
32188
32189echo "$as_me:$LINENO: checking for mode_t" >&5
32190echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32191if test "${ac_cv_type_mode_t+set}" = set; then
32192 echo $ECHO_N "(cached) $ECHO_C" >&6
32193else
32194 cat >conftest.$ac_ext <<_ACEOF
32195/* confdefs.h. */
32196_ACEOF
32197cat confdefs.h >>conftest.$ac_ext
32198cat >>conftest.$ac_ext <<_ACEOF
32199/* end confdefs.h. */
32200$ac_includes_default
32201int
32202main ()
32203{
32204if ((mode_t *) 0)
32205 return 0;
32206if (sizeof (mode_t))
32207 return 0;
32208 ;
32209 return 0;
32210}
32211_ACEOF
32212rm -f conftest.$ac_objext
32213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32214 (eval $ac_compile) 2>conftest.er1
a848cd7e 32215 ac_status=$?
ac1cb8d3
VS
32216 grep -v '^ *+' conftest.er1 >conftest.err
32217 rm -f conftest.er1
32218 cat conftest.err >&5
a848cd7e
SC
32219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220 (exit $ac_status); } &&
3565d135
RR
32221 { ac_try='test -z "$ac_c_werror_flag"
32222 || test ! -s conftest.err'
ac1cb8d3
VS
32223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32224 (eval $ac_try) 2>&5
32225 ac_status=$?
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); }; } &&
32228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32230 (eval $ac_try) 2>&5
32231 ac_status=$?
32232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233 (exit $ac_status); }; }; then
32234 ac_cv_type_mode_t=yes
32235else
32236 echo "$as_me: failed program was:" >&5
32237sed 's/^/| /' conftest.$ac_ext >&5
32238
32239ac_cv_type_mode_t=no
32240fi
ac1cb8d3 32241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32242fi
32243echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32244echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32245if test $ac_cv_type_mode_t = yes; then
32246 :
32247else
32248
32249cat >>confdefs.h <<_ACEOF
32250#define mode_t int
32251_ACEOF
32252
32253fi
32254
32255echo "$as_me:$LINENO: checking for off_t" >&5
32256echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32257if test "${ac_cv_type_off_t+set}" = set; then
32258 echo $ECHO_N "(cached) $ECHO_C" >&6
32259else
32260 cat >conftest.$ac_ext <<_ACEOF
32261/* confdefs.h. */
32262_ACEOF
32263cat confdefs.h >>conftest.$ac_ext
32264cat >>conftest.$ac_ext <<_ACEOF
32265/* end confdefs.h. */
32266$ac_includes_default
32267int
32268main ()
32269{
32270if ((off_t *) 0)
32271 return 0;
32272if (sizeof (off_t))
32273 return 0;
32274 ;
32275 return 0;
32276}
32277_ACEOF
32278rm -f conftest.$ac_objext
32279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32280 (eval $ac_compile) 2>conftest.er1
a848cd7e 32281 ac_status=$?
ac1cb8d3
VS
32282 grep -v '^ *+' conftest.er1 >conftest.err
32283 rm -f conftest.er1
32284 cat conftest.err >&5
a848cd7e
SC
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); } &&
3565d135
RR
32287 { ac_try='test -z "$ac_c_werror_flag"
32288 || test ! -s conftest.err'
ac1cb8d3
VS
32289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32290 (eval $ac_try) 2>&5
32291 ac_status=$?
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); }; } &&
32294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32296 (eval $ac_try) 2>&5
32297 ac_status=$?
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); }; }; then
32300 ac_cv_type_off_t=yes
32301else
32302 echo "$as_me: failed program was:" >&5
32303sed 's/^/| /' conftest.$ac_ext >&5
32304
32305ac_cv_type_off_t=no
32306fi
ac1cb8d3 32307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32308fi
32309echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32310echo "${ECHO_T}$ac_cv_type_off_t" >&6
32311if test $ac_cv_type_off_t = yes; then
32312 :
32313else
32314
32315cat >>confdefs.h <<_ACEOF
32316#define off_t long
32317_ACEOF
32318
32319fi
32320
32321echo "$as_me:$LINENO: checking for pid_t" >&5
32322echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32323if test "${ac_cv_type_pid_t+set}" = set; then
32324 echo $ECHO_N "(cached) $ECHO_C" >&6
32325else
32326 cat >conftest.$ac_ext <<_ACEOF
32327/* confdefs.h. */
32328_ACEOF
32329cat confdefs.h >>conftest.$ac_ext
32330cat >>conftest.$ac_ext <<_ACEOF
32331/* end confdefs.h. */
32332$ac_includes_default
32333int
32334main ()
32335{
32336if ((pid_t *) 0)
32337 return 0;
32338if (sizeof (pid_t))
32339 return 0;
32340 ;
32341 return 0;
32342}
32343_ACEOF
32344rm -f conftest.$ac_objext
32345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32346 (eval $ac_compile) 2>conftest.er1
a848cd7e 32347 ac_status=$?
ac1cb8d3
VS
32348 grep -v '^ *+' conftest.er1 >conftest.err
32349 rm -f conftest.er1
32350 cat conftest.err >&5
a848cd7e
SC
32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); } &&
3565d135
RR
32353 { ac_try='test -z "$ac_c_werror_flag"
32354 || test ! -s conftest.err'
ac1cb8d3
VS
32355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32356 (eval $ac_try) 2>&5
32357 ac_status=$?
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); }; } &&
32360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32362 (eval $ac_try) 2>&5
32363 ac_status=$?
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); }; }; then
32366 ac_cv_type_pid_t=yes
32367else
32368 echo "$as_me: failed program was:" >&5
32369sed 's/^/| /' conftest.$ac_ext >&5
32370
32371ac_cv_type_pid_t=no
32372fi
ac1cb8d3 32373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32374fi
32375echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32376echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32377if test $ac_cv_type_pid_t = yes; then
32378 :
32379else
32380
32381cat >>confdefs.h <<_ACEOF
32382#define pid_t int
32383_ACEOF
32384
32385fi
32386
32387echo "$as_me:$LINENO: checking for size_t" >&5
32388echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32389if test "${ac_cv_type_size_t+set}" = set; then
32390 echo $ECHO_N "(cached) $ECHO_C" >&6
32391else
32392 cat >conftest.$ac_ext <<_ACEOF
32393/* confdefs.h. */
32394_ACEOF
32395cat confdefs.h >>conftest.$ac_ext
32396cat >>conftest.$ac_ext <<_ACEOF
32397/* end confdefs.h. */
32398$ac_includes_default
32399int
32400main ()
32401{
32402if ((size_t *) 0)
32403 return 0;
32404if (sizeof (size_t))
32405 return 0;
32406 ;
32407 return 0;
32408}
32409_ACEOF
32410rm -f conftest.$ac_objext
32411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32412 (eval $ac_compile) 2>conftest.er1
a848cd7e 32413 ac_status=$?
ac1cb8d3
VS
32414 grep -v '^ *+' conftest.er1 >conftest.err
32415 rm -f conftest.er1
32416 cat conftest.err >&5
a848cd7e
SC
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); } &&
3565d135
RR
32419 { ac_try='test -z "$ac_c_werror_flag"
32420 || test ! -s conftest.err'
ac1cb8d3
VS
32421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32422 (eval $ac_try) 2>&5
32423 ac_status=$?
32424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425 (exit $ac_status); }; } &&
32426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32428 (eval $ac_try) 2>&5
32429 ac_status=$?
32430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431 (exit $ac_status); }; }; then
32432 ac_cv_type_size_t=yes
32433else
32434 echo "$as_me: failed program was:" >&5
32435sed 's/^/| /' conftest.$ac_ext >&5
32436
32437ac_cv_type_size_t=no
32438fi
ac1cb8d3 32439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32440fi
32441echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32442echo "${ECHO_T}$ac_cv_type_size_t" >&6
32443if test $ac_cv_type_size_t = yes; then
32444 :
32445else
32446
32447cat >>confdefs.h <<_ACEOF
32448#define size_t unsigned
32449_ACEOF
32450
32451fi
32452
32453echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32454echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32455if test "${ac_cv_type_uid_t+set}" = set; then
32456 echo $ECHO_N "(cached) $ECHO_C" >&6
32457else
32458 cat >conftest.$ac_ext <<_ACEOF
32459/* confdefs.h. */
32460_ACEOF
32461cat confdefs.h >>conftest.$ac_ext
32462cat >>conftest.$ac_ext <<_ACEOF
32463/* end confdefs.h. */
32464#include <sys/types.h>
32465
32466_ACEOF
32467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32468 $EGREP "uid_t" >/dev/null 2>&1; then
32469 ac_cv_type_uid_t=yes
32470else
32471 ac_cv_type_uid_t=no
32472fi
32473rm -f conftest*
32474
32475fi
32476echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32477echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32478if test $ac_cv_type_uid_t = no; then
32479
32480cat >>confdefs.h <<\_ACEOF
32481#define uid_t int
32482_ACEOF
32483
32484
32485cat >>confdefs.h <<\_ACEOF
32486#define gid_t int
32487_ACEOF
32488
32489fi
32490
32491
d51253e8
RL
32492echo "$as_me:$LINENO: checking for ssize_t" >&5
32493echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32494if test "${ac_cv_type_ssize_t+set}" = set; then
32495 echo $ECHO_N "(cached) $ECHO_C" >&6
32496else
32497 cat >conftest.$ac_ext <<_ACEOF
32498/* confdefs.h. */
32499_ACEOF
32500cat confdefs.h >>conftest.$ac_ext
32501cat >>conftest.$ac_ext <<_ACEOF
32502/* end confdefs.h. */
32503$ac_includes_default
32504int
32505main ()
32506{
32507if ((ssize_t *) 0)
32508 return 0;
32509if (sizeof (ssize_t))
32510 return 0;
32511 ;
32512 return 0;
32513}
32514_ACEOF
32515rm -f conftest.$ac_objext
32516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32517 (eval $ac_compile) 2>conftest.er1
32518 ac_status=$?
32519 grep -v '^ *+' conftest.er1 >conftest.err
32520 rm -f conftest.er1
32521 cat conftest.err >&5
32522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523 (exit $ac_status); } &&
3565d135
RR
32524 { ac_try='test -z "$ac_c_werror_flag"
32525 || test ! -s conftest.err'
d51253e8
RL
32526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32527 (eval $ac_try) 2>&5
32528 ac_status=$?
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); }; } &&
32531 { ac_try='test -s conftest.$ac_objext'
32532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32533 (eval $ac_try) 2>&5
32534 ac_status=$?
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; }; then
32537 ac_cv_type_ssize_t=yes
32538else
32539 echo "$as_me: failed program was:" >&5
32540sed 's/^/| /' conftest.$ac_ext >&5
32541
32542ac_cv_type_ssize_t=no
32543fi
32544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32545fi
32546echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32547echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32548if test $ac_cv_type_ssize_t = yes; then
32549
32550cat >>confdefs.h <<_ACEOF
32551#define HAVE_SSIZE_T 1
32552_ACEOF
32553
32554
32555fi
32556
32557
a848cd7e
SC
32558
32559
32560ac_ext=cc
32561ac_cpp='$CXXCPP $CPPFLAGS'
32562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32565
32566echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32567echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32568if test "${wx_cv_size_t_is_uint+set}" = set; then
32569 echo $ECHO_N "(cached) $ECHO_C" >&6
32570else
32571
32572 cat >conftest.$ac_ext <<_ACEOF
32573/* confdefs.h. */
32574_ACEOF
32575cat confdefs.h >>conftest.$ac_ext
32576cat >>conftest.$ac_ext <<_ACEOF
32577/* end confdefs.h. */
32578#include <stddef.h>
32579int
32580main ()
32581{
32582
32583 return 0; }
32584
32585 struct Foo { void foo(size_t); void foo(unsigned int); };
32586
32587 int bar() {
32588
32589 ;
32590 return 0;
32591}
32592_ACEOF
32593rm -f conftest.$ac_objext
32594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32595 (eval $ac_compile) 2>conftest.er1
a848cd7e 32596 ac_status=$?
ac1cb8d3
VS
32597 grep -v '^ *+' conftest.er1 >conftest.err
32598 rm -f conftest.er1
32599 cat conftest.err >&5
a848cd7e
SC
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); } &&
3565d135
RR
32602 { ac_try='test -z "$ac_cxx_werror_flag"
32603 || test ! -s conftest.err'
ac1cb8d3
VS
32604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32605 (eval $ac_try) 2>&5
32606 ac_status=$?
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); }; } &&
32609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32611 (eval $ac_try) 2>&5
32612 ac_status=$?
32613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614 (exit $ac_status); }; }; then
32615 wx_cv_size_t_is_uint=no
32616else
32617 echo "$as_me: failed program was:" >&5
32618sed 's/^/| /' conftest.$ac_ext >&5
32619
32620wx_cv_size_t_is_uint=yes
32621
32622fi
ac1cb8d3 32623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32624
32625
32626fi
32627echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32628echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32629
32630if test "$wx_cv_size_t_is_uint" = "yes"; then
32631 cat >>confdefs.h <<\_ACEOF
32632#define wxSIZE_T_IS_UINT 1
32633_ACEOF
32634
32635else
32636 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32637echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32638if test "${wx_cv_size_t_is_ulong+set}" = set; then
32639 echo $ECHO_N "(cached) $ECHO_C" >&6
32640else
32641 cat >conftest.$ac_ext <<_ACEOF
32642/* confdefs.h. */
32643_ACEOF
32644cat confdefs.h >>conftest.$ac_ext
32645cat >>conftest.$ac_ext <<_ACEOF
32646/* end confdefs.h. */
32647#include <stddef.h>
32648int
32649main ()
32650{
32651
32652 return 0; }
32653
32654 struct Foo { void foo(size_t); void foo(unsigned long); };
32655
32656 int bar() {
32657
32658 ;
32659 return 0;
32660}
32661_ACEOF
32662rm -f conftest.$ac_objext
32663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32664 (eval $ac_compile) 2>conftest.er1
a848cd7e 32665 ac_status=$?
ac1cb8d3
VS
32666 grep -v '^ *+' conftest.er1 >conftest.err
32667 rm -f conftest.er1
32668 cat conftest.err >&5
a848cd7e
SC
32669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); } &&
3565d135
RR
32671 { ac_try='test -z "$ac_cxx_werror_flag"
32672 || test ! -s conftest.err'
ac1cb8d3
VS
32673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32674 (eval $ac_try) 2>&5
32675 ac_status=$?
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); }; } &&
32678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32680 (eval $ac_try) 2>&5
32681 ac_status=$?
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683 (exit $ac_status); }; }; then
32684 wx_cv_size_t_is_ulong=no
32685else
32686 echo "$as_me: failed program was:" >&5
32687sed 's/^/| /' conftest.$ac_ext >&5
32688
32689wx_cv_size_t_is_ulong=yes
32690
32691fi
ac1cb8d3 32692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32693
32694fi
32695echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32696echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32697
32698 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32699 cat >>confdefs.h <<\_ACEOF
32700#define wxSIZE_T_IS_ULONG 1
32701_ACEOF
32702
32703 fi
32704fi
32705
32706ac_ext=c
32707ac_cpp='$CPP $CPPFLAGS'
32708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32710ac_compiler_gnu=$ac_cv_c_compiler_gnu
32711
32712
32713
32714echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32715echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32716if test "${wx_cv_struct_pw_gecos+set}" = set; then
32717 echo $ECHO_N "(cached) $ECHO_C" >&6
32718else
32719
32720 cat >conftest.$ac_ext <<_ACEOF
32721/* confdefs.h. */
32722_ACEOF
32723cat confdefs.h >>conftest.$ac_ext
32724cat >>conftest.$ac_ext <<_ACEOF
32725/* end confdefs.h. */
32726#include <pwd.h>
32727int
32728main ()
32729{
32730
32731 char *p;
32732 struct passwd *pw;
32733 p = pw->pw_gecos;
32734
32735 ;
32736 return 0;
32737}
32738_ACEOF
32739rm -f conftest.$ac_objext
32740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32741 (eval $ac_compile) 2>conftest.er1
a848cd7e 32742 ac_status=$?
ac1cb8d3
VS
32743 grep -v '^ *+' conftest.er1 >conftest.err
32744 rm -f conftest.er1
32745 cat conftest.err >&5
a848cd7e
SC
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); } &&
3565d135
RR
32748 { ac_try='test -z "$ac_c_werror_flag"
32749 || test ! -s conftest.err'
ac1cb8d3
VS
32750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32751 (eval $ac_try) 2>&5
32752 ac_status=$?
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; } &&
32755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32757 (eval $ac_try) 2>&5
32758 ac_status=$?
32759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760 (exit $ac_status); }; }; then
32761
32762 wx_cv_struct_pw_gecos=yes
32763
32764else
32765 echo "$as_me: failed program was:" >&5
32766sed 's/^/| /' conftest.$ac_ext >&5
32767
32768
32769 wx_cv_struct_pw_gecos=no
32770
32771
32772fi
ac1cb8d3 32773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32774
32775
32776fi
32777echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32778echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32779
32780if test "$wx_cv_struct_pw_gecos" = "yes"; then
32781 cat >>confdefs.h <<\_ACEOF
32782#define HAVE_PW_GECOS 1
32783_ACEOF
32784
32785fi
32786
32787
47a7e797 32788if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32789 cat >>confdefs.h <<\_ACEOF
32790#define wxUSE_WCHAR_T 1
32791_ACEOF
32792
32793
32794 WCSLEN_FOUND=0
32795 WCHAR_LINK=
32796
32797for ac_func in wcslen
32798do
32799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32800echo "$as_me:$LINENO: checking for $ac_func" >&5
32801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32802if eval "test \"\${$as_ac_var+set}\" = set"; then
32803 echo $ECHO_N "(cached) $ECHO_C" >&6
32804else
32805 cat >conftest.$ac_ext <<_ACEOF
32806/* confdefs.h. */
32807_ACEOF
32808cat confdefs.h >>conftest.$ac_ext
32809cat >>conftest.$ac_ext <<_ACEOF
32810/* end confdefs.h. */
ac1cb8d3
VS
32811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32813#define $ac_func innocuous_$ac_func
32814
a848cd7e
SC
32815/* System header to define __stub macros and hopefully few prototypes,
32816 which can conflict with char $ac_func (); below.
32817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32818 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32819
a848cd7e
SC
32820#ifdef __STDC__
32821# include <limits.h>
32822#else
32823# include <assert.h>
32824#endif
ac1cb8d3
VS
32825
32826#undef $ac_func
32827
a848cd7e
SC
32828/* Override any gcc2 internal prototype to avoid an error. */
32829#ifdef __cplusplus
32830extern "C"
32831{
32832#endif
32833/* We use char because int might match the return type of a gcc2
32834 builtin and then its argument prototype would still apply. */
32835char $ac_func ();
32836/* The GNU C library defines this for functions which it implements
32837 to always fail with ENOSYS. Some functions are actually named
32838 something starting with __ and the normal name is an alias. */
32839#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32840choke me
32841#else
32842char (*f) () = $ac_func;
32843#endif
32844#ifdef __cplusplus
32845}
32846#endif
32847
32848int
32849main ()
32850{
32851return f != $ac_func;
32852 ;
32853 return 0;
32854}
32855_ACEOF
32856rm -f conftest.$ac_objext conftest$ac_exeext
32857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32858 (eval $ac_link) 2>conftest.er1
a848cd7e 32859 ac_status=$?
ac1cb8d3
VS
32860 grep -v '^ *+' conftest.er1 >conftest.err
32861 rm -f conftest.er1
32862 cat conftest.err >&5
a848cd7e
SC
32863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864 (exit $ac_status); } &&
3565d135
RR
32865 { ac_try='test -z "$ac_c_werror_flag"
32866 || test ! -s conftest.err'
ac1cb8d3
VS
32867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32868 (eval $ac_try) 2>&5
32869 ac_status=$?
32870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871 (exit $ac_status); }; } &&
32872 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32874 (eval $ac_try) 2>&5
32875 ac_status=$?
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); }; }; then
32878 eval "$as_ac_var=yes"
32879else
32880 echo "$as_me: failed program was:" >&5
32881sed 's/^/| /' conftest.$ac_ext >&5
32882
32883eval "$as_ac_var=no"
32884fi
ac1cb8d3
VS
32885rm -f conftest.err conftest.$ac_objext \
32886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32887fi
32888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32889echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32890if test `eval echo '${'$as_ac_var'}'` = yes; then
32891 cat >>confdefs.h <<_ACEOF
32892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32893_ACEOF
32894 WCSLEN_FOUND=1
32895fi
32896done
32897
32898
32899 if test "$WCSLEN_FOUND" = 0; then
32900 if test "$TOOLKIT" = "MSW"; then
32901 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32902echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32903if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32904 echo $ECHO_N "(cached) $ECHO_C" >&6
32905else
32906 ac_check_lib_save_LIBS=$LIBS
32907LIBS="-lmsvcrt $LIBS"
32908cat >conftest.$ac_ext <<_ACEOF
32909/* confdefs.h. */
32910_ACEOF
32911cat confdefs.h >>conftest.$ac_ext
32912cat >>conftest.$ac_ext <<_ACEOF
32913/* end confdefs.h. */
32914
32915/* Override any gcc2 internal prototype to avoid an error. */
32916#ifdef __cplusplus
32917extern "C"
32918#endif
32919/* We use char because int might match the return type of a gcc2
32920 builtin and then its argument prototype would still apply. */
32921char wcslen ();
32922int
32923main ()
32924{
32925wcslen ();
32926 ;
32927 return 0;
32928}
32929_ACEOF
32930rm -f conftest.$ac_objext conftest$ac_exeext
32931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32932 (eval $ac_link) 2>conftest.er1
a848cd7e 32933 ac_status=$?
ac1cb8d3
VS
32934 grep -v '^ *+' conftest.er1 >conftest.err
32935 rm -f conftest.er1
32936 cat conftest.err >&5
a848cd7e
SC
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } &&
3565d135
RR
32939 { ac_try='test -z "$ac_c_werror_flag"
32940 || test ! -s conftest.err'
ac1cb8d3
VS
32941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32942 (eval $ac_try) 2>&5
32943 ac_status=$?
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; } &&
32946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32948 (eval $ac_try) 2>&5
32949 ac_status=$?
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); }; }; then
32952 ac_cv_lib_msvcrt_wcslen=yes
32953else
32954 echo "$as_me: failed program was:" >&5
32955sed 's/^/| /' conftest.$ac_ext >&5
32956
32957ac_cv_lib_msvcrt_wcslen=no
32958fi
ac1cb8d3
VS
32959rm -f conftest.err conftest.$ac_objext \
32960 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32961LIBS=$ac_check_lib_save_LIBS
32962fi
32963echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32964echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32965if test $ac_cv_lib_msvcrt_wcslen = yes; then
32966 WCHAR_OK=1
32967fi
32968
32969 else
32970 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32971echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32972if test "${ac_cv_lib_w_wcslen+set}" = set; then
32973 echo $ECHO_N "(cached) $ECHO_C" >&6
32974else
32975 ac_check_lib_save_LIBS=$LIBS
32976LIBS="-lw $LIBS"
32977cat >conftest.$ac_ext <<_ACEOF
32978/* confdefs.h. */
32979_ACEOF
32980cat confdefs.h >>conftest.$ac_ext
32981cat >>conftest.$ac_ext <<_ACEOF
32982/* end confdefs.h. */
32983
32984/* Override any gcc2 internal prototype to avoid an error. */
32985#ifdef __cplusplus
32986extern "C"
32987#endif
32988/* We use char because int might match the return type of a gcc2
32989 builtin and then its argument prototype would still apply. */
32990char wcslen ();
32991int
32992main ()
32993{
32994wcslen ();
32995 ;
32996 return 0;
32997}
32998_ACEOF
32999rm -f conftest.$ac_objext conftest$ac_exeext
33000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33001 (eval $ac_link) 2>conftest.er1
a848cd7e 33002 ac_status=$?
ac1cb8d3
VS
33003 grep -v '^ *+' conftest.er1 >conftest.err
33004 rm -f conftest.er1
33005 cat conftest.err >&5
a848cd7e
SC
33006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007 (exit $ac_status); } &&
3565d135
RR
33008 { ac_try='test -z "$ac_c_werror_flag"
33009 || test ! -s conftest.err'
ac1cb8d3
VS
33010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33011 (eval $ac_try) 2>&5
33012 ac_status=$?
33013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); }; } &&
33015 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33017 (eval $ac_try) 2>&5
33018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; }; then
33021 ac_cv_lib_w_wcslen=yes
33022else
33023 echo "$as_me: failed program was:" >&5
33024sed 's/^/| /' conftest.$ac_ext >&5
33025
33026ac_cv_lib_w_wcslen=no
33027fi
ac1cb8d3
VS
33028rm -f conftest.err conftest.$ac_objext \
33029 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33030LIBS=$ac_check_lib_save_LIBS
33031fi
33032echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33033echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33034if test $ac_cv_lib_w_wcslen = yes; then
33035
33036 WCHAR_LINK=" -lw"
33037 WCSLEN_FOUND=1
33038
33039fi
33040
33041 fi
33042 fi
33043
33044 if test "$WCSLEN_FOUND" = 1; then
33045 cat >>confdefs.h <<\_ACEOF
33046#define HAVE_WCSLEN 1
33047_ACEOF
33048
33049 fi
33050
efdf6afe 33051 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33052 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33053 fi
33054
efdf6afe
VZ
33055 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33056echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33057if test "${ac_cv_type_mbstate_t+set}" = set; then
33058 echo $ECHO_N "(cached) $ECHO_C" >&6
33059else
33060 cat >conftest.$ac_ext <<_ACEOF
33061/* confdefs.h. */
33062_ACEOF
33063cat confdefs.h >>conftest.$ac_ext
33064cat >>conftest.$ac_ext <<_ACEOF
33065/* end confdefs.h. */
33066#include <wchar.h>
33067
33068int
33069main ()
33070{
33071if ((mbstate_t *) 0)
33072 return 0;
33073if (sizeof (mbstate_t))
33074 return 0;
33075 ;
33076 return 0;
33077}
33078_ACEOF
33079rm -f conftest.$ac_objext
33080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33081 (eval $ac_compile) 2>conftest.er1
33082 ac_status=$?
33083 grep -v '^ *+' conftest.er1 >conftest.err
33084 rm -f conftest.er1
33085 cat conftest.err >&5
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); } &&
3565d135
RR
33088 { ac_try='test -z "$ac_c_werror_flag"
33089 || test ! -s conftest.err'
efdf6afe
VZ
33090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33091 (eval $ac_try) 2>&5
33092 ac_status=$?
33093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094 (exit $ac_status); }; } &&
33095 { ac_try='test -s conftest.$ac_objext'
33096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33097 (eval $ac_try) 2>&5
33098 ac_status=$?
33099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100 (exit $ac_status); }; }; then
33101 ac_cv_type_mbstate_t=yes
33102else
33103 echo "$as_me: failed program was:" >&5
33104sed 's/^/| /' conftest.$ac_ext >&5
33105
33106ac_cv_type_mbstate_t=no
33107fi
33108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33109fi
33110echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33111echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33112if test $ac_cv_type_mbstate_t = yes; then
33113
33114cat >>confdefs.h <<_ACEOF
33115#define HAVE_MBSTATE_T 1
33116_ACEOF
33117
a848cd7e
SC
33118
33119for ac_func in wcsrtombs
33120do
33121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33122echo "$as_me:$LINENO: checking for $ac_func" >&5
33123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33124if eval "test \"\${$as_ac_var+set}\" = set"; then
33125 echo $ECHO_N "(cached) $ECHO_C" >&6
33126else
33127 cat >conftest.$ac_ext <<_ACEOF
33128/* confdefs.h. */
33129_ACEOF
33130cat confdefs.h >>conftest.$ac_ext
33131cat >>conftest.$ac_ext <<_ACEOF
33132/* end confdefs.h. */
ac1cb8d3
VS
33133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33135#define $ac_func innocuous_$ac_func
33136
a848cd7e
SC
33137/* System header to define __stub macros and hopefully few prototypes,
33138 which can conflict with char $ac_func (); below.
33139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33140 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33141
a848cd7e
SC
33142#ifdef __STDC__
33143# include <limits.h>
33144#else
33145# include <assert.h>
33146#endif
ac1cb8d3
VS
33147
33148#undef $ac_func
33149
a848cd7e
SC
33150/* Override any gcc2 internal prototype to avoid an error. */
33151#ifdef __cplusplus
33152extern "C"
33153{
33154#endif
33155/* We use char because int might match the return type of a gcc2
33156 builtin and then its argument prototype would still apply. */
33157char $ac_func ();
33158/* The GNU C library defines this for functions which it implements
33159 to always fail with ENOSYS. Some functions are actually named
33160 something starting with __ and the normal name is an alias. */
33161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33162choke me
33163#else
33164char (*f) () = $ac_func;
33165#endif
33166#ifdef __cplusplus
33167}
33168#endif
33169
33170int
33171main ()
33172{
33173return f != $ac_func;
33174 ;
33175 return 0;
33176}
33177_ACEOF
33178rm -f conftest.$ac_objext conftest$ac_exeext
33179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33180 (eval $ac_link) 2>conftest.er1
a848cd7e 33181 ac_status=$?
ac1cb8d3
VS
33182 grep -v '^ *+' conftest.er1 >conftest.err
33183 rm -f conftest.er1
33184 cat conftest.err >&5
a848cd7e
SC
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); } &&
3565d135
RR
33187 { ac_try='test -z "$ac_c_werror_flag"
33188 || test ! -s conftest.err'
ac1cb8d3
VS
33189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33190 (eval $ac_try) 2>&5
33191 ac_status=$?
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); }; } &&
33194 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33196 (eval $ac_try) 2>&5
33197 ac_status=$?
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; }; then
33200 eval "$as_ac_var=yes"
33201else
33202 echo "$as_me: failed program was:" >&5
33203sed 's/^/| /' conftest.$ac_ext >&5
33204
33205eval "$as_ac_var=no"
33206fi
ac1cb8d3
VS
33207rm -f conftest.err conftest.$ac_objext \
33208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33209fi
33210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33211echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33212if test `eval echo '${'$as_ac_var'}'` = yes; then
33213 cat >>confdefs.h <<_ACEOF
33214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33215_ACEOF
33216
33217fi
33218done
33219
efdf6afe
VZ
33220fi
33221
a848cd7e
SC
33222else
33223 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33224echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33225fi
33226
33227
33228
33229ac_ext=cc
33230ac_cpp='$CXXCPP $CPPFLAGS'
33231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33234
33235
33236
4a767dd5
VZ
33237
33238for ac_func in snprintf vsnprintf
a848cd7e
SC
33239do
33240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33241echo "$as_me:$LINENO: checking for $ac_func" >&5
33242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33243if eval "test \"\${$as_ac_var+set}\" = set"; then
33244 echo $ECHO_N "(cached) $ECHO_C" >&6
33245else
33246 cat >conftest.$ac_ext <<_ACEOF
33247/* confdefs.h. */
33248_ACEOF
33249cat confdefs.h >>conftest.$ac_ext
33250cat >>conftest.$ac_ext <<_ACEOF
33251/* end confdefs.h. */
ac1cb8d3
VS
33252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33254#define $ac_func innocuous_$ac_func
33255
a848cd7e
SC
33256/* System header to define __stub macros and hopefully few prototypes,
33257 which can conflict with char $ac_func (); below.
33258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33259 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33260
a848cd7e
SC
33261#ifdef __STDC__
33262# include <limits.h>
33263#else
33264# include <assert.h>
33265#endif
ac1cb8d3
VS
33266
33267#undef $ac_func
33268
a848cd7e
SC
33269/* Override any gcc2 internal prototype to avoid an error. */
33270#ifdef __cplusplus
33271extern "C"
33272{
33273#endif
33274/* We use char because int might match the return type of a gcc2
33275 builtin and then its argument prototype would still apply. */
33276char $ac_func ();
33277/* The GNU C library defines this for functions which it implements
33278 to always fail with ENOSYS. Some functions are actually named
33279 something starting with __ and the normal name is an alias. */
33280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33281choke me
33282#else
33283char (*f) () = $ac_func;
33284#endif
33285#ifdef __cplusplus
33286}
33287#endif
33288
33289int
33290main ()
33291{
33292return f != $ac_func;
33293 ;
33294 return 0;
33295}
33296_ACEOF
33297rm -f conftest.$ac_objext conftest$ac_exeext
33298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33299 (eval $ac_link) 2>conftest.er1
a848cd7e 33300 ac_status=$?
ac1cb8d3
VS
33301 grep -v '^ *+' conftest.er1 >conftest.err
33302 rm -f conftest.er1
33303 cat conftest.err >&5
a848cd7e
SC
33304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305 (exit $ac_status); } &&
3565d135
RR
33306 { ac_try='test -z "$ac_cxx_werror_flag"
33307 || test ! -s conftest.err'
ac1cb8d3
VS
33308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33309 (eval $ac_try) 2>&5
33310 ac_status=$?
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); }; } &&
33313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33315 (eval $ac_try) 2>&5
33316 ac_status=$?
33317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318 (exit $ac_status); }; }; then
33319 eval "$as_ac_var=yes"
33320else
33321 echo "$as_me: failed program was:" >&5
33322sed 's/^/| /' conftest.$ac_ext >&5
33323
33324eval "$as_ac_var=no"
33325fi
ac1cb8d3
VS
33326rm -f conftest.err conftest.$ac_objext \
33327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33328fi
33329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33330echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33331if test `eval echo '${'$as_ac_var'}'` = yes; then
33332 cat >>confdefs.h <<_ACEOF
33333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33334_ACEOF
33335
33336fi
33337done
33338
33339
33340if test "$ac_cv_func_vsnprintf" = "yes"; then
33341 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33342echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33343if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33344 echo $ECHO_N "(cached) $ECHO_C" >&6
33345else
33346
efdf6afe 33347 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33348/* confdefs.h. */
33349_ACEOF
33350cat confdefs.h >>conftest.$ac_ext
33351cat >>conftest.$ac_ext <<_ACEOF
33352/* end confdefs.h. */
33353
33354 #include <stdio.h>
33355 #include <stdarg.h>
efdf6afe
VZ
33356 #ifdef __MSL__
33357 #if __MSL__ >= 0x6000
33358 namespace std {}
33359 using namespace std;
33360 #endif
33361 #endif
a848cd7e
SC
33362
33363int
33364main ()
33365{
33366
33367 char *buf;
33368 va_list ap;
62fa8b3a 33369 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33370
33371 ;
33372 return 0;
33373}
33374_ACEOF
33375rm -f conftest.$ac_objext
33376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33377 (eval $ac_compile) 2>conftest.er1
33378 ac_status=$?
33379 grep -v '^ *+' conftest.er1 >conftest.err
33380 rm -f conftest.er1
33381 cat conftest.err >&5
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); } &&
3565d135
RR
33384 { ac_try='test -z "$ac_cxx_werror_flag"
33385 || test ! -s conftest.err'
c122b164
DE
33386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33387 (eval $ac_try) 2>&5
33388 ac_status=$?
33389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390 (exit $ac_status); }; } &&
33391 { ac_try='test -s conftest.$ac_objext'
33392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33393 (eval $ac_try) 2>&5
33394 ac_status=$?
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); }; }; then
33397 wx_cv_func_vsnprintf_decl=yes
33398else
33399 echo "$as_me: failed program was:" >&5
33400sed 's/^/| /' conftest.$ac_ext >&5
33401
a848cd7e
SC
33402wx_cv_func_vsnprintf_decl=no
33403
33404fi
ac1cb8d3 33405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33406
33407
33408fi
33409echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33410echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33411
33412 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33413 cat >>confdefs.h <<\_ACEOF
33414#define HAVE_VSNPRINTF_DECL 1
33415_ACEOF
33416
62fa8b3a
MW
33417
33418 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33419echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33420if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33421 echo $ECHO_N "(cached) $ECHO_C" >&6
33422else
33423
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
33431 #include <stdio.h>
33432 #include <stdarg.h>
33433 #ifdef __MSL__
33434 #if __MSL__ >= 0x6000
33435 namespace std {}
33436 using namespace std;
33437 #endif
33438 #endif
33439
33440int
33441main ()
33442{
33443
33444 char *buf;
33445 va_list ap;
33446 const char *fmt = "%s";
33447 vsnprintf(buf, 10u, fmt, ap);
33448
33449 ;
33450 return 0;
33451}
33452_ACEOF
33453rm -f conftest.$ac_objext
33454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33455 (eval $ac_compile) 2>conftest.er1
33456 ac_status=$?
33457 grep -v '^ *+' conftest.er1 >conftest.err
33458 rm -f conftest.er1
33459 cat conftest.err >&5
33460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461 (exit $ac_status); } &&
3565d135
RR
33462 { ac_try='test -z "$ac_cxx_werror_flag"
33463 || test ! -s conftest.err'
62fa8b3a
MW
33464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33465 (eval $ac_try) 2>&5
33466 ac_status=$?
33467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468 (exit $ac_status); }; } &&
33469 { ac_try='test -s conftest.$ac_objext'
33470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471 (eval $ac_try) 2>&5
33472 ac_status=$?
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); }; }; then
33475 wx_cv_func_broken_vsnprintf_decl=no
33476else
33477 echo "$as_me: failed program was:" >&5
33478sed 's/^/| /' conftest.$ac_ext >&5
33479
33480wx_cv_func_broken_vsnprintf_decl=yes
33481
33482fi
33483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33484
33485
33486fi
33487echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33488echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33489
33490 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33491 cat >>confdefs.h <<\_ACEOF
33492#define HAVE_BROKEN_VSNPRINTF_DECL 1
33493_ACEOF
33494
33495 fi
a848cd7e
SC
33496 fi
33497fi
33498
4a767dd5
VZ
33499if test "$ac_cv_func_snprintf" = "yes"; then
33500 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33501echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33502if test "${wx_cv_func_snprintf_decl+set}" = set; then
33503 echo $ECHO_N "(cached) $ECHO_C" >&6
33504else
33505
33506 cat >conftest.$ac_ext <<_ACEOF
33507/* confdefs.h. */
33508_ACEOF
33509cat confdefs.h >>conftest.$ac_ext
33510cat >>conftest.$ac_ext <<_ACEOF
33511/* end confdefs.h. */
33512
33513 #include <stdio.h>
33514 #include <stdarg.h>
33515 #ifdef __MSL__
33516 #if __MSL__ >= 0x6000
33517 namespace std {}
33518 using namespace std;
33519 #endif
33520 #endif
33521
33522int
33523main ()
33524{
33525
33526 char *buf;
62fa8b3a 33527 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33528
33529 ;
33530 return 0;
33531}
33532_ACEOF
33533rm -f conftest.$ac_objext
33534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33535 (eval $ac_compile) 2>conftest.er1
33536 ac_status=$?
33537 grep -v '^ *+' conftest.er1 >conftest.err
33538 rm -f conftest.er1
33539 cat conftest.err >&5
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); } &&
3565d135
RR
33542 { ac_try='test -z "$ac_cxx_werror_flag"
33543 || test ! -s conftest.err'
4a767dd5
VZ
33544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33545 (eval $ac_try) 2>&5
33546 ac_status=$?
33547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); }; } &&
33549 { ac_try='test -s conftest.$ac_objext'
33550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33551 (eval $ac_try) 2>&5
33552 ac_status=$?
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); }; }; then
33555 wx_cv_func_snprintf_decl=yes
33556else
33557 echo "$as_me: failed program was:" >&5
33558sed 's/^/| /' conftest.$ac_ext >&5
33559
33560wx_cv_func_snprintf_decl=no
33561
33562fi
33563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33564
33565
33566fi
33567echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33568echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33569
33570 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33571 cat >>confdefs.h <<\_ACEOF
33572#define HAVE_SNPRINTF_DECL 1
33573_ACEOF
33574
62fa8b3a
MW
33575
33576 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33577echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33578if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33579 echo $ECHO_N "(cached) $ECHO_C" >&6
33580else
33581
33582 cat >conftest.$ac_ext <<_ACEOF
33583/* confdefs.h. */
33584_ACEOF
33585cat confdefs.h >>conftest.$ac_ext
33586cat >>conftest.$ac_ext <<_ACEOF
33587/* end confdefs.h. */
33588
33589 #include <stdio.h>
33590 #include <stdarg.h>
33591 #ifdef __MSL__
33592 #if __MSL__ >= 0x6000
33593 namespace std {}
33594 using namespace std;
33595 #endif
33596 #endif
33597
33598int
33599main ()
33600{
33601
33602 char *buf;
33603 const char *fmt = "%s";
33604 snprintf(buf, 10u, fmt, "wx");
33605
33606 ;
33607 return 0;
33608}
33609_ACEOF
33610rm -f conftest.$ac_objext
33611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33612 (eval $ac_compile) 2>conftest.er1
33613 ac_status=$?
33614 grep -v '^ *+' conftest.er1 >conftest.err
33615 rm -f conftest.er1
33616 cat conftest.err >&5
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); } &&
3565d135
RR
33619 { ac_try='test -z "$ac_cxx_werror_flag"
33620 || test ! -s conftest.err'
62fa8b3a
MW
33621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33622 (eval $ac_try) 2>&5
33623 ac_status=$?
33624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625 (exit $ac_status); }; } &&
33626 { ac_try='test -s conftest.$ac_objext'
33627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33628 (eval $ac_try) 2>&5
33629 ac_status=$?
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); }; }; then
33632 wx_cv_func_broken_snprintf_decl=no
33633else
33634 echo "$as_me: failed program was:" >&5
33635sed 's/^/| /' conftest.$ac_ext >&5
33636
33637wx_cv_func_broken_snprintf_decl=yes
33638
33639fi
33640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33641
33642
33643fi
33644echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33645echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33646
33647 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33648 cat >>confdefs.h <<\_ACEOF
33649#define HAVE_BROKEN_SNPRINTF_DECL 1
33650_ACEOF
33651
33652 fi
4a767dd5
VZ
33653 fi
33654fi
33655
a848cd7e
SC
33656if test "$wxUSE_UNICODE" = yes; then
33657
33658
33659
fbe47c7b
VS
33660
33661
33662
33663for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33664do
33665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33666echo "$as_me:$LINENO: checking for $ac_func" >&5
33667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33668if eval "test \"\${$as_ac_var+set}\" = set"; then
33669 echo $ECHO_N "(cached) $ECHO_C" >&6
33670else
33671 cat >conftest.$ac_ext <<_ACEOF
33672/* confdefs.h. */
33673_ACEOF
33674cat confdefs.h >>conftest.$ac_ext
33675cat >>conftest.$ac_ext <<_ACEOF
33676/* end confdefs.h. */
ac1cb8d3
VS
33677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33679#define $ac_func innocuous_$ac_func
33680
a848cd7e
SC
33681/* System header to define __stub macros and hopefully few prototypes,
33682 which can conflict with char $ac_func (); below.
33683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33684 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33685
a848cd7e
SC
33686#ifdef __STDC__
33687# include <limits.h>
33688#else
33689# include <assert.h>
33690#endif
ac1cb8d3
VS
33691
33692#undef $ac_func
33693
a848cd7e
SC
33694/* Override any gcc2 internal prototype to avoid an error. */
33695#ifdef __cplusplus
33696extern "C"
33697{
33698#endif
33699/* We use char because int might match the return type of a gcc2
33700 builtin and then its argument prototype would still apply. */
33701char $ac_func ();
33702/* The GNU C library defines this for functions which it implements
33703 to always fail with ENOSYS. Some functions are actually named
33704 something starting with __ and the normal name is an alias. */
33705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33706choke me
33707#else
33708char (*f) () = $ac_func;
33709#endif
33710#ifdef __cplusplus
33711}
33712#endif
33713
33714int
33715main ()
33716{
33717return f != $ac_func;
33718 ;
33719 return 0;
33720}
33721_ACEOF
33722rm -f conftest.$ac_objext conftest$ac_exeext
33723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33724 (eval $ac_link) 2>conftest.er1
a848cd7e 33725 ac_status=$?
ac1cb8d3
VS
33726 grep -v '^ *+' conftest.er1 >conftest.err
33727 rm -f conftest.er1
33728 cat conftest.err >&5
a848cd7e
SC
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); } &&
3565d135
RR
33731 { ac_try='test -z "$ac_cxx_werror_flag"
33732 || test ! -s conftest.err'
ac1cb8d3
VS
33733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33734 (eval $ac_try) 2>&5
33735 ac_status=$?
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); }; } &&
33738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33740 (eval $ac_try) 2>&5
33741 ac_status=$?
33742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33743 (exit $ac_status); }; }; then
33744 eval "$as_ac_var=yes"
33745else
33746 echo "$as_me: failed program was:" >&5
33747sed 's/^/| /' conftest.$ac_ext >&5
33748
33749eval "$as_ac_var=no"
33750fi
ac1cb8d3
VS
33751rm -f conftest.err conftest.$ac_objext \
33752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33753fi
33754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33755echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33756if test `eval echo '${'$as_ac_var'}'` = yes; then
33757 cat >>confdefs.h <<_ACEOF
33758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33759_ACEOF
33760
33761fi
33762done
33763
33764
33765 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33766echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33767 cat >conftest.$ac_ext <<_ACEOF
33768/* confdefs.h. */
33769_ACEOF
33770cat confdefs.h >>conftest.$ac_ext
33771cat >>conftest.$ac_ext <<_ACEOF
33772/* end confdefs.h. */
33773#include <wchar.h>
33774int
33775main ()
33776{
33777&_vsnwprintf;
33778 ;
33779 return 0;
33780}
33781_ACEOF
33782rm -f conftest.$ac_objext
33783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33784 (eval $ac_compile) 2>conftest.er1
a848cd7e 33785 ac_status=$?
ac1cb8d3
VS
33786 grep -v '^ *+' conftest.er1 >conftest.err
33787 rm -f conftest.er1
33788 cat conftest.err >&5
a848cd7e
SC
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); } &&
3565d135
RR
33791 { ac_try='test -z "$ac_cxx_werror_flag"
33792 || test ! -s conftest.err'
ac1cb8d3
VS
33793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33794 (eval $ac_try) 2>&5
33795 ac_status=$?
33796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797 (exit $ac_status); }; } &&
33798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33800 (eval $ac_try) 2>&5
33801 ac_status=$?
33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803 (exit $ac_status); }; }; then
33804 echo "$as_me:$LINENO: result: yes" >&5
33805echo "${ECHO_T}yes" >&6
33806 cat >>confdefs.h <<\_ACEOF
33807#define HAVE__VSNWPRINTF 1
33808_ACEOF
33809
33810else
33811 echo "$as_me: failed program was:" >&5
33812sed 's/^/| /' conftest.$ac_ext >&5
33813
33814echo "$as_me:$LINENO: result: no" >&5
33815echo "${ECHO_T}no" >&6
33816fi
ac1cb8d3 33817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33818fi
33819
33820ac_ext=c
33821ac_cpp='$CPP $CPPFLAGS'
33822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33824ac_compiler_gnu=$ac_cv_c_compiler_gnu
33825
33826
6ebeb4c7
VZ
33827if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33828
33829for ac_func in fnmatch
33830do
33831as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33832echo "$as_me:$LINENO: checking for $ac_func" >&5
33833echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33834if eval "test \"\${$as_ac_var+set}\" = set"; then
33835 echo $ECHO_N "(cached) $ECHO_C" >&6
33836else
33837 cat >conftest.$ac_ext <<_ACEOF
33838/* confdefs.h. */
33839_ACEOF
33840cat confdefs.h >>conftest.$ac_ext
33841cat >>conftest.$ac_ext <<_ACEOF
33842/* end confdefs.h. */
33843/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33845#define $ac_func innocuous_$ac_func
33846
33847/* System header to define __stub macros and hopefully few prototypes,
33848 which can conflict with char $ac_func (); below.
33849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33850 <limits.h> exists even on freestanding compilers. */
33851
33852#ifdef __STDC__
33853# include <limits.h>
33854#else
33855# include <assert.h>
33856#endif
33857
33858#undef $ac_func
33859
33860/* Override any gcc2 internal prototype to avoid an error. */
33861#ifdef __cplusplus
33862extern "C"
33863{
33864#endif
33865/* We use char because int might match the return type of a gcc2
33866 builtin and then its argument prototype would still apply. */
33867char $ac_func ();
33868/* The GNU C library defines this for functions which it implements
33869 to always fail with ENOSYS. Some functions are actually named
33870 something starting with __ and the normal name is an alias. */
33871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33872choke me
33873#else
33874char (*f) () = $ac_func;
33875#endif
33876#ifdef __cplusplus
33877}
33878#endif
33879
33880int
33881main ()
33882{
33883return f != $ac_func;
33884 ;
33885 return 0;
33886}
33887_ACEOF
33888rm -f conftest.$ac_objext conftest$ac_exeext
33889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33890 (eval $ac_link) 2>conftest.er1
33891 ac_status=$?
33892 grep -v '^ *+' conftest.er1 >conftest.err
33893 rm -f conftest.er1
33894 cat conftest.err >&5
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); } &&
3565d135
RR
33897 { ac_try='test -z "$ac_c_werror_flag"
33898 || test ! -s conftest.err'
6ebeb4c7
VZ
33899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33900 (eval $ac_try) 2>&5
33901 ac_status=$?
33902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903 (exit $ac_status); }; } &&
33904 { ac_try='test -s conftest$ac_exeext'
33905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33906 (eval $ac_try) 2>&5
33907 ac_status=$?
33908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); }; }; then
33910 eval "$as_ac_var=yes"
33911else
33912 echo "$as_me: failed program was:" >&5
33913sed 's/^/| /' conftest.$ac_ext >&5
33914
33915eval "$as_ac_var=no"
33916fi
33917rm -f conftest.err conftest.$ac_objext \
33918 conftest$ac_exeext conftest.$ac_ext
33919fi
33920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33921echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33922if test `eval echo '${'$as_ac_var'}'` = yes; then
33923 cat >>confdefs.h <<_ACEOF
33924#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33925_ACEOF
33926
33927fi
33928done
33929
33930fi
33931
33932if test "$wxUSE_FILE" = "yes"; then
33933
33934for ac_func in fsync
33935do
33936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33937echo "$as_me:$LINENO: checking for $ac_func" >&5
33938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33939if eval "test \"\${$as_ac_var+set}\" = set"; then
33940 echo $ECHO_N "(cached) $ECHO_C" >&6
33941else
33942 cat >conftest.$ac_ext <<_ACEOF
33943/* confdefs.h. */
33944_ACEOF
33945cat confdefs.h >>conftest.$ac_ext
33946cat >>conftest.$ac_ext <<_ACEOF
33947/* end confdefs.h. */
33948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33950#define $ac_func innocuous_$ac_func
33951
33952/* System header to define __stub macros and hopefully few prototypes,
33953 which can conflict with char $ac_func (); below.
33954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33955 <limits.h> exists even on freestanding compilers. */
33956
33957#ifdef __STDC__
33958# include <limits.h>
33959#else
33960# include <assert.h>
33961#endif
33962
33963#undef $ac_func
33964
33965/* Override any gcc2 internal prototype to avoid an error. */
33966#ifdef __cplusplus
33967extern "C"
33968{
33969#endif
33970/* We use char because int might match the return type of a gcc2
33971 builtin and then its argument prototype would still apply. */
33972char $ac_func ();
33973/* The GNU C library defines this for functions which it implements
33974 to always fail with ENOSYS. Some functions are actually named
33975 something starting with __ and the normal name is an alias. */
33976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33977choke me
33978#else
33979char (*f) () = $ac_func;
33980#endif
33981#ifdef __cplusplus
33982}
33983#endif
33984
33985int
33986main ()
33987{
33988return f != $ac_func;
33989 ;
33990 return 0;
33991}
33992_ACEOF
33993rm -f conftest.$ac_objext conftest$ac_exeext
33994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33995 (eval $ac_link) 2>conftest.er1
33996 ac_status=$?
33997 grep -v '^ *+' conftest.er1 >conftest.err
33998 rm -f conftest.er1
33999 cat conftest.err >&5
34000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34001 (exit $ac_status); } &&
3565d135
RR
34002 { ac_try='test -z "$ac_c_werror_flag"
34003 || test ! -s conftest.err'
6ebeb4c7
VZ
34004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005 (eval $ac_try) 2>&5
34006 ac_status=$?
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); }; } &&
34009 { ac_try='test -s conftest$ac_exeext'
34010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34011 (eval $ac_try) 2>&5
34012 ac_status=$?
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); }; }; then
34015 eval "$as_ac_var=yes"
34016else
34017 echo "$as_me: failed program was:" >&5
34018sed 's/^/| /' conftest.$ac_ext >&5
34019
34020eval "$as_ac_var=no"
34021fi
34022rm -f conftest.err conftest.$ac_objext \
34023 conftest$ac_exeext conftest.$ac_ext
34024fi
34025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34026echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34027if test `eval echo '${'$as_ac_var'}'` = yes; then
34028 cat >>confdefs.h <<_ACEOF
34029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34030_ACEOF
34031
34032fi
34033done
34034
34035fi
a848cd7e
SC
34036
34037
34038if test "$TOOLKIT" != "MSW"; then
34039
34040
34041
34042
34043ac_ext=cc
34044ac_cpp='$CXXCPP $CPPFLAGS'
34045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34048
34049
34050
34051
34052# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34053if test "${with_libiconv_prefix+set}" = set; then
34054 withval="$with_libiconv_prefix"
34055
34056 for dir in `echo "$withval" | tr : ' '`; do
34057 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34058 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34059 done
34060
34061fi;
34062
34063 echo "$as_me:$LINENO: checking for iconv" >&5
34064echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34065if test "${am_cv_func_iconv+set}" = set; then
34066 echo $ECHO_N "(cached) $ECHO_C" >&6
34067else
34068
34069 am_cv_func_iconv="no, consider installing GNU libiconv"
34070 am_cv_lib_iconv=no
34071 cat >conftest.$ac_ext <<_ACEOF
34072/* confdefs.h. */
34073_ACEOF
34074cat confdefs.h >>conftest.$ac_ext
34075cat >>conftest.$ac_ext <<_ACEOF
34076/* end confdefs.h. */
34077#include <stdlib.h>
34078#include <iconv.h>
34079int
34080main ()
34081{
34082iconv_t cd = iconv_open("","");
34083 iconv(cd,NULL,NULL,NULL,NULL);
34084 iconv_close(cd);
34085 ;
34086 return 0;
34087}
34088_ACEOF
34089rm -f conftest.$ac_objext conftest$ac_exeext
34090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34091 (eval $ac_link) 2>conftest.er1
a848cd7e 34092 ac_status=$?
ac1cb8d3
VS
34093 grep -v '^ *+' conftest.er1 >conftest.err
34094 rm -f conftest.er1
34095 cat conftest.err >&5
a848cd7e
SC
34096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097 (exit $ac_status); } &&
3565d135
RR
34098 { ac_try='test -z "$ac_cxx_werror_flag"
34099 || test ! -s conftest.err'
ac1cb8d3
VS
34100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34101 (eval $ac_try) 2>&5
34102 ac_status=$?
34103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34104 (exit $ac_status); }; } &&
34105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34107 (eval $ac_try) 2>&5
34108 ac_status=$?
34109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110 (exit $ac_status); }; }; then
34111 am_cv_func_iconv=yes
34112else
34113 echo "$as_me: failed program was:" >&5
34114sed 's/^/| /' conftest.$ac_ext >&5
34115
34116fi
ac1cb8d3
VS
34117rm -f conftest.err conftest.$ac_objext \
34118 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34119 if test "$am_cv_func_iconv" != yes; then
34120 am_save_LIBS="$LIBS"
34121 LIBS="$LIBS -liconv"
34122 cat >conftest.$ac_ext <<_ACEOF
34123/* confdefs.h. */
34124_ACEOF
34125cat confdefs.h >>conftest.$ac_ext
34126cat >>conftest.$ac_ext <<_ACEOF
34127/* end confdefs.h. */
34128#include <stdlib.h>
34129#include <iconv.h>
34130int
34131main ()
34132{
34133iconv_t cd = iconv_open("","");
34134 iconv(cd,NULL,NULL,NULL,NULL);
34135 iconv_close(cd);
34136 ;
34137 return 0;
34138}
34139_ACEOF
34140rm -f conftest.$ac_objext conftest$ac_exeext
34141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34142 (eval $ac_link) 2>conftest.er1
a848cd7e 34143 ac_status=$?
ac1cb8d3
VS
34144 grep -v '^ *+' conftest.er1 >conftest.err
34145 rm -f conftest.er1
34146 cat conftest.err >&5
a848cd7e
SC
34147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148 (exit $ac_status); } &&
3565d135
RR
34149 { ac_try='test -z "$ac_cxx_werror_flag"
34150 || test ! -s conftest.err'
ac1cb8d3
VS
34151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34152 (eval $ac_try) 2>&5
34153 ac_status=$?
34154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155 (exit $ac_status); }; } &&
34156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34158 (eval $ac_try) 2>&5
34159 ac_status=$?
34160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161 (exit $ac_status); }; }; then
34162 am_cv_lib_iconv=yes
34163 am_cv_func_iconv=yes
34164else
34165 echo "$as_me: failed program was:" >&5
34166sed 's/^/| /' conftest.$ac_ext >&5
34167
34168fi
ac1cb8d3
VS
34169rm -f conftest.err conftest.$ac_objext \
34170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34171 LIBS="$am_save_LIBS"
34172 fi
34173
34174fi
34175echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34176echo "${ECHO_T}$am_cv_func_iconv" >&6
34177 if test "$am_cv_func_iconv" = yes; then
34178
34179cat >>confdefs.h <<\_ACEOF
34180#define HAVE_ICONV 1
34181_ACEOF
34182
34183 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34184echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34185if test "${wx_cv_func_iconv_const+set}" = set; then
34186 echo $ECHO_N "(cached) $ECHO_C" >&6
34187else
34188 cat >conftest.$ac_ext <<_ACEOF
34189/* confdefs.h. */
34190_ACEOF
34191cat confdefs.h >>conftest.$ac_ext
34192cat >>conftest.$ac_ext <<_ACEOF
34193/* end confdefs.h. */
34194
34195#include <stdlib.h>
34196#include <iconv.h>
34197extern
34198#ifdef __cplusplus
34199"C"
34200#endif
34201#if defined(__STDC__) || defined(__cplusplus)
34202size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34203#else
34204size_t iconv();
34205#endif
34206
34207int
34208main ()
34209{
34210
34211 ;
34212 return 0;
34213}
34214_ACEOF
34215rm -f conftest.$ac_objext
34216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34217 (eval $ac_compile) 2>conftest.er1
a848cd7e 34218 ac_status=$?
ac1cb8d3
VS
34219 grep -v '^ *+' conftest.er1 >conftest.err
34220 rm -f conftest.er1
34221 cat conftest.err >&5
a848cd7e
SC
34222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34223 (exit $ac_status); } &&
3565d135
RR
34224 { ac_try='test -z "$ac_cxx_werror_flag"
34225 || test ! -s conftest.err'
ac1cb8d3
VS
34226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34227 (eval $ac_try) 2>&5
34228 ac_status=$?
34229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230 (exit $ac_status); }; } &&
34231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34233 (eval $ac_try) 2>&5
34234 ac_status=$?
34235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); }; }; then
34237 wx_cv_func_iconv_const="no"
34238else
34239 echo "$as_me: failed program was:" >&5
34240sed 's/^/| /' conftest.$ac_ext >&5
34241
34242wx_cv_func_iconv_const="yes"
34243
34244fi
ac1cb8d3 34245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34246
34247fi
34248echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34249echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34250
34251 iconv_const=
34252 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34253 iconv_const="const"
34254 fi
34255
34256
34257cat >>confdefs.h <<_ACEOF
34258#define ICONV_CONST $iconv_const
34259_ACEOF
34260
34261 fi
34262 LIBICONV=
34263 if test "$am_cv_lib_iconv" = yes; then
34264 LIBICONV="-liconv"
34265 fi
34266
34267
34268LIBS="$LIBICONV $LIBS"
34269ac_ext=c
34270ac_cpp='$CPP $CPPFLAGS'
34271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34273ac_compiler_gnu=$ac_cv_c_compiler_gnu
34274
34275
34276if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34277
34278for ac_func in sigaction
34279do
34280as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34281echo "$as_me:$LINENO: checking for $ac_func" >&5
34282echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34283if eval "test \"\${$as_ac_var+set}\" = set"; then
34284 echo $ECHO_N "(cached) $ECHO_C" >&6
34285else
34286 cat >conftest.$ac_ext <<_ACEOF
34287/* confdefs.h. */
34288_ACEOF
34289cat confdefs.h >>conftest.$ac_ext
34290cat >>conftest.$ac_ext <<_ACEOF
34291/* end confdefs.h. */
ac1cb8d3
VS
34292/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34294#define $ac_func innocuous_$ac_func
34295
a848cd7e
SC
34296/* System header to define __stub macros and hopefully few prototypes,
34297 which can conflict with char $ac_func (); below.
34298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34299 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34300
a848cd7e
SC
34301#ifdef __STDC__
34302# include <limits.h>
34303#else
34304# include <assert.h>
34305#endif
ac1cb8d3
VS
34306
34307#undef $ac_func
34308
a848cd7e
SC
34309/* Override any gcc2 internal prototype to avoid an error. */
34310#ifdef __cplusplus
34311extern "C"
34312{
34313#endif
34314/* We use char because int might match the return type of a gcc2
34315 builtin and then its argument prototype would still apply. */
34316char $ac_func ();
34317/* The GNU C library defines this for functions which it implements
34318 to always fail with ENOSYS. Some functions are actually named
34319 something starting with __ and the normal name is an alias. */
34320#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34321choke me
34322#else
34323char (*f) () = $ac_func;
34324#endif
34325#ifdef __cplusplus
34326}
34327#endif
34328
34329int
34330main ()
34331{
34332return f != $ac_func;
34333 ;
34334 return 0;
34335}
34336_ACEOF
34337rm -f conftest.$ac_objext conftest$ac_exeext
34338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34339 (eval $ac_link) 2>conftest.er1
a848cd7e 34340 ac_status=$?
ac1cb8d3
VS
34341 grep -v '^ *+' conftest.er1 >conftest.err
34342 rm -f conftest.er1
34343 cat conftest.err >&5
a848cd7e
SC
34344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345 (exit $ac_status); } &&
3565d135
RR
34346 { ac_try='test -z "$ac_c_werror_flag"
34347 || test ! -s conftest.err'
ac1cb8d3
VS
34348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34349 (eval $ac_try) 2>&5
34350 ac_status=$?
34351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34352 (exit $ac_status); }; } &&
34353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34355 (eval $ac_try) 2>&5
34356 ac_status=$?
34357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358 (exit $ac_status); }; }; then
34359 eval "$as_ac_var=yes"
34360else
34361 echo "$as_me: failed program was:" >&5
34362sed 's/^/| /' conftest.$ac_ext >&5
34363
34364eval "$as_ac_var=no"
34365fi
ac1cb8d3
VS
34366rm -f conftest.err conftest.$ac_objext \
34367 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34368fi
34369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34370echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34371if test `eval echo '${'$as_ac_var'}'` = yes; then
34372 cat >>confdefs.h <<_ACEOF
34373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34374_ACEOF
34375
34376fi
34377done
34378
34379
34380 if test "$ac_cv_func_sigaction" = "no"; then
34381 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34382echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34383 wxUSE_ON_FATAL_EXCEPTION=no
34384 fi
34385
34386 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34387
34388
34389 ac_ext=cc
34390ac_cpp='$CXXCPP $CPPFLAGS'
34391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34394
34395
34396 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34397echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34398if test "${wx_cv_type_sa_handler+set}" = set; then
34399 echo $ECHO_N "(cached) $ECHO_C" >&6
34400else
34401
34402 cat >conftest.$ac_ext <<_ACEOF
34403/* confdefs.h. */
34404_ACEOF
34405cat confdefs.h >>conftest.$ac_ext
34406cat >>conftest.$ac_ext <<_ACEOF
34407/* end confdefs.h. */
34408#include <signal.h>
34409int
34410main ()
34411{
34412
34413 extern void testSigHandler(int);
34414
34415 struct sigaction sa;
34416 sa.sa_handler = testSigHandler;
34417
34418 ;
34419 return 0;
34420}
34421_ACEOF
34422rm -f conftest.$ac_objext
34423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34424 (eval $ac_compile) 2>conftest.er1
a848cd7e 34425 ac_status=$?
ac1cb8d3
VS
34426 grep -v '^ *+' conftest.er1 >conftest.err
34427 rm -f conftest.er1
34428 cat conftest.err >&5
a848cd7e
SC
34429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34430 (exit $ac_status); } &&
3565d135
RR
34431 { ac_try='test -z "$ac_cxx_werror_flag"
34432 || test ! -s conftest.err'
ac1cb8d3
VS
34433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34434 (eval $ac_try) 2>&5
34435 ac_status=$?
34436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); }; } &&
34438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34440 (eval $ac_try) 2>&5
34441 ac_status=$?
34442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34443 (exit $ac_status); }; }; then
34444
34445 wx_cv_type_sa_handler=int
34446
34447else
34448 echo "$as_me: failed program was:" >&5
34449sed 's/^/| /' conftest.$ac_ext >&5
34450
34451
34452 wx_cv_type_sa_handler=void
34453
34454fi
ac1cb8d3 34455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34456
34457fi
34458echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34459echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34460
34461 ac_ext=c
34462ac_cpp='$CPP $CPPFLAGS'
34463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34465ac_compiler_gnu=$ac_cv_c_compiler_gnu
34466
34467
34468 cat >>confdefs.h <<_ACEOF
34469#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34470_ACEOF
34471
34472 fi
34473fi
34474
eaff0f0d
VZ
34475if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34476
34477
34478 ac_ext=cc
34479ac_cpp='$CXXCPP $CPPFLAGS'
34480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34483
34484
34485 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34486echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34487if test "${wx_cv_func_backtrace+set}" = set; then
34488 echo $ECHO_N "(cached) $ECHO_C" >&6
34489else
34490
34491 cat >conftest.$ac_ext <<_ACEOF
34492/* confdefs.h. */
34493_ACEOF
34494cat confdefs.h >>conftest.$ac_ext
34495cat >>conftest.$ac_ext <<_ACEOF
34496/* end confdefs.h. */
34497#include <execinfo.h>
34498int
34499main ()
34500{
34501
34502 void *trace[1];
34503 char **messages;
34504
34505 backtrace(trace, 1);
34506 messages = backtrace_symbols(trace, 1);
34507
34508 ;
34509 return 0;
34510}
34511_ACEOF
34512rm -f conftest.$ac_objext
34513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34514 (eval $ac_compile) 2>conftest.er1
34515 ac_status=$?
34516 grep -v '^ *+' conftest.er1 >conftest.err
34517 rm -f conftest.er1
34518 cat conftest.err >&5
34519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520 (exit $ac_status); } &&
3565d135
RR
34521 { ac_try='test -z "$ac_cxx_werror_flag"
34522 || test ! -s conftest.err'
eaff0f0d
VZ
34523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34524 (eval $ac_try) 2>&5
34525 ac_status=$?
34526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527 (exit $ac_status); }; } &&
34528 { ac_try='test -s conftest.$ac_objext'
34529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34530 (eval $ac_try) 2>&5
34531 ac_status=$?
34532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533 (exit $ac_status); }; }; then
34534 wx_cv_func_backtrace=yes
34535else
34536 echo "$as_me: failed program was:" >&5
34537sed 's/^/| /' conftest.$ac_ext >&5
34538
34539wx_cv_func_backtrace=no
34540
34541fi
34542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34543
34544
34545fi
34546echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34547echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34548
34549
34550 if test "$wx_cv_func_backtrace" = "no"; then
34551 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34552echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34553 wxUSE_STACKWALKER=no
34554 else
34555 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34556echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34557if test "${wx_cv_func_cxa_demangle+set}" = set; then
34558 echo $ECHO_N "(cached) $ECHO_C" >&6
34559else
34560
34561 cat >conftest.$ac_ext <<_ACEOF
34562/* confdefs.h. */
34563_ACEOF
34564cat confdefs.h >>conftest.$ac_ext
34565cat >>conftest.$ac_ext <<_ACEOF
34566/* end confdefs.h. */
34567#include <cxxabi.h>
34568int
34569main ()
34570{
34571
34572 int rc;
34573 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34574
34575 ;
34576 return 0;
34577}
34578_ACEOF
dfe0c803
JS
34579rm -f conftest.$ac_objext conftest$ac_exeext
34580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34581 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34582 ac_status=$?
34583 grep -v '^ *+' conftest.er1 >conftest.err
34584 rm -f conftest.er1
34585 cat conftest.err >&5
34586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587 (exit $ac_status); } &&
3565d135
RR
34588 { ac_try='test -z "$ac_cxx_werror_flag"
34589 || test ! -s conftest.err'
eaff0f0d
VZ
34590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34591 (eval $ac_try) 2>&5
34592 ac_status=$?
34593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34594 (exit $ac_status); }; } &&
dfe0c803 34595 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34597 (eval $ac_try) 2>&5
34598 ac_status=$?
34599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34600 (exit $ac_status); }; }; then
34601 wx_cv_func_cxa_demangle=yes
34602else
34603 echo "$as_me: failed program was:" >&5
34604sed 's/^/| /' conftest.$ac_ext >&5
34605
34606wx_cv_func_cxa_demangle=no
34607
34608fi
dfe0c803
JS
34609rm -f conftest.err conftest.$ac_objext \
34610 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34611
34612
34613fi
34614echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34615echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34616
34617 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34618 cat >>confdefs.h <<\_ACEOF
34619#define HAVE_CXA_DEMANGLE 1
34620_ACEOF
34621
34622 fi
34623 fi
34624
34625 ac_ext=c
34626ac_cpp='$CPP $CPPFLAGS'
34627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34629ac_compiler_gnu=$ac_cv_c_compiler_gnu
34630
34631fi
34632
898beab1
DE
34633if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34634 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34635echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34636 wxUSE_STACKWALKER=no
34637fi
34638
34639
a848cd7e
SC
34640
34641
34642for ac_func in mkstemp mktemp
34643do
34644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34645echo "$as_me:$LINENO: checking for $ac_func" >&5
34646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34647if eval "test \"\${$as_ac_var+set}\" = set"; then
34648 echo $ECHO_N "(cached) $ECHO_C" >&6
34649else
34650 cat >conftest.$ac_ext <<_ACEOF
34651/* confdefs.h. */
34652_ACEOF
34653cat confdefs.h >>conftest.$ac_ext
34654cat >>conftest.$ac_ext <<_ACEOF
34655/* end confdefs.h. */
ac1cb8d3
VS
34656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34658#define $ac_func innocuous_$ac_func
34659
a848cd7e
SC
34660/* System header to define __stub macros and hopefully few prototypes,
34661 which can conflict with char $ac_func (); below.
34662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34663 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34664
a848cd7e
SC
34665#ifdef __STDC__
34666# include <limits.h>
34667#else
34668# include <assert.h>
34669#endif
ac1cb8d3
VS
34670
34671#undef $ac_func
34672
a848cd7e
SC
34673/* Override any gcc2 internal prototype to avoid an error. */
34674#ifdef __cplusplus
34675extern "C"
34676{
34677#endif
34678/* We use char because int might match the return type of a gcc2
34679 builtin and then its argument prototype would still apply. */
34680char $ac_func ();
34681/* The GNU C library defines this for functions which it implements
34682 to always fail with ENOSYS. Some functions are actually named
34683 something starting with __ and the normal name is an alias. */
34684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34685choke me
34686#else
34687char (*f) () = $ac_func;
34688#endif
34689#ifdef __cplusplus
34690}
34691#endif
34692
34693int
34694main ()
34695{
34696return f != $ac_func;
34697 ;
34698 return 0;
34699}
34700_ACEOF
34701rm -f conftest.$ac_objext conftest$ac_exeext
34702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34703 (eval $ac_link) 2>conftest.er1
a848cd7e 34704 ac_status=$?
ac1cb8d3
VS
34705 grep -v '^ *+' conftest.er1 >conftest.err
34706 rm -f conftest.er1
34707 cat conftest.err >&5
a848cd7e
SC
34708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34709 (exit $ac_status); } &&
3565d135
RR
34710 { ac_try='test -z "$ac_c_werror_flag"
34711 || test ! -s conftest.err'
ac1cb8d3
VS
34712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34713 (eval $ac_try) 2>&5
34714 ac_status=$?
34715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34716 (exit $ac_status); }; } &&
34717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34719 (eval $ac_try) 2>&5
34720 ac_status=$?
34721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722 (exit $ac_status); }; }; then
34723 eval "$as_ac_var=yes"
34724else
34725 echo "$as_me: failed program was:" >&5
34726sed 's/^/| /' conftest.$ac_ext >&5
34727
34728eval "$as_ac_var=no"
34729fi
ac1cb8d3
VS
34730rm -f conftest.err conftest.$ac_objext \
34731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34732fi
34733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34735if test `eval echo '${'$as_ac_var'}'` = yes; then
34736 cat >>confdefs.h <<_ACEOF
34737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34738_ACEOF
34739 break
34740fi
34741done
34742
34743
34744echo "$as_me:$LINENO: checking for statfs" >&5
34745echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34746if test "${wx_cv_func_statfs+set}" = set; then
34747 echo $ECHO_N "(cached) $ECHO_C" >&6
34748else
34749 cat >conftest.$ac_ext <<_ACEOF
34750/* confdefs.h. */
34751_ACEOF
34752cat confdefs.h >>conftest.$ac_ext
34753cat >>conftest.$ac_ext <<_ACEOF
34754/* end confdefs.h. */
34755
34756 #if defined(__BSD__)
84ae7ca4
VZ
34757 #include <sys/param.h>
34758 #include <sys/mount.h>
a848cd7e 34759 #else
84ae7ca4 34760 #include <sys/vfs.h>
a848cd7e
SC
34761 #endif
34762
34763int
34764main ()
34765{
34766
34767 long l;
34768 struct statfs fs;
34769 statfs("/", &fs);
34770 l = fs.f_bsize;
34771 l += fs.f_blocks;
34772 l += fs.f_bavail;
34773
34774 ;
34775 return 0;
34776}
34777_ACEOF
34778rm -f conftest.$ac_objext
34779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34780 (eval $ac_compile) 2>conftest.er1
a848cd7e 34781 ac_status=$?
ac1cb8d3
VS
34782 grep -v '^ *+' conftest.er1 >conftest.err
34783 rm -f conftest.er1
34784 cat conftest.err >&5
a848cd7e
SC
34785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786 (exit $ac_status); } &&
3565d135
RR
34787 { ac_try='test -z "$ac_c_werror_flag"
34788 || test ! -s conftest.err'
ac1cb8d3
VS
34789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34790 (eval $ac_try) 2>&5
34791 ac_status=$?
34792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793 (exit $ac_status); }; } &&
34794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34796 (eval $ac_try) 2>&5
34797 ac_status=$?
34798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799 (exit $ac_status); }; }; then
84ae7ca4 34800 wx_cv_func_statfs=yes
a848cd7e
SC
34801else
34802 echo "$as_me: failed program was:" >&5
34803sed 's/^/| /' conftest.$ac_ext >&5
34804
84ae7ca4 34805wx_cv_func_statfs=no
a848cd7e
SC
34806
34807fi
ac1cb8d3 34808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34809
34810fi
34811echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34812echo "${ECHO_T}$wx_cv_func_statfs" >&6
34813
34814if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34815
34816
34817 ac_ext=cc
34818ac_cpp='$CXXCPP $CPPFLAGS'
34819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34822
34823 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34824echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34825if test "${wx_cv_func_statfs_decl+set}" = set; then
34826 echo $ECHO_N "(cached) $ECHO_C" >&6
34827else
0683aca6
VZ
34828 cat >conftest.$ac_ext <<_ACEOF
34829/* confdefs.h. */
34830_ACEOF
34831cat confdefs.h >>conftest.$ac_ext
34832cat >>conftest.$ac_ext <<_ACEOF
34833/* end confdefs.h. */
84ae7ca4 34834
0683aca6
VZ
34835 #if defined(__BSD__)
34836 #include <sys/param.h>
34837 #include <sys/mount.h>
34838 #else
34839 #include <sys/vfs.h>
34840 #endif
34841
34842int
34843main ()
34844{
34845
34846 struct statfs fs;
34847 statfs("", &fs);
34848
34849 ;
34850 return 0;
34851}
34852_ACEOF
34853rm -f conftest.$ac_objext
34854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34855 (eval $ac_compile) 2>conftest.er1
34856 ac_status=$?
34857 grep -v '^ *+' conftest.er1 >conftest.err
34858 rm -f conftest.er1
34859 cat conftest.err >&5
34860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861 (exit $ac_status); } &&
3565d135
RR
34862 { ac_try='test -z "$ac_cxx_werror_flag"
34863 || test ! -s conftest.err'
0683aca6
VZ
34864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34865 (eval $ac_try) 2>&5
34866 ac_status=$?
34867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868 (exit $ac_status); }; } &&
34869 { ac_try='test -s conftest.$ac_objext'
34870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34871 (eval $ac_try) 2>&5
34872 ac_status=$?
34873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34874 (exit $ac_status); }; }; then
34875 wx_cv_func_statfs_decl=yes
34876else
34877 echo "$as_me: failed program was:" >&5
34878sed 's/^/| /' conftest.$ac_ext >&5
34879
34880wx_cv_func_statfs_decl=no
34881
34882fi
34883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34884
34885fi
34886echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34887echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34888 ac_ext=c
34889ac_cpp='$CPP $CPPFLAGS'
34890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34892ac_compiler_gnu=$ac_cv_c_compiler_gnu
34893
34894
34895 if test "$wx_cv_func_statfs_decl" = "yes"; then
34896 cat >>confdefs.h <<\_ACEOF
34897#define HAVE_STATFS_DECL 1
34898_ACEOF
34899
34900 fi
34901
a848cd7e
SC
34902 wx_cv_type_statvfs_t="struct statfs"
34903 cat >>confdefs.h <<\_ACEOF
34904#define HAVE_STATFS 1
34905_ACEOF
34906
34907else
34908 echo "$as_me:$LINENO: checking for statvfs" >&5
34909echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34910if test "${wx_cv_func_statvfs+set}" = set; then
34911 echo $ECHO_N "(cached) $ECHO_C" >&6
34912else
34913 cat >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 #include <stddef.h>
34921 #include <sys/statvfs.h>
34922
34923int
34924main ()
34925{
34926
34927 statvfs("/", NULL);
34928
34929 ;
34930 return 0;
34931}
34932_ACEOF
34933rm -f conftest.$ac_objext
34934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34935 (eval $ac_compile) 2>conftest.er1
a848cd7e 34936 ac_status=$?
ac1cb8d3
VS
34937 grep -v '^ *+' conftest.er1 >conftest.err
34938 rm -f conftest.er1
34939 cat conftest.err >&5
a848cd7e
SC
34940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941 (exit $ac_status); } &&
3565d135
RR
34942 { ac_try='test -z "$ac_c_werror_flag"
34943 || test ! -s conftest.err'
ac1cb8d3
VS
34944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34945 (eval $ac_try) 2>&5
34946 ac_status=$?
34947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948 (exit $ac_status); }; } &&
34949 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34951 (eval $ac_try) 2>&5
34952 ac_status=$?
34953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954 (exit $ac_status); }; }; then
34955 wx_cv_func_statvfs=yes
34956else
34957 echo "$as_me: failed program was:" >&5
34958sed 's/^/| /' conftest.$ac_ext >&5
34959
34960wx_cv_func_statvfs=no
34961
34962fi
ac1cb8d3 34963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34964
34965fi
34966echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34967echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34968
34969 if test "$wx_cv_func_statvfs" = "yes"; then
34970
34971
34972 ac_ext=cc
34973ac_cpp='$CXXCPP $CPPFLAGS'
34974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34977
34978
34979 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34980echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34981if test "${wx_cv_type_statvfs_t+set}" = set; then
34982 echo $ECHO_N "(cached) $ECHO_C" >&6
34983else
34984 cat >conftest.$ac_ext <<_ACEOF
34985/* confdefs.h. */
34986_ACEOF
34987cat confdefs.h >>conftest.$ac_ext
34988cat >>conftest.$ac_ext <<_ACEOF
34989/* end confdefs.h. */
34990
34991 #include <sys/statvfs.h>
34992
34993int
34994main ()
34995{
34996
34997 long l;
34998 statvfs_t fs;
34999 statvfs("/", &fs);
35000 l = fs.f_bsize;
35001 l += fs.f_blocks;
35002 l += fs.f_bavail;
35003
35004 ;
35005 return 0;
35006}
35007_ACEOF
35008rm -f conftest.$ac_objext
35009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35010 (eval $ac_compile) 2>conftest.er1
a848cd7e 35011 ac_status=$?
ac1cb8d3
VS
35012 grep -v '^ *+' conftest.er1 >conftest.err
35013 rm -f conftest.er1
35014 cat conftest.err >&5
a848cd7e
SC
35015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35016 (exit $ac_status); } &&
3565d135
RR
35017 { ac_try='test -z "$ac_cxx_werror_flag"
35018 || test ! -s conftest.err'
ac1cb8d3
VS
35019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35020 (eval $ac_try) 2>&5
35021 ac_status=$?
35022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35023 (exit $ac_status); }; } &&
35024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35026 (eval $ac_try) 2>&5
35027 ac_status=$?
35028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35029 (exit $ac_status); }; }; then
35030 wx_cv_type_statvfs_t=statvfs_t
35031else
35032 echo "$as_me: failed program was:" >&5
35033sed 's/^/| /' conftest.$ac_ext >&5
35034
35035
35036 cat >conftest.$ac_ext <<_ACEOF
35037/* confdefs.h. */
35038_ACEOF
35039cat confdefs.h >>conftest.$ac_ext
35040cat >>conftest.$ac_ext <<_ACEOF
35041/* end confdefs.h. */
35042
35043 #include <sys/statvfs.h>
35044
35045int
35046main ()
35047{
35048
35049 long l;
35050 struct statvfs fs;
35051 statvfs("/", &fs);
35052 l = fs.f_bsize;
35053 l += fs.f_blocks;
35054 l += fs.f_bavail;
35055
35056 ;
35057 return 0;
35058}
35059_ACEOF
35060rm -f conftest.$ac_objext
35061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35062 (eval $ac_compile) 2>conftest.er1
a848cd7e 35063 ac_status=$?
ac1cb8d3
VS
35064 grep -v '^ *+' conftest.er1 >conftest.err
35065 rm -f conftest.er1
35066 cat conftest.err >&5
a848cd7e
SC
35067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35068 (exit $ac_status); } &&
3565d135
RR
35069 { ac_try='test -z "$ac_cxx_werror_flag"
35070 || test ! -s conftest.err'
ac1cb8d3
VS
35071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35072 (eval $ac_try) 2>&5
35073 ac_status=$?
35074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075 (exit $ac_status); }; } &&
35076 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35078 (eval $ac_try) 2>&5
35079 ac_status=$?
35080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081 (exit $ac_status); }; }; then
35082 wx_cv_type_statvfs_t="struct statvfs"
35083else
35084 echo "$as_me: failed program was:" >&5
35085sed 's/^/| /' conftest.$ac_ext >&5
35086
35087wx_cv_type_statvfs_t="unknown"
35088
35089fi
ac1cb8d3 35090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35091
35092
35093fi
ac1cb8d3 35094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35095
35096fi
35097echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35098echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35099
35100 ac_ext=c
35101ac_cpp='$CPP $CPPFLAGS'
35102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35104ac_compiler_gnu=$ac_cv_c_compiler_gnu
35105
35106
35107 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35108 cat >>confdefs.h <<\_ACEOF
35109#define HAVE_STATVFS 1
35110_ACEOF
35111
35112 fi
35113 else
35114 wx_cv_type_statvfs_t="unknown"
35115 fi
35116fi
35117
35118if test "$wx_cv_type_statvfs_t" != "unknown"; then
35119 cat >>confdefs.h <<_ACEOF
35120#define WX_STATFS_T $wx_cv_type_statvfs_t
35121_ACEOF
35122
35123else
35124 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35125echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35126fi
35127
35128if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35129
35130
35131for ac_func in fcntl flock
35132do
35133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35134echo "$as_me:$LINENO: checking for $ac_func" >&5
35135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35136if eval "test \"\${$as_ac_var+set}\" = set"; then
35137 echo $ECHO_N "(cached) $ECHO_C" >&6
35138else
35139 cat >conftest.$ac_ext <<_ACEOF
35140/* confdefs.h. */
35141_ACEOF
35142cat confdefs.h >>conftest.$ac_ext
35143cat >>conftest.$ac_ext <<_ACEOF
35144/* end confdefs.h. */
ac1cb8d3
VS
35145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35147#define $ac_func innocuous_$ac_func
35148
a848cd7e
SC
35149/* System header to define __stub macros and hopefully few prototypes,
35150 which can conflict with char $ac_func (); below.
35151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35152 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35153
a848cd7e
SC
35154#ifdef __STDC__
35155# include <limits.h>
35156#else
35157# include <assert.h>
35158#endif
ac1cb8d3
VS
35159
35160#undef $ac_func
35161
a848cd7e
SC
35162/* Override any gcc2 internal prototype to avoid an error. */
35163#ifdef __cplusplus
35164extern "C"
35165{
35166#endif
35167/* We use char because int might match the return type of a gcc2
35168 builtin and then its argument prototype would still apply. */
35169char $ac_func ();
35170/* The GNU C library defines this for functions which it implements
35171 to always fail with ENOSYS. Some functions are actually named
35172 something starting with __ and the normal name is an alias. */
35173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35174choke me
35175#else
35176char (*f) () = $ac_func;
35177#endif
35178#ifdef __cplusplus
35179}
35180#endif
35181
35182int
35183main ()
35184{
35185return f != $ac_func;
35186 ;
35187 return 0;
35188}
35189_ACEOF
35190rm -f conftest.$ac_objext conftest$ac_exeext
35191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35192 (eval $ac_link) 2>conftest.er1
a848cd7e 35193 ac_status=$?
ac1cb8d3
VS
35194 grep -v '^ *+' conftest.er1 >conftest.err
35195 rm -f conftest.er1
35196 cat conftest.err >&5
a848cd7e
SC
35197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35198 (exit $ac_status); } &&
3565d135
RR
35199 { ac_try='test -z "$ac_c_werror_flag"
35200 || test ! -s conftest.err'
ac1cb8d3
VS
35201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35202 (eval $ac_try) 2>&5
35203 ac_status=$?
35204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205 (exit $ac_status); }; } &&
35206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35208 (eval $ac_try) 2>&5
35209 ac_status=$?
35210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211 (exit $ac_status); }; }; then
35212 eval "$as_ac_var=yes"
35213else
35214 echo "$as_me: failed program was:" >&5
35215sed 's/^/| /' conftest.$ac_ext >&5
35216
35217eval "$as_ac_var=no"
35218fi
ac1cb8d3
VS
35219rm -f conftest.err conftest.$ac_objext \
35220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35221fi
35222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35224if test `eval echo '${'$as_ac_var'}'` = yes; then
35225 cat >>confdefs.h <<_ACEOF
35226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35227_ACEOF
35228 break
35229fi
35230done
35231
35232
35233 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35234 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35235echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35236 wxUSE_SNGLINST_CHECKER=no
35237 fi
35238fi
35239
35240
35241for ac_func in timegm
35242do
35243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35244echo "$as_me:$LINENO: checking for $ac_func" >&5
35245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35246if eval "test \"\${$as_ac_var+set}\" = set"; then
35247 echo $ECHO_N "(cached) $ECHO_C" >&6
35248else
35249 cat >conftest.$ac_ext <<_ACEOF
35250/* confdefs.h. */
35251_ACEOF
35252cat confdefs.h >>conftest.$ac_ext
35253cat >>conftest.$ac_ext <<_ACEOF
35254/* end confdefs.h. */
ac1cb8d3
VS
35255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35257#define $ac_func innocuous_$ac_func
35258
a848cd7e
SC
35259/* System header to define __stub macros and hopefully few prototypes,
35260 which can conflict with char $ac_func (); below.
35261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35262 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35263
a848cd7e
SC
35264#ifdef __STDC__
35265# include <limits.h>
35266#else
35267# include <assert.h>
35268#endif
ac1cb8d3
VS
35269
35270#undef $ac_func
35271
a848cd7e
SC
35272/* Override any gcc2 internal prototype to avoid an error. */
35273#ifdef __cplusplus
35274extern "C"
35275{
35276#endif
35277/* We use char because int might match the return type of a gcc2
35278 builtin and then its argument prototype would still apply. */
35279char $ac_func ();
35280/* The GNU C library defines this for functions which it implements
35281 to always fail with ENOSYS. Some functions are actually named
35282 something starting with __ and the normal name is an alias. */
35283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35284choke me
35285#else
35286char (*f) () = $ac_func;
35287#endif
35288#ifdef __cplusplus
35289}
35290#endif
35291
35292int
35293main ()
35294{
35295return f != $ac_func;
35296 ;
35297 return 0;
35298}
35299_ACEOF
35300rm -f conftest.$ac_objext conftest$ac_exeext
35301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35302 (eval $ac_link) 2>conftest.er1
a848cd7e 35303 ac_status=$?
ac1cb8d3
VS
35304 grep -v '^ *+' conftest.er1 >conftest.err
35305 rm -f conftest.er1
35306 cat conftest.err >&5
a848cd7e
SC
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); } &&
3565d135
RR
35309 { ac_try='test -z "$ac_c_werror_flag"
35310 || test ! -s conftest.err'
ac1cb8d3
VS
35311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35312 (eval $ac_try) 2>&5
35313 ac_status=$?
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); }; } &&
35316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35318 (eval $ac_try) 2>&5
35319 ac_status=$?
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); }; }; then
35322 eval "$as_ac_var=yes"
35323else
35324 echo "$as_me: failed program was:" >&5
35325sed 's/^/| /' conftest.$ac_ext >&5
35326
35327eval "$as_ac_var=no"
35328fi
ac1cb8d3
VS
35329rm -f conftest.err conftest.$ac_objext \
35330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35331fi
35332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35334if test `eval echo '${'$as_ac_var'}'` = yes; then
35335 cat >>confdefs.h <<_ACEOF
35336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35337_ACEOF
35338
35339fi
35340done
35341
35342
35343
35344
35345for ac_func in putenv setenv
35346do
35347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35348echo "$as_me:$LINENO: checking for $ac_func" >&5
35349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35350if eval "test \"\${$as_ac_var+set}\" = set"; then
35351 echo $ECHO_N "(cached) $ECHO_C" >&6
35352else
35353 cat >conftest.$ac_ext <<_ACEOF
35354/* confdefs.h. */
35355_ACEOF
35356cat confdefs.h >>conftest.$ac_ext
35357cat >>conftest.$ac_ext <<_ACEOF
35358/* end confdefs.h. */
ac1cb8d3
VS
35359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35361#define $ac_func innocuous_$ac_func
35362
a848cd7e
SC
35363/* System header to define __stub macros and hopefully few prototypes,
35364 which can conflict with char $ac_func (); below.
35365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35366 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35367
a848cd7e
SC
35368#ifdef __STDC__
35369# include <limits.h>
35370#else
35371# include <assert.h>
35372#endif
ac1cb8d3
VS
35373
35374#undef $ac_func
35375
a848cd7e
SC
35376/* Override any gcc2 internal prototype to avoid an error. */
35377#ifdef __cplusplus
35378extern "C"
35379{
35380#endif
35381/* We use char because int might match the return type of a gcc2
35382 builtin and then its argument prototype would still apply. */
35383char $ac_func ();
35384/* The GNU C library defines this for functions which it implements
35385 to always fail with ENOSYS. Some functions are actually named
35386 something starting with __ and the normal name is an alias. */
35387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35388choke me
35389#else
35390char (*f) () = $ac_func;
35391#endif
35392#ifdef __cplusplus
35393}
35394#endif
35395
35396int
35397main ()
35398{
35399return f != $ac_func;
35400 ;
35401 return 0;
35402}
35403_ACEOF
35404rm -f conftest.$ac_objext conftest$ac_exeext
35405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35406 (eval $ac_link) 2>conftest.er1
a848cd7e 35407 ac_status=$?
ac1cb8d3
VS
35408 grep -v '^ *+' conftest.er1 >conftest.err
35409 rm -f conftest.er1
35410 cat conftest.err >&5
a848cd7e
SC
35411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35412 (exit $ac_status); } &&
3565d135
RR
35413 { ac_try='test -z "$ac_c_werror_flag"
35414 || test ! -s conftest.err'
ac1cb8d3
VS
35415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35416 (eval $ac_try) 2>&5
35417 ac_status=$?
35418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419 (exit $ac_status); }; } &&
35420 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35422 (eval $ac_try) 2>&5
35423 ac_status=$?
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); }; }; then
35426 eval "$as_ac_var=yes"
35427else
35428 echo "$as_me: failed program was:" >&5
35429sed 's/^/| /' conftest.$ac_ext >&5
35430
35431eval "$as_ac_var=no"
35432fi
ac1cb8d3
VS
35433rm -f conftest.err conftest.$ac_objext \
35434 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35435fi
35436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35437echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35438if test `eval echo '${'$as_ac_var'}'` = yes; then
35439 cat >>confdefs.h <<_ACEOF
35440#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35441_ACEOF
35442 break
35443fi
35444done
35445
35446
35447HAVE_SOME_SLEEP_FUNC=0
35448if test "$USE_BEOS" = 1; then
35449 cat >>confdefs.h <<\_ACEOF
35450#define HAVE_SLEEP 1
35451_ACEOF
35452
35453 HAVE_SOME_SLEEP_FUNC=1
35454fi
35455
35456if test "$USE_DARWIN" = 1; then
35457 cat >>confdefs.h <<\_ACEOF
35458#define HAVE_USLEEP 1
35459_ACEOF
35460
35461 HAVE_SOME_SLEEP_FUNC=1
35462fi
35463
35464if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35465 POSIX4_LINK=
35466
35467for ac_func in nanosleep
35468do
35469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35470echo "$as_me:$LINENO: checking for $ac_func" >&5
35471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35472if eval "test \"\${$as_ac_var+set}\" = set"; then
35473 echo $ECHO_N "(cached) $ECHO_C" >&6
35474else
35475 cat >conftest.$ac_ext <<_ACEOF
35476/* confdefs.h. */
35477_ACEOF
35478cat confdefs.h >>conftest.$ac_ext
35479cat >>conftest.$ac_ext <<_ACEOF
35480/* end confdefs.h. */
ac1cb8d3
VS
35481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35483#define $ac_func innocuous_$ac_func
35484
a848cd7e
SC
35485/* System header to define __stub macros and hopefully few prototypes,
35486 which can conflict with char $ac_func (); below.
35487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35488 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35489
a848cd7e
SC
35490#ifdef __STDC__
35491# include <limits.h>
35492#else
35493# include <assert.h>
35494#endif
ac1cb8d3
VS
35495
35496#undef $ac_func
35497
a848cd7e
SC
35498/* Override any gcc2 internal prototype to avoid an error. */
35499#ifdef __cplusplus
35500extern "C"
35501{
35502#endif
35503/* We use char because int might match the return type of a gcc2
35504 builtin and then its argument prototype would still apply. */
35505char $ac_func ();
35506/* The GNU C library defines this for functions which it implements
35507 to always fail with ENOSYS. Some functions are actually named
35508 something starting with __ and the normal name is an alias. */
35509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35510choke me
35511#else
35512char (*f) () = $ac_func;
35513#endif
35514#ifdef __cplusplus
35515}
35516#endif
35517
35518int
35519main ()
35520{
35521return f != $ac_func;
35522 ;
35523 return 0;
35524}
35525_ACEOF
35526rm -f conftest.$ac_objext conftest$ac_exeext
35527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35528 (eval $ac_link) 2>conftest.er1
a848cd7e 35529 ac_status=$?
ac1cb8d3
VS
35530 grep -v '^ *+' conftest.er1 >conftest.err
35531 rm -f conftest.er1
35532 cat conftest.err >&5
a848cd7e
SC
35533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35534 (exit $ac_status); } &&
3565d135
RR
35535 { ac_try='test -z "$ac_c_werror_flag"
35536 || test ! -s conftest.err'
ac1cb8d3
VS
35537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35538 (eval $ac_try) 2>&5
35539 ac_status=$?
35540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 (exit $ac_status); }; } &&
35542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35544 (eval $ac_try) 2>&5
35545 ac_status=$?
35546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547 (exit $ac_status); }; }; then
35548 eval "$as_ac_var=yes"
35549else
35550 echo "$as_me: failed program was:" >&5
35551sed 's/^/| /' conftest.$ac_ext >&5
35552
35553eval "$as_ac_var=no"
35554fi
ac1cb8d3
VS
35555rm -f conftest.err conftest.$ac_objext \
35556 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35557fi
35558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35559echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35560if test `eval echo '${'$as_ac_var'}'` = yes; then
35561 cat >>confdefs.h <<_ACEOF
35562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35563_ACEOF
35564 cat >>confdefs.h <<\_ACEOF
35565#define HAVE_NANOSLEEP 1
35566_ACEOF
35567
35568else
35569
35570 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35571echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35572if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35573 echo $ECHO_N "(cached) $ECHO_C" >&6
35574else
35575 ac_check_lib_save_LIBS=$LIBS
35576LIBS="-lposix4 $LIBS"
35577cat >conftest.$ac_ext <<_ACEOF
35578/* confdefs.h. */
35579_ACEOF
35580cat confdefs.h >>conftest.$ac_ext
35581cat >>conftest.$ac_ext <<_ACEOF
35582/* end confdefs.h. */
35583
35584/* Override any gcc2 internal prototype to avoid an error. */
35585#ifdef __cplusplus
35586extern "C"
35587#endif
35588/* We use char because int might match the return type of a gcc2
35589 builtin and then its argument prototype would still apply. */
35590char nanosleep ();
35591int
35592main ()
35593{
35594nanosleep ();
35595 ;
35596 return 0;
35597}
35598_ACEOF
35599rm -f conftest.$ac_objext conftest$ac_exeext
35600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35601 (eval $ac_link) 2>conftest.er1
a848cd7e 35602 ac_status=$?
ac1cb8d3
VS
35603 grep -v '^ *+' conftest.er1 >conftest.err
35604 rm -f conftest.er1
35605 cat conftest.err >&5
a848cd7e
SC
35606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35607 (exit $ac_status); } &&
3565d135
RR
35608 { ac_try='test -z "$ac_c_werror_flag"
35609 || test ! -s conftest.err'
ac1cb8d3
VS
35610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35611 (eval $ac_try) 2>&5
35612 ac_status=$?
35613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614 (exit $ac_status); }; } &&
35615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35617 (eval $ac_try) 2>&5
35618 ac_status=$?
35619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35620 (exit $ac_status); }; }; then
35621 ac_cv_lib_posix4_nanosleep=yes
35622else
35623 echo "$as_me: failed program was:" >&5
35624sed 's/^/| /' conftest.$ac_ext >&5
35625
35626ac_cv_lib_posix4_nanosleep=no
35627fi
ac1cb8d3
VS
35628rm -f conftest.err conftest.$ac_objext \
35629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35630LIBS=$ac_check_lib_save_LIBS
35631fi
35632echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35633echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35634if test $ac_cv_lib_posix4_nanosleep = yes; then
35635
35636 cat >>confdefs.h <<\_ACEOF
35637#define HAVE_NANOSLEEP 1
35638_ACEOF
35639
35640 POSIX4_LINK=" -lposix4"
35641
35642else
35643
35644
35645for ac_func in usleep
35646do
35647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35648echo "$as_me:$LINENO: checking for $ac_func" >&5
35649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35650if eval "test \"\${$as_ac_var+set}\" = set"; then
35651 echo $ECHO_N "(cached) $ECHO_C" >&6
35652else
35653 cat >conftest.$ac_ext <<_ACEOF
35654/* confdefs.h. */
35655_ACEOF
35656cat confdefs.h >>conftest.$ac_ext
35657cat >>conftest.$ac_ext <<_ACEOF
35658/* end confdefs.h. */
ac1cb8d3
VS
35659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35661#define $ac_func innocuous_$ac_func
35662
a848cd7e
SC
35663/* System header to define __stub macros and hopefully few prototypes,
35664 which can conflict with char $ac_func (); below.
35665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35666 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35667
a848cd7e
SC
35668#ifdef __STDC__
35669# include <limits.h>
35670#else
35671# include <assert.h>
35672#endif
ac1cb8d3
VS
35673
35674#undef $ac_func
35675
a848cd7e
SC
35676/* Override any gcc2 internal prototype to avoid an error. */
35677#ifdef __cplusplus
35678extern "C"
35679{
35680#endif
35681/* We use char because int might match the return type of a gcc2
35682 builtin and then its argument prototype would still apply. */
35683char $ac_func ();
35684/* The GNU C library defines this for functions which it implements
35685 to always fail with ENOSYS. Some functions are actually named
35686 something starting with __ and the normal name is an alias. */
35687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35688choke me
35689#else
35690char (*f) () = $ac_func;
35691#endif
35692#ifdef __cplusplus
35693}
35694#endif
35695
35696int
35697main ()
35698{
35699return f != $ac_func;
35700 ;
35701 return 0;
35702}
35703_ACEOF
35704rm -f conftest.$ac_objext conftest$ac_exeext
35705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35706 (eval $ac_link) 2>conftest.er1
a848cd7e 35707 ac_status=$?
ac1cb8d3
VS
35708 grep -v '^ *+' conftest.er1 >conftest.err
35709 rm -f conftest.er1
35710 cat conftest.err >&5
a848cd7e
SC
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); } &&
3565d135
RR
35713 { ac_try='test -z "$ac_c_werror_flag"
35714 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
35720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35722 (eval $ac_try) 2>&5
35723 ac_status=$?
35724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); }; }; then
35726 eval "$as_ac_var=yes"
35727else
35728 echo "$as_me: failed program was:" >&5
35729sed 's/^/| /' conftest.$ac_ext >&5
35730
35731eval "$as_ac_var=no"
35732fi
ac1cb8d3
VS
35733rm -f conftest.err conftest.$ac_objext \
35734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35735fi
35736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35737echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35738if test `eval echo '${'$as_ac_var'}'` = yes; then
35739 cat >>confdefs.h <<_ACEOF
35740#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35741_ACEOF
35742 cat >>confdefs.h <<\_ACEOF
35743#define HAVE_USLEEP 1
35744_ACEOF
35745
35746else
35747 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35748echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35749
35750fi
35751done
35752
35753
35754
35755fi
35756
35757
35758
35759fi
35760done
35761
35762fi
35763
35764
35765
35766for ac_func in uname gethostname
35767do
35768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35769echo "$as_me:$LINENO: checking for $ac_func" >&5
35770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35771if eval "test \"\${$as_ac_var+set}\" = set"; then
35772 echo $ECHO_N "(cached) $ECHO_C" >&6
35773else
35774 cat >conftest.$ac_ext <<_ACEOF
35775/* confdefs.h. */
35776_ACEOF
35777cat confdefs.h >>conftest.$ac_ext
35778cat >>conftest.$ac_ext <<_ACEOF
35779/* end confdefs.h. */
ac1cb8d3
VS
35780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35782#define $ac_func innocuous_$ac_func
35783
a848cd7e
SC
35784/* System header to define __stub macros and hopefully few prototypes,
35785 which can conflict with char $ac_func (); below.
35786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35787 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35788
a848cd7e
SC
35789#ifdef __STDC__
35790# include <limits.h>
35791#else
35792# include <assert.h>
35793#endif
ac1cb8d3
VS
35794
35795#undef $ac_func
35796
a848cd7e
SC
35797/* Override any gcc2 internal prototype to avoid an error. */
35798#ifdef __cplusplus
35799extern "C"
35800{
35801#endif
35802/* We use char because int might match the return type of a gcc2
35803 builtin and then its argument prototype would still apply. */
35804char $ac_func ();
35805/* The GNU C library defines this for functions which it implements
35806 to always fail with ENOSYS. Some functions are actually named
35807 something starting with __ and the normal name is an alias. */
35808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35809choke me
35810#else
35811char (*f) () = $ac_func;
35812#endif
35813#ifdef __cplusplus
35814}
35815#endif
35816
35817int
35818main ()
35819{
35820return f != $ac_func;
35821 ;
35822 return 0;
35823}
35824_ACEOF
35825rm -f conftest.$ac_objext conftest$ac_exeext
35826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35827 (eval $ac_link) 2>conftest.er1
a848cd7e 35828 ac_status=$?
ac1cb8d3
VS
35829 grep -v '^ *+' conftest.er1 >conftest.err
35830 rm -f conftest.er1
35831 cat conftest.err >&5
a848cd7e
SC
35832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35833 (exit $ac_status); } &&
3565d135
RR
35834 { ac_try='test -z "$ac_c_werror_flag"
35835 || test ! -s conftest.err'
ac1cb8d3
VS
35836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35837 (eval $ac_try) 2>&5
35838 ac_status=$?
35839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840 (exit $ac_status); }; } &&
35841 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35843 (eval $ac_try) 2>&5
35844 ac_status=$?
35845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35846 (exit $ac_status); }; }; then
35847 eval "$as_ac_var=yes"
35848else
35849 echo "$as_me: failed program was:" >&5
35850sed 's/^/| /' conftest.$ac_ext >&5
35851
35852eval "$as_ac_var=no"
35853fi
ac1cb8d3
VS
35854rm -f conftest.err conftest.$ac_objext \
35855 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35856fi
35857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35858echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35859if test `eval echo '${'$as_ac_var'}'` = yes; then
35860 cat >>confdefs.h <<_ACEOF
35861#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35862_ACEOF
35863 break
35864fi
35865done
35866
35867
35868
35869
35870ac_ext=cc
35871ac_cpp='$CXXCPP $CPPFLAGS'
35872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35875
35876
35877
35878for ac_func in strtok_r
35879do
35880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35881echo "$as_me:$LINENO: checking for $ac_func" >&5
35882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35883if eval "test \"\${$as_ac_var+set}\" = set"; then
35884 echo $ECHO_N "(cached) $ECHO_C" >&6
35885else
35886 cat >conftest.$ac_ext <<_ACEOF
35887/* confdefs.h. */
35888_ACEOF
35889cat confdefs.h >>conftest.$ac_ext
35890cat >>conftest.$ac_ext <<_ACEOF
35891/* end confdefs.h. */
ac1cb8d3
VS
35892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35894#define $ac_func innocuous_$ac_func
35895
a848cd7e
SC
35896/* System header to define __stub macros and hopefully few prototypes,
35897 which can conflict with char $ac_func (); below.
35898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35899 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35900
a848cd7e
SC
35901#ifdef __STDC__
35902# include <limits.h>
35903#else
35904# include <assert.h>
35905#endif
ac1cb8d3
VS
35906
35907#undef $ac_func
35908
a848cd7e
SC
35909/* Override any gcc2 internal prototype to avoid an error. */
35910#ifdef __cplusplus
35911extern "C"
35912{
35913#endif
35914/* We use char because int might match the return type of a gcc2
35915 builtin and then its argument prototype would still apply. */
35916char $ac_func ();
35917/* The GNU C library defines this for functions which it implements
35918 to always fail with ENOSYS. Some functions are actually named
35919 something starting with __ and the normal name is an alias. */
35920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35921choke me
35922#else
35923char (*f) () = $ac_func;
35924#endif
35925#ifdef __cplusplus
35926}
35927#endif
35928
35929int
35930main ()
35931{
35932return f != $ac_func;
35933 ;
35934 return 0;
35935}
35936_ACEOF
35937rm -f conftest.$ac_objext conftest$ac_exeext
35938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35939 (eval $ac_link) 2>conftest.er1
a848cd7e 35940 ac_status=$?
ac1cb8d3
VS
35941 grep -v '^ *+' conftest.er1 >conftest.err
35942 rm -f conftest.er1
35943 cat conftest.err >&5
a848cd7e
SC
35944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945 (exit $ac_status); } &&
3565d135
RR
35946 { ac_try='test -z "$ac_cxx_werror_flag"
35947 || test ! -s conftest.err'
ac1cb8d3
VS
35948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35949 (eval $ac_try) 2>&5
35950 ac_status=$?
35951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952 (exit $ac_status); }; } &&
35953 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35955 (eval $ac_try) 2>&5
35956 ac_status=$?
35957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958 (exit $ac_status); }; }; then
35959 eval "$as_ac_var=yes"
35960else
35961 echo "$as_me: failed program was:" >&5
35962sed 's/^/| /' conftest.$ac_ext >&5
35963
35964eval "$as_ac_var=no"
35965fi
ac1cb8d3
VS
35966rm -f conftest.err conftest.$ac_objext \
35967 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35968fi
35969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35970echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35971if test `eval echo '${'$as_ac_var'}'` = yes; then
35972 cat >>confdefs.h <<_ACEOF
35973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35974_ACEOF
35975
35976fi
35977done
35978
35979
35980ac_ext=c
35981ac_cpp='$CPP $CPPFLAGS'
35982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35984ac_compiler_gnu=$ac_cv_c_compiler_gnu
35985
35986
35987INET_LINK=
35988
35989for ac_func in inet_addr
35990do
35991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35992echo "$as_me:$LINENO: checking for $ac_func" >&5
35993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35994if eval "test \"\${$as_ac_var+set}\" = set"; then
35995 echo $ECHO_N "(cached) $ECHO_C" >&6
35996else
35997 cat >conftest.$ac_ext <<_ACEOF
35998/* confdefs.h. */
35999_ACEOF
36000cat confdefs.h >>conftest.$ac_ext
36001cat >>conftest.$ac_ext <<_ACEOF
36002/* end confdefs.h. */
ac1cb8d3
VS
36003/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36005#define $ac_func innocuous_$ac_func
36006
a848cd7e
SC
36007/* System header to define __stub macros and hopefully few prototypes,
36008 which can conflict with char $ac_func (); below.
36009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36010 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36011
a848cd7e
SC
36012#ifdef __STDC__
36013# include <limits.h>
36014#else
36015# include <assert.h>
36016#endif
ac1cb8d3
VS
36017
36018#undef $ac_func
36019
a848cd7e
SC
36020/* Override any gcc2 internal prototype to avoid an error. */
36021#ifdef __cplusplus
36022extern "C"
36023{
36024#endif
36025/* We use char because int might match the return type of a gcc2
36026 builtin and then its argument prototype would still apply. */
36027char $ac_func ();
36028/* The GNU C library defines this for functions which it implements
36029 to always fail with ENOSYS. Some functions are actually named
36030 something starting with __ and the normal name is an alias. */
36031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36032choke me
36033#else
36034char (*f) () = $ac_func;
36035#endif
36036#ifdef __cplusplus
36037}
36038#endif
36039
36040int
36041main ()
36042{
36043return f != $ac_func;
36044 ;
36045 return 0;
36046}
36047_ACEOF
36048rm -f conftest.$ac_objext conftest$ac_exeext
36049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36050 (eval $ac_link) 2>conftest.er1
a848cd7e 36051 ac_status=$?
ac1cb8d3
VS
36052 grep -v '^ *+' conftest.er1 >conftest.err
36053 rm -f conftest.er1
36054 cat conftest.err >&5
a848cd7e
SC
36055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056 (exit $ac_status); } &&
3565d135
RR
36057 { ac_try='test -z "$ac_c_werror_flag"
36058 || test ! -s conftest.err'
ac1cb8d3
VS
36059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36060 (eval $ac_try) 2>&5
36061 ac_status=$?
36062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063 (exit $ac_status); }; } &&
36064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36066 (eval $ac_try) 2>&5
36067 ac_status=$?
36068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36069 (exit $ac_status); }; }; then
36070 eval "$as_ac_var=yes"
36071else
36072 echo "$as_me: failed program was:" >&5
36073sed 's/^/| /' conftest.$ac_ext >&5
36074
36075eval "$as_ac_var=no"
36076fi
ac1cb8d3
VS
36077rm -f conftest.err conftest.$ac_objext \
36078 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36079fi
36080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36081echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36082if test `eval echo '${'$as_ac_var'}'` = yes; then
36083 cat >>confdefs.h <<_ACEOF
36084#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36085_ACEOF
36086 cat >>confdefs.h <<\_ACEOF
36087#define HAVE_INET_ADDR 1
36088_ACEOF
36089
36090else
36091
36092 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36093echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36094if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36095 echo $ECHO_N "(cached) $ECHO_C" >&6
36096else
36097 ac_check_lib_save_LIBS=$LIBS
36098LIBS="-lnsl $LIBS"
36099cat >conftest.$ac_ext <<_ACEOF
36100/* confdefs.h. */
36101_ACEOF
36102cat confdefs.h >>conftest.$ac_ext
36103cat >>conftest.$ac_ext <<_ACEOF
36104/* end confdefs.h. */
36105
36106/* Override any gcc2 internal prototype to avoid an error. */
36107#ifdef __cplusplus
36108extern "C"
36109#endif
36110/* We use char because int might match the return type of a gcc2
36111 builtin and then its argument prototype would still apply. */
36112char inet_addr ();
36113int
36114main ()
36115{
36116inet_addr ();
36117 ;
36118 return 0;
36119}
36120_ACEOF
36121rm -f conftest.$ac_objext conftest$ac_exeext
36122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36123 (eval $ac_link) 2>conftest.er1
a848cd7e 36124 ac_status=$?
ac1cb8d3
VS
36125 grep -v '^ *+' conftest.er1 >conftest.err
36126 rm -f conftest.er1
36127 cat conftest.err >&5
a848cd7e
SC
36128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129 (exit $ac_status); } &&
3565d135
RR
36130 { ac_try='test -z "$ac_c_werror_flag"
36131 || test ! -s conftest.err'
ac1cb8d3
VS
36132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36133 (eval $ac_try) 2>&5
36134 ac_status=$?
36135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36136 (exit $ac_status); }; } &&
36137 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36139 (eval $ac_try) 2>&5
36140 ac_status=$?
36141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36142 (exit $ac_status); }; }; then
36143 ac_cv_lib_nsl_inet_addr=yes
36144else
36145 echo "$as_me: failed program was:" >&5
36146sed 's/^/| /' conftest.$ac_ext >&5
36147
36148ac_cv_lib_nsl_inet_addr=no
36149fi
ac1cb8d3
VS
36150rm -f conftest.err conftest.$ac_objext \
36151 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36152LIBS=$ac_check_lib_save_LIBS
36153fi
36154echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36155echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36156if test $ac_cv_lib_nsl_inet_addr = yes; then
36157 INET_LINK="nsl"
36158else
36159
36160 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36161echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36162if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36163 echo $ECHO_N "(cached) $ECHO_C" >&6
36164else
36165 ac_check_lib_save_LIBS=$LIBS
36166LIBS="-lresolv $LIBS"
36167cat >conftest.$ac_ext <<_ACEOF
36168/* confdefs.h. */
36169_ACEOF
36170cat confdefs.h >>conftest.$ac_ext
36171cat >>conftest.$ac_ext <<_ACEOF
36172/* end confdefs.h. */
36173
36174/* Override any gcc2 internal prototype to avoid an error. */
36175#ifdef __cplusplus
36176extern "C"
36177#endif
36178/* We use char because int might match the return type of a gcc2
36179 builtin and then its argument prototype would still apply. */
36180char inet_addr ();
36181int
36182main ()
36183{
36184inet_addr ();
36185 ;
36186 return 0;
36187}
36188_ACEOF
36189rm -f conftest.$ac_objext conftest$ac_exeext
36190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36191 (eval $ac_link) 2>conftest.er1
a848cd7e 36192 ac_status=$?
ac1cb8d3
VS
36193 grep -v '^ *+' conftest.er1 >conftest.err
36194 rm -f conftest.er1
36195 cat conftest.err >&5
a848cd7e
SC
36196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197 (exit $ac_status); } &&
3565d135
RR
36198 { ac_try='test -z "$ac_c_werror_flag"
36199 || test ! -s conftest.err'
ac1cb8d3
VS
36200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36201 (eval $ac_try) 2>&5
36202 ac_status=$?
36203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36204 (exit $ac_status); }; } &&
36205 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36207 (eval $ac_try) 2>&5
36208 ac_status=$?
36209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210 (exit $ac_status); }; }; then
36211 ac_cv_lib_resolv_inet_addr=yes
36212else
36213 echo "$as_me: failed program was:" >&5
36214sed 's/^/| /' conftest.$ac_ext >&5
36215
36216ac_cv_lib_resolv_inet_addr=no
36217fi
ac1cb8d3
VS
36218rm -f conftest.err conftest.$ac_objext \
36219 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36220LIBS=$ac_check_lib_save_LIBS
36221fi
36222echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36223echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36224if test $ac_cv_lib_resolv_inet_addr = yes; then
36225 INET_LINK="resolv"
36226else
36227
36228 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36229echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36230if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36231 echo $ECHO_N "(cached) $ECHO_C" >&6
36232else
36233 ac_check_lib_save_LIBS=$LIBS
36234LIBS="-lsocket $LIBS"
36235cat >conftest.$ac_ext <<_ACEOF
36236/* confdefs.h. */
36237_ACEOF
36238cat confdefs.h >>conftest.$ac_ext
36239cat >>conftest.$ac_ext <<_ACEOF
36240/* end confdefs.h. */
36241
36242/* Override any gcc2 internal prototype to avoid an error. */
36243#ifdef __cplusplus
36244extern "C"
36245#endif
36246/* We use char because int might match the return type of a gcc2
36247 builtin and then its argument prototype would still apply. */
36248char inet_addr ();
36249int
36250main ()
36251{
36252inet_addr ();
36253 ;
36254 return 0;
36255}
36256_ACEOF
36257rm -f conftest.$ac_objext conftest$ac_exeext
36258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36259 (eval $ac_link) 2>conftest.er1
a848cd7e 36260 ac_status=$?
ac1cb8d3
VS
36261 grep -v '^ *+' conftest.er1 >conftest.err
36262 rm -f conftest.er1
36263 cat conftest.err >&5
a848cd7e
SC
36264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265 (exit $ac_status); } &&
3565d135
RR
36266 { ac_try='test -z "$ac_c_werror_flag"
36267 || test ! -s conftest.err'
ac1cb8d3
VS
36268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36269 (eval $ac_try) 2>&5
36270 ac_status=$?
36271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36272 (exit $ac_status); }; } &&
36273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36275 (eval $ac_try) 2>&5
36276 ac_status=$?
36277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278 (exit $ac_status); }; }; then
36279 ac_cv_lib_socket_inet_addr=yes
36280else
36281 echo "$as_me: failed program was:" >&5
36282sed 's/^/| /' conftest.$ac_ext >&5
36283
36284ac_cv_lib_socket_inet_addr=no
36285fi
ac1cb8d3
VS
36286rm -f conftest.err conftest.$ac_objext \
36287 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36288LIBS=$ac_check_lib_save_LIBS
36289fi
36290echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36291echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36292if test $ac_cv_lib_socket_inet_addr = yes; then
36293 INET_LINK="socket"
36294
36295fi
36296
36297
36298
36299fi
36300
36301
36302
36303fi
36304
36305
36306
36307fi
36308done
36309
36310
36311
36312for ac_func in inet_aton
36313do
36314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36315echo "$as_me:$LINENO: checking for $ac_func" >&5
36316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36317if eval "test \"\${$as_ac_var+set}\" = set"; then
36318 echo $ECHO_N "(cached) $ECHO_C" >&6
36319else
36320 cat >conftest.$ac_ext <<_ACEOF
36321/* confdefs.h. */
36322_ACEOF
36323cat confdefs.h >>conftest.$ac_ext
36324cat >>conftest.$ac_ext <<_ACEOF
36325/* end confdefs.h. */
ac1cb8d3
VS
36326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36328#define $ac_func innocuous_$ac_func
36329
a848cd7e
SC
36330/* System header to define __stub macros and hopefully few prototypes,
36331 which can conflict with char $ac_func (); below.
36332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36333 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36334
a848cd7e
SC
36335#ifdef __STDC__
36336# include <limits.h>
36337#else
36338# include <assert.h>
36339#endif
ac1cb8d3
VS
36340
36341#undef $ac_func
36342
a848cd7e
SC
36343/* Override any gcc2 internal prototype to avoid an error. */
36344#ifdef __cplusplus
36345extern "C"
36346{
36347#endif
36348/* We use char because int might match the return type of a gcc2
36349 builtin and then its argument prototype would still apply. */
36350char $ac_func ();
36351/* The GNU C library defines this for functions which it implements
36352 to always fail with ENOSYS. Some functions are actually named
36353 something starting with __ and the normal name is an alias. */
36354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36355choke me
36356#else
36357char (*f) () = $ac_func;
36358#endif
36359#ifdef __cplusplus
36360}
36361#endif
36362
36363int
36364main ()
36365{
36366return f != $ac_func;
36367 ;
36368 return 0;
36369}
36370_ACEOF
36371rm -f conftest.$ac_objext conftest$ac_exeext
36372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36373 (eval $ac_link) 2>conftest.er1
a848cd7e 36374 ac_status=$?
ac1cb8d3
VS
36375 grep -v '^ *+' conftest.er1 >conftest.err
36376 rm -f conftest.er1
36377 cat conftest.err >&5
a848cd7e
SC
36378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36379 (exit $ac_status); } &&
3565d135
RR
36380 { ac_try='test -z "$ac_c_werror_flag"
36381 || test ! -s conftest.err'
ac1cb8d3
VS
36382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36383 (eval $ac_try) 2>&5
36384 ac_status=$?
36385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386 (exit $ac_status); }; } &&
36387 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36389 (eval $ac_try) 2>&5
36390 ac_status=$?
36391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36392 (exit $ac_status); }; }; then
36393 eval "$as_ac_var=yes"
36394else
36395 echo "$as_me: failed program was:" >&5
36396sed 's/^/| /' conftest.$ac_ext >&5
36397
36398eval "$as_ac_var=no"
36399fi
ac1cb8d3
VS
36400rm -f conftest.err conftest.$ac_objext \
36401 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36402fi
36403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36404echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36405if test `eval echo '${'$as_ac_var'}'` = yes; then
36406 cat >>confdefs.h <<_ACEOF
36407#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36408_ACEOF
36409 cat >>confdefs.h <<\_ACEOF
36410#define HAVE_INET_ATON 1
36411_ACEOF
36412
36413else
36414
36415 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36416echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36417echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36418if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36419 echo $ECHO_N "(cached) $ECHO_C" >&6
36420else
36421 ac_check_lib_save_LIBS=$LIBS
36422LIBS="-l$INET_LINK $LIBS"
36423cat >conftest.$ac_ext <<_ACEOF
36424/* confdefs.h. */
36425_ACEOF
36426cat confdefs.h >>conftest.$ac_ext
36427cat >>conftest.$ac_ext <<_ACEOF
36428/* end confdefs.h. */
36429
36430/* Override any gcc2 internal prototype to avoid an error. */
36431#ifdef __cplusplus
36432extern "C"
36433#endif
36434/* We use char because int might match the return type of a gcc2
36435 builtin and then its argument prototype would still apply. */
36436char inet_aton ();
36437int
36438main ()
36439{
36440inet_aton ();
36441 ;
36442 return 0;
36443}
36444_ACEOF
36445rm -f conftest.$ac_objext conftest$ac_exeext
36446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36447 (eval $ac_link) 2>conftest.er1
a848cd7e 36448 ac_status=$?
ac1cb8d3
VS
36449 grep -v '^ *+' conftest.er1 >conftest.err
36450 rm -f conftest.er1
36451 cat conftest.err >&5
a848cd7e
SC
36452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453 (exit $ac_status); } &&
3565d135
RR
36454 { ac_try='test -z "$ac_c_werror_flag"
36455 || test ! -s conftest.err'
ac1cb8d3
VS
36456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36457 (eval $ac_try) 2>&5
36458 ac_status=$?
36459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460 (exit $ac_status); }; } &&
36461 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36463 (eval $ac_try) 2>&5
36464 ac_status=$?
36465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466 (exit $ac_status); }; }; then
36467 eval "$as_ac_Lib=yes"
36468else
36469 echo "$as_me: failed program was:" >&5
36470sed 's/^/| /' conftest.$ac_ext >&5
36471
36472eval "$as_ac_Lib=no"
36473fi
ac1cb8d3
VS
36474rm -f conftest.err conftest.$ac_objext \
36475 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36476LIBS=$ac_check_lib_save_LIBS
36477fi
36478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36479echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36480if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36481 cat >>confdefs.h <<\_ACEOF
36482#define HAVE_INET_ATON 1
36483_ACEOF
36484
36485fi
36486
36487
36488fi
36489done
36490
36491
36492if test "x$INET_LINK" != "x"; then
36493 cat >>confdefs.h <<\_ACEOF
36494#define HAVE_INET_ADDR 1
36495_ACEOF
36496
36497 INET_LINK=" -l$INET_LINK"
36498fi
36499
36500fi
36501
36502
36503
36504EXTRALIBS_ESD=
36505echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36506echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36507if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36508 echo $ECHO_N "(cached) $ECHO_C" >&6
36509else
36510 ac_check_lib_save_LIBS=$LIBS
36511LIBS="-lesd $LIBS"
36512cat >conftest.$ac_ext <<_ACEOF
36513/* confdefs.h. */
36514_ACEOF
36515cat confdefs.h >>conftest.$ac_ext
36516cat >>conftest.$ac_ext <<_ACEOF
36517/* end confdefs.h. */
36518
36519/* Override any gcc2 internal prototype to avoid an error. */
36520#ifdef __cplusplus
36521extern "C"
36522#endif
36523/* We use char because int might match the return type of a gcc2
36524 builtin and then its argument prototype would still apply. */
36525char esd_close ();
36526int
36527main ()
36528{
36529esd_close ();
36530 ;
36531 return 0;
36532}
36533_ACEOF
36534rm -f conftest.$ac_objext conftest$ac_exeext
36535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36536 (eval $ac_link) 2>conftest.er1
a848cd7e 36537 ac_status=$?
ac1cb8d3
VS
36538 grep -v '^ *+' conftest.er1 >conftest.err
36539 rm -f conftest.er1
36540 cat conftest.err >&5
a848cd7e
SC
36541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542 (exit $ac_status); } &&
3565d135
RR
36543 { ac_try='test -z "$ac_c_werror_flag"
36544 || test ! -s conftest.err'
ac1cb8d3
VS
36545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36546 (eval $ac_try) 2>&5
36547 ac_status=$?
36548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549 (exit $ac_status); }; } &&
36550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36552 (eval $ac_try) 2>&5
36553 ac_status=$?
36554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36555 (exit $ac_status); }; }; then
36556 ac_cv_lib_esd_esd_close=yes
36557else
36558 echo "$as_me: failed program was:" >&5
36559sed 's/^/| /' conftest.$ac_ext >&5
36560
36561ac_cv_lib_esd_esd_close=no
36562fi
ac1cb8d3
VS
36563rm -f conftest.err conftest.$ac_objext \
36564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36565LIBS=$ac_check_lib_save_LIBS
36566fi
36567echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36568echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36569if test $ac_cv_lib_esd_esd_close = yes; then
36570
36571
36572for ac_header in esd.h
36573do
36574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36575if eval "test \"\${$as_ac_Header+set}\" = set"; then
36576 echo "$as_me:$LINENO: checking for $ac_header" >&5
36577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36578if eval "test \"\${$as_ac_Header+set}\" = set"; then
36579 echo $ECHO_N "(cached) $ECHO_C" >&6
36580fi
36581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36583else
36584 # Is the header compilable?
36585echo "$as_me:$LINENO: checking $ac_header usability" >&5
36586echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36587cat >conftest.$ac_ext <<_ACEOF
36588/* confdefs.h. */
36589_ACEOF
36590cat confdefs.h >>conftest.$ac_ext
36591cat >>conftest.$ac_ext <<_ACEOF
36592/* end confdefs.h. */
36593$ac_includes_default
36594#include <$ac_header>
36595_ACEOF
36596rm -f conftest.$ac_objext
36597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36598 (eval $ac_compile) 2>conftest.er1
a848cd7e 36599 ac_status=$?
ac1cb8d3
VS
36600 grep -v '^ *+' conftest.er1 >conftest.err
36601 rm -f conftest.er1
36602 cat conftest.err >&5
a848cd7e
SC
36603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36604 (exit $ac_status); } &&
3565d135
RR
36605 { ac_try='test -z "$ac_c_werror_flag"
36606 || test ! -s conftest.err'
ac1cb8d3
VS
36607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36608 (eval $ac_try) 2>&5
36609 ac_status=$?
36610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36611 (exit $ac_status); }; } &&
36612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36614 (eval $ac_try) 2>&5
36615 ac_status=$?
36616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617 (exit $ac_status); }; }; then
36618 ac_header_compiler=yes
36619else
36620 echo "$as_me: failed program was:" >&5
36621sed 's/^/| /' conftest.$ac_ext >&5
36622
36623ac_header_compiler=no
36624fi
ac1cb8d3 36625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36626echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36627echo "${ECHO_T}$ac_header_compiler" >&6
36628
36629# Is the header present?
36630echo "$as_me:$LINENO: checking $ac_header presence" >&5
36631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36632cat >conftest.$ac_ext <<_ACEOF
36633/* confdefs.h. */
36634_ACEOF
36635cat confdefs.h >>conftest.$ac_ext
36636cat >>conftest.$ac_ext <<_ACEOF
36637/* end confdefs.h. */
36638#include <$ac_header>
36639_ACEOF
36640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36642 ac_status=$?
36643 grep -v '^ *+' conftest.er1 >conftest.err
36644 rm -f conftest.er1
36645 cat conftest.err >&5
36646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36647 (exit $ac_status); } >/dev/null; then
36648 if test -s conftest.err; then
36649 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36651 else
36652 ac_cpp_err=
36653 fi
36654else
36655 ac_cpp_err=yes
36656fi
36657if test -z "$ac_cpp_err"; then
36658 ac_header_preproc=yes
36659else
36660 echo "$as_me: failed program was:" >&5
36661sed 's/^/| /' conftest.$ac_ext >&5
36662
36663 ac_header_preproc=no
36664fi
36665rm -f conftest.err conftest.$ac_ext
36666echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36667echo "${ECHO_T}$ac_header_preproc" >&6
36668
36669# So? What about this header?
ac1cb8d3
VS
36670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36671 yes:no: )
a848cd7e
SC
36672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36675echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36676 ac_header_preproc=yes
a848cd7e 36677 ;;
ac1cb8d3 36678 no:yes:* )
a848cd7e
SC
36679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36680echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36682echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36684echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36686echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36690echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36691 (
36692 cat <<\_ASBOX
ac1cb8d3
VS
36693## ----------------------------------------- ##
36694## Report this to wx-dev@lists.wxwidgets.org ##
36695## ----------------------------------------- ##
a848cd7e
SC
36696_ASBOX
36697 ) |
36698 sed "s/^/$as_me: WARNING: /" >&2
36699 ;;
36700esac
36701echo "$as_me:$LINENO: checking for $ac_header" >&5
36702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36703if eval "test \"\${$as_ac_Header+set}\" = set"; then
36704 echo $ECHO_N "(cached) $ECHO_C" >&6
36705else
ac1cb8d3 36706 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36707fi
36708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36710
36711fi
36712if test `eval echo '${'$as_ac_Header'}'` = yes; then
36713 cat >>confdefs.h <<_ACEOF
36714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36715_ACEOF
36716
36717 EXTRALIBS_ESD="-lesd"
36718
36719fi
36720
36721done
36722
36723
36724fi
36725
36726
36727
36728echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36729echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36730cat >conftest.$ac_ext <<_ACEOF
36731/* confdefs.h. */
36732_ACEOF
36733cat confdefs.h >>conftest.$ac_ext
36734cat >>conftest.$ac_ext <<_ACEOF
36735/* end confdefs.h. */
36736#ifdef __linux__
36737 #include <linux/cdrom.h>
36738 #else
36739 /* For Solaris */
36740 #include <sys/cdio.h>
36741 #endif
36742
36743int
36744main ()
36745{
36746struct cdrom_tocentry entry, old_entry;
36747 ;
36748 return 0;
36749}
36750_ACEOF
36751rm -f conftest.$ac_objext
36752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36753 (eval $ac_compile) 2>conftest.er1
a848cd7e 36754 ac_status=$?
ac1cb8d3
VS
36755 grep -v '^ *+' conftest.er1 >conftest.err
36756 rm -f conftest.er1
36757 cat conftest.err >&5
a848cd7e
SC
36758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); } &&
3565d135
RR
36760 { ac_try='test -z "$ac_c_werror_flag"
36761 || test ! -s conftest.err'
ac1cb8d3
VS
36762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36763 (eval $ac_try) 2>&5
36764 ac_status=$?
36765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); }; } &&
36767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36769 (eval $ac_try) 2>&5
36770 ac_status=$?
36771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772 (exit $ac_status); }; }; then
36773 echo "$as_me:$LINENO: result: yes" >&5
36774echo "${ECHO_T}yes" >&6
36775 cat >>confdefs.h <<\_ACEOF
36776#define HAVE_KNOWN_CDROM_INTERFACE 1
36777_ACEOF
36778
36779else
36780 echo "$as_me: failed program was:" >&5
36781sed 's/^/| /' conftest.$ac_ext >&5
36782
36783echo "$as_me:$LINENO: result: no" >&5
36784echo "${ECHO_T}no" >&6
36785fi
ac1cb8d3 36786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36787
36788
36789cat >confcache <<\_ACEOF
36790# This file is a shell script that caches the results of configure
36791# tests run on this system so they can be shared between configure
36792# scripts and configure runs, see configure's option --config-cache.
36793# It is not useful on other systems. If it contains results you don't
36794# want to keep, you may remove or edit it.
36795#
36796# config.status only pays attention to the cache file if you give it
36797# the --recheck option to rerun configure.
36798#
36799# `ac_cv_env_foo' variables (set or unset) will be overridden when
36800# loading this file, other *unset* `ac_cv_foo' will be assigned the
36801# following values.
36802
36803_ACEOF
36804
36805# The following way of writing the cache mishandles newlines in values,
36806# but we know of no workaround that is simple, portable, and efficient.
36807# So, don't put newlines in cache variables' values.
36808# Ultrix sh set writes to stderr and can't be redirected directly,
36809# and sets the high bit in the cache file unless we assign to the vars.
36810{
36811 (set) 2>&1 |
36812 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36813 *ac_space=\ *)
36814 # `set' does not quote correctly, so add quotes (double-quote
36815 # substitution turns \\\\ into \\, and sed turns \\ into \).
36816 sed -n \
ac1cb8d3
VS
36817 "s/'/'\\\\''/g;
36818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36819 ;;
36820 *)
36821 # `set' quotes correctly as required by POSIX, so do not add quotes.
36822 sed -n \
ac1cb8d3 36823 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36824 ;;
36825 esac;
36826} |
36827 sed '
36828 t clear
36829 : clear
36830 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36831 t end
36832 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36833 : end' >>confcache
36834if diff $cache_file confcache >/dev/null 2>&1; then :; else
36835 if test -w $cache_file; then
36836 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36837 cat confcache >$cache_file
36838 else
36839 echo "not updating unwritable cache $cache_file"
36840 fi
36841fi
36842rm -f confcache
36843
36844
a848cd7e
SC
36845if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36846
36847
36848 THREADS_LINK=
36849 THREADS_CFLAGS=
36850
36851 if test "$wxUSE_THREADS" = "yes" ; then
36852 if test "$USE_BEOS" = 1; then
36853 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36854echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36855 wxUSE_THREADS="no"
36856 fi
36857 fi
36858
36859 if test "$wxUSE_THREADS" = "yes" ; then
36860
36861
36862 THREAD_OPTS="-pthread"
36863 case "${host}" in
36864 *-*-solaris2* | *-*-sunos4* )
36865 if test "x$GCC" = "xyes"; then
36866 THREAD_OPTS="-pthreads $THREAD_OPTS"
36867 else
36868 THREAD_OPTS="-mt $THREAD_OPTS"
36869 fi
36870 ;;
36871 *-*-freebsd*)
36872 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36873 ;;
36874 *-*-darwin* | *-*-cygwin* )
36875 THREAD_OPTS=""
36876 ;;
36877 *-*-aix*)
36878 THREAD_OPTS="pthreads"
36879 ;;
36880 *-hp-hpux* )
00421666
MW
36881 if test "x$GCC" = "xyes"; then
36882 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36883 THREAD_OPTS=""
36884 else
0093c2fc 36885 THREAD_OPTS="-mt"
a848cd7e
SC
36886 fi
36887 ;;
36888
36889 *-*-irix* )
36890 if test "x$GCC" = "xyes"; then
36891 THREAD_OPTS=""
36892 fi
36893 ;;
36894
36895 *-*-*UnixWare*)
36896 if test "x$GCC" != "xyes"; then
36897 THREAD_OPTS="-Ethread"
36898 fi
36899 ;;
36900 esac
36901
36902 THREAD_OPTS="$THREAD_OPTS pthread none"
36903
36904 THREADS_OK=no
36905 for flag in $THREAD_OPTS; do
36906 case $flag in
36907 none)
36908 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36909echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36910 ;;
36911
36912 -*)
36913 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36914echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36915 THREADS_CFLAGS="$flag"
36916 ;;
36917
36918 *)
36919 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36920echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36921 THREADS_LINK="-l$flag"
36922 ;;
36923 esac
36924
36925 save_LIBS="$LIBS"
36926 save_CFLAGS="$CFLAGS"
36927 LIBS="$THREADS_LINK $LIBS"
36928 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36929
36930 cat >conftest.$ac_ext <<_ACEOF
36931/* confdefs.h. */
36932_ACEOF
36933cat confdefs.h >>conftest.$ac_ext
36934cat >>conftest.$ac_ext <<_ACEOF
36935/* end confdefs.h. */
36936#include <pthread.h>
36937int
36938main ()
36939{
36940pthread_create(0,0,0,0);
36941 ;
36942 return 0;
36943}
36944_ACEOF
36945rm -f conftest.$ac_objext conftest$ac_exeext
36946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36947 (eval $ac_link) 2>conftest.er1
a848cd7e 36948 ac_status=$?
ac1cb8d3
VS
36949 grep -v '^ *+' conftest.er1 >conftest.err
36950 rm -f conftest.er1
36951 cat conftest.err >&5
a848cd7e
SC
36952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953 (exit $ac_status); } &&
3565d135
RR
36954 { ac_try='test -z "$ac_c_werror_flag"
36955 || test ! -s conftest.err'
ac1cb8d3
VS
36956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36957 (eval $ac_try) 2>&5
36958 ac_status=$?
36959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960 (exit $ac_status); }; } &&
36961 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36963 (eval $ac_try) 2>&5
36964 ac_status=$?
36965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36966 (exit $ac_status); }; }; then
36967 THREADS_OK=yes
36968else
36969 echo "$as_me: failed program was:" >&5
36970sed 's/^/| /' conftest.$ac_ext >&5
36971
36972fi
ac1cb8d3
VS
36973rm -f conftest.err conftest.$ac_objext \
36974 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36975
36976 LIBS="$save_LIBS"
36977 CFLAGS="$save_CFLAGS"
36978
36979 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36980echo "${ECHO_T}$THREADS_OK" >&6
36981 if test "x$THREADS_OK" = "xyes"; then
36982 break;
36983 fi
36984
36985 THREADS_LINK=""
36986 THREADS_CFLAGS=""
36987 done
36988
36989 if test "x$THREADS_OK" != "xyes"; then
36990 wxUSE_THREADS=no
36991 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36992echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36993 else
36994 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36995 LIBS="$THREADS_LINK $LIBS"
36996
36997 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36998echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36999 flag=no
37000 case "${host}" in
37001 *-aix*)
37002 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37003 flag="-D_THREAD_SAFE"
37004 ;;
37005 *-freebsd*)
37006 flag="-D_THREAD_SAFE"
37007 ;;
37008 *-hp-hpux* )
37009 flag="-D_REENTRANT"
37010 if test "x$GCC" != "xyes"; then
37011 flag="$flag -D_RWSTD_MULTI_THREAD"
37012 fi
37013 ;;
37014 *solaris* | alpha*-osf*)
37015 flag="-D_REENTRANT"
37016 ;;
37017 esac
37018 echo "$as_me:$LINENO: result: ${flag}" >&5
37019echo "${ECHO_T}${flag}" >&6
37020 if test "x$flag" != xno; then
37021 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
37022 fi
37023
5ff751d6 37024 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
37025 fi
37026 fi
37027
37028 if test "$wxUSE_THREADS" = "yes" ; then
37029
37030for ac_func in thr_setconcurrency
37031do
37032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37033echo "$as_me:$LINENO: checking for $ac_func" >&5
37034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37035if eval "test \"\${$as_ac_var+set}\" = set"; then
37036 echo $ECHO_N "(cached) $ECHO_C" >&6
37037else
37038 cat >conftest.$ac_ext <<_ACEOF
37039/* confdefs.h. */
37040_ACEOF
37041cat confdefs.h >>conftest.$ac_ext
37042cat >>conftest.$ac_ext <<_ACEOF
37043/* end confdefs.h. */
ac1cb8d3
VS
37044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37046#define $ac_func innocuous_$ac_func
37047
a848cd7e
SC
37048/* System header to define __stub macros and hopefully few prototypes,
37049 which can conflict with char $ac_func (); below.
37050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37051 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37052
a848cd7e
SC
37053#ifdef __STDC__
37054# include <limits.h>
37055#else
37056# include <assert.h>
37057#endif
ac1cb8d3
VS
37058
37059#undef $ac_func
37060
a848cd7e
SC
37061/* Override any gcc2 internal prototype to avoid an error. */
37062#ifdef __cplusplus
37063extern "C"
37064{
37065#endif
37066/* We use char because int might match the return type of a gcc2
37067 builtin and then its argument prototype would still apply. */
37068char $ac_func ();
37069/* The GNU C library defines this for functions which it implements
37070 to always fail with ENOSYS. Some functions are actually named
37071 something starting with __ and the normal name is an alias. */
37072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37073choke me
37074#else
37075char (*f) () = $ac_func;
37076#endif
37077#ifdef __cplusplus
37078}
37079#endif
37080
37081int
37082main ()
37083{
37084return f != $ac_func;
37085 ;
37086 return 0;
37087}
37088_ACEOF
37089rm -f conftest.$ac_objext conftest$ac_exeext
37090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37091 (eval $ac_link) 2>conftest.er1
a848cd7e 37092 ac_status=$?
ac1cb8d3
VS
37093 grep -v '^ *+' conftest.er1 >conftest.err
37094 rm -f conftest.er1
37095 cat conftest.err >&5
a848cd7e
SC
37096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37097 (exit $ac_status); } &&
3565d135
RR
37098 { ac_try='test -z "$ac_c_werror_flag"
37099 || test ! -s conftest.err'
ac1cb8d3
VS
37100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37101 (eval $ac_try) 2>&5
37102 ac_status=$?
37103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104 (exit $ac_status); }; } &&
37105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37107 (eval $ac_try) 2>&5
37108 ac_status=$?
37109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37110 (exit $ac_status); }; }; then
37111 eval "$as_ac_var=yes"
37112else
37113 echo "$as_me: failed program was:" >&5
37114sed 's/^/| /' conftest.$ac_ext >&5
37115
37116eval "$as_ac_var=no"
37117fi
ac1cb8d3
VS
37118rm -f conftest.err conftest.$ac_objext \
37119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37120fi
37121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37123if test `eval echo '${'$as_ac_var'}'` = yes; then
37124 cat >>confdefs.h <<_ACEOF
37125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37126_ACEOF
37127
37128fi
37129done
37130
37131
6ebeb4c7
VZ
37132 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37133echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37134if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37135 echo $ECHO_N "(cached) $ECHO_C" >&6
37136else
37137
37138 cat >conftest.$ac_ext <<_ACEOF
37139/* confdefs.h. */
37140_ACEOF
37141cat confdefs.h >>conftest.$ac_ext
37142cat >>conftest.$ac_ext <<_ACEOF
37143/* end confdefs.h. */
37144#include <pthread.h>
37145 void ThreadCleanupFunc(void *p);
37146
37147int
37148main ()
37149{
37150
37151 void *p;
37152 pthread_cleanup_push(ThreadCleanupFunc, p);
37153 pthread_cleanup_pop(0);
37154
37155 ;
37156 return 0;
37157}
37158_ACEOF
37159rm -f conftest.$ac_objext
37160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37161 (eval $ac_compile) 2>conftest.er1
37162 ac_status=$?
37163 grep -v '^ *+' conftest.er1 >conftest.err
37164 rm -f conftest.er1
37165 cat conftest.err >&5
37166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 (exit $ac_status); } &&
3565d135
RR
37168 { ac_try='test -z "$ac_c_werror_flag"
37169 || test ! -s conftest.err'
6ebeb4c7
VZ
37170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37171 (eval $ac_try) 2>&5
37172 ac_status=$?
37173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37174 (exit $ac_status); }; } &&
37175 { ac_try='test -s conftest.$ac_objext'
37176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37177 (eval $ac_try) 2>&5
37178 ac_status=$?
37179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180 (exit $ac_status); }; }; then
37181
37182 wx_cv_func_pthread_cleanup=yes
37183
37184else
37185 echo "$as_me: failed program was:" >&5
37186sed 's/^/| /' conftest.$ac_ext >&5
37187
37188
37189 wx_cv_func_pthread_cleanup=no
37190
37191
37192fi
37193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37194
37195fi
37196echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37197echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37198 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37199 cat >>confdefs.h <<\_ACEOF
37200#define wxHAVE_PTHREAD_CLEANUP 1
37201_ACEOF
37202
37203 fi
37204
a848cd7e
SC
37205
37206for ac_header in sched.h
37207do
37208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37209if eval "test \"\${$as_ac_Header+set}\" = set"; then
37210 echo "$as_me:$LINENO: checking for $ac_header" >&5
37211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37212if eval "test \"\${$as_ac_Header+set}\" = set"; then
37213 echo $ECHO_N "(cached) $ECHO_C" >&6
37214fi
37215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37216echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37217else
37218 # Is the header compilable?
37219echo "$as_me:$LINENO: checking $ac_header usability" >&5
37220echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37221cat >conftest.$ac_ext <<_ACEOF
37222/* confdefs.h. */
37223_ACEOF
37224cat confdefs.h >>conftest.$ac_ext
37225cat >>conftest.$ac_ext <<_ACEOF
37226/* end confdefs.h. */
37227$ac_includes_default
37228#include <$ac_header>
37229_ACEOF
37230rm -f conftest.$ac_objext
37231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37232 (eval $ac_compile) 2>conftest.er1
a848cd7e 37233 ac_status=$?
ac1cb8d3
VS
37234 grep -v '^ *+' conftest.er1 >conftest.err
37235 rm -f conftest.er1
37236 cat conftest.err >&5
a848cd7e
SC
37237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37238 (exit $ac_status); } &&
3565d135
RR
37239 { ac_try='test -z "$ac_c_werror_flag"
37240 || test ! -s conftest.err'
ac1cb8d3
VS
37241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37242 (eval $ac_try) 2>&5
37243 ac_status=$?
37244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37245 (exit $ac_status); }; } &&
37246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37248 (eval $ac_try) 2>&5
37249 ac_status=$?
37250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251 (exit $ac_status); }; }; then
37252 ac_header_compiler=yes
37253else
37254 echo "$as_me: failed program was:" >&5
37255sed 's/^/| /' conftest.$ac_ext >&5
37256
37257ac_header_compiler=no
37258fi
ac1cb8d3 37259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37260echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37261echo "${ECHO_T}$ac_header_compiler" >&6
37262
37263# Is the header present?
37264echo "$as_me:$LINENO: checking $ac_header presence" >&5
37265echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37266cat >conftest.$ac_ext <<_ACEOF
37267/* confdefs.h. */
37268_ACEOF
37269cat confdefs.h >>conftest.$ac_ext
37270cat >>conftest.$ac_ext <<_ACEOF
37271/* end confdefs.h. */
37272#include <$ac_header>
37273_ACEOF
37274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37276 ac_status=$?
37277 grep -v '^ *+' conftest.er1 >conftest.err
37278 rm -f conftest.er1
37279 cat conftest.err >&5
37280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37281 (exit $ac_status); } >/dev/null; then
37282 if test -s conftest.err; then
37283 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37285 else
37286 ac_cpp_err=
37287 fi
37288else
37289 ac_cpp_err=yes
37290fi
37291if test -z "$ac_cpp_err"; then
37292 ac_header_preproc=yes
37293else
37294 echo "$as_me: failed program was:" >&5
37295sed 's/^/| /' conftest.$ac_ext >&5
37296
37297 ac_header_preproc=no
37298fi
37299rm -f conftest.err conftest.$ac_ext
37300echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37301echo "${ECHO_T}$ac_header_preproc" >&6
37302
37303# So? What about this header?
ac1cb8d3
VS
37304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37305 yes:no: )
a848cd7e
SC
37306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37310 ac_header_preproc=yes
a848cd7e 37311 ;;
ac1cb8d3 37312 no:yes:* )
a848cd7e
SC
37313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37325 (
37326 cat <<\_ASBOX
ac1cb8d3
VS
37327## ----------------------------------------- ##
37328## Report this to wx-dev@lists.wxwidgets.org ##
37329## ----------------------------------------- ##
a848cd7e
SC
37330_ASBOX
37331 ) |
37332 sed "s/^/$as_me: WARNING: /" >&2
37333 ;;
37334esac
37335echo "$as_me:$LINENO: checking for $ac_header" >&5
37336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37337if eval "test \"\${$as_ac_Header+set}\" = set"; then
37338 echo $ECHO_N "(cached) $ECHO_C" >&6
37339else
ac1cb8d3 37340 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37341fi
37342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37344
37345fi
37346if test `eval echo '${'$as_ac_Header'}'` = yes; then
37347 cat >>confdefs.h <<_ACEOF
37348#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37349_ACEOF
37350
37351fi
37352
37353done
37354
37355 if test "$ac_cv_header_sched_h" = "yes"; then
37356 echo "$as_me:$LINENO: checking for sched_yield" >&5
37357echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37358if test "${ac_cv_func_sched_yield+set}" = set; then
37359 echo $ECHO_N "(cached) $ECHO_C" >&6
37360else
37361 cat >conftest.$ac_ext <<_ACEOF
37362/* confdefs.h. */
37363_ACEOF
37364cat confdefs.h >>conftest.$ac_ext
37365cat >>conftest.$ac_ext <<_ACEOF
37366/* end confdefs.h. */
ac1cb8d3
VS
37367/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37369#define sched_yield innocuous_sched_yield
37370
a848cd7e
SC
37371/* System header to define __stub macros and hopefully few prototypes,
37372 which can conflict with char sched_yield (); below.
37373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37374 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37375
a848cd7e
SC
37376#ifdef __STDC__
37377# include <limits.h>
37378#else
37379# include <assert.h>
37380#endif
ac1cb8d3
VS
37381
37382#undef sched_yield
37383
a848cd7e
SC
37384/* Override any gcc2 internal prototype to avoid an error. */
37385#ifdef __cplusplus
37386extern "C"
37387{
37388#endif
37389/* We use char because int might match the return type of a gcc2
37390 builtin and then its argument prototype would still apply. */
37391char sched_yield ();
37392/* The GNU C library defines this for functions which it implements
37393 to always fail with ENOSYS. Some functions are actually named
37394 something starting with __ and the normal name is an alias. */
37395#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37396choke me
37397#else
37398char (*f) () = sched_yield;
37399#endif
37400#ifdef __cplusplus
37401}
37402#endif
37403
37404int
37405main ()
37406{
37407return f != sched_yield;
37408 ;
37409 return 0;
37410}
37411_ACEOF
37412rm -f conftest.$ac_objext conftest$ac_exeext
37413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37414 (eval $ac_link) 2>conftest.er1
a848cd7e 37415 ac_status=$?
ac1cb8d3
VS
37416 grep -v '^ *+' conftest.er1 >conftest.err
37417 rm -f conftest.er1
37418 cat conftest.err >&5
a848cd7e
SC
37419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420 (exit $ac_status); } &&
3565d135
RR
37421 { ac_try='test -z "$ac_c_werror_flag"
37422 || test ! -s conftest.err'
ac1cb8d3
VS
37423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37424 (eval $ac_try) 2>&5
37425 ac_status=$?
37426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37427 (exit $ac_status); }; } &&
37428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37430 (eval $ac_try) 2>&5
37431 ac_status=$?
37432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433 (exit $ac_status); }; }; then
37434 ac_cv_func_sched_yield=yes
37435else
37436 echo "$as_me: failed program was:" >&5
37437sed 's/^/| /' conftest.$ac_ext >&5
37438
37439ac_cv_func_sched_yield=no
37440fi
ac1cb8d3
VS
37441rm -f conftest.err conftest.$ac_objext \
37442 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37443fi
37444echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37445echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37446if test $ac_cv_func_sched_yield = yes; then
37447 cat >>confdefs.h <<\_ACEOF
37448#define HAVE_SCHED_YIELD 1
37449_ACEOF
37450
37451else
37452
37453 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37454echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37455if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37456 echo $ECHO_N "(cached) $ECHO_C" >&6
37457else
37458 ac_check_lib_save_LIBS=$LIBS
37459LIBS="-lposix4 $LIBS"
37460cat >conftest.$ac_ext <<_ACEOF
37461/* confdefs.h. */
37462_ACEOF
37463cat confdefs.h >>conftest.$ac_ext
37464cat >>conftest.$ac_ext <<_ACEOF
37465/* end confdefs.h. */
37466
37467/* Override any gcc2 internal prototype to avoid an error. */
37468#ifdef __cplusplus
37469extern "C"
37470#endif
37471/* We use char because int might match the return type of a gcc2
37472 builtin and then its argument prototype would still apply. */
37473char sched_yield ();
37474int
37475main ()
37476{
37477sched_yield ();
37478 ;
37479 return 0;
37480}
37481_ACEOF
37482rm -f conftest.$ac_objext conftest$ac_exeext
37483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37484 (eval $ac_link) 2>conftest.er1
a848cd7e 37485 ac_status=$?
ac1cb8d3
VS
37486 grep -v '^ *+' conftest.er1 >conftest.err
37487 rm -f conftest.er1
37488 cat conftest.err >&5
a848cd7e
SC
37489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37490 (exit $ac_status); } &&
3565d135
RR
37491 { ac_try='test -z "$ac_c_werror_flag"
37492 || test ! -s conftest.err'
ac1cb8d3
VS
37493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37494 (eval $ac_try) 2>&5
37495 ac_status=$?
37496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37497 (exit $ac_status); }; } &&
37498 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37500 (eval $ac_try) 2>&5
37501 ac_status=$?
37502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37503 (exit $ac_status); }; }; then
37504 ac_cv_lib_posix4_sched_yield=yes
37505else
37506 echo "$as_me: failed program was:" >&5
37507sed 's/^/| /' conftest.$ac_ext >&5
37508
37509ac_cv_lib_posix4_sched_yield=no
37510fi
ac1cb8d3
VS
37511rm -f conftest.err conftest.$ac_objext \
37512 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37513LIBS=$ac_check_lib_save_LIBS
37514fi
37515echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37516echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37517if test $ac_cv_lib_posix4_sched_yield = yes; then
37518 cat >>confdefs.h <<\_ACEOF
37519#define HAVE_SCHED_YIELD 1
37520_ACEOF
37521 POSIX4_LINK=" -lposix4"
37522else
37523 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37524echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37525
37526fi
37527
37528
37529
37530fi
37531
37532 fi
37533
37534 HAVE_PRIOR_FUNCS=0
37535 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37536echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37537if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37538 echo $ECHO_N "(cached) $ECHO_C" >&6
37539else
37540 cat >conftest.$ac_ext <<_ACEOF
37541/* confdefs.h. */
37542_ACEOF
37543cat confdefs.h >>conftest.$ac_ext
37544cat >>conftest.$ac_ext <<_ACEOF
37545/* end confdefs.h. */
ac1cb8d3
VS
37546/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37548#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37549
a848cd7e
SC
37550/* System header to define __stub macros and hopefully few prototypes,
37551 which can conflict with char pthread_attr_getschedpolicy (); below.
37552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37553 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37554
a848cd7e
SC
37555#ifdef __STDC__
37556# include <limits.h>
37557#else
37558# include <assert.h>
37559#endif
ac1cb8d3
VS
37560
37561#undef pthread_attr_getschedpolicy
37562
a848cd7e
SC
37563/* Override any gcc2 internal prototype to avoid an error. */
37564#ifdef __cplusplus
37565extern "C"
37566{
37567#endif
37568/* We use char because int might match the return type of a gcc2
37569 builtin and then its argument prototype would still apply. */
37570char pthread_attr_getschedpolicy ();
37571/* The GNU C library defines this for functions which it implements
37572 to always fail with ENOSYS. Some functions are actually named
37573 something starting with __ and the normal name is an alias. */
37574#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37575choke me
37576#else
37577char (*f) () = pthread_attr_getschedpolicy;
37578#endif
37579#ifdef __cplusplus
37580}
37581#endif
37582
37583int
37584main ()
37585{
37586return f != pthread_attr_getschedpolicy;
37587 ;
37588 return 0;
37589}
37590_ACEOF
37591rm -f conftest.$ac_objext conftest$ac_exeext
37592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37593 (eval $ac_link) 2>conftest.er1
a848cd7e 37594 ac_status=$?
ac1cb8d3
VS
37595 grep -v '^ *+' conftest.er1 >conftest.err
37596 rm -f conftest.er1
37597 cat conftest.err >&5
a848cd7e
SC
37598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599 (exit $ac_status); } &&
3565d135
RR
37600 { ac_try='test -z "$ac_c_werror_flag"
37601 || test ! -s conftest.err'
ac1cb8d3
VS
37602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37603 (eval $ac_try) 2>&5
37604 ac_status=$?
37605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37606 (exit $ac_status); }; } &&
37607 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37609 (eval $ac_try) 2>&5
37610 ac_status=$?
37611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37612 (exit $ac_status); }; }; then
37613 ac_cv_func_pthread_attr_getschedpolicy=yes
37614else
37615 echo "$as_me: failed program was:" >&5
37616sed 's/^/| /' conftest.$ac_ext >&5
37617
37618ac_cv_func_pthread_attr_getschedpolicy=no
37619fi
ac1cb8d3
VS
37620rm -f conftest.err conftest.$ac_objext \
37621 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37622fi
37623echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37624echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37625if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37626 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37627echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37628if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37629 echo $ECHO_N "(cached) $ECHO_C" >&6
37630else
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. */
ac1cb8d3
VS
37637/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37639#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37640
a848cd7e
SC
37641/* System header to define __stub macros and hopefully few prototypes,
37642 which can conflict with char pthread_attr_setschedparam (); below.
37643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37644 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37645
a848cd7e
SC
37646#ifdef __STDC__
37647# include <limits.h>
37648#else
37649# include <assert.h>
37650#endif
ac1cb8d3
VS
37651
37652#undef pthread_attr_setschedparam
37653
a848cd7e
SC
37654/* Override any gcc2 internal prototype to avoid an error. */
37655#ifdef __cplusplus
37656extern "C"
37657{
37658#endif
37659/* We use char because int might match the return type of a gcc2
37660 builtin and then its argument prototype would still apply. */
37661char pthread_attr_setschedparam ();
37662/* The GNU C library defines this for functions which it implements
37663 to always fail with ENOSYS. Some functions are actually named
37664 something starting with __ and the normal name is an alias. */
37665#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37666choke me
37667#else
37668char (*f) () = pthread_attr_setschedparam;
37669#endif
37670#ifdef __cplusplus
37671}
37672#endif
37673
37674int
37675main ()
37676{
37677return f != pthread_attr_setschedparam;
37678 ;
37679 return 0;
37680}
37681_ACEOF
37682rm -f conftest.$ac_objext conftest$ac_exeext
37683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37684 (eval $ac_link) 2>conftest.er1
a848cd7e 37685 ac_status=$?
ac1cb8d3
VS
37686 grep -v '^ *+' conftest.er1 >conftest.err
37687 rm -f conftest.er1
37688 cat conftest.err >&5
a848cd7e
SC
37689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37690 (exit $ac_status); } &&
3565d135
RR
37691 { ac_try='test -z "$ac_c_werror_flag"
37692 || test ! -s conftest.err'
ac1cb8d3
VS
37693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37694 (eval $ac_try) 2>&5
37695 ac_status=$?
37696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37697 (exit $ac_status); }; } &&
37698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37700 (eval $ac_try) 2>&5
37701 ac_status=$?
37702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37703 (exit $ac_status); }; }; then
37704 ac_cv_func_pthread_attr_setschedparam=yes
37705else
37706 echo "$as_me: failed program was:" >&5
37707sed 's/^/| /' conftest.$ac_ext >&5
37708
37709ac_cv_func_pthread_attr_setschedparam=no
37710fi
ac1cb8d3
VS
37711rm -f conftest.err conftest.$ac_objext \
37712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37713fi
37714echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37715echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37716if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37717 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37718echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37719if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37720 echo $ECHO_N "(cached) $ECHO_C" >&6
37721else
37722 cat >conftest.$ac_ext <<_ACEOF
37723/* confdefs.h. */
37724_ACEOF
37725cat confdefs.h >>conftest.$ac_ext
37726cat >>conftest.$ac_ext <<_ACEOF
37727/* end confdefs.h. */
ac1cb8d3
VS
37728/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37730#define sched_get_priority_max innocuous_sched_get_priority_max
37731
a848cd7e
SC
37732/* System header to define __stub macros and hopefully few prototypes,
37733 which can conflict with char sched_get_priority_max (); below.
37734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37735 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37736
a848cd7e
SC
37737#ifdef __STDC__
37738# include <limits.h>
37739#else
37740# include <assert.h>
37741#endif
ac1cb8d3
VS
37742
37743#undef sched_get_priority_max
37744
a848cd7e
SC
37745/* Override any gcc2 internal prototype to avoid an error. */
37746#ifdef __cplusplus
37747extern "C"
37748{
37749#endif
37750/* We use char because int might match the return type of a gcc2
37751 builtin and then its argument prototype would still apply. */
37752char sched_get_priority_max ();
37753/* The GNU C library defines this for functions which it implements
37754 to always fail with ENOSYS. Some functions are actually named
37755 something starting with __ and the normal name is an alias. */
37756#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37757choke me
37758#else
37759char (*f) () = sched_get_priority_max;
37760#endif
37761#ifdef __cplusplus
37762}
37763#endif
37764
37765int
37766main ()
37767{
37768return f != sched_get_priority_max;
37769 ;
37770 return 0;
37771}
37772_ACEOF
37773rm -f conftest.$ac_objext conftest$ac_exeext
37774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37775 (eval $ac_link) 2>conftest.er1
a848cd7e 37776 ac_status=$?
ac1cb8d3
VS
37777 grep -v '^ *+' conftest.er1 >conftest.err
37778 rm -f conftest.er1
37779 cat conftest.err >&5
a848cd7e
SC
37780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37781 (exit $ac_status); } &&
3565d135
RR
37782 { ac_try='test -z "$ac_c_werror_flag"
37783 || test ! -s conftest.err'
ac1cb8d3
VS
37784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37785 (eval $ac_try) 2>&5
37786 ac_status=$?
37787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788 (exit $ac_status); }; } &&
37789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37791 (eval $ac_try) 2>&5
37792 ac_status=$?
37793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37794 (exit $ac_status); }; }; then
37795 ac_cv_func_sched_get_priority_max=yes
37796else
37797 echo "$as_me: failed program was:" >&5
37798sed 's/^/| /' conftest.$ac_ext >&5
37799
37800ac_cv_func_sched_get_priority_max=no
37801fi
ac1cb8d3
VS
37802rm -f conftest.err conftest.$ac_objext \
37803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37804fi
37805echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37806echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37807if test $ac_cv_func_sched_get_priority_max = yes; then
37808 HAVE_PRIOR_FUNCS=1
37809else
37810 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37811echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37812if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37813 echo $ECHO_N "(cached) $ECHO_C" >&6
37814else
37815 ac_check_lib_save_LIBS=$LIBS
37816LIBS="-lposix4 $LIBS"
37817cat >conftest.$ac_ext <<_ACEOF
37818/* confdefs.h. */
37819_ACEOF
37820cat confdefs.h >>conftest.$ac_ext
37821cat >>conftest.$ac_ext <<_ACEOF
37822/* end confdefs.h. */
37823
37824/* Override any gcc2 internal prototype to avoid an error. */
37825#ifdef __cplusplus
37826extern "C"
37827#endif
37828/* We use char because int might match the return type of a gcc2
37829 builtin and then its argument prototype would still apply. */
37830char sched_get_priority_max ();
37831int
37832main ()
37833{
37834sched_get_priority_max ();
37835 ;
37836 return 0;
37837}
37838_ACEOF
37839rm -f conftest.$ac_objext conftest$ac_exeext
37840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37841 (eval $ac_link) 2>conftest.er1
a848cd7e 37842 ac_status=$?
ac1cb8d3
VS
37843 grep -v '^ *+' conftest.er1 >conftest.err
37844 rm -f conftest.er1
37845 cat conftest.err >&5
a848cd7e
SC
37846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847 (exit $ac_status); } &&
3565d135
RR
37848 { ac_try='test -z "$ac_c_werror_flag"
37849 || test ! -s conftest.err'
ac1cb8d3
VS
37850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37851 (eval $ac_try) 2>&5
37852 ac_status=$?
37853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37854 (exit $ac_status); }; } &&
37855 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37857 (eval $ac_try) 2>&5
37858 ac_status=$?
37859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860 (exit $ac_status); }; }; then
37861 ac_cv_lib_posix4_sched_get_priority_max=yes
37862else
37863 echo "$as_me: failed program was:" >&5
37864sed 's/^/| /' conftest.$ac_ext >&5
37865
37866ac_cv_lib_posix4_sched_get_priority_max=no
37867fi
ac1cb8d3
VS
37868rm -f conftest.err conftest.$ac_objext \
37869 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37870LIBS=$ac_check_lib_save_LIBS
37871fi
37872echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37873echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37874if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37875
37876 HAVE_PRIOR_FUNCS=1
37877 POSIX4_LINK=" -lposix4"
37878
37879fi
37880
37881
37882fi
37883
37884
37885fi
37886
37887
37888fi
37889
37890
37891 if test "$HAVE_PRIOR_FUNCS" = 1; then
37892 cat >>confdefs.h <<\_ACEOF
37893#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37894_ACEOF
37895
37896 else
37897 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37898echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37899 fi
37900
37901 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37902echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37903if test "${ac_cv_func_pthread_cancel+set}" = set; then
37904 echo $ECHO_N "(cached) $ECHO_C" >&6
37905else
37906 cat >conftest.$ac_ext <<_ACEOF
37907/* confdefs.h. */
37908_ACEOF
37909cat confdefs.h >>conftest.$ac_ext
37910cat >>conftest.$ac_ext <<_ACEOF
37911/* end confdefs.h. */
ac1cb8d3
VS
37912/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37914#define pthread_cancel innocuous_pthread_cancel
37915
a848cd7e
SC
37916/* System header to define __stub macros and hopefully few prototypes,
37917 which can conflict with char pthread_cancel (); below.
37918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37919 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37920
a848cd7e
SC
37921#ifdef __STDC__
37922# include <limits.h>
37923#else
37924# include <assert.h>
37925#endif
ac1cb8d3
VS
37926
37927#undef pthread_cancel
37928
a848cd7e
SC
37929/* Override any gcc2 internal prototype to avoid an error. */
37930#ifdef __cplusplus
37931extern "C"
37932{
37933#endif
37934/* We use char because int might match the return type of a gcc2
37935 builtin and then its argument prototype would still apply. */
37936char pthread_cancel ();
37937/* The GNU C library defines this for functions which it implements
37938 to always fail with ENOSYS. Some functions are actually named
37939 something starting with __ and the normal name is an alias. */
37940#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37941choke me
37942#else
37943char (*f) () = pthread_cancel;
37944#endif
37945#ifdef __cplusplus
37946}
37947#endif
37948
37949int
37950main ()
37951{
37952return f != pthread_cancel;
37953 ;
37954 return 0;
37955}
37956_ACEOF
37957rm -f conftest.$ac_objext conftest$ac_exeext
37958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37959 (eval $ac_link) 2>conftest.er1
a848cd7e 37960 ac_status=$?
ac1cb8d3
VS
37961 grep -v '^ *+' conftest.er1 >conftest.err
37962 rm -f conftest.er1
37963 cat conftest.err >&5
a848cd7e
SC
37964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37965 (exit $ac_status); } &&
3565d135
RR
37966 { ac_try='test -z "$ac_c_werror_flag"
37967 || test ! -s conftest.err'
ac1cb8d3
VS
37968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37969 (eval $ac_try) 2>&5
37970 ac_status=$?
37971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37972 (exit $ac_status); }; } &&
37973 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37975 (eval $ac_try) 2>&5
37976 ac_status=$?
37977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37978 (exit $ac_status); }; }; then
37979 ac_cv_func_pthread_cancel=yes
37980else
37981 echo "$as_me: failed program was:" >&5
37982sed 's/^/| /' conftest.$ac_ext >&5
37983
37984ac_cv_func_pthread_cancel=no
37985fi
ac1cb8d3
VS
37986rm -f conftest.err conftest.$ac_objext \
37987 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37988fi
37989echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37990echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37991if test $ac_cv_func_pthread_cancel = yes; then
37992 cat >>confdefs.h <<\_ACEOF
37993#define HAVE_PTHREAD_CANCEL 1
37994_ACEOF
37995
37996else
37997 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37998echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37999fi
38000
38001
abc736fd
MW
38002 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38003echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38004if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38005 echo $ECHO_N "(cached) $ECHO_C" >&6
38006else
38007 cat >conftest.$ac_ext <<_ACEOF
38008/* confdefs.h. */
38009_ACEOF
38010cat confdefs.h >>conftest.$ac_ext
38011cat >>conftest.$ac_ext <<_ACEOF
38012/* end confdefs.h. */
38013/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38015#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38016
38017/* System header to define __stub macros and hopefully few prototypes,
38018 which can conflict with char pthread_attr_setstacksize (); below.
38019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38020 <limits.h> exists even on freestanding compilers. */
38021
38022#ifdef __STDC__
38023# include <limits.h>
38024#else
38025# include <assert.h>
38026#endif
38027
38028#undef pthread_attr_setstacksize
38029
38030/* Override any gcc2 internal prototype to avoid an error. */
38031#ifdef __cplusplus
38032extern "C"
38033{
38034#endif
38035/* We use char because int might match the return type of a gcc2
38036 builtin and then its argument prototype would still apply. */
38037char pthread_attr_setstacksize ();
38038/* The GNU C library defines this for functions which it implements
38039 to always fail with ENOSYS. Some functions are actually named
38040 something starting with __ and the normal name is an alias. */
38041#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38042choke me
38043#else
38044char (*f) () = pthread_attr_setstacksize;
38045#endif
38046#ifdef __cplusplus
38047}
38048#endif
38049
38050int
38051main ()
38052{
38053return f != pthread_attr_setstacksize;
38054 ;
38055 return 0;
38056}
38057_ACEOF
38058rm -f conftest.$ac_objext conftest$ac_exeext
38059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38060 (eval $ac_link) 2>conftest.er1
38061 ac_status=$?
38062 grep -v '^ *+' conftest.er1 >conftest.err
38063 rm -f conftest.er1
38064 cat conftest.err >&5
38065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38066 (exit $ac_status); } &&
3565d135
RR
38067 { ac_try='test -z "$ac_c_werror_flag"
38068 || test ! -s conftest.err'
abc736fd
MW
38069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38070 (eval $ac_try) 2>&5
38071 ac_status=$?
38072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073 (exit $ac_status); }; } &&
38074 { ac_try='test -s conftest$ac_exeext'
38075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38076 (eval $ac_try) 2>&5
38077 ac_status=$?
38078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079 (exit $ac_status); }; }; then
38080 ac_cv_func_pthread_attr_setstacksize=yes
38081else
38082 echo "$as_me: failed program was:" >&5
38083sed 's/^/| /' conftest.$ac_ext >&5
38084
38085ac_cv_func_pthread_attr_setstacksize=no
38086fi
38087rm -f conftest.err conftest.$ac_objext \
38088 conftest$ac_exeext conftest.$ac_ext
38089fi
38090echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38091echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38092if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38093 cat >>confdefs.h <<\_ACEOF
38094#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38095_ACEOF
38096
38097fi
38098
a848cd7e
SC
38099
38100
38101 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38102echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38103if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38104 echo $ECHO_N "(cached) $ECHO_C" >&6
38105else
38106
38107 cat >conftest.$ac_ext <<_ACEOF
38108/* confdefs.h. */
38109_ACEOF
38110cat confdefs.h >>conftest.$ac_ext
38111cat >>conftest.$ac_ext <<_ACEOF
38112/* end confdefs.h. */
38113#include <pthread.h>
38114int
38115main ()
38116{
38117
38118 pthread_mutexattr_t attr;
38119 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38120
38121 ;
38122 return 0;
38123}
38124_ACEOF
38125rm -f conftest.$ac_objext
38126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38127 (eval $ac_compile) 2>conftest.er1
a848cd7e 38128 ac_status=$?
ac1cb8d3
VS
38129 grep -v '^ *+' conftest.er1 >conftest.err
38130 rm -f conftest.er1
38131 cat conftest.err >&5
a848cd7e
SC
38132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38133 (exit $ac_status); } &&
3565d135
RR
38134 { ac_try='test -z "$ac_c_werror_flag"
38135 || test ! -s conftest.err'
ac1cb8d3
VS
38136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38137 (eval $ac_try) 2>&5
38138 ac_status=$?
38139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38140 (exit $ac_status); }; } &&
38141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38143 (eval $ac_try) 2>&5
38144 ac_status=$?
38145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38146 (exit $ac_status); }; }; then
123dca7d 38147 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38148else
38149 echo "$as_me: failed program was:" >&5
38150sed 's/^/| /' conftest.$ac_ext >&5
38151
123dca7d 38152wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38153
38154fi
ac1cb8d3 38155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38156
38157fi
38158echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38159echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38160
38161 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38162 cat >>confdefs.h <<\_ACEOF
38163#define HAVE_PTHREAD_MUTEXATTR_T 1
38164_ACEOF
38165
123dca7d
VZ
38166
38167 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38168echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38169if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38170 echo $ECHO_N "(cached) $ECHO_C" >&6
38171else
38172
38173 cat >conftest.$ac_ext <<_ACEOF
38174/* confdefs.h. */
38175_ACEOF
38176cat confdefs.h >>conftest.$ac_ext
38177cat >>conftest.$ac_ext <<_ACEOF
38178/* end confdefs.h. */
38179#include <pthread.h>
38180int
38181main ()
38182{
38183
38184 pthread_mutexattr_t attr;
38185 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38186
38187 ;
38188 return 0;
38189}
38190_ACEOF
38191rm -f conftest.$ac_objext
38192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38193 (eval $ac_compile) 2>conftest.er1
38194 ac_status=$?
38195 grep -v '^ *+' conftest.er1 >conftest.err
38196 rm -f conftest.er1
38197 cat conftest.err >&5
38198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199 (exit $ac_status); } &&
3565d135
RR
38200 { ac_try='test -z "$ac_c_werror_flag"
38201 || test ! -s conftest.err'
123dca7d
VZ
38202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38203 (eval $ac_try) 2>&5
38204 ac_status=$?
38205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206 (exit $ac_status); }; } &&
38207 { ac_try='test -s conftest.$ac_objext'
38208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38209 (eval $ac_try) 2>&5
38210 ac_status=$?
38211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38212 (exit $ac_status); }; }; then
38213 wx_cv_func_pthread_mutexattr_settype_decl=yes
38214else
38215 echo "$as_me: failed program was:" >&5
38216sed 's/^/| /' conftest.$ac_ext >&5
38217
38218wx_cv_func_pthread_mutexattr_settype_decl=no
38219
38220fi
38221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38222
38223fi
38224echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38225echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38226 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38227 cat >>confdefs.h <<\_ACEOF
38228#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38229_ACEOF
38230
38231 fi
a848cd7e
SC
38232 else
38233 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38234echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38235if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38236 echo $ECHO_N "(cached) $ECHO_C" >&6
38237else
38238
38239 cat >conftest.$ac_ext <<_ACEOF
38240/* confdefs.h. */
38241_ACEOF
38242cat confdefs.h >>conftest.$ac_ext
38243cat >>conftest.$ac_ext <<_ACEOF
38244/* end confdefs.h. */
38245#include <pthread.h>
38246int
38247main ()
38248{
38249
38250 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38251
38252 ;
38253 return 0;
38254}
38255_ACEOF
38256rm -f conftest.$ac_objext
38257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38258 (eval $ac_compile) 2>conftest.er1
a848cd7e 38259 ac_status=$?
ac1cb8d3
VS
38260 grep -v '^ *+' conftest.er1 >conftest.err
38261 rm -f conftest.er1
38262 cat conftest.err >&5
a848cd7e
SC
38263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38264 (exit $ac_status); } &&
3565d135
RR
38265 { ac_try='test -z "$ac_c_werror_flag"
38266 || test ! -s conftest.err'
ac1cb8d3
VS
38267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38268 (eval $ac_try) 2>&5
38269 ac_status=$?
38270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38271 (exit $ac_status); }; } &&
38272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38274 (eval $ac_try) 2>&5
38275 ac_status=$?
38276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38277 (exit $ac_status); }; }; then
38278
38279 wx_cv_type_pthread_rec_mutex_init=yes
38280
38281else
38282 echo "$as_me: failed program was:" >&5
38283sed 's/^/| /' conftest.$ac_ext >&5
38284
38285
38286 wx_cv_type_pthread_rec_mutex_init=no
38287
38288
38289fi
ac1cb8d3 38290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38291
38292fi
38293echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38294echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38295 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38296 cat >>confdefs.h <<\_ACEOF
38297#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38298_ACEOF
38299
38300 else
38301 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38302echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38303 fi
38304 fi
38305 fi
38306
38307else
38308 if test "$wxUSE_THREADS" = "yes" ; then
38309 case "${host}" in
38310 *-*-mingw32* )
38311 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38312echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38313if test "${wx_cv_cflags_mthread+set}" = set; then
38314 echo $ECHO_N "(cached) $ECHO_C" >&6
38315else
38316
38317 CFLAGS_OLD="$CFLAGS"
c92ad099 38318 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
38319 cat >conftest.$ac_ext <<_ACEOF
38320/* confdefs.h. */
38321_ACEOF
38322cat confdefs.h >>conftest.$ac_ext
38323cat >>conftest.$ac_ext <<_ACEOF
38324/* end confdefs.h. */
38325
38326int
38327main ()
38328{
38329
38330 ;
38331 return 0;
38332}
38333_ACEOF
38334rm -f conftest.$ac_objext
38335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38336 (eval $ac_compile) 2>conftest.er1
a848cd7e 38337 ac_status=$?
ac1cb8d3
VS
38338 grep -v '^ *+' conftest.er1 >conftest.err
38339 rm -f conftest.er1
38340 cat conftest.err >&5
a848cd7e
SC
38341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38342 (exit $ac_status); } &&
3565d135
RR
38343 { ac_try='test -z "$ac_c_werror_flag"
38344 || test ! -s conftest.err'
ac1cb8d3
VS
38345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38346 (eval $ac_try) 2>&5
38347 ac_status=$?
38348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38349 (exit $ac_status); }; } &&
38350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38352 (eval $ac_try) 2>&5
38353 ac_status=$?
38354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38355 (exit $ac_status); }; }; then
38356 wx_cv_cflags_mthread=yes
38357else
38358 echo "$as_me: failed program was:" >&5
38359sed 's/^/| /' conftest.$ac_ext >&5
38360
38361wx_cv_cflags_mthread=no
38362
38363fi
ac1cb8d3 38364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38365
38366
38367fi
38368echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38369echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38370
38371 if test "$wx_cv_cflags_mthread" = "yes"; then
5ff751d6 38372 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
38373 LDFLAGS="$LDFLAGS -mthreads"
38374 else
38375 CFLAGS="$CFLAGS_OLD"
38376 fi
38377 ;;
38378 *-pc-os2*emx )
5ff751d6
VZ
38379 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38380 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38381 LDFLAGS="$LDFLAGS -Zmt"
38382 ;;
38383 esac
38384 fi
38385fi
38386
004ee6da
RL
38387echo "$as_me:$LINENO: checking for localtime_r" >&5
38388echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38389if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38390 echo $ECHO_N "(cached) $ECHO_C" >&6
38391else
38392 cat >conftest.$ac_ext <<_ACEOF
38393/* confdefs.h. */
38394_ACEOF
38395cat confdefs.h >>conftest.$ac_ext
38396cat >>conftest.$ac_ext <<_ACEOF
38397/* end confdefs.h. */
004ee6da 38398/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38400#define localtime_r innocuous_localtime_r
ac1cb8d3 38401
a848cd7e 38402/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38403 which can conflict with char localtime_r (); below.
a848cd7e
SC
38404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38405 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38406
a848cd7e
SC
38407#ifdef __STDC__
38408# include <limits.h>
38409#else
38410# include <assert.h>
38411#endif
ac1cb8d3 38412
004ee6da 38413#undef localtime_r
ac1cb8d3 38414
a848cd7e
SC
38415/* Override any gcc2 internal prototype to avoid an error. */
38416#ifdef __cplusplus
38417extern "C"
38418{
38419#endif
38420/* We use char because int might match the return type of a gcc2
38421 builtin and then its argument prototype would still apply. */
004ee6da 38422char localtime_r ();
a848cd7e
SC
38423/* The GNU C library defines this for functions which it implements
38424 to always fail with ENOSYS. Some functions are actually named
38425 something starting with __ and the normal name is an alias. */
004ee6da 38426#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38427choke me
38428#else
004ee6da 38429char (*f) () = localtime_r;
a848cd7e
SC
38430#endif
38431#ifdef __cplusplus
38432}
38433#endif
38434
38435int
38436main ()
38437{
004ee6da
RL
38438return f != localtime_r;
38439 ;
38440 return 0;
38441}
38442_ACEOF
38443rm -f conftest.$ac_objext conftest$ac_exeext
38444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38445 (eval $ac_link) 2>conftest.er1
38446 ac_status=$?
38447 grep -v '^ *+' conftest.er1 >conftest.err
38448 rm -f conftest.er1
38449 cat conftest.err >&5
38450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38451 (exit $ac_status); } &&
3565d135
RR
38452 { ac_try='test -z "$ac_c_werror_flag"
38453 || test ! -s conftest.err'
004ee6da
RL
38454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38455 (eval $ac_try) 2>&5
38456 ac_status=$?
38457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458 (exit $ac_status); }; } &&
38459 { ac_try='test -s conftest$ac_exeext'
38460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38461 (eval $ac_try) 2>&5
38462 ac_status=$?
38463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38464 (exit $ac_status); }; }; then
38465 ac_cv_func_localtime_r=yes
38466else
38467 echo "$as_me: failed program was:" >&5
38468sed 's/^/| /' conftest.$ac_ext >&5
38469
38470ac_cv_func_localtime_r=no
38471fi
38472rm -f conftest.err conftest.$ac_objext \
38473 conftest$ac_exeext conftest.$ac_ext
38474fi
38475echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38476echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38477if test $ac_cv_func_localtime_r = yes; then
38478 cat >>confdefs.h <<\_ACEOF
38479#define HAVE_LOCALTIME_R 1
38480_ACEOF
38481
38482fi
38483
38484echo "$as_me:$LINENO: checking for gmtime_r" >&5
38485echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38486if test "${ac_cv_func_gmtime_r+set}" = set; then
38487 echo $ECHO_N "(cached) $ECHO_C" >&6
38488else
38489 cat >conftest.$ac_ext <<_ACEOF
38490/* confdefs.h. */
38491_ACEOF
38492cat confdefs.h >>conftest.$ac_ext
38493cat >>conftest.$ac_ext <<_ACEOF
38494/* end confdefs.h. */
38495/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38497#define gmtime_r innocuous_gmtime_r
38498
38499/* System header to define __stub macros and hopefully few prototypes,
38500 which can conflict with char gmtime_r (); below.
38501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38502 <limits.h> exists even on freestanding compilers. */
38503
38504#ifdef __STDC__
38505# include <limits.h>
38506#else
38507# include <assert.h>
38508#endif
38509
38510#undef gmtime_r
38511
38512/* Override any gcc2 internal prototype to avoid an error. */
38513#ifdef __cplusplus
38514extern "C"
38515{
38516#endif
38517/* We use char because int might match the return type of a gcc2
38518 builtin and then its argument prototype would still apply. */
38519char gmtime_r ();
38520/* The GNU C library defines this for functions which it implements
38521 to always fail with ENOSYS. Some functions are actually named
38522 something starting with __ and the normal name is an alias. */
38523#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38524choke me
38525#else
38526char (*f) () = gmtime_r;
38527#endif
38528#ifdef __cplusplus
38529}
38530#endif
38531
38532int
38533main ()
38534{
38535return f != gmtime_r;
38536 ;
38537 return 0;
38538}
38539_ACEOF
38540rm -f conftest.$ac_objext conftest$ac_exeext
38541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38542 (eval $ac_link) 2>conftest.er1
38543 ac_status=$?
38544 grep -v '^ *+' conftest.er1 >conftest.err
38545 rm -f conftest.er1
38546 cat conftest.err >&5
38547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38548 (exit $ac_status); } &&
3565d135
RR
38549 { ac_try='test -z "$ac_c_werror_flag"
38550 || test ! -s conftest.err'
004ee6da
RL
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); }; } &&
38556 { ac_try='test -s conftest$ac_exeext'
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
38562 ac_cv_func_gmtime_r=yes
38563else
38564 echo "$as_me: failed program was:" >&5
38565sed 's/^/| /' conftest.$ac_ext >&5
38566
38567ac_cv_func_gmtime_r=no
38568fi
38569rm -f conftest.err conftest.$ac_objext \
38570 conftest$ac_exeext conftest.$ac_ext
38571fi
38572echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38573echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38574if test $ac_cv_func_gmtime_r = yes; then
38575 cat >>confdefs.h <<\_ACEOF
38576#define HAVE_GMTIME_R 1
38577_ACEOF
38578
38579fi
38580
38581echo "$as_me:$LINENO: checking for readdir_r" >&5
38582echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38583if test "${ac_cv_func_readdir_r+set}" = set; then
38584 echo $ECHO_N "(cached) $ECHO_C" >&6
38585else
38586 cat >conftest.$ac_ext <<_ACEOF
38587/* confdefs.h. */
38588_ACEOF
38589cat confdefs.h >>conftest.$ac_ext
38590cat >>conftest.$ac_ext <<_ACEOF
38591/* end confdefs.h. */
38592/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38594#define readdir_r innocuous_readdir_r
38595
38596/* System header to define __stub macros and hopefully few prototypes,
38597 which can conflict with char readdir_r (); below.
38598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38599 <limits.h> exists even on freestanding compilers. */
38600
38601#ifdef __STDC__
38602# include <limits.h>
38603#else
38604# include <assert.h>
38605#endif
38606
38607#undef readdir_r
38608
38609/* Override any gcc2 internal prototype to avoid an error. */
38610#ifdef __cplusplus
38611extern "C"
38612{
38613#endif
38614/* We use char because int might match the return type of a gcc2
38615 builtin and then its argument prototype would still apply. */
38616char readdir_r ();
38617/* The GNU C library defines this for functions which it implements
38618 to always fail with ENOSYS. Some functions are actually named
38619 something starting with __ and the normal name is an alias. */
38620#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38621choke me
38622#else
38623char (*f) () = readdir_r;
38624#endif
38625#ifdef __cplusplus
38626}
38627#endif
38628
38629int
38630main ()
38631{
38632return f != readdir_r;
38633 ;
38634 return 0;
38635}
38636_ACEOF
38637rm -f conftest.$ac_objext conftest$ac_exeext
38638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38639 (eval $ac_link) 2>conftest.er1
38640 ac_status=$?
38641 grep -v '^ *+' conftest.er1 >conftest.err
38642 rm -f conftest.er1
38643 cat conftest.err >&5
38644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38645 (exit $ac_status); } &&
3565d135
RR
38646 { ac_try='test -z "$ac_c_werror_flag"
38647 || test ! -s conftest.err'
004ee6da
RL
38648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38649 (eval $ac_try) 2>&5
38650 ac_status=$?
38651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38652 (exit $ac_status); }; } &&
38653 { ac_try='test -s conftest$ac_exeext'
38654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38655 (eval $ac_try) 2>&5
38656 ac_status=$?
38657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38658 (exit $ac_status); }; }; then
38659 ac_cv_func_readdir_r=yes
38660else
38661 echo "$as_me: failed program was:" >&5
38662sed 's/^/| /' conftest.$ac_ext >&5
38663
38664ac_cv_func_readdir_r=no
38665fi
38666rm -f conftest.err conftest.$ac_objext \
38667 conftest$ac_exeext conftest.$ac_ext
38668fi
38669echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38670echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38671if test $ac_cv_func_readdir_r = yes; then
38672 cat >>confdefs.h <<\_ACEOF
38673#define HAVE_READDIR_R 1
38674_ACEOF
38675
38676fi
38677
004ee6da 38678
004ee6da
RL
38679
38680
38681 ac_ext=c
38682ac_cpp='$CPP $CPPFLAGS'
38683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38685ac_compiler_gnu=$ac_cv_c_compiler_gnu
38686
38687 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38688echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38689
38690 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38691 echo $ECHO_N "(cached) $ECHO_C" >&6
38692else
38693
38694
38695################################################################
38696
38697ac_cv_func_which_gethostbyname_r=unknown
38698
38699#
38700# ONE ARGUMENT (sanity check)
38701#
38702
38703# This should fail, as there is no variant of gethostbyname_r() that takes
38704# a single argument. If it actually compiles, then we can assume that
38705# netdb.h is not declaring the function, and the compiler is thereby
38706# assuming an implicit prototype. In which case, we're out of luck.
38707#
38708cat >conftest.$ac_ext <<_ACEOF
38709/* confdefs.h. */
38710_ACEOF
38711cat confdefs.h >>conftest.$ac_ext
38712cat >>conftest.$ac_ext <<_ACEOF
38713/* end confdefs.h. */
38714#include <netdb.h>
38715int
38716main ()
38717{
38718
38719 char *name = "www.gnu.org";
38720 (void)gethostbyname_r(name) /* ; */
38721
38722 ;
38723 return 0;
38724}
38725_ACEOF
38726rm -f conftest.$ac_objext
38727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38728 (eval $ac_compile) 2>conftest.er1
38729 ac_status=$?
38730 grep -v '^ *+' conftest.er1 >conftest.err
38731 rm -f conftest.er1
38732 cat conftest.err >&5
38733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734 (exit $ac_status); } &&
3565d135
RR
38735 { ac_try='test -z "$ac_c_werror_flag"
38736 || test ! -s conftest.err'
004ee6da
RL
38737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38738 (eval $ac_try) 2>&5
38739 ac_status=$?
38740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38741 (exit $ac_status); }; } &&
38742 { ac_try='test -s conftest.$ac_objext'
38743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38744 (eval $ac_try) 2>&5
38745 ac_status=$?
38746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38747 (exit $ac_status); }; }; then
38748 ac_cv_func_which_gethostbyname_r=no
38749else
38750 echo "$as_me: failed program was:" >&5
38751sed 's/^/| /' conftest.$ac_ext >&5
38752
38753fi
38754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38755
38756#
38757# SIX ARGUMENTS
38758# (e.g. Linux)
38759#
38760
38761if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38762
38763cat >conftest.$ac_ext <<_ACEOF
38764/* confdefs.h. */
38765_ACEOF
38766cat confdefs.h >>conftest.$ac_ext
38767cat >>conftest.$ac_ext <<_ACEOF
38768/* end confdefs.h. */
38769#include <netdb.h>
38770int
38771main ()
38772{
38773
38774 char *name = "www.gnu.org";
38775 struct hostent ret, *retp;
38776 char buf[1024];
38777 int buflen = 1024;
38778 int my_h_errno;
38779 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
38780
38781 ;
38782 return 0;
38783}
38784_ACEOF
38785rm -f conftest.$ac_objext
38786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38787 (eval $ac_compile) 2>conftest.er1
38788 ac_status=$?
38789 grep -v '^ *+' conftest.er1 >conftest.err
38790 rm -f conftest.er1
38791 cat conftest.err >&5
38792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38793 (exit $ac_status); } &&
3565d135
RR
38794 { ac_try='test -z "$ac_c_werror_flag"
38795 || test ! -s conftest.err'
004ee6da
RL
38796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38797 (eval $ac_try) 2>&5
38798 ac_status=$?
38799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38800 (exit $ac_status); }; } &&
38801 { ac_try='test -s conftest.$ac_objext'
38802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38803 (eval $ac_try) 2>&5
38804 ac_status=$?
38805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38806 (exit $ac_status); }; }; then
38807 ac_cv_func_which_gethostbyname_r=six
38808else
38809 echo "$as_me: failed program was:" >&5
38810sed 's/^/| /' conftest.$ac_ext >&5
38811
38812fi
38813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38814
38815fi
38816
38817#
38818# FIVE ARGUMENTS
38819# (e.g. Solaris)
38820#
38821
38822if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38823
38824cat >conftest.$ac_ext <<_ACEOF
38825/* confdefs.h. */
38826_ACEOF
38827cat confdefs.h >>conftest.$ac_ext
38828cat >>conftest.$ac_ext <<_ACEOF
38829/* end confdefs.h. */
38830#include <netdb.h>
38831int
38832main ()
38833{
38834
38835 char *name = "www.gnu.org";
38836 struct hostent ret;
38837 char buf[1024];
38838 int buflen = 1024;
38839 int my_h_errno;
38840 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
38841
38842 ;
38843 return 0;
38844}
38845_ACEOF
38846rm -f conftest.$ac_objext
38847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38848 (eval $ac_compile) 2>conftest.er1
38849 ac_status=$?
38850 grep -v '^ *+' conftest.er1 >conftest.err
38851 rm -f conftest.er1
38852 cat conftest.err >&5
38853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38854 (exit $ac_status); } &&
3565d135
RR
38855 { ac_try='test -z "$ac_c_werror_flag"
38856 || test ! -s conftest.err'
004ee6da
RL
38857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38858 (eval $ac_try) 2>&5
38859 ac_status=$?
38860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38861 (exit $ac_status); }; } &&
38862 { ac_try='test -s conftest.$ac_objext'
38863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38864 (eval $ac_try) 2>&5
38865 ac_status=$?
38866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38867 (exit $ac_status); }; }; then
38868 ac_cv_func_which_gethostbyname_r=five
38869else
38870 echo "$as_me: failed program was:" >&5
38871sed 's/^/| /' conftest.$ac_ext >&5
38872
38873fi
38874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38875
38876fi
38877
38878#
38879# THREE ARGUMENTS
38880# (e.g. AIX, HP-UX, Tru64)
38881#
38882
38883if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38884
38885cat >conftest.$ac_ext <<_ACEOF
38886/* confdefs.h. */
38887_ACEOF
38888cat confdefs.h >>conftest.$ac_ext
38889cat >>conftest.$ac_ext <<_ACEOF
38890/* end confdefs.h. */
38891#include <netdb.h>
38892int
38893main ()
38894{
38895
38896 char *name = "www.gnu.org";
38897 struct hostent ret;
38898 struct hostent_data data;
38899 (void)gethostbyname_r(name, &ret, &data) /* ; */
38900
38901 ;
38902 return 0;
38903}
38904_ACEOF
38905rm -f conftest.$ac_objext
38906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38907 (eval $ac_compile) 2>conftest.er1
38908 ac_status=$?
38909 grep -v '^ *+' conftest.er1 >conftest.err
38910 rm -f conftest.er1
38911 cat conftest.err >&5
38912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38913 (exit $ac_status); } &&
3565d135
RR
38914 { ac_try='test -z "$ac_c_werror_flag"
38915 || test ! -s conftest.err'
004ee6da
RL
38916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38917 (eval $ac_try) 2>&5
38918 ac_status=$?
38919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38920 (exit $ac_status); }; } &&
38921 { ac_try='test -s conftest.$ac_objext'
38922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38923 (eval $ac_try) 2>&5
38924 ac_status=$?
38925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926 (exit $ac_status); }; }; then
38927 ac_cv_func_which_gethostbyname_r=three
38928else
38929 echo "$as_me: failed program was:" >&5
38930sed 's/^/| /' conftest.$ac_ext >&5
38931
38932fi
38933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38934
38935fi
38936
38937################################################################
38938
38939
38940fi
38941
38942case "$ac_cv_func_which_gethostbyname_r" in
38943 three)
38944 echo "$as_me:$LINENO: result: three" >&5
38945echo "${ECHO_T}three" >&6
38946 cat >>confdefs.h <<\_ACEOF
38947#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
38948_ACEOF
38949
38950 ;;
38951
38952 five)
38953 echo "$as_me:$LINENO: result: five" >&5
38954echo "${ECHO_T}five" >&6
38955 cat >>confdefs.h <<\_ACEOF
38956#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
38957_ACEOF
38958
38959 ;;
38960
38961 six)
38962 echo "$as_me:$LINENO: result: six" >&5
38963echo "${ECHO_T}six" >&6
38964 cat >>confdefs.h <<\_ACEOF
38965#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
38966_ACEOF
38967
38968 ;;
38969
38970 no)
38971 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
38972echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
38973 ;;
38974
38975 unknown)
38976 echo "$as_me:$LINENO: result: can't tell" >&5
38977echo "${ECHO_T}can't tell" >&6
38978 ;;
38979
38980 *)
38981 { { echo "$as_me:$LINENO: error: internal error" >&5
38982echo "$as_me: error: internal error" >&2;}
38983 { (exit 1); exit 1; }; }
38984 ;;
38985esac
38986
38987ac_ext=c
38988ac_cpp='$CPP $CPPFLAGS'
38989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38991ac_compiler_gnu=$ac_cv_c_compiler_gnu
38992
38993
38994
38995 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
38996 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
38997 echo "$as_me:$LINENO: checking for gethostbyname" >&5
38998echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
38999if test "${ac_cv_func_gethostbyname+set}" = set; then
39000 echo $ECHO_N "(cached) $ECHO_C" >&6
39001else
39002 cat >conftest.$ac_ext <<_ACEOF
39003/* confdefs.h. */
39004_ACEOF
39005cat confdefs.h >>conftest.$ac_ext
39006cat >>conftest.$ac_ext <<_ACEOF
39007/* end confdefs.h. */
39008/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39010#define gethostbyname innocuous_gethostbyname
39011
39012/* System header to define __stub macros and hopefully few prototypes,
39013 which can conflict with char gethostbyname (); below.
39014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39015 <limits.h> exists even on freestanding compilers. */
39016
39017#ifdef __STDC__
39018# include <limits.h>
39019#else
39020# include <assert.h>
39021#endif
39022
39023#undef gethostbyname
39024
39025/* Override any gcc2 internal prototype to avoid an error. */
39026#ifdef __cplusplus
39027extern "C"
39028{
39029#endif
39030/* We use char because int might match the return type of a gcc2
39031 builtin and then its argument prototype would still apply. */
39032char gethostbyname ();
39033/* The GNU C library defines this for functions which it implements
39034 to always fail with ENOSYS. Some functions are actually named
39035 something starting with __ and the normal name is an alias. */
39036#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39037choke me
39038#else
39039char (*f) () = gethostbyname;
39040#endif
39041#ifdef __cplusplus
39042}
39043#endif
39044
39045int
39046main ()
39047{
39048return f != gethostbyname;
39049 ;
39050 return 0;
39051}
39052_ACEOF
39053rm -f conftest.$ac_objext conftest$ac_exeext
39054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39055 (eval $ac_link) 2>conftest.er1
39056 ac_status=$?
39057 grep -v '^ *+' conftest.er1 >conftest.err
39058 rm -f conftest.er1
39059 cat conftest.err >&5
39060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39061 (exit $ac_status); } &&
3565d135
RR
39062 { ac_try='test -z "$ac_c_werror_flag"
39063 || test ! -s conftest.err'
004ee6da
RL
39064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39065 (eval $ac_try) 2>&5
39066 ac_status=$?
39067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39068 (exit $ac_status); }; } &&
39069 { ac_try='test -s conftest$ac_exeext'
39070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39071 (eval $ac_try) 2>&5
39072 ac_status=$?
39073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39074 (exit $ac_status); }; }; then
39075 ac_cv_func_gethostbyname=yes
39076else
39077 echo "$as_me: failed program was:" >&5
39078sed 's/^/| /' conftest.$ac_ext >&5
39079
39080ac_cv_func_gethostbyname=no
39081fi
39082rm -f conftest.err conftest.$ac_objext \
39083 conftest$ac_exeext conftest.$ac_ext
39084fi
39085echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39086echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39087if test $ac_cv_func_gethostbyname = yes; then
39088 cat >>confdefs.h <<\_ACEOF
39089#define HAVE_GETHOSTBYNAME 1
39090_ACEOF
39091
39092fi
39093
39094 fi
39095 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39096echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39097if test "${ac_cv_func_getservbyname_r+set}" = set; then
39098 echo $ECHO_N "(cached) $ECHO_C" >&6
39099else
39100 cat >conftest.$ac_ext <<_ACEOF
39101/* confdefs.h. */
39102_ACEOF
39103cat confdefs.h >>conftest.$ac_ext
39104cat >>conftest.$ac_ext <<_ACEOF
39105/* end confdefs.h. */
39106/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39108#define getservbyname_r innocuous_getservbyname_r
39109
39110/* System header to define __stub macros and hopefully few prototypes,
39111 which can conflict with char getservbyname_r (); below.
39112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39113 <limits.h> exists even on freestanding compilers. */
39114
39115#ifdef __STDC__
39116# include <limits.h>
39117#else
39118# include <assert.h>
39119#endif
39120
39121#undef getservbyname_r
39122
39123/* Override any gcc2 internal prototype to avoid an error. */
39124#ifdef __cplusplus
39125extern "C"
39126{
39127#endif
39128/* We use char because int might match the return type of a gcc2
39129 builtin and then its argument prototype would still apply. */
39130char getservbyname_r ();
39131/* The GNU C library defines this for functions which it implements
39132 to always fail with ENOSYS. Some functions are actually named
39133 something starting with __ and the normal name is an alias. */
39134#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39135choke me
39136#else
39137char (*f) () = getservbyname_r;
39138#endif
39139#ifdef __cplusplus
39140}
39141#endif
39142
39143int
39144main ()
39145{
39146return f != getservbyname_r;
39147 ;
39148 return 0;
39149}
39150_ACEOF
39151rm -f conftest.$ac_objext conftest$ac_exeext
39152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39153 (eval $ac_link) 2>conftest.er1
39154 ac_status=$?
39155 grep -v '^ *+' conftest.er1 >conftest.err
39156 rm -f conftest.er1
39157 cat conftest.err >&5
39158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39159 (exit $ac_status); } &&
3565d135
RR
39160 { ac_try='test -z "$ac_c_werror_flag"
39161 || test ! -s conftest.err'
004ee6da
RL
39162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39163 (eval $ac_try) 2>&5
39164 ac_status=$?
39165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39166 (exit $ac_status); }; } &&
39167 { ac_try='test -s conftest$ac_exeext'
39168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39169 (eval $ac_try) 2>&5
39170 ac_status=$?
39171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172 (exit $ac_status); }; }; then
39173 ac_cv_func_getservbyname_r=yes
39174else
39175 echo "$as_me: failed program was:" >&5
39176sed 's/^/| /' conftest.$ac_ext >&5
39177
39178ac_cv_func_getservbyname_r=no
39179fi
39180rm -f conftest.err conftest.$ac_objext \
39181 conftest$ac_exeext conftest.$ac_ext
39182fi
39183echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39184echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39185if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39186 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39187/* confdefs.h. */
39188_ACEOF
39189cat confdefs.h >>conftest.$ac_ext
39190cat >>conftest.$ac_ext <<_ACEOF
39191/* end confdefs.h. */
99879bbf 39192#include <netdb.h>
004ee6da
RL
39193int
39194main ()
39195{
39196
99879bbf
MR
39197 char *name;
39198 char *proto;
39199 struct servent *se;
39200 struct servent_data data;
39201 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39202
39203 ;
39204 return 0;
39205}
39206_ACEOF
39207rm -f conftest.$ac_objext
39208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39209 (eval $ac_compile) 2>conftest.er1
39210 ac_status=$?
39211 grep -v '^ *+' conftest.er1 >conftest.err
39212 rm -f conftest.er1
39213 cat conftest.err >&5
39214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39215 (exit $ac_status); } &&
3565d135
RR
39216 { ac_try='test -z "$ac_c_werror_flag"
39217 || test ! -s conftest.err'
004ee6da
RL
39218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39219 (eval $ac_try) 2>&5
39220 ac_status=$?
39221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39222 (exit $ac_status); }; } &&
39223 { ac_try='test -s conftest.$ac_objext'
39224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39225 (eval $ac_try) 2>&5
39226 ac_status=$?
39227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228 (exit $ac_status); }; }; then
39229 ac_cv_func_which_getservbyname_r=four
39230else
39231 echo "$as_me: failed program was:" >&5
39232sed 's/^/| /' conftest.$ac_ext >&5
39233
99879bbf 39234cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39235/* confdefs.h. */
39236_ACEOF
39237cat confdefs.h >>conftest.$ac_ext
39238cat >>conftest.$ac_ext <<_ACEOF
39239/* end confdefs.h. */
99879bbf 39240#include <netdb.h>
004ee6da
RL
39241int
39242main ()
39243{
39244
99879bbf
MR
39245 char *name;
39246 char *proto;
39247 struct servent *se, *res;
39248 char buffer[2048];
39249 int buflen = 2048;
39250 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39251
39252 ;
39253 return 0;
39254}
39255_ACEOF
39256rm -f conftest.$ac_objext
39257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39258 (eval $ac_compile) 2>conftest.er1
39259 ac_status=$?
39260 grep -v '^ *+' conftest.er1 >conftest.err
39261 rm -f conftest.er1
39262 cat conftest.err >&5
39263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39264 (exit $ac_status); } &&
3565d135
RR
39265 { ac_try='test -z "$ac_c_werror_flag"
39266 || test ! -s conftest.err'
004ee6da
RL
39267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39268 (eval $ac_try) 2>&5
39269 ac_status=$?
39270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39271 (exit $ac_status); }; } &&
39272 { ac_try='test -s conftest.$ac_objext'
39273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39274 (eval $ac_try) 2>&5
39275 ac_status=$?
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); }; }; then
39278 ac_cv_func_which_getservbyname_r=six
39279else
39280 echo "$as_me: failed program was:" >&5
39281sed 's/^/| /' conftest.$ac_ext >&5
39282
99879bbf 39283cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39284/* confdefs.h. */
39285_ACEOF
39286cat confdefs.h >>conftest.$ac_ext
39287cat >>conftest.$ac_ext <<_ACEOF
39288/* end confdefs.h. */
99879bbf 39289#include <netdb.h>
004ee6da
RL
39290int
39291main ()
39292{
39293
99879bbf
MR
39294 char *name;
39295 char *proto;
39296 struct servent *se;
39297 char buffer[2048];
39298 int buflen = 2048;
39299 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39300
39301 ;
39302 return 0;
39303}
39304_ACEOF
39305rm -f conftest.$ac_objext
39306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39307 (eval $ac_compile) 2>conftest.er1
39308 ac_status=$?
39309 grep -v '^ *+' conftest.er1 >conftest.err
39310 rm -f conftest.er1
39311 cat conftest.err >&5
39312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39313 (exit $ac_status); } &&
3565d135
RR
39314 { ac_try='test -z "$ac_c_werror_flag"
39315 || test ! -s conftest.err'
004ee6da
RL
39316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39317 (eval $ac_try) 2>&5
39318 ac_status=$?
39319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39320 (exit $ac_status); }; } &&
39321 { ac_try='test -s conftest.$ac_objext'
39322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39323 (eval $ac_try) 2>&5
39324 ac_status=$?
39325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326 (exit $ac_status); }; }; then
39327 ac_cv_func_which_getservbyname_r=five
39328else
39329 echo "$as_me: failed program was:" >&5
39330sed 's/^/| /' conftest.$ac_ext >&5
39331
39332ac_cv_func_which_getservbyname_r=no
99879bbf 39333
004ee6da
RL
39334fi
39335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39336
004ee6da
RL
39337fi
39338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39339
004ee6da
RL
39340fi
39341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39342else
39343 ac_cv_func_which_getservbyname_r=no
39344fi
39345
004ee6da
RL
39346
39347if test $ac_cv_func_which_getservbyname_r = six; then
39348 cat >>confdefs.h <<\_ACEOF
39349#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39350_ACEOF
39351
39352elif test $ac_cv_func_which_getservbyname_r = five; then
39353 cat >>confdefs.h <<\_ACEOF
39354#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39355_ACEOF
39356
39357elif test $ac_cv_func_which_getservbyname_r = four; then
39358 cat >>confdefs.h <<\_ACEOF
39359#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39360_ACEOF
39361
004ee6da
RL
39362fi
39363
39364
39365 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39366 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39367
39368for ac_func in getservbyname
39369do
39370as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39371echo "$as_me:$LINENO: checking for $ac_func" >&5
39372echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39373if eval "test \"\${$as_ac_var+set}\" = set"; then
39374 echo $ECHO_N "(cached) $ECHO_C" >&6
39375else
39376 cat >conftest.$ac_ext <<_ACEOF
39377/* confdefs.h. */
39378_ACEOF
39379cat confdefs.h >>conftest.$ac_ext
39380cat >>conftest.$ac_ext <<_ACEOF
39381/* end confdefs.h. */
39382/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39384#define $ac_func innocuous_$ac_func
39385
39386/* System header to define __stub macros and hopefully few prototypes,
39387 which can conflict with char $ac_func (); below.
39388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39389 <limits.h> exists even on freestanding compilers. */
39390
39391#ifdef __STDC__
39392# include <limits.h>
39393#else
39394# include <assert.h>
39395#endif
39396
39397#undef $ac_func
39398
39399/* Override any gcc2 internal prototype to avoid an error. */
39400#ifdef __cplusplus
39401extern "C"
39402{
39403#endif
39404/* We use char because int might match the return type of a gcc2
39405 builtin and then its argument prototype would still apply. */
39406char $ac_func ();
39407/* The GNU C library defines this for functions which it implements
39408 to always fail with ENOSYS. Some functions are actually named
39409 something starting with __ and the normal name is an alias. */
39410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39411choke me
39412#else
39413char (*f) () = $ac_func;
39414#endif
39415#ifdef __cplusplus
39416}
39417#endif
39418
39419int
39420main ()
39421{
39422return f != $ac_func;
39423 ;
39424 return 0;
39425}
39426_ACEOF
39427rm -f conftest.$ac_objext conftest$ac_exeext
39428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39429 (eval $ac_link) 2>conftest.er1
39430 ac_status=$?
39431 grep -v '^ *+' conftest.er1 >conftest.err
39432 rm -f conftest.er1
39433 cat conftest.err >&5
39434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39435 (exit $ac_status); } &&
3565d135
RR
39436 { ac_try='test -z "$ac_c_werror_flag"
39437 || test ! -s conftest.err'
004ee6da
RL
39438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39439 (eval $ac_try) 2>&5
39440 ac_status=$?
39441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39442 (exit $ac_status); }; } &&
39443 { ac_try='test -s conftest$ac_exeext'
39444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39445 (eval $ac_try) 2>&5
39446 ac_status=$?
39447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39448 (exit $ac_status); }; }; then
39449 eval "$as_ac_var=yes"
39450else
39451 echo "$as_me: failed program was:" >&5
39452sed 's/^/| /' conftest.$ac_ext >&5
39453
39454eval "$as_ac_var=no"
39455fi
39456rm -f conftest.err conftest.$ac_objext \
39457 conftest$ac_exeext conftest.$ac_ext
39458fi
39459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39461if test `eval echo '${'$as_ac_var'}'` = yes; then
39462 cat >>confdefs.h <<_ACEOF
39463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39464_ACEOF
39465 cat >>confdefs.h <<\_ACEOF
39466#define HAVE_GETSERVBYNAME 1
39467_ACEOF
39468
39469fi
39470done
39471
39472 fi
39473
004ee6da
RL
39474if test "$wxUSE_THREADS" = "yes"; then
39475 cat >>confdefs.h <<\_ACEOF
39476#define wxUSE_THREADS 1
39477_ACEOF
39478
39479
39480 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39481else
39482 if test "$ac_cv_func_strtok_r" = "yes"; then
39483 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39484echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39485 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39486 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39487 echo "$as_me:$LINENO: result: yes" >&5
39488echo "${ECHO_T}yes" >&6
39489 else
39490 echo "$as_me:$LINENO: result: no" >&5
39491echo "${ECHO_T}no" >&6
39492 fi
39493 fi
39494fi
39495
39496if test "$WXGTK20" = 1 ; then
39497 cat >>confdefs.h <<_ACEOF
39498#define __WXGTK20__ $WXGTK20
39499_ACEOF
39500
39501 WXGTK12=1
39502fi
39503
39504if test "$WXGTK12" = 1 ; then
39505 cat >>confdefs.h <<_ACEOF
39506#define __WXGTK12__ $WXGTK12
39507_ACEOF
39508
39509fi
39510
39511if test "$WXGTK127" = 1 ; then
39512 cat >>confdefs.h <<_ACEOF
39513#define __WXGTK127__ $WXGTK127
39514_ACEOF
39515
39516fi
39517
39518if test "$WXGPE" = 1 ; then
39519 cat >>confdefs.h <<_ACEOF
39520#define __WXGPE__ $WXGPE
39521_ACEOF
39522
39523fi
39524
39525DEBUG_CFLAGS=
39526if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39527 DEBUG_CFLAGS="-g"
39528 wxUSE_OPTIMISE=no
39529fi
39530
39531if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39532 wxUSE_DEBUG_INFO=yes
39533 if test "$GCC" = yes; then
39534 DEBUG_CFLAGS="-ggdb"
39535 fi
39536fi
39537
39538if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39539 cat >>confdefs.h <<\_ACEOF
39540#define WXDEBUG 1
39541_ACEOF
39542
39543 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39544else
39545 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
39546 if test "x$wxGTK_VERSION" = "x1" ; then
39547 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
39548 fi
004ee6da
RL
39549 fi
39550fi
39551
39552if test "$wxUSE_MEM_TRACING" = "yes" ; then
39553 cat >>confdefs.h <<\_ACEOF
39554#define wxUSE_MEMORY_TRACING 1
39555_ACEOF
39556
39557 cat >>confdefs.h <<\_ACEOF
39558#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39559_ACEOF
39560
39561 cat >>confdefs.h <<\_ACEOF
39562#define wxUSE_DEBUG_NEW_ALWAYS 1
39563_ACEOF
39564
39565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39566fi
39567
39568if test "$wxUSE_DMALLOC" = "yes" ; then
39569 DMALLOC_LIBS="-ldmallocthcxx"
39570fi
39571
39572PROFILE_FLAGS=
39573if test "$wxUSE_PROFILE" = "yes" ; then
39574 PROFILE_FLAGS=" -pg"
39575fi
39576
39577if test "$GCC" = "yes" ; then
39578 if test "$wxUSE_NO_RTTI" = "yes" ; then
39579 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39580 fi
39581 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39582 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39583 fi
39584 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39585 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39586 fi
39587
39588 case "${host}" in
39589 powerpc*-*-aix* )
39590 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39591 ;;
39592 *-hppa* )
39593 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39594 ;;
39595 esac
39596fi
39597
39598OPTIMISE_CFLAGS=
39599if test "$wxUSE_OPTIMISE" = "no" ; then
39600 if test "$GCC" = yes ; then
39601 OPTIMISE_CFLAGS="-O0"
39602 fi
39603else
39604 if test "$GCC" = yes ; then
39605 OPTIMISE_CFLAGS="-O2"
39606 else
39607 OPTIMISE_CFLAGS="-O"
39608 fi
39609fi
39610
39611
39612if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39613 cat >>confdefs.h <<\_ACEOF
39614#define WXWIN_COMPATIBILITY_2_4 1
39615_ACEOF
39616
39617
39618 WXWIN_COMPATIBILITY_2_6="yes"
39619fi
39620
39621if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39622 cat >>confdefs.h <<\_ACEOF
39623#define WXWIN_COMPATIBILITY_2_6 1
39624_ACEOF
39625
39626fi
39627
39628
39629if test "$wxUSE_GUI" = "yes"; then
39630 cat >>confdefs.h <<\_ACEOF
39631#define wxUSE_GUI 1
39632_ACEOF
39633
39634
39635 fi
39636
39637
39638if test "$wxUSE_UNIX" = "yes"; then
39639 cat >>confdefs.h <<\_ACEOF
39640#define wxUSE_UNIX 1
39641_ACEOF
39642
39643fi
39644
39645
39646if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39647
39648 HAVE_DL_FUNCS=0
39649 HAVE_SHL_FUNCS=0
39650 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39651 if test "$USE_DARWIN" = 1; then
39652 HAVE_DL_FUNCS=1
39653 elif test "$USE_DOS" = 1; then
39654 HAVE_DL_FUNCS=0
39655 else
39656
39657for ac_func in dlopen
39658do
39659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39660echo "$as_me:$LINENO: checking for $ac_func" >&5
39661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39662if eval "test \"\${$as_ac_var+set}\" = set"; then
39663 echo $ECHO_N "(cached) $ECHO_C" >&6
39664else
39665 cat >conftest.$ac_ext <<_ACEOF
39666/* confdefs.h. */
39667_ACEOF
39668cat confdefs.h >>conftest.$ac_ext
39669cat >>conftest.$ac_ext <<_ACEOF
39670/* end confdefs.h. */
39671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39673#define $ac_func innocuous_$ac_func
39674
39675/* System header to define __stub macros and hopefully few prototypes,
39676 which can conflict with char $ac_func (); below.
39677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39678 <limits.h> exists even on freestanding compilers. */
39679
39680#ifdef __STDC__
39681# include <limits.h>
39682#else
39683# include <assert.h>
39684#endif
39685
39686#undef $ac_func
39687
39688/* Override any gcc2 internal prototype to avoid an error. */
39689#ifdef __cplusplus
39690extern "C"
39691{
39692#endif
39693/* We use char because int might match the return type of a gcc2
39694 builtin and then its argument prototype would still apply. */
39695char $ac_func ();
39696/* The GNU C library defines this for functions which it implements
39697 to always fail with ENOSYS. Some functions are actually named
39698 something starting with __ and the normal name is an alias. */
39699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39700choke me
39701#else
39702char (*f) () = $ac_func;
39703#endif
39704#ifdef __cplusplus
39705}
39706#endif
39707
39708int
39709main ()
39710{
39711return f != $ac_func;
a848cd7e
SC
39712 ;
39713 return 0;
39714}
39715_ACEOF
39716rm -f conftest.$ac_objext conftest$ac_exeext
39717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39718 (eval $ac_link) 2>conftest.er1
a848cd7e 39719 ac_status=$?
ac1cb8d3
VS
39720 grep -v '^ *+' conftest.er1 >conftest.err
39721 rm -f conftest.er1
39722 cat conftest.err >&5
a848cd7e
SC
39723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39724 (exit $ac_status); } &&
3565d135
RR
39725 { ac_try='test -z "$ac_c_werror_flag"
39726 || test ! -s conftest.err'
ac1cb8d3
VS
39727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39728 (eval $ac_try) 2>&5
39729 ac_status=$?
39730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39731 (exit $ac_status); }; } &&
39732 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39734 (eval $ac_try) 2>&5
39735 ac_status=$?
39736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737 (exit $ac_status); }; }; then
39738 eval "$as_ac_var=yes"
39739else
39740 echo "$as_me: failed program was:" >&5
39741sed 's/^/| /' conftest.$ac_ext >&5
39742
39743eval "$as_ac_var=no"
39744fi
ac1cb8d3
VS
39745rm -f conftest.err conftest.$ac_objext \
39746 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39747fi
39748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39749echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39750if test `eval echo '${'$as_ac_var'}'` = yes; then
39751 cat >>confdefs.h <<_ACEOF
39752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39753_ACEOF
39754
39755 cat >>confdefs.h <<\_ACEOF
39756#define HAVE_DLOPEN 1
39757_ACEOF
39758
39759 HAVE_DL_FUNCS=1
39760
39761else
39762
39763 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39764echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39765if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39766 echo $ECHO_N "(cached) $ECHO_C" >&6
39767else
39768 ac_check_lib_save_LIBS=$LIBS
39769LIBS="-ldl $LIBS"
39770cat >conftest.$ac_ext <<_ACEOF
39771/* confdefs.h. */
39772_ACEOF
39773cat confdefs.h >>conftest.$ac_ext
39774cat >>conftest.$ac_ext <<_ACEOF
39775/* end confdefs.h. */
39776
39777/* Override any gcc2 internal prototype to avoid an error. */
39778#ifdef __cplusplus
39779extern "C"
39780#endif
39781/* We use char because int might match the return type of a gcc2
39782 builtin and then its argument prototype would still apply. */
39783char dlopen ();
39784int
39785main ()
39786{
39787dlopen ();
39788 ;
39789 return 0;
39790}
39791_ACEOF
39792rm -f conftest.$ac_objext conftest$ac_exeext
39793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39794 (eval $ac_link) 2>conftest.er1
a848cd7e 39795 ac_status=$?
ac1cb8d3
VS
39796 grep -v '^ *+' conftest.er1 >conftest.err
39797 rm -f conftest.er1
39798 cat conftest.err >&5
a848cd7e
SC
39799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39800 (exit $ac_status); } &&
3565d135
RR
39801 { ac_try='test -z "$ac_c_werror_flag"
39802 || test ! -s conftest.err'
ac1cb8d3
VS
39803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39804 (eval $ac_try) 2>&5
39805 ac_status=$?
39806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39807 (exit $ac_status); }; } &&
39808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39810 (eval $ac_try) 2>&5
39811 ac_status=$?
39812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813 (exit $ac_status); }; }; then
39814 ac_cv_lib_dl_dlopen=yes
39815else
39816 echo "$as_me: failed program was:" >&5
39817sed 's/^/| /' conftest.$ac_ext >&5
39818
39819ac_cv_lib_dl_dlopen=no
39820fi
ac1cb8d3
VS
39821rm -f conftest.err conftest.$ac_objext \
39822 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39823LIBS=$ac_check_lib_save_LIBS
39824fi
39825echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39826echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
39827if test $ac_cv_lib_dl_dlopen = yes; then
39828
39829 cat >>confdefs.h <<\_ACEOF
39830#define HAVE_DLOPEN 1
39831_ACEOF
39832
39833 HAVE_DL_FUNCS=1
39834 DL_LINK=" -ldl$DL_LINK"
39835
39836else
39837
39838
39839for ac_func in shl_load
39840do
39841as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39842echo "$as_me:$LINENO: checking for $ac_func" >&5
39843echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39844if eval "test \"\${$as_ac_var+set}\" = set"; then
39845 echo $ECHO_N "(cached) $ECHO_C" >&6
39846else
39847 cat >conftest.$ac_ext <<_ACEOF
39848/* confdefs.h. */
39849_ACEOF
39850cat confdefs.h >>conftest.$ac_ext
39851cat >>conftest.$ac_ext <<_ACEOF
39852/* end confdefs.h. */
ac1cb8d3
VS
39853/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39855#define $ac_func innocuous_$ac_func
39856
a848cd7e
SC
39857/* System header to define __stub macros and hopefully few prototypes,
39858 which can conflict with char $ac_func (); below.
39859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39860 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39861
a848cd7e
SC
39862#ifdef __STDC__
39863# include <limits.h>
39864#else
39865# include <assert.h>
39866#endif
ac1cb8d3
VS
39867
39868#undef $ac_func
39869
a848cd7e
SC
39870/* Override any gcc2 internal prototype to avoid an error. */
39871#ifdef __cplusplus
39872extern "C"
39873{
39874#endif
39875/* We use char because int might match the return type of a gcc2
39876 builtin and then its argument prototype would still apply. */
39877char $ac_func ();
39878/* The GNU C library defines this for functions which it implements
39879 to always fail with ENOSYS. Some functions are actually named
39880 something starting with __ and the normal name is an alias. */
39881#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39882choke me
39883#else
39884char (*f) () = $ac_func;
39885#endif
39886#ifdef __cplusplus
39887}
39888#endif
39889
39890int
39891main ()
39892{
39893return f != $ac_func;
39894 ;
39895 return 0;
39896}
39897_ACEOF
39898rm -f conftest.$ac_objext conftest$ac_exeext
39899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39900 (eval $ac_link) 2>conftest.er1
a848cd7e 39901 ac_status=$?
ac1cb8d3
VS
39902 grep -v '^ *+' conftest.er1 >conftest.err
39903 rm -f conftest.er1
39904 cat conftest.err >&5
a848cd7e
SC
39905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906 (exit $ac_status); } &&
3565d135
RR
39907 { ac_try='test -z "$ac_c_werror_flag"
39908 || test ! -s conftest.err'
ac1cb8d3
VS
39909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39910 (eval $ac_try) 2>&5
39911 ac_status=$?
39912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); }; } &&
39914 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39916 (eval $ac_try) 2>&5
39917 ac_status=$?
39918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39919 (exit $ac_status); }; }; then
39920 eval "$as_ac_var=yes"
39921else
39922 echo "$as_me: failed program was:" >&5
39923sed 's/^/| /' conftest.$ac_ext >&5
39924
39925eval "$as_ac_var=no"
39926fi
ac1cb8d3
VS
39927rm -f conftest.err conftest.$ac_objext \
39928 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39929fi
39930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39931echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39932if test `eval echo '${'$as_ac_var'}'` = yes; then
39933 cat >>confdefs.h <<_ACEOF
39934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39935_ACEOF
39936
39937 cat >>confdefs.h <<\_ACEOF
39938#define HAVE_SHL_LOAD 1
39939_ACEOF
39940
39941 HAVE_SHL_FUNCS=1
39942
39943else
39944
39945 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
39946echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
39947if test "${ac_cv_lib_shl_load_dld+set}" = set; then
39948 echo $ECHO_N "(cached) $ECHO_C" >&6
39949else
39950 ac_check_lib_save_LIBS=$LIBS
39951LIBS="-lshl_load $LIBS"
39952cat >conftest.$ac_ext <<_ACEOF
39953/* confdefs.h. */
39954_ACEOF
39955cat confdefs.h >>conftest.$ac_ext
39956cat >>conftest.$ac_ext <<_ACEOF
39957/* end confdefs.h. */
39958
39959/* Override any gcc2 internal prototype to avoid an error. */
39960#ifdef __cplusplus
39961extern "C"
39962#endif
39963/* We use char because int might match the return type of a gcc2
39964 builtin and then its argument prototype would still apply. */
39965char dld ();
39966int
39967main ()
39968{
39969dld ();
39970 ;
39971 return 0;
39972}
39973_ACEOF
39974rm -f conftest.$ac_objext conftest$ac_exeext
39975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39976 (eval $ac_link) 2>conftest.er1
a848cd7e 39977 ac_status=$?
ac1cb8d3
VS
39978 grep -v '^ *+' conftest.er1 >conftest.err
39979 rm -f conftest.er1
39980 cat conftest.err >&5
a848cd7e
SC
39981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39982 (exit $ac_status); } &&
3565d135
RR
39983 { ac_try='test -z "$ac_c_werror_flag"
39984 || test ! -s conftest.err'
ac1cb8d3
VS
39985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39986 (eval $ac_try) 2>&5
39987 ac_status=$?
39988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39989 (exit $ac_status); }; } &&
39990 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39992 (eval $ac_try) 2>&5
39993 ac_status=$?
39994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39995 (exit $ac_status); }; }; then
39996 ac_cv_lib_shl_load_dld=yes
39997else
39998 echo "$as_me: failed program was:" >&5
39999sed 's/^/| /' conftest.$ac_ext >&5
40000
40001ac_cv_lib_shl_load_dld=no
40002fi
ac1cb8d3
VS
40003rm -f conftest.err conftest.$ac_objext \
40004 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40005LIBS=$ac_check_lib_save_LIBS
40006fi
40007echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40008echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40009if test $ac_cv_lib_shl_load_dld = yes; then
40010
40011 HAVE_SHL_FUNCS=1
40012 DL_LINK=" -ldld$DL_LINK"
40013
40014fi
40015
40016
40017fi
40018done
40019
40020
40021fi
40022
40023
40024fi
40025done
40026
40027
40028 if test "$HAVE_DL_FUNCS" = 1; then
40029
40030for ac_func in dlerror
40031do
40032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40033echo "$as_me:$LINENO: checking for $ac_func" >&5
40034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40035if eval "test \"\${$as_ac_var+set}\" = set"; then
40036 echo $ECHO_N "(cached) $ECHO_C" >&6
40037else
40038 cat >conftest.$ac_ext <<_ACEOF
40039/* confdefs.h. */
40040_ACEOF
40041cat confdefs.h >>conftest.$ac_ext
40042cat >>conftest.$ac_ext <<_ACEOF
40043/* end confdefs.h. */
ac1cb8d3
VS
40044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40046#define $ac_func innocuous_$ac_func
40047
a848cd7e
SC
40048/* System header to define __stub macros and hopefully few prototypes,
40049 which can conflict with char $ac_func (); below.
40050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40051 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40052
a848cd7e
SC
40053#ifdef __STDC__
40054# include <limits.h>
40055#else
40056# include <assert.h>
40057#endif
ac1cb8d3
VS
40058
40059#undef $ac_func
40060
a848cd7e
SC
40061/* Override any gcc2 internal prototype to avoid an error. */
40062#ifdef __cplusplus
40063extern "C"
40064{
40065#endif
40066/* We use char because int might match the return type of a gcc2
40067 builtin and then its argument prototype would still apply. */
40068char $ac_func ();
40069/* The GNU C library defines this for functions which it implements
40070 to always fail with ENOSYS. Some functions are actually named
40071 something starting with __ and the normal name is an alias. */
40072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40073choke me
40074#else
40075char (*f) () = $ac_func;
40076#endif
40077#ifdef __cplusplus
40078}
40079#endif
40080
40081int
40082main ()
40083{
40084return f != $ac_func;
40085 ;
40086 return 0;
40087}
40088_ACEOF
40089rm -f conftest.$ac_objext conftest$ac_exeext
40090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40091 (eval $ac_link) 2>conftest.er1
a848cd7e 40092 ac_status=$?
ac1cb8d3
VS
40093 grep -v '^ *+' conftest.er1 >conftest.err
40094 rm -f conftest.er1
40095 cat conftest.err >&5
a848cd7e
SC
40096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40097 (exit $ac_status); } &&
3565d135
RR
40098 { ac_try='test -z "$ac_c_werror_flag"
40099 || test ! -s conftest.err'
ac1cb8d3
VS
40100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40101 (eval $ac_try) 2>&5
40102 ac_status=$?
40103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40104 (exit $ac_status); }; } &&
40105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40107 (eval $ac_try) 2>&5
40108 ac_status=$?
40109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40110 (exit $ac_status); }; }; then
40111 eval "$as_ac_var=yes"
40112else
40113 echo "$as_me: failed program was:" >&5
40114sed 's/^/| /' conftest.$ac_ext >&5
40115
40116eval "$as_ac_var=no"
40117fi
ac1cb8d3
VS
40118rm -f conftest.err conftest.$ac_objext \
40119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40120fi
40121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40123if test `eval echo '${'$as_ac_var'}'` = yes; then
40124 cat >>confdefs.h <<_ACEOF
40125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40126_ACEOF
40127 cat >>confdefs.h <<\_ACEOF
40128#define HAVE_DLERROR 1
40129_ACEOF
40130
40131else
40132
40133 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40134echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40135if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40136 echo $ECHO_N "(cached) $ECHO_C" >&6
40137else
40138 ac_check_lib_save_LIBS=$LIBS
40139LIBS="-ldl $LIBS"
40140cat >conftest.$ac_ext <<_ACEOF
40141/* confdefs.h. */
40142_ACEOF
40143cat confdefs.h >>conftest.$ac_ext
40144cat >>conftest.$ac_ext <<_ACEOF
40145/* end confdefs.h. */
40146
40147/* Override any gcc2 internal prototype to avoid an error. */
40148#ifdef __cplusplus
40149extern "C"
40150#endif
40151/* We use char because int might match the return type of a gcc2
40152 builtin and then its argument prototype would still apply. */
40153char dlerror ();
40154int
40155main ()
40156{
40157dlerror ();
40158 ;
40159 return 0;
40160}
40161_ACEOF
40162rm -f conftest.$ac_objext conftest$ac_exeext
40163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40164 (eval $ac_link) 2>conftest.er1
a848cd7e 40165 ac_status=$?
ac1cb8d3
VS
40166 grep -v '^ *+' conftest.er1 >conftest.err
40167 rm -f conftest.er1
40168 cat conftest.err >&5
a848cd7e
SC
40169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40170 (exit $ac_status); } &&
3565d135
RR
40171 { ac_try='test -z "$ac_c_werror_flag"
40172 || test ! -s conftest.err'
ac1cb8d3
VS
40173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40174 (eval $ac_try) 2>&5
40175 ac_status=$?
40176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40177 (exit $ac_status); }; } &&
40178 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40180 (eval $ac_try) 2>&5
40181 ac_status=$?
40182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40183 (exit $ac_status); }; }; then
40184 ac_cv_lib_dl_dlerror=yes
40185else
40186 echo "$as_me: failed program was:" >&5
40187sed 's/^/| /' conftest.$ac_ext >&5
40188
40189ac_cv_lib_dl_dlerror=no
40190fi
ac1cb8d3
VS
40191rm -f conftest.err conftest.$ac_objext \
40192 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40193LIBS=$ac_check_lib_save_LIBS
40194fi
40195echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40196echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40197if test $ac_cv_lib_dl_dlerror = yes; then
40198 cat >>confdefs.h <<\_ACEOF
40199#define HAVE_DLERROR 1
40200_ACEOF
40201
40202fi
40203
40204
40205
40206fi
40207done
40208
40209 fi
40210 fi
40211
40212 if test "$HAVE_DL_FUNCS" = 0; then
40213 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40214 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40215 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40216echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40217 wxUSE_DYNAMIC_LOADER=no
40218 wxUSE_DYNLIB_CLASS=no
40219 else
40220 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40221echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40222 fi
40223 fi
40224 fi
40225 fi
40226fi
40227
40228if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40229 cat >>confdefs.h <<\_ACEOF
40230#define wxUSE_DYNAMIC_LOADER 1
40231_ACEOF
40232
40233fi
40234if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40235 cat >>confdefs.h <<\_ACEOF
40236#define wxUSE_DYNLIB_CLASS 1
40237_ACEOF
40238
40239fi
40240
40241
40242
40243if test "$wxUSE_PLUGINS" = "yes" ; then
40244 if test "$wxUSE_SHARED" = "no" ; then
40245 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40246echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40247 wxUSE_PLUGINS=no
40248 fi
40249 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40250 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40251echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40252 wxUSE_PLUGINS=no
40253 fi
40254 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40255 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40256echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40257 wxUSE_PLUGINS=no
40258 fi
40259 if test "$wxUSE_PLUGINS" = "yes" ; then
40260 cat >>confdefs.h <<\_ACEOF
40261#define wxUSE_PLUGINS 1
40262_ACEOF
40263
40264 fi
40265fi
40266
40267
40268if test "$wxUSE_STL" = "yes"; then
40269 cat >>confdefs.h <<\_ACEOF
40270#define wxUSE_STL 1
40271_ACEOF
40272
40273fi
40274
40275if test "$wxUSE_APPLE_IEEE" = "yes"; then
40276 cat >>confdefs.h <<\_ACEOF
40277#define wxUSE_APPLE_IEEE 1
40278_ACEOF
40279
40280fi
40281
40282if test "$wxUSE_TIMER" = "yes"; then
40283 cat >>confdefs.h <<\_ACEOF
40284#define wxUSE_TIMER 1
40285_ACEOF
40286
40287fi
40288
9c112555 40289if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40290 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40291echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40292if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40293 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40294else
d12aef51
VZ
40295
40296 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40297/* confdefs.h. */
40298_ACEOF
40299cat confdefs.h >>conftest.$ac_ext
40300cat >>conftest.$ac_ext <<_ACEOF
40301/* end confdefs.h. */
d12aef51
VZ
40302
40303 #include <sys/soundcard.h>
40304
40305int
40306main ()
40307{
40308
40309 ioctl(0, SNDCTL_DSP_SYNC, 0);
40310
40311 ;
40312 return 0;
40313}
a848cd7e 40314_ACEOF
d12aef51
VZ
40315rm -f conftest.$ac_objext conftest$ac_exeext
40316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40317 (eval $ac_link) 2>conftest.er1
a848cd7e 40318 ac_status=$?
ac1cb8d3
VS
40319 grep -v '^ *+' conftest.er1 >conftest.err
40320 rm -f conftest.er1
40321 cat conftest.err >&5
a848cd7e
SC
40322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40323 (exit $ac_status); } &&
3565d135
RR
40324 { ac_try='test -z "$ac_c_werror_flag"
40325 || test ! -s conftest.err'
ac1cb8d3
VS
40326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40327 (eval $ac_try) 2>&5
40328 ac_status=$?
40329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40330 (exit $ac_status); }; } &&
d12aef51 40331 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40333 (eval $ac_try) 2>&5
40334 ac_status=$?
40335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40336 (exit $ac_status); }; }; then
d12aef51 40337 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40338else
40339 echo "$as_me: failed program was:" >&5
40340sed 's/^/| /' conftest.$ac_ext >&5
40341
a848cd7e 40342
d12aef51
VZ
40343 saveLibs="$LIBS"
40344 LIBS="$saveLibs -lossaudio"
40345 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40346/* confdefs.h. */
40347_ACEOF
40348cat confdefs.h >>conftest.$ac_ext
40349cat >>conftest.$ac_ext <<_ACEOF
40350/* end confdefs.h. */
d12aef51
VZ
40351
40352 #include <sys/soundcard.h>
40353
40354int
40355main ()
40356{
40357
40358 ioctl(0, SNDCTL_DSP_SYNC, 0);
40359
40360 ;
40361 return 0;
40362}
a848cd7e 40363_ACEOF
d12aef51
VZ
40364rm -f conftest.$ac_objext conftest$ac_exeext
40365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40366 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40367 ac_status=$?
40368 grep -v '^ *+' conftest.er1 >conftest.err
40369 rm -f conftest.er1
40370 cat conftest.err >&5
40371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40372 (exit $ac_status); } &&
3565d135
RR
40373 { ac_try='test -z "$ac_c_werror_flag"
40374 || test ! -s conftest.err'
d12aef51
VZ
40375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40376 (eval $ac_try) 2>&5
40377 ac_status=$?
40378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40379 (exit $ac_status); }; } &&
40380 { ac_try='test -s conftest$ac_exeext'
40381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40382 (eval $ac_try) 2>&5
40383 ac_status=$?
40384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40385 (exit $ac_status); }; }; then
40386 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40387else
40388 echo "$as_me: failed program was:" >&5
40389sed 's/^/| /' conftest.$ac_ext >&5
40390
a848cd7e 40391
d12aef51
VZ
40392 LIBS="$saveLibs"
40393 ac_cv_header_sys_soundcard=no
40394
40395
a848cd7e 40396fi
d12aef51
VZ
40397rm -f conftest.err conftest.$ac_objext \
40398 conftest$ac_exeext conftest.$ac_ext
40399
a848cd7e
SC
40400
40401fi
d12aef51
VZ
40402rm -f conftest.err conftest.$ac_objext \
40403 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40404
40405fi
d12aef51
VZ
40406echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40407echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40408
d12aef51
VZ
40409 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40410 cat >>confdefs.h <<\_ACEOF
40411#define HAVE_SYS_SOUNDCARD_H 1
40412_ACEOF
a848cd7e 40413
d12aef51
VZ
40414 else
40415 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40416 fi
9c112555
MW
40417fi
40418WITH_PLUGIN_SDL=0
40419if test "$wxUSE_SOUND" = "yes"; then
40420 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40421 if test "$wxUSE_LIBSDL" != "no"; then
40422
40423# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40424if test "${with_sdl_prefix+set}" = set; then
40425 withval="$with_sdl_prefix"
40426 sdl_prefix="$withval"
40427else
40428 sdl_prefix=""
40429fi;
40430
40431# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40432if test "${with_sdl_exec_prefix+set}" = set; then
40433 withval="$with_sdl_exec_prefix"
40434 sdl_exec_prefix="$withval"
40435else
40436 sdl_exec_prefix=""
40437fi;
40438# Check whether --enable-sdltest or --disable-sdltest was given.
40439if test "${enable_sdltest+set}" = set; then
40440 enableval="$enable_sdltest"
40441
40442else
40443 enable_sdltest=yes
40444fi;
40445
40446 if test x$sdl_exec_prefix != x ; then
40447 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40448 if test x${SDL_CONFIG+set} != xset ; then
40449 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40450 fi
40451 fi
40452 if test x$sdl_prefix != x ; then
40453 sdl_args="$sdl_args --prefix=$sdl_prefix"
40454 if test x${SDL_CONFIG+set} != xset ; then
40455 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40456 fi
40457 fi
40458
40459
40460 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40461 # Extract the first word of "sdl-config", so it can be a program name with args.
40462set dummy sdl-config; ac_word=$2
40463echo "$as_me:$LINENO: checking for $ac_word" >&5
40464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40465if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40466 echo $ECHO_N "(cached) $ECHO_C" >&6
40467else
40468 case $SDL_CONFIG in
40469 [\\/]* | ?:[\\/]*)
40470 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40471 ;;
40472 *)
40473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40474for as_dir in $PATH
40475do
40476 IFS=$as_save_IFS
40477 test -z "$as_dir" && as_dir=.
40478 for ac_exec_ext in '' $ac_executable_extensions; do
40479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40480 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40482 break 2
40483 fi
40484done
40485done
40486
40487 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40488 ;;
40489esac
40490fi
40491SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40492
40493if test -n "$SDL_CONFIG"; then
40494 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40495echo "${ECHO_T}$SDL_CONFIG" >&6
40496else
40497 echo "$as_me:$LINENO: result: no" >&5
40498echo "${ECHO_T}no" >&6
40499fi
40500
40501 min_sdl_version=1.2.0
40502 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40503echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40504 no_sdl=""
40505 if test "$SDL_CONFIG" = "no" ; then
40506 no_sdl=yes
40507 else
40508 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40509 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40510
40511 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40512 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40513 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40514 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40515 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40517 if test "x$enable_sdltest" = "xyes" ; then
40518 ac_save_CFLAGS="$CFLAGS"
94acd38e 40519 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40520 ac_save_LIBS="$LIBS"
40521 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40522 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40523 LIBS="$LIBS $SDL_LIBS"
40524 rm -f conf.sdltest
40525 if test "$cross_compiling" = yes; then
40526 echo $ac_n "cross compiling; assumed OK... $ac_c"
40527else
40528 cat >conftest.$ac_ext <<_ACEOF
40529/* confdefs.h. */
40530_ACEOF
40531cat confdefs.h >>conftest.$ac_ext
40532cat >>conftest.$ac_ext <<_ACEOF
40533/* end confdefs.h. */
40534
40535#include <stdio.h>
40536#include <stdlib.h>
40537#include <string.h>
40538#include "SDL.h"
40539
40540char*
40541my_strdup (char *str)
40542{
40543 char *new_str;
40544
40545 if (str)
40546 {
40547 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40548 strcpy (new_str, str);
40549 }
40550 else
40551 new_str = NULL;
40552
40553 return new_str;
40554}
40555
40556int main (int argc, char *argv[])
40557{
40558 int major, minor, micro;
40559 char *tmp_version;
40560
40561 /* This hangs on some systems (?)
40562 system ("touch conf.sdltest");
40563 */
40564 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40565
40566 /* HP/UX 9 (%@#!) writes to sscanf strings */
40567 tmp_version = my_strdup("$min_sdl_version");
40568 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40569 printf("%s, bad version string\n", "$min_sdl_version");
40570 exit(1);
40571 }
40572
40573 if (($sdl_major_version > major) ||
40574 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40575 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40576 {
40577 return 0;
40578 }
40579 else
40580 {
40581 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40582 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40583 printf("*** best to upgrade to the required version.\n");
40584 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40585 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40586 printf("*** config.cache before re-running configure\n");
40587 return 1;
40588 }
40589}
40590
40591
40592_ACEOF
40593rm -f conftest$ac_exeext
40594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40595 (eval $ac_link) 2>&5
40596 ac_status=$?
40597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40600 (eval $ac_try) 2>&5
40601 ac_status=$?
40602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40603 (exit $ac_status); }; }; then
40604 :
40605else
40606 echo "$as_me: program exited with status $ac_status" >&5
40607echo "$as_me: failed program was:" >&5
40608sed 's/^/| /' conftest.$ac_ext >&5
40609
40610( exit $ac_status )
40611no_sdl=yes
40612fi
ac1cb8d3 40613rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40614fi
40615 CFLAGS="$ac_save_CFLAGS"
94acd38e 40616 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40617 LIBS="$ac_save_LIBS"
40618 fi
40619 fi
40620 if test "x$no_sdl" = x ; then
40621 echo "$as_me:$LINENO: result: yes" >&5
40622echo "${ECHO_T}yes" >&6
40623
40624 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 40625 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
40626 cat >>confdefs.h <<\_ACEOF
40627#define wxUSE_LIBSDL 1
40628_ACEOF
40629
40630
40631 else
40632 echo "$as_me:$LINENO: result: no" >&5
40633echo "${ECHO_T}no" >&6
40634 if test "$SDL_CONFIG" = "no" ; then
40635 echo "*** The sdl-config script installed by SDL could not be found"
40636 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40637 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40638 echo "*** full path to sdl-config."
40639 else
40640 if test -f conf.sdltest ; then
40641 :
40642 else
40643 echo "*** Could not run SDL test program, checking why..."
40644 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40645 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40646 LIBS="$LIBS $SDL_LIBS"
40647 cat >conftest.$ac_ext <<_ACEOF
40648/* confdefs.h. */
40649_ACEOF
40650cat confdefs.h >>conftest.$ac_ext
40651cat >>conftest.$ac_ext <<_ACEOF
40652/* end confdefs.h. */
40653
40654#include <stdio.h>
40655#include "SDL.h"
40656
40657int main(int argc, char *argv[])
40658{ return 0; }
40659#undef main
40660#define main K_and_R_C_main
40661
40662int
40663main ()
40664{
40665 return 0;
40666 ;
40667 return 0;
40668}
40669_ACEOF
40670rm -f conftest.$ac_objext conftest$ac_exeext
40671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40672 (eval $ac_link) 2>conftest.er1
a848cd7e 40673 ac_status=$?
ac1cb8d3
VS
40674 grep -v '^ *+' conftest.er1 >conftest.err
40675 rm -f conftest.er1
40676 cat conftest.err >&5
a848cd7e
SC
40677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40678 (exit $ac_status); } &&
3565d135
RR
40679 { ac_try='test -z "$ac_c_werror_flag"
40680 || test ! -s conftest.err'
ac1cb8d3
VS
40681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40682 (eval $ac_try) 2>&5
40683 ac_status=$?
40684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40685 (exit $ac_status); }; } &&
40686 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40688 (eval $ac_try) 2>&5
40689 ac_status=$?
40690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40691 (exit $ac_status); }; }; then
40692 echo "*** The test program compiled, but did not run. This usually means"
40693 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40694 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40695 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40696 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40697 echo "*** is required on your system"
40698 echo "***"
40699 echo "*** If you have an old version installed, it is best to remove it, although"
40700 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40701else
40702 echo "$as_me: failed program was:" >&5
40703sed 's/^/| /' conftest.$ac_ext >&5
40704
40705 echo "*** The test program failed to compile or link. See the file config.log for the"
40706 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40707 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40708 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40709fi
ac1cb8d3
VS
40710rm -f conftest.err conftest.$ac_objext \
40711 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40712 CFLAGS="$ac_save_CFLAGS"
94acd38e 40713 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40714 LIBS="$ac_save_LIBS"
40715 fi
40716 fi
40717 SDL_CFLAGS=""
40718 SDL_LIBS=""
40719 wxUSE_LIBSDL="no"
40720 fi
40721
40722
40723 rm -f conf.sdltest
40724
40725 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40726 WITH_PLUGIN_SDL=1
40727 fi
40728 fi
40729 fi
40730
40731 cat >>confdefs.h <<\_ACEOF
40732#define wxUSE_SOUND 1
40733_ACEOF
40734
40735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40736fi
40737
d1c38808
VZ
40738if test "$WXGTK20" = 1; then
40739 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40740 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40741
40742
40743 succeeded=no
40744
40745 if test -z "$PKG_CONFIG"; then
40746 # Extract the first word of "pkg-config", so it can be a program name with args.
40747set dummy pkg-config; ac_word=$2
40748echo "$as_me:$LINENO: checking for $ac_word" >&5
40749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40750if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40751 echo $ECHO_N "(cached) $ECHO_C" >&6
40752else
40753 case $PKG_CONFIG in
40754 [\\/]* | ?:[\\/]*)
40755 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40756 ;;
40757 *)
40758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40759for as_dir in $PATH
40760do
40761 IFS=$as_save_IFS
40762 test -z "$as_dir" && as_dir=.
40763 for ac_exec_ext in '' $ac_executable_extensions; do
40764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40765 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40767 break 2
40768 fi
40769done
40770done
40771
40772 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40773 ;;
40774esac
40775fi
40776PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40777
40778if test -n "$PKG_CONFIG"; then
40779 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40780echo "${ECHO_T}$PKG_CONFIG" >&6
40781else
40782 echo "$as_me:$LINENO: result: no" >&5
40783echo "${ECHO_T}no" >&6
40784fi
40785
40786 fi
40787
40788 if test "$PKG_CONFIG" = "no" ; then
40789 echo "*** The pkg-config script could not be found. Make sure it is"
40790 echo "*** in your path, or set the PKG_CONFIG environment variable"
40791 echo "*** to the full path to pkg-config."
40792 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40793 else
40794 PKG_CONFIG_MIN_VERSION=0.9.0
40795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
40796 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
40797echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 40798
ffa762ff 40799 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
40800 echo "$as_me:$LINENO: result: yes" >&5
40801echo "${ECHO_T}yes" >&6
40802 succeeded=yes
40803
40804 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
40805echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 40806 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40807 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
40808echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
40809
40810 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
40811echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 40812 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40813 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
40814echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
40815 else
40816 LIBGNOMEPRINTUI_CFLAGS=""
40817 LIBGNOMEPRINTUI_LIBS=""
40818 ## If we have a custom action on failure, don't print errors, but
40819 ## do set a variable so people can do so.
ffa762ff 40820 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40821
40822 fi
40823
40824
40825
40826 else
40827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40829 fi
40830 fi
40831
40832 if test $succeeded = yes; then
40833
c92ad099 40834 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
40835 cat >>confdefs.h <<\_ACEOF
40836#define wxUSE_LIBGNOMEPRINT 1
40837_ACEOF
40838
40839
40840 else
40841
40842 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
40843echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
40844 wxUSE_LIBGNOMEPRINT="no"
40845
40846
40847 fi
40848
40849 fi
40850 fi
40851fi
40852
3565d135
RR
40853if test "$WXGTK20" = 1; then
40854 if test "$wxUSE_LIBHILDON" = "yes" ; then
40855
40856 succeeded=no
40857
40858 if test -z "$PKG_CONFIG"; then
40859 # Extract the first word of "pkg-config", so it can be a program name with args.
40860set dummy pkg-config; ac_word=$2
40861echo "$as_me:$LINENO: checking for $ac_word" >&5
40862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40863if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40864 echo $ECHO_N "(cached) $ECHO_C" >&6
40865else
40866 case $PKG_CONFIG in
40867 [\\/]* | ?:[\\/]*)
40868 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40869 ;;
40870 *)
40871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40872for as_dir in $PATH
40873do
40874 IFS=$as_save_IFS
40875 test -z "$as_dir" && as_dir=.
40876 for ac_exec_ext in '' $ac_executable_extensions; do
40877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40878 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40880 break 2
40881 fi
40882done
40883done
40884
40885 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40886 ;;
40887esac
40888fi
40889PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40890
40891if test -n "$PKG_CONFIG"; then
40892 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40893echo "${ECHO_T}$PKG_CONFIG" >&6
40894else
40895 echo "$as_me:$LINENO: result: no" >&5
40896echo "${ECHO_T}no" >&6
40897fi
40898
40899 fi
40900
40901 if test "$PKG_CONFIG" = "no" ; then
40902 echo "*** The pkg-config script could not be found. Make sure it is"
40903 echo "*** in your path, or set the PKG_CONFIG environment variable"
40904 echo "*** to the full path to pkg-config."
40905 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40906 else
40907 PKG_CONFIG_MIN_VERSION=0.9.0
40908 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40909 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
40910echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
40911
40912 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
40913 echo "$as_me:$LINENO: result: yes" >&5
40914echo "${ECHO_T}yes" >&6
40915 succeeded=yes
40916
40917 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
40918echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
40919 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
40920 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
40921echo "${ECHO_T}$HILDON_CFLAGS" >&6
40922
40923 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
40924echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
40925 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
40926 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
40927echo "${ECHO_T}$HILDON_LIBS" >&6
40928 else
40929 HILDON_CFLAGS=""
40930 HILDON_LIBS=""
40931 ## If we have a custom action on failure, don't print errors, but
40932 ## do set a variable so people can do so.
40933 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
40934
40935 fi
40936
40937
40938
40939 else
40940 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40941 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40942 fi
40943 fi
40944
40945 if test $succeeded = yes; then
40946
40947 EXTRALIBS_HILDON="$HILDON_LIBS"
40948 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
40949 cat >>confdefs.h <<\_ACEOF
40950#define wxUSE_LIBHILDON 1
40951_ACEOF
40952
40953
40954 else
40955
40956 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
40957echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
40958 wxUSE_LIBHILDON="no"
40959
40960
40961 fi
40962
40963 fi
40964fi
d1c38808 40965
a848cd7e
SC
40966if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
40967 cat >>confdefs.h <<\_ACEOF
40968#define wxUSE_CMDLINE_PARSER 1
40969_ACEOF
40970
40971fi
40972
40973if test "$wxUSE_STOPWATCH" = "yes"; then
40974 cat >>confdefs.h <<\_ACEOF
40975#define wxUSE_STOPWATCH 1
40976_ACEOF
40977
40978fi
40979
40980if test "$wxUSE_DATETIME" = "yes"; then
40981 cat >>confdefs.h <<\_ACEOF
40982#define wxUSE_DATETIME 1
40983_ACEOF
40984
40985fi
40986
40987if test "$wxUSE_FILE" = "yes"; then
40988 cat >>confdefs.h <<\_ACEOF
40989#define wxUSE_FILE 1
40990_ACEOF
40991
40992fi
40993
40994if test "$wxUSE_FFILE" = "yes"; then
40995 cat >>confdefs.h <<\_ACEOF
40996#define wxUSE_FFILE 1
40997_ACEOF
40998
40999fi
41000
41001if test "$wxUSE_FILESYSTEM" = "yes"; then
41002 cat >>confdefs.h <<\_ACEOF
41003#define wxUSE_FILESYSTEM 1
41004_ACEOF
41005
41006fi
41007
41008if test "$wxUSE_FS_ZIP" = "yes"; then
41009 cat >>confdefs.h <<\_ACEOF
41010#define wxUSE_FS_ZIP 1
41011_ACEOF
41012
41013fi
41014
9e8e867f 41015if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41016 cat >>confdefs.h <<\_ACEOF
9e8e867f 41017#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41018_ACEOF
41019
41020fi
41021
41022if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41023 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41024 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41025echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41026 elif test "$wxUSE_ZLIB" = "no"; then
41027 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41028echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41029 else
41030 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41031#define wxUSE_ZIPSTREAM 1
41032_ACEOF
41033
81f90336 41034 fi
a848cd7e
SC
41035fi
41036
a848cd7e 41037if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41038 if test "$USE_UNIX" != 1; then
41039 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41040echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41041 wxUSE_ON_FATAL_EXCEPTION=no
41042 else
41043 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41044#define wxUSE_ON_FATAL_EXCEPTION 1
41045_ACEOF
41046
18228ab4 41047 fi
a848cd7e
SC
41048fi
41049
eaff0f0d
VZ
41050if test "$wxUSE_STACKWALKER" = "yes"; then
41051 cat >>confdefs.h <<\_ACEOF
41052#define wxUSE_STACKWALKER 1
41053_ACEOF
41054
41055fi
41056
36b6448c 41057if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41058 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41059 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41060echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41061 wxUSE_DEBUGREPORT=no
41062 else
41063 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41064#define wxUSE_DEBUGREPORT 1
41065_ACEOF
41066
21dfc162
MW
41067 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41069 fi
dfe0c803 41070 fi
36b6448c
VZ
41071fi
41072
a848cd7e
SC
41073if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41074 cat >>confdefs.h <<\_ACEOF
41075#define wxUSE_SNGLINST_CHECKER 1
41076_ACEOF
41077
41078fi
41079
41080if test "$wxUSE_BUSYINFO" = "yes"; then
41081 cat >>confdefs.h <<\_ACEOF
41082#define wxUSE_BUSYINFO 1
41083_ACEOF
41084
41085fi
41086
41087if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41088 cat >>confdefs.h <<\_ACEOF
41089#define wxUSE_STD_IOSTREAM 1
41090_ACEOF
41091
41092fi
41093
59746b65
MW
41094if test "$wxUSE_STD_STRING" = "yes"; then
41095 cat >>confdefs.h <<\_ACEOF
41096#define wxUSE_STD_STRING 1
41097_ACEOF
41098
41099fi
41100
07158944
VZ
41101if test "$wxUSE_STDPATHS" = "yes"; then
41102 cat >>confdefs.h <<\_ACEOF
41103#define wxUSE_STDPATHS 1
41104_ACEOF
41105
41106fi
41107
a848cd7e
SC
41108if test "$wxUSE_TEXTBUFFER" = "yes"; then
41109 cat >>confdefs.h <<\_ACEOF
41110#define wxUSE_TEXTBUFFER 1
41111_ACEOF
41112
41113fi
41114
41115if test "$wxUSE_TEXTFILE" = "yes"; then
41116 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41117 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41118echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41119 else
41120 cat >>confdefs.h <<\_ACEOF
41121#define wxUSE_TEXTFILE 1
41122_ACEOF
41123
41124 fi
41125fi
41126
41127if test "$wxUSE_CONFIG" = "yes" ; then
41128 if test "$wxUSE_TEXTFILE" != "yes"; then
41129 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41130echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41131 else
41132 cat >>confdefs.h <<\_ACEOF
41133#define wxUSE_CONFIG 1
89be85c2
VS
41134_ACEOF
41135
41136 cat >>confdefs.h <<\_ACEOF
41137#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41138_ACEOF
41139
41140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41141 fi
41142fi
41143
41144if test "$wxUSE_INTL" = "yes" ; then
41145 if test "$wxUSE_FILE" != "yes"; then
41146 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41147echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41148 else
41149 cat >>confdefs.h <<\_ACEOF
41150#define wxUSE_INTL 1
41151_ACEOF
41152
41153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41154 GUIDIST="$GUIDIST INTL_DIST"
41155 fi
41156fi
41157
41158if test "$wxUSE_LOG" = "yes"; then
41159 cat >>confdefs.h <<\_ACEOF
41160#define wxUSE_LOG 1
41161_ACEOF
41162
41163
41164 if test "$wxUSE_LOGGUI" = "yes"; then
41165 cat >>confdefs.h <<\_ACEOF
41166#define wxUSE_LOGGUI 1
41167_ACEOF
41168
41169 fi
41170
41171 if test "$wxUSE_LOGWINDOW" = "yes"; then
41172 cat >>confdefs.h <<\_ACEOF
41173#define wxUSE_LOGWINDOW 1
41174_ACEOF
41175
41176 fi
41177
41178 if test "$wxUSE_LOGDIALOG" = "yes"; then
41179 cat >>confdefs.h <<\_ACEOF
41180#define wxUSE_LOG_DIALOG 1
41181_ACEOF
41182
41183 fi
0b78747f
MW
41184
41185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41186fi
41187
41188if test "$wxUSE_LONGLONG" = "yes"; then
41189 cat >>confdefs.h <<\_ACEOF
41190#define wxUSE_LONGLONG 1
41191_ACEOF
41192
41193fi
41194
41195if test "$wxUSE_GEOMETRY" = "yes"; then
41196 cat >>confdefs.h <<\_ACEOF
41197#define wxUSE_GEOMETRY 1
41198_ACEOF
41199
41200fi
41201
a848cd7e
SC
41202if test "$wxUSE_STREAMS" = "yes" ; then
41203 cat >>confdefs.h <<\_ACEOF
41204#define wxUSE_STREAMS 1
41205_ACEOF
41206
41207fi
41208
41209
41210if test "$wxUSE_DATETIME" = "yes"; then
41211
41212for ac_func in strptime
41213do
41214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41215echo "$as_me:$LINENO: checking for $ac_func" >&5
41216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41217if eval "test \"\${$as_ac_var+set}\" = set"; then
41218 echo $ECHO_N "(cached) $ECHO_C" >&6
41219else
41220 cat >conftest.$ac_ext <<_ACEOF
41221/* confdefs.h. */
41222_ACEOF
41223cat confdefs.h >>conftest.$ac_ext
41224cat >>conftest.$ac_ext <<_ACEOF
41225/* end confdefs.h. */
ac1cb8d3
VS
41226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41228#define $ac_func innocuous_$ac_func
41229
a848cd7e
SC
41230/* System header to define __stub macros and hopefully few prototypes,
41231 which can conflict with char $ac_func (); below.
41232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41233 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41234
a848cd7e
SC
41235#ifdef __STDC__
41236# include <limits.h>
41237#else
41238# include <assert.h>
41239#endif
ac1cb8d3
VS
41240
41241#undef $ac_func
41242
a848cd7e
SC
41243/* Override any gcc2 internal prototype to avoid an error. */
41244#ifdef __cplusplus
41245extern "C"
41246{
41247#endif
41248/* We use char because int might match the return type of a gcc2
41249 builtin and then its argument prototype would still apply. */
41250char $ac_func ();
41251/* The GNU C library defines this for functions which it implements
41252 to always fail with ENOSYS. Some functions are actually named
41253 something starting with __ and the normal name is an alias. */
41254#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41255choke me
41256#else
41257char (*f) () = $ac_func;
41258#endif
41259#ifdef __cplusplus
41260}
41261#endif
41262
41263int
41264main ()
41265{
41266return f != $ac_func;
41267 ;
41268 return 0;
41269}
41270_ACEOF
41271rm -f conftest.$ac_objext conftest$ac_exeext
41272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41273 (eval $ac_link) 2>conftest.er1
a848cd7e 41274 ac_status=$?
ac1cb8d3
VS
41275 grep -v '^ *+' conftest.er1 >conftest.err
41276 rm -f conftest.er1
41277 cat conftest.err >&5
a848cd7e
SC
41278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41279 (exit $ac_status); } &&
3565d135
RR
41280 { ac_try='test -z "$ac_c_werror_flag"
41281 || test ! -s conftest.err'
ac1cb8d3
VS
41282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41283 (eval $ac_try) 2>&5
41284 ac_status=$?
41285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41286 (exit $ac_status); }; } &&
41287 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41289 (eval $ac_try) 2>&5
41290 ac_status=$?
41291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41292 (exit $ac_status); }; }; then
41293 eval "$as_ac_var=yes"
41294else
41295 echo "$as_me: failed program was:" >&5
41296sed 's/^/| /' conftest.$ac_ext >&5
41297
41298eval "$as_ac_var=no"
41299fi
ac1cb8d3
VS
41300rm -f conftest.err conftest.$ac_objext \
41301 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41302fi
41303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41304echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41305if test `eval echo '${'$as_ac_var'}'` = yes; then
41306 cat >>confdefs.h <<_ACEOF
41307#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41308_ACEOF
41309
41310fi
41311done
41312
f536f005
VZ
41313 if test "$ac_cv_func_strptime" = "yes"; then
41314 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41315echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41316if test "${wx_cv_func_strptime_decl+set}" = set; then
41317 echo $ECHO_N "(cached) $ECHO_C" >&6
41318else
41319
41320
41321
41322 ac_ext=cc
41323ac_cpp='$CXXCPP $CPPFLAGS'
41324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41327
41328 cat >conftest.$ac_ext <<_ACEOF
41329/* confdefs.h. */
41330_ACEOF
41331cat confdefs.h >>conftest.$ac_ext
41332cat >>conftest.$ac_ext <<_ACEOF
41333/* end confdefs.h. */
41334
41335 #include <time.h>
41336
41337int
41338main ()
41339{
41340
41341 struct tm t;
41342 strptime("foo", "bar", &t);
41343
41344 ;
41345 return 0;
41346}
41347_ACEOF
41348rm -f conftest.$ac_objext
41349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41350 (eval $ac_compile) 2>conftest.er1
41351 ac_status=$?
41352 grep -v '^ *+' conftest.er1 >conftest.err
41353 rm -f conftest.er1
41354 cat conftest.err >&5
41355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41356 (exit $ac_status); } &&
3565d135
RR
41357 { ac_try='test -z "$ac_cxx_werror_flag"
41358 || test ! -s conftest.err'
f536f005
VZ
41359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41360 (eval $ac_try) 2>&5
41361 ac_status=$?
41362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41363 (exit $ac_status); }; } &&
41364 { ac_try='test -s conftest.$ac_objext'
41365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41366 (eval $ac_try) 2>&5
41367 ac_status=$?
41368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41369 (exit $ac_status); }; }; then
41370 wx_cv_func_strptime_decl=yes
41371else
41372 echo "$as_me: failed program was:" >&5
41373sed 's/^/| /' conftest.$ac_ext >&5
41374
41375wx_cv_func_strptime_decl=no
41376
41377fi
41378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41379 ac_ext=c
41380ac_cpp='$CPP $CPPFLAGS'
41381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41383ac_compiler_gnu=$ac_cv_c_compiler_gnu
41384
41385
41386
41387fi
41388echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41389echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41390 fi
41391 if test "$wx_cv_func_strptime_decl" = "yes"; then
41392 cat >>confdefs.h <<\_ACEOF
41393#define HAVE_STRPTIME_DECL 1
41394_ACEOF
41395
41396 fi
a848cd7e
SC
41397
41398 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41399echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41400if test "${wx_cv_var_timezone+set}" = set; then
41401 echo $ECHO_N "(cached) $ECHO_C" >&6
41402else
41403
41404 cat >conftest.$ac_ext <<_ACEOF
41405/* confdefs.h. */
41406_ACEOF
41407cat confdefs.h >>conftest.$ac_ext
41408cat >>conftest.$ac_ext <<_ACEOF
41409/* end confdefs.h. */
41410
41411 #include <time.h>
41412
41413int
41414main ()
41415{
41416
41417 int tz;
41418 tz = timezone;
41419
41420 ;
41421 return 0;
41422}
41423_ACEOF
41424rm -f conftest.$ac_objext
41425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41426 (eval $ac_compile) 2>conftest.er1
a848cd7e 41427 ac_status=$?
ac1cb8d3
VS
41428 grep -v '^ *+' conftest.er1 >conftest.err
41429 rm -f conftest.er1
41430 cat conftest.err >&5
a848cd7e
SC
41431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41432 (exit $ac_status); } &&
3565d135
RR
41433 { ac_try='test -z "$ac_c_werror_flag"
41434 || test ! -s conftest.err'
ac1cb8d3
VS
41435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41436 (eval $ac_try) 2>&5
41437 ac_status=$?
41438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41439 (exit $ac_status); }; } &&
41440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41442 (eval $ac_try) 2>&5
41443 ac_status=$?
41444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41445 (exit $ac_status); }; }; then
41446
41447 wx_cv_var_timezone=timezone
41448
41449else
41450 echo "$as_me: failed program was:" >&5
41451sed 's/^/| /' conftest.$ac_ext >&5
41452
41453
41454 cat >conftest.$ac_ext <<_ACEOF
41455/* confdefs.h. */
41456_ACEOF
41457cat confdefs.h >>conftest.$ac_ext
41458cat >>conftest.$ac_ext <<_ACEOF
41459/* end confdefs.h. */
41460
41461 #include <time.h>
41462
41463int
41464main ()
41465{
41466
41467 int tz;
41468 tz = _timezone;
41469
41470 ;
41471 return 0;
41472}
41473_ACEOF
41474rm -f conftest.$ac_objext
41475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41476 (eval $ac_compile) 2>conftest.er1
a848cd7e 41477 ac_status=$?
ac1cb8d3
VS
41478 grep -v '^ *+' conftest.er1 >conftest.err
41479 rm -f conftest.er1
41480 cat conftest.err >&5
a848cd7e
SC
41481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482 (exit $ac_status); } &&
3565d135
RR
41483 { ac_try='test -z "$ac_c_werror_flag"
41484 || test ! -s conftest.err'
ac1cb8d3
VS
41485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41486 (eval $ac_try) 2>&5
41487 ac_status=$?
41488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41489 (exit $ac_status); }; } &&
41490 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41492 (eval $ac_try) 2>&5
41493 ac_status=$?
41494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41495 (exit $ac_status); }; }; then
41496
41497 wx_cv_var_timezone=_timezone
41498
41499else
41500 echo "$as_me: failed program was:" >&5
41501sed 's/^/| /' conftest.$ac_ext >&5
41502
41503
41504 cat >conftest.$ac_ext <<_ACEOF
41505/* confdefs.h. */
41506_ACEOF
41507cat confdefs.h >>conftest.$ac_ext
41508cat >>conftest.$ac_ext <<_ACEOF
41509/* end confdefs.h. */
41510
41511 #include <time.h>
41512
41513int
41514main ()
41515{
41516
41517 int tz;
41518 tz = __timezone;
41519
41520 ;
41521 return 0;
41522}
41523_ACEOF
41524rm -f conftest.$ac_objext
41525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41526 (eval $ac_compile) 2>conftest.er1
a848cd7e 41527 ac_status=$?
ac1cb8d3
VS
41528 grep -v '^ *+' conftest.er1 >conftest.err
41529 rm -f conftest.er1
41530 cat conftest.err >&5
a848cd7e
SC
41531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532 (exit $ac_status); } &&
3565d135
RR
41533 { ac_try='test -z "$ac_c_werror_flag"
41534 || test ! -s conftest.err'
ac1cb8d3
VS
41535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41536 (eval $ac_try) 2>&5
41537 ac_status=$?
41538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41539 (exit $ac_status); }; } &&
41540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41542 (eval $ac_try) 2>&5
41543 ac_status=$?
41544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41545 (exit $ac_status); }; }; then
41546
41547 wx_cv_var_timezone=__timezone
41548
41549else
41550 echo "$as_me: failed program was:" >&5
41551sed 's/^/| /' conftest.$ac_ext >&5
41552
41553
41554 if test "$USE_DOS" = 0 ; then
41555 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41556echo "$as_me: WARNING: no timezone variable" >&2;}
41557 fi
41558
41559
41560fi
ac1cb8d3 41561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41562
41563
41564fi
ac1cb8d3 41565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41566
41567
41568fi
ac1cb8d3 41569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41570
41571
41572fi
41573echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41574echo "${ECHO_T}$wx_cv_var_timezone" >&6
41575
41576 if test "x$wx_cv_var_timezone" != x ; then
41577 cat >>confdefs.h <<_ACEOF
41578#define WX_TIMEZONE $wx_cv_var_timezone
41579_ACEOF
41580
41581 fi
41582
41583
41584for ac_func in localtime
41585do
41586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41587echo "$as_me:$LINENO: checking for $ac_func" >&5
41588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41589if eval "test \"\${$as_ac_var+set}\" = set"; then
41590 echo $ECHO_N "(cached) $ECHO_C" >&6
41591else
41592 cat >conftest.$ac_ext <<_ACEOF
41593/* confdefs.h. */
41594_ACEOF
41595cat confdefs.h >>conftest.$ac_ext
41596cat >>conftest.$ac_ext <<_ACEOF
41597/* end confdefs.h. */
ac1cb8d3
VS
41598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41600#define $ac_func innocuous_$ac_func
41601
a848cd7e
SC
41602/* System header to define __stub macros and hopefully few prototypes,
41603 which can conflict with char $ac_func (); below.
41604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41605 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41606
a848cd7e
SC
41607#ifdef __STDC__
41608# include <limits.h>
41609#else
41610# include <assert.h>
41611#endif
ac1cb8d3
VS
41612
41613#undef $ac_func
41614
a848cd7e
SC
41615/* Override any gcc2 internal prototype to avoid an error. */
41616#ifdef __cplusplus
41617extern "C"
41618{
41619#endif
41620/* We use char because int might match the return type of a gcc2
41621 builtin and then its argument prototype would still apply. */
41622char $ac_func ();
41623/* The GNU C library defines this for functions which it implements
41624 to always fail with ENOSYS. Some functions are actually named
41625 something starting with __ and the normal name is an alias. */
41626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41627choke me
41628#else
41629char (*f) () = $ac_func;
41630#endif
41631#ifdef __cplusplus
41632}
41633#endif
41634
41635int
41636main ()
41637{
41638return f != $ac_func;
41639 ;
41640 return 0;
41641}
41642_ACEOF
41643rm -f conftest.$ac_objext conftest$ac_exeext
41644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41645 (eval $ac_link) 2>conftest.er1
a848cd7e 41646 ac_status=$?
ac1cb8d3
VS
41647 grep -v '^ *+' conftest.er1 >conftest.err
41648 rm -f conftest.er1
41649 cat conftest.err >&5
a848cd7e
SC
41650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41651 (exit $ac_status); } &&
3565d135
RR
41652 { ac_try='test -z "$ac_c_werror_flag"
41653 || test ! -s conftest.err'
ac1cb8d3
VS
41654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41655 (eval $ac_try) 2>&5
41656 ac_status=$?
41657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41658 (exit $ac_status); }; } &&
41659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41661 (eval $ac_try) 2>&5
41662 ac_status=$?
41663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41664 (exit $ac_status); }; }; then
41665 eval "$as_ac_var=yes"
41666else
41667 echo "$as_me: failed program was:" >&5
41668sed 's/^/| /' conftest.$ac_ext >&5
41669
41670eval "$as_ac_var=no"
41671fi
ac1cb8d3
VS
41672rm -f conftest.err conftest.$ac_objext \
41673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41674fi
41675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41677if test `eval echo '${'$as_ac_var'}'` = yes; then
41678 cat >>confdefs.h <<_ACEOF
41679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41680_ACEOF
41681
41682fi
41683done
41684
41685
41686 if test "$ac_cv_func_localtime" = "yes"; then
41687 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41688echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41689if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41690 echo $ECHO_N "(cached) $ECHO_C" >&6
41691else
41692
41693 cat >conftest.$ac_ext <<_ACEOF
41694/* confdefs.h. */
41695_ACEOF
41696cat confdefs.h >>conftest.$ac_ext
41697cat >>conftest.$ac_ext <<_ACEOF
41698/* end confdefs.h. */
41699
41700 #include <time.h>
41701
41702int
41703main ()
41704{
41705
41706 struct tm tm;
41707 tm.tm_gmtoff++;
41708
41709 ;
41710 return 0;
41711}
41712_ACEOF
41713rm -f conftest.$ac_objext
41714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41715 (eval $ac_compile) 2>conftest.er1
a848cd7e 41716 ac_status=$?
ac1cb8d3
VS
41717 grep -v '^ *+' conftest.er1 >conftest.err
41718 rm -f conftest.er1
41719 cat conftest.err >&5
a848cd7e
SC
41720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41721 (exit $ac_status); } &&
3565d135
RR
41722 { ac_try='test -z "$ac_c_werror_flag"
41723 || test ! -s conftest.err'
ac1cb8d3
VS
41724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41725 (eval $ac_try) 2>&5
41726 ac_status=$?
41727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41728 (exit $ac_status); }; } &&
41729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41731 (eval $ac_try) 2>&5
41732 ac_status=$?
41733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41734 (exit $ac_status); }; }; then
41735
41736 wx_cv_struct_tm_has_gmtoff=yes
41737
41738else
41739 echo "$as_me: failed program was:" >&5
41740sed 's/^/| /' conftest.$ac_ext >&5
41741
41742wx_cv_struct_tm_has_gmtoff=no
41743
41744fi
ac1cb8d3 41745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41746
41747fi
41748echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
41749echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
41750 fi
41751
41752 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
41753 cat >>confdefs.h <<\_ACEOF
41754#define WX_GMTOFF_IN_TM 1
41755_ACEOF
41756
41757 fi
41758
41759
41760
41761for ac_func in gettimeofday ftime
41762do
41763as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41764echo "$as_me:$LINENO: checking for $ac_func" >&5
41765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41766if eval "test \"\${$as_ac_var+set}\" = set"; then
41767 echo $ECHO_N "(cached) $ECHO_C" >&6
41768else
41769 cat >conftest.$ac_ext <<_ACEOF
41770/* confdefs.h. */
41771_ACEOF
41772cat confdefs.h >>conftest.$ac_ext
41773cat >>conftest.$ac_ext <<_ACEOF
41774/* end confdefs.h. */
ac1cb8d3
VS
41775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41777#define $ac_func innocuous_$ac_func
41778
a848cd7e
SC
41779/* System header to define __stub macros and hopefully few prototypes,
41780 which can conflict with char $ac_func (); below.
41781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41782 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41783
a848cd7e
SC
41784#ifdef __STDC__
41785# include <limits.h>
41786#else
41787# include <assert.h>
41788#endif
ac1cb8d3
VS
41789
41790#undef $ac_func
41791
a848cd7e
SC
41792/* Override any gcc2 internal prototype to avoid an error. */
41793#ifdef __cplusplus
41794extern "C"
41795{
41796#endif
41797/* We use char because int might match the return type of a gcc2
41798 builtin and then its argument prototype would still apply. */
41799char $ac_func ();
41800/* The GNU C library defines this for functions which it implements
41801 to always fail with ENOSYS. Some functions are actually named
41802 something starting with __ and the normal name is an alias. */
41803#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41804choke me
41805#else
41806char (*f) () = $ac_func;
41807#endif
41808#ifdef __cplusplus
41809}
41810#endif
41811
41812int
41813main ()
41814{
41815return f != $ac_func;
41816 ;
41817 return 0;
41818}
41819_ACEOF
41820rm -f conftest.$ac_objext conftest$ac_exeext
41821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41822 (eval $ac_link) 2>conftest.er1
a848cd7e 41823 ac_status=$?
ac1cb8d3
VS
41824 grep -v '^ *+' conftest.er1 >conftest.err
41825 rm -f conftest.er1
41826 cat conftest.err >&5
a848cd7e
SC
41827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41828 (exit $ac_status); } &&
3565d135
RR
41829 { ac_try='test -z "$ac_c_werror_flag"
41830 || test ! -s conftest.err'
ac1cb8d3
VS
41831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41832 (eval $ac_try) 2>&5
41833 ac_status=$?
41834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41835 (exit $ac_status); }; } &&
41836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41838 (eval $ac_try) 2>&5
41839 ac_status=$?
41840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41841 (exit $ac_status); }; }; then
41842 eval "$as_ac_var=yes"
41843else
41844 echo "$as_me: failed program was:" >&5
41845sed 's/^/| /' conftest.$ac_ext >&5
41846
41847eval "$as_ac_var=no"
41848fi
ac1cb8d3
VS
41849rm -f conftest.err conftest.$ac_objext \
41850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41851fi
41852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41853echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41854if test `eval echo '${'$as_ac_var'}'` = yes; then
41855 cat >>confdefs.h <<_ACEOF
41856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41857_ACEOF
41858 break
41859fi
41860done
41861
41862
41863 if test "$ac_cv_func_gettimeofday" = "yes"; then
41864 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
41865echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
41866if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
41867 echo $ECHO_N "(cached) $ECHO_C" >&6
41868else
41869
41870
41871
41872 ac_ext=cc
41873ac_cpp='$CXXCPP $CPPFLAGS'
41874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41877
41878
41879 cat >conftest.$ac_ext <<_ACEOF
41880/* confdefs.h. */
41881_ACEOF
41882cat confdefs.h >>conftest.$ac_ext
41883cat >>conftest.$ac_ext <<_ACEOF
41884/* end confdefs.h. */
41885
41886 #include <sys/time.h>
41887 #include <unistd.h>
41888
41889int
41890main ()
41891{
41892
41893 struct timeval tv;
41894 gettimeofday(&tv, NULL);
41895
41896 ;
41897 return 0;
41898}
41899_ACEOF
41900rm -f conftest.$ac_objext
41901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41902 (eval $ac_compile) 2>conftest.er1
a848cd7e 41903 ac_status=$?
ac1cb8d3
VS
41904 grep -v '^ *+' conftest.er1 >conftest.err
41905 rm -f conftest.er1
41906 cat conftest.err >&5
a848cd7e
SC
41907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41908 (exit $ac_status); } &&
3565d135
RR
41909 { ac_try='test -z "$ac_cxx_werror_flag"
41910 || test ! -s conftest.err'
ac1cb8d3
VS
41911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41912 (eval $ac_try) 2>&5
41913 ac_status=$?
41914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41915 (exit $ac_status); }; } &&
41916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41918 (eval $ac_try) 2>&5
41919 ac_status=$?
41920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41921 (exit $ac_status); }; }; then
41922 wx_cv_func_gettimeofday_has_2_args=yes
41923else
41924 echo "$as_me: failed program was:" >&5
41925sed 's/^/| /' conftest.$ac_ext >&5
41926
41927cat >conftest.$ac_ext <<_ACEOF
41928/* confdefs.h. */
41929_ACEOF
41930cat confdefs.h >>conftest.$ac_ext
41931cat >>conftest.$ac_ext <<_ACEOF
41932/* end confdefs.h. */
41933
41934 #include <sys/time.h>
41935 #include <unistd.h>
41936
41937int
41938main ()
41939{
41940
41941 struct timeval tv;
41942 gettimeofday(&tv);
41943
41944 ;
41945 return 0;
41946}
41947_ACEOF
41948rm -f conftest.$ac_objext
41949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41950 (eval $ac_compile) 2>conftest.er1
a848cd7e 41951 ac_status=$?
ac1cb8d3
VS
41952 grep -v '^ *+' conftest.er1 >conftest.err
41953 rm -f conftest.er1
41954 cat conftest.err >&5
a848cd7e
SC
41955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41956 (exit $ac_status); } &&
3565d135
RR
41957 { ac_try='test -z "$ac_cxx_werror_flag"
41958 || test ! -s conftest.err'
ac1cb8d3
VS
41959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41960 (eval $ac_try) 2>&5
41961 ac_status=$?
41962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41963 (exit $ac_status); }; } &&
41964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41966 (eval $ac_try) 2>&5
41967 ac_status=$?
41968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41969 (exit $ac_status); }; }; then
41970 wx_cv_func_gettimeofday_has_2_args=no
41971else
41972 echo "$as_me: failed program was:" >&5
41973sed 's/^/| /' conftest.$ac_ext >&5
41974
41975
41976 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
41977echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
41978 wx_cv_func_gettimeofday_has_2_args=unknown
41979
41980
41981fi
ac1cb8d3 41982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41983
41984fi
ac1cb8d3 41985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41986 ac_ext=c
41987ac_cpp='$CPP $CPPFLAGS'
41988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41990ac_compiler_gnu=$ac_cv_c_compiler_gnu
41991
41992
41993fi
41994echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
41995echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
41996
41997 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
41998 cat >>confdefs.h <<\_ACEOF
41999#define WX_GETTIMEOFDAY_NO_TZ 1
42000_ACEOF
42001
42002 fi
42003 fi
42004
42005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42006fi
42007
42008
42009if test "$wxUSE_SOCKETS" = "yes"; then
42010 if test "$wxUSE_MGL" = "1"; then
42011 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42012echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42013 wxUSE_SOCKETS="no"
42014 fi
42015fi
42016
42017if test "$wxUSE_SOCKETS" = "yes"; then
42018 if test "$TOOLKIT" != "MSW"; then
42019 echo "$as_me:$LINENO: checking for socket" >&5
42020echo $ECHO_N "checking for socket... $ECHO_C" >&6
42021if test "${ac_cv_func_socket+set}" = set; then
42022 echo $ECHO_N "(cached) $ECHO_C" >&6
42023else
42024 cat >conftest.$ac_ext <<_ACEOF
42025/* confdefs.h. */
42026_ACEOF
42027cat confdefs.h >>conftest.$ac_ext
42028cat >>conftest.$ac_ext <<_ACEOF
42029/* end confdefs.h. */
ac1cb8d3
VS
42030/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42032#define socket innocuous_socket
42033
a848cd7e
SC
42034/* System header to define __stub macros and hopefully few prototypes,
42035 which can conflict with char socket (); below.
42036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42037 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42038
a848cd7e
SC
42039#ifdef __STDC__
42040# include <limits.h>
42041#else
42042# include <assert.h>
42043#endif
ac1cb8d3
VS
42044
42045#undef socket
42046
a848cd7e
SC
42047/* Override any gcc2 internal prototype to avoid an error. */
42048#ifdef __cplusplus
42049extern "C"
42050{
42051#endif
42052/* We use char because int might match the return type of a gcc2
42053 builtin and then its argument prototype would still apply. */
42054char socket ();
42055/* The GNU C library defines this for functions which it implements
42056 to always fail with ENOSYS. Some functions are actually named
42057 something starting with __ and the normal name is an alias. */
42058#if defined (__stub_socket) || defined (__stub___socket)
42059choke me
42060#else
42061char (*f) () = socket;
42062#endif
42063#ifdef __cplusplus
42064}
42065#endif
42066
42067int
42068main ()
42069{
42070return f != socket;
42071 ;
42072 return 0;
42073}
42074_ACEOF
42075rm -f conftest.$ac_objext conftest$ac_exeext
42076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42077 (eval $ac_link) 2>conftest.er1
a848cd7e 42078 ac_status=$?
ac1cb8d3
VS
42079 grep -v '^ *+' conftest.er1 >conftest.err
42080 rm -f conftest.er1
42081 cat conftest.err >&5
a848cd7e
SC
42082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42083 (exit $ac_status); } &&
3565d135
RR
42084 { ac_try='test -z "$ac_c_werror_flag"
42085 || test ! -s conftest.err'
ac1cb8d3
VS
42086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42087 (eval $ac_try) 2>&5
42088 ac_status=$?
42089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42090 (exit $ac_status); }; } &&
42091 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42093 (eval $ac_try) 2>&5
42094 ac_status=$?
42095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42096 (exit $ac_status); }; }; then
42097 ac_cv_func_socket=yes
42098else
42099 echo "$as_me: failed program was:" >&5
42100sed 's/^/| /' conftest.$ac_ext >&5
42101
42102ac_cv_func_socket=no
42103fi
ac1cb8d3
VS
42104rm -f conftest.err conftest.$ac_objext \
42105 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42106fi
42107echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42108echo "${ECHO_T}$ac_cv_func_socket" >&6
42109if test $ac_cv_func_socket = yes; then
42110 :
42111else
42112
42113 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42114echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42115if test "${ac_cv_lib_socket_socket+set}" = set; then
42116 echo $ECHO_N "(cached) $ECHO_C" >&6
42117else
42118 ac_check_lib_save_LIBS=$LIBS
42119LIBS="-lsocket $LIBS"
42120cat >conftest.$ac_ext <<_ACEOF
42121/* confdefs.h. */
42122_ACEOF
42123cat confdefs.h >>conftest.$ac_ext
42124cat >>conftest.$ac_ext <<_ACEOF
42125/* end confdefs.h. */
42126
42127/* Override any gcc2 internal prototype to avoid an error. */
42128#ifdef __cplusplus
42129extern "C"
42130#endif
42131/* We use char because int might match the return type of a gcc2
42132 builtin and then its argument prototype would still apply. */
42133char socket ();
42134int
42135main ()
42136{
42137socket ();
42138 ;
42139 return 0;
42140}
42141_ACEOF
42142rm -f conftest.$ac_objext conftest$ac_exeext
42143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42144 (eval $ac_link) 2>conftest.er1
a848cd7e 42145 ac_status=$?
ac1cb8d3
VS
42146 grep -v '^ *+' conftest.er1 >conftest.err
42147 rm -f conftest.er1
42148 cat conftest.err >&5
a848cd7e
SC
42149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42150 (exit $ac_status); } &&
3565d135
RR
42151 { ac_try='test -z "$ac_c_werror_flag"
42152 || test ! -s conftest.err'
ac1cb8d3
VS
42153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42154 (eval $ac_try) 2>&5
42155 ac_status=$?
42156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42157 (exit $ac_status); }; } &&
42158 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42160 (eval $ac_try) 2>&5
42161 ac_status=$?
42162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42163 (exit $ac_status); }; }; then
42164 ac_cv_lib_socket_socket=yes
42165else
42166 echo "$as_me: failed program was:" >&5
42167sed 's/^/| /' conftest.$ac_ext >&5
42168
42169ac_cv_lib_socket_socket=no
42170fi
ac1cb8d3
VS
42171rm -f conftest.err conftest.$ac_objext \
42172 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42173LIBS=$ac_check_lib_save_LIBS
42174fi
42175echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42176echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42177if test $ac_cv_lib_socket_socket = yes; then
42178 if test "$INET_LINK" != " -lsocket"; then
42179 INET_LINK="$INET_LINK -lsocket"
42180 fi
42181else
42182
42183 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42184echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42185 wxUSE_SOCKETS=no
42186
42187
42188fi
42189
42190
42191
42192fi
42193
42194 fi
42195fi
42196
42197if test "$wxUSE_SOCKETS" = "yes" ; then
42198 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
42199 ac_ext=cc
42200ac_cpp='$CXXCPP $CPPFLAGS'
42201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42204
42205 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42206echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42207if test "${wx_cv_type_getsockname3+set}" = set; then
42208 echo $ECHO_N "(cached) $ECHO_C" >&6
42209else
42210
42211 cat >conftest.$ac_ext <<_ACEOF
42212/* confdefs.h. */
42213_ACEOF
42214cat confdefs.h >>conftest.$ac_ext
42215cat >>conftest.$ac_ext <<_ACEOF
42216/* end confdefs.h. */
42217
42218 #include <sys/types.h>
42219 #include <sys/socket.h>
42220
42221int
42222main ()
42223{
42224
42225 socklen_t len;
42226 getsockname(0, 0, &len);
42227
42228 ;
42229 return 0;
42230}
42231_ACEOF
42232rm -f conftest.$ac_objext
42233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42234 (eval $ac_compile) 2>conftest.er1
a848cd7e 42235 ac_status=$?
ac1cb8d3
VS
42236 grep -v '^ *+' conftest.er1 >conftest.err
42237 rm -f conftest.er1
42238 cat conftest.err >&5
a848cd7e
SC
42239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42240 (exit $ac_status); } &&
3565d135
RR
42241 { ac_try='test -z "$ac_cxx_werror_flag"
42242 || test ! -s conftest.err'
ac1cb8d3
VS
42243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42244 (eval $ac_try) 2>&5
42245 ac_status=$?
42246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42247 (exit $ac_status); }; } &&
42248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42250 (eval $ac_try) 2>&5
42251 ac_status=$?
42252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42253 (exit $ac_status); }; }; then
42254 wx_cv_type_getsockname3=socklen_t
42255else
42256 echo "$as_me: failed program was:" >&5
42257sed 's/^/| /' conftest.$ac_ext >&5
42258
42259
6459a506 42260 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42261 if test "$GCC" = yes ; then
c92ad099 42262 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42263 fi
42264
42265 cat >conftest.$ac_ext <<_ACEOF
42266/* confdefs.h. */
42267_ACEOF
42268cat confdefs.h >>conftest.$ac_ext
42269cat >>conftest.$ac_ext <<_ACEOF
42270/* end confdefs.h. */
42271
42272 #include <sys/types.h>
42273 #include <sys/socket.h>
42274
42275int
42276main ()
42277{
42278
42279 size_t len;
42280 getsockname(0, 0, &len);
42281
42282 ;
42283 return 0;
42284}
42285_ACEOF
42286rm -f conftest.$ac_objext
42287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42288 (eval $ac_compile) 2>conftest.er1
a848cd7e 42289 ac_status=$?
ac1cb8d3
VS
42290 grep -v '^ *+' conftest.er1 >conftest.err
42291 rm -f conftest.er1
42292 cat conftest.err >&5
a848cd7e
SC
42293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42294 (exit $ac_status); } &&
3565d135
RR
42295 { ac_try='test -z "$ac_cxx_werror_flag"
42296 || test ! -s conftest.err'
ac1cb8d3
VS
42297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42298 (eval $ac_try) 2>&5
42299 ac_status=$?
42300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42301 (exit $ac_status); }; } &&
42302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42304 (eval $ac_try) 2>&5
42305 ac_status=$?
42306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42307 (exit $ac_status); }; }; then
42308 wx_cv_type_getsockname3=size_t
42309else
42310 echo "$as_me: failed program was:" >&5
42311sed 's/^/| /' conftest.$ac_ext >&5
42312
42313cat >conftest.$ac_ext <<_ACEOF
42314/* confdefs.h. */
42315_ACEOF
42316cat confdefs.h >>conftest.$ac_ext
42317cat >>conftest.$ac_ext <<_ACEOF
42318/* end confdefs.h. */
42319
42320 #include <sys/types.h>
42321 #include <sys/socket.h>
42322
42323int
42324main ()
42325{
42326
42327 int len;
42328 getsockname(0, 0, &len);
42329
42330 ;
42331 return 0;
42332}
42333_ACEOF
42334rm -f conftest.$ac_objext
42335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42336 (eval $ac_compile) 2>conftest.er1
a848cd7e 42337 ac_status=$?
ac1cb8d3
VS
42338 grep -v '^ *+' conftest.er1 >conftest.err
42339 rm -f conftest.er1
42340 cat conftest.err >&5
a848cd7e
SC
42341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42342 (exit $ac_status); } &&
3565d135
RR
42343 { ac_try='test -z "$ac_cxx_werror_flag"
42344 || test ! -s conftest.err'
ac1cb8d3
VS
42345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42346 (eval $ac_try) 2>&5
42347 ac_status=$?
42348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42349 (exit $ac_status); }; } &&
42350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42352 (eval $ac_try) 2>&5
42353 ac_status=$?
42354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42355 (exit $ac_status); }; }; then
42356 wx_cv_type_getsockname3=int
42357else
42358 echo "$as_me: failed program was:" >&5
42359sed 's/^/| /' conftest.$ac_ext >&5
42360
42361wx_cv_type_getsockname3=unknown
42362
42363fi
ac1cb8d3 42364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42365
42366fi
ac1cb8d3 42367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42368
6459a506 42369 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42370
42371
42372fi
ac1cb8d3 42373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42374
42375fi
42376echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42377echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42378
42379 if test "$wx_cv_type_getsockname3" = "unknown"; then
42380 wxUSE_SOCKETS=no
42381 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42382echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42383 else
42384 cat >>confdefs.h <<_ACEOF
9e03e02d 42385#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42386_ACEOF
42387
42388 fi
42389 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42390echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42391if test "${wx_cv_type_getsockopt5+set}" = set; then
42392 echo $ECHO_N "(cached) $ECHO_C" >&6
42393else
42394
42395 cat >conftest.$ac_ext <<_ACEOF
42396/* confdefs.h. */
42397_ACEOF
42398cat confdefs.h >>conftest.$ac_ext
42399cat >>conftest.$ac_ext <<_ACEOF
42400/* end confdefs.h. */
42401
42402 #include <sys/types.h>
42403 #include <sys/socket.h>
42404
42405int
42406main ()
42407{
42408
42409 socklen_t len;
42410 getsockopt(0, 0, 0, 0, &len);
42411
42412 ;
42413 return 0;
42414}
42415_ACEOF
42416rm -f conftest.$ac_objext
42417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42418 (eval $ac_compile) 2>conftest.er1
42419 ac_status=$?
42420 grep -v '^ *+' conftest.er1 >conftest.err
42421 rm -f conftest.er1
42422 cat conftest.err >&5
42423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42424 (exit $ac_status); } &&
3565d135
RR
42425 { ac_try='test -z "$ac_cxx_werror_flag"
42426 || test ! -s conftest.err'
5b674b9d
DE
42427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42428 (eval $ac_try) 2>&5
42429 ac_status=$?
42430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42431 (exit $ac_status); }; } &&
42432 { ac_try='test -s conftest.$ac_objext'
42433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42434 (eval $ac_try) 2>&5
42435 ac_status=$?
42436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42437 (exit $ac_status); }; }; then
42438 wx_cv_type_getsockopt5=socklen_t
42439else
42440 echo "$as_me: failed program was:" >&5
42441sed 's/^/| /' conftest.$ac_ext >&5
42442
42443
6459a506 42444 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42445 if test "$GCC" = yes ; then
c92ad099 42446 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42447 fi
42448
42449 cat >conftest.$ac_ext <<_ACEOF
42450/* confdefs.h. */
42451_ACEOF
42452cat confdefs.h >>conftest.$ac_ext
42453cat >>conftest.$ac_ext <<_ACEOF
42454/* end confdefs.h. */
42455
42456 #include <sys/types.h>
42457 #include <sys/socket.h>
42458
42459int
42460main ()
42461{
42462
42463 size_t len;
42464 getsockopt(0, 0, 0, 0, &len);
42465
42466 ;
42467 return 0;
42468}
42469_ACEOF
42470rm -f conftest.$ac_objext
42471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42472 (eval $ac_compile) 2>conftest.er1
42473 ac_status=$?
42474 grep -v '^ *+' conftest.er1 >conftest.err
42475 rm -f conftest.er1
42476 cat conftest.err >&5
42477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42478 (exit $ac_status); } &&
3565d135
RR
42479 { ac_try='test -z "$ac_cxx_werror_flag"
42480 || test ! -s conftest.err'
5b674b9d
DE
42481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42482 (eval $ac_try) 2>&5
42483 ac_status=$?
42484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485 (exit $ac_status); }; } &&
42486 { ac_try='test -s conftest.$ac_objext'
42487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42488 (eval $ac_try) 2>&5
42489 ac_status=$?
42490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42491 (exit $ac_status); }; }; then
42492 wx_cv_type_getsockopt5=size_t
42493else
42494 echo "$as_me: failed program was:" >&5
42495sed 's/^/| /' conftest.$ac_ext >&5
42496
42497cat >conftest.$ac_ext <<_ACEOF
42498/* confdefs.h. */
42499_ACEOF
42500cat confdefs.h >>conftest.$ac_ext
42501cat >>conftest.$ac_ext <<_ACEOF
42502/* end confdefs.h. */
42503
42504 #include <sys/types.h>
42505 #include <sys/socket.h>
42506
42507int
42508main ()
42509{
42510
42511 int len;
42512 getsockopt(0, 0, 0, 0, &len);
42513
42514 ;
42515 return 0;
42516}
42517_ACEOF
42518rm -f conftest.$ac_objext
42519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42520 (eval $ac_compile) 2>conftest.er1
42521 ac_status=$?
42522 grep -v '^ *+' conftest.er1 >conftest.err
42523 rm -f conftest.er1
42524 cat conftest.err >&5
42525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42526 (exit $ac_status); } &&
3565d135
RR
42527 { ac_try='test -z "$ac_cxx_werror_flag"
42528 || test ! -s conftest.err'
5b674b9d
DE
42529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42530 (eval $ac_try) 2>&5
42531 ac_status=$?
42532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42533 (exit $ac_status); }; } &&
42534 { ac_try='test -s conftest.$ac_objext'
42535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42536 (eval $ac_try) 2>&5
42537 ac_status=$?
42538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42539 (exit $ac_status); }; }; then
42540 wx_cv_type_getsockopt5=int
42541else
42542 echo "$as_me: failed program was:" >&5
42543sed 's/^/| /' conftest.$ac_ext >&5
42544
42545wx_cv_type_getsockopt5=unknown
42546
42547fi
42548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42549
42550fi
42551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42552
6459a506 42553 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
42554
42555
42556fi
42557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42558
42559fi
42560echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42561echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42562
42563 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42564 wxUSE_SOCKETS=no
42565 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42566echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42567 else
42568 cat >>confdefs.h <<_ACEOF
42569#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
42570_ACEOF
42571
42572 fi
4d4ff94c
VZ
42573 ac_ext=c
42574ac_cpp='$CPP $CPPFLAGS'
42575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42577ac_compiler_gnu=$ac_cv_c_compiler_gnu
42578
a848cd7e
SC
42579 fi
42580fi
42581
42582if test "$wxUSE_SOCKETS" = "yes" ; then
42583 cat >>confdefs.h <<\_ACEOF
42584#define wxUSE_SOCKETS 1
42585_ACEOF
42586
42587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42588fi
42589
42590if test "$wxUSE_PROTOCOL" = "yes"; then
42591 if test "$wxUSE_SOCKETS" != "yes"; then
42592 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42593echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42594 wxUSE_PROTOCOL=no
42595 fi
42596fi
42597
42598if test "$wxUSE_PROTOCOL" = "yes"; then
42599 cat >>confdefs.h <<\_ACEOF
42600#define wxUSE_PROTOCOL 1
42601_ACEOF
42602
42603
42604 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42605 cat >>confdefs.h <<\_ACEOF
42606#define wxUSE_PROTOCOL_HTTP 1
42607_ACEOF
42608
42609 fi
42610 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42611 cat >>confdefs.h <<\_ACEOF
42612#define wxUSE_PROTOCOL_FTP 1
42613_ACEOF
42614
42615 fi
42616 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42617 cat >>confdefs.h <<\_ACEOF
42618#define wxUSE_PROTOCOL_FILE 1
42619_ACEOF
42620
42621 fi
42622else
42623 if test "$wxUSE_FS_INET" = "yes"; then
42624 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42625echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42626 wxUSE_FS_INET="no"
42627 fi
42628fi
42629
42630if test "$wxUSE_URL" = "yes"; then
42631 if test "$wxUSE_PROTOCOL" != "yes"; then
42632 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42633echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42634 wxUSE_URL=no
42635 fi
42636 if test "$wxUSE_URL" = "yes"; then
42637 cat >>confdefs.h <<\_ACEOF
42638#define wxUSE_URL 1
42639_ACEOF
42640
42641 fi
42642fi
42643
42644if test "$wxUSE_FS_INET" = "yes"; then
42645 cat >>confdefs.h <<\_ACEOF
42646#define wxUSE_FS_INET 1
42647_ACEOF
42648
42649fi
42650
42651
ee45c548
MW
42652if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42653 wxUSE_JOYSTICK=no
42654
42655 if test "$TOOLKIT" = "MSW"; then
42656 wxUSE_JOYSTICK=yes
42657
42658 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42659 if test "$USE_DARWIN" = 1; then
42660 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42661echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
42662 ac_ext=cc
42663ac_cpp='$CXXCPP $CPPFLAGS'
42664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42667
42668 cat >conftest.$ac_ext <<_ACEOF
42669/* confdefs.h. */
42670_ACEOF
42671cat confdefs.h >>conftest.$ac_ext
42672cat >>conftest.$ac_ext <<_ACEOF
42673/* end confdefs.h. */
42674 #include <IOKit/hid/IOHIDLib.h>
42675int
42676main ()
42677{
42678 IOHIDQueueInterface *qi = NULL;
42679 IOHIDCallbackFunction cb = NULL;
42680 qi->setEventCallout(NULL, cb, NULL, NULL);
42681 ;
42682 return 0;
42683}
42684_ACEOF
42685rm -f conftest.$ac_objext
42686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42687 (eval $ac_compile) 2>conftest.er1
42688 ac_status=$?
42689 grep -v '^ *+' conftest.er1 >conftest.err
42690 rm -f conftest.er1
42691 cat conftest.err >&5
42692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42693 (exit $ac_status); } &&
3565d135
RR
42694 { ac_try='test -z "$ac_cxx_werror_flag"
42695 || test ! -s conftest.err'
ee45c548
MW
42696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42697 (eval $ac_try) 2>&5
42698 ac_status=$?
42699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42700 (exit $ac_status); }; } &&
42701 { ac_try='test -s conftest.$ac_objext'
42702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42703 (eval $ac_try) 2>&5
42704 ac_status=$?
42705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706 (exit $ac_status); }; }; then
42707 wxUSE_JOYSTICK=yes
a848cd7e 42708
ee45c548
MW
42709else
42710 echo "$as_me: failed program was:" >&5
42711sed 's/^/| /' conftest.$ac_ext >&5
42712
42713fi
42714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42715 ac_ext=c
42716ac_cpp='$CPP $CPPFLAGS'
42717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42719ac_compiler_gnu=$ac_cv_c_compiler_gnu
42720
42721 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42722echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42723 fi
42724
42725 else
a848cd7e
SC
42726
42727for ac_header in linux/joystick.h
42728do
42729as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42730if eval "test \"\${$as_ac_Header+set}\" = set"; then
42731 echo "$as_me:$LINENO: checking for $ac_header" >&5
42732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42733if eval "test \"\${$as_ac_Header+set}\" = set"; then
42734 echo $ECHO_N "(cached) $ECHO_C" >&6
42735fi
42736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42738else
42739 # Is the header compilable?
42740echo "$as_me:$LINENO: checking $ac_header usability" >&5
42741echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42742cat >conftest.$ac_ext <<_ACEOF
42743/* confdefs.h. */
42744_ACEOF
42745cat confdefs.h >>conftest.$ac_ext
42746cat >>conftest.$ac_ext <<_ACEOF
42747/* end confdefs.h. */
42748$ac_includes_default
42749#include <$ac_header>
42750_ACEOF
42751rm -f conftest.$ac_objext
42752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42753 (eval $ac_compile) 2>conftest.er1
a848cd7e 42754 ac_status=$?
ac1cb8d3
VS
42755 grep -v '^ *+' conftest.er1 >conftest.err
42756 rm -f conftest.er1
42757 cat conftest.err >&5
a848cd7e
SC
42758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42759 (exit $ac_status); } &&
3565d135
RR
42760 { ac_try='test -z "$ac_c_werror_flag"
42761 || test ! -s conftest.err'
ac1cb8d3
VS
42762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42763 (eval $ac_try) 2>&5
42764 ac_status=$?
42765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42766 (exit $ac_status); }; } &&
42767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42769 (eval $ac_try) 2>&5
42770 ac_status=$?
42771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42772 (exit $ac_status); }; }; then
42773 ac_header_compiler=yes
42774else
42775 echo "$as_me: failed program was:" >&5
42776sed 's/^/| /' conftest.$ac_ext >&5
42777
42778ac_header_compiler=no
42779fi
ac1cb8d3 42780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42782echo "${ECHO_T}$ac_header_compiler" >&6
42783
42784# Is the header present?
42785echo "$as_me:$LINENO: checking $ac_header presence" >&5
42786echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42787cat >conftest.$ac_ext <<_ACEOF
42788/* confdefs.h. */
42789_ACEOF
42790cat confdefs.h >>conftest.$ac_ext
42791cat >>conftest.$ac_ext <<_ACEOF
42792/* end confdefs.h. */
42793#include <$ac_header>
42794_ACEOF
42795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42797 ac_status=$?
42798 grep -v '^ *+' conftest.er1 >conftest.err
42799 rm -f conftest.er1
42800 cat conftest.err >&5
42801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42802 (exit $ac_status); } >/dev/null; then
42803 if test -s conftest.err; then
42804 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 42805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
42806 else
42807 ac_cpp_err=
42808 fi
42809else
42810 ac_cpp_err=yes
42811fi
42812if test -z "$ac_cpp_err"; then
42813 ac_header_preproc=yes
42814else
42815 echo "$as_me: failed program was:" >&5
42816sed 's/^/| /' conftest.$ac_ext >&5
42817
42818 ac_header_preproc=no
42819fi
42820rm -f conftest.err conftest.$ac_ext
42821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42822echo "${ECHO_T}$ac_header_preproc" >&6
42823
42824# So? What about this header?
ac1cb8d3
VS
42825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42826 yes:no: )
a848cd7e
SC
42827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
42829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42830echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42831 ac_header_preproc=yes
a848cd7e 42832 ;;
ac1cb8d3 42833 no:yes:* )
a848cd7e
SC
42834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
42836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42837echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42839echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42841echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
42842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
42844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42845echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
42846 (
42847 cat <<\_ASBOX
ac1cb8d3
VS
42848## ----------------------------------------- ##
42849## Report this to wx-dev@lists.wxwidgets.org ##
42850## ----------------------------------------- ##
a848cd7e
SC
42851_ASBOX
42852 ) |
42853 sed "s/^/$as_me: WARNING: /" >&2
42854 ;;
42855esac
42856echo "$as_me:$LINENO: checking for $ac_header" >&5
42857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42858if eval "test \"\${$as_ac_Header+set}\" = set"; then
42859 echo $ECHO_N "(cached) $ECHO_C" >&6
42860else
ac1cb8d3 42861 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
42862fi
42863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42865
42866fi
42867if test `eval echo '${'$as_ac_Header'}'` = yes; then
42868 cat >>confdefs.h <<_ACEOF
42869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42870_ACEOF
ee45c548 42871 wxUSE_JOYSTICK=yes
a848cd7e
SC
42872fi
42873
42874done
42875
ee45c548 42876 fi
4cb1d3da 42877
ee45c548
MW
42878 if test "$wxUSE_JOYSTICK" = "yes"; then
42879 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42880#define wxUSE_JOYSTICK 1
42881_ACEOF
42882
ee45c548
MW
42883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
42884 else
42885 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
42886echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
42887 fi
42888fi
42889
42890
42891
42892if test "$wxUSE_FONTMAP" = "yes" ; then
42893 cat >>confdefs.h <<\_ACEOF
42894#define wxUSE_FONTMAP 1
42895_ACEOF
42896
42897fi
42898
42899if test "$wxUSE_UNICODE" = "yes" ; then
42900 cat >>confdefs.h <<\_ACEOF
42901#define wxUSE_UNICODE 1
42902_ACEOF
42903
42904
42905 if test "$USE_WIN32" != 1; then
42906 wxUSE_UNICODE_MSLU=no
42907 fi
42908
42909 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
42910 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
42911echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
42912if test "${ac_cv_lib_unicows_main+set}" = set; then
42913 echo $ECHO_N "(cached) $ECHO_C" >&6
42914else
42915 ac_check_lib_save_LIBS=$LIBS
42916LIBS="-lunicows $LIBS"
42917cat >conftest.$ac_ext <<_ACEOF
42918/* confdefs.h. */
42919_ACEOF
42920cat confdefs.h >>conftest.$ac_ext
42921cat >>conftest.$ac_ext <<_ACEOF
42922/* end confdefs.h. */
42923
42924
42925int
42926main ()
42927{
42928main ();
42929 ;
42930 return 0;
42931}
42932_ACEOF
42933rm -f conftest.$ac_objext conftest$ac_exeext
42934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42935 (eval $ac_link) 2>conftest.er1
a848cd7e 42936 ac_status=$?
ac1cb8d3
VS
42937 grep -v '^ *+' conftest.er1 >conftest.err
42938 rm -f conftest.er1
42939 cat conftest.err >&5
a848cd7e
SC
42940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941 (exit $ac_status); } &&
3565d135
RR
42942 { ac_try='test -z "$ac_c_werror_flag"
42943 || test ! -s conftest.err'
ac1cb8d3
VS
42944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42945 (eval $ac_try) 2>&5
42946 ac_status=$?
42947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42948 (exit $ac_status); }; } &&
42949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42951 (eval $ac_try) 2>&5
42952 ac_status=$?
42953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42954 (exit $ac_status); }; }; then
42955 ac_cv_lib_unicows_main=yes
42956else
42957 echo "$as_me: failed program was:" >&5
42958sed 's/^/| /' conftest.$ac_ext >&5
42959
42960ac_cv_lib_unicows_main=no
42961fi
ac1cb8d3
VS
42962rm -f conftest.err conftest.$ac_objext \
42963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42964LIBS=$ac_check_lib_save_LIBS
42965fi
42966echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
42967echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
42968if test $ac_cv_lib_unicows_main = yes; then
42969
42970 cat >>confdefs.h <<\_ACEOF
42971#define wxUSE_UNICODE_MSLU 1
42972_ACEOF
42973
42974
42975else
42976
42977 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
42978 Applications will only run on Windows NT/2000/XP!" >&5
42979echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
42980 Applications will only run on Windows NT/2000/XP!" >&2;}
42981 wxUSE_UNICODE_MSLU=no
42982
42983fi
42984
42985 fi
42986fi
42987
42988if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
42989 cat >>confdefs.h <<\_ACEOF
42990#define wxUSE_EXPERIMENTAL_PRINTF 1
42991_ACEOF
42992
42993fi
42994
42995
42996if test "$wxUSE_POSTSCRIPT" = "yes" ; then
42997 cat >>confdefs.h <<\_ACEOF
42998#define wxUSE_POSTSCRIPT 1
42999_ACEOF
43000
43001fi
43002
43003cat >>confdefs.h <<\_ACEOF
43004#define wxUSE_AFM_FOR_POSTSCRIPT 1
43005_ACEOF
43006
43007
43008cat >>confdefs.h <<\_ACEOF
43009#define wxUSE_NORMALIZED_PS_FONTS 1
43010_ACEOF
43011
43012
43013
43014if test "$wxUSE_CONSTRAINTS" = "yes"; then
43015 cat >>confdefs.h <<\_ACEOF
43016#define wxUSE_CONSTRAINTS 1
43017_ACEOF
43018
43019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43020fi
43021
8a7b1113
VZ
43022if test "$wxUSE_MDI" = "yes"; then
43023 cat >>confdefs.h <<\_ACEOF
43024#define wxUSE_MDI 1
43025_ACEOF
43026
43027
43028 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43029 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43030#define wxUSE_MDI_ARCHITECTURE 1
43031_ACEOF
43032
8a7b1113
VZ
43033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43034 fi
a848cd7e
SC
43035fi
43036
43037if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43038 cat >>confdefs.h <<\_ACEOF
43039#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43040_ACEOF
43041
43042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43043 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43045 fi
43046fi
43047
43048if test "$wxUSE_HELP" = "yes"; then
43049 cat >>confdefs.h <<\_ACEOF
43050#define wxUSE_HELP 1
43051_ACEOF
43052
43053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43054
43055 if test "$wxUSE_MSW" = 1; then
43056 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43057 cat >>confdefs.h <<\_ACEOF
43058#define wxUSE_MS_HTML_HELP 1
43059_ACEOF
43060
43061 fi
43062 fi
43063
43064 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43065 if test "$wxUSE_HTML" = "yes"; then
43066 cat >>confdefs.h <<\_ACEOF
43067#define wxUSE_WXHTML_HELP 1
43068_ACEOF
43069
43070 else
43071 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43072echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43073 wxUSE_WXHTML_HELP=no
43074 fi
43075 fi
43076fi
43077
43078if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43079 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43080 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43081echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43082 else
43083 cat >>confdefs.h <<\_ACEOF
43084#define wxUSE_PRINTING_ARCHITECTURE 1
43085_ACEOF
43086
43087 fi
43088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43089fi
43090
43091if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43092 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43093echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43094 { (exit 1); exit 1; }; }
43095fi
43096
43097
efdf6afe
VZ
43098if test "$wxUSE_METAFILE" = "yes"; then
43099 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43100 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43101echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43102 wxUSE_METAFILE=no
43103 fi
43104fi
43105
43106
a848cd7e
SC
43107if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43108 -o "$wxUSE_CLIPBOARD" = "yes" \
43109 -o "$wxUSE_OLE" = "yes" \
43110 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43111
43112for ac_header in ole2.h
43113do
43114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43115if eval "test \"\${$as_ac_Header+set}\" = set"; then
43116 echo "$as_me:$LINENO: checking for $ac_header" >&5
43117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43118if eval "test \"\${$as_ac_Header+set}\" = set"; then
43119 echo $ECHO_N "(cached) $ECHO_C" >&6
43120fi
43121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43123else
43124 # Is the header compilable?
43125echo "$as_me:$LINENO: checking $ac_header usability" >&5
43126echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43127cat >conftest.$ac_ext <<_ACEOF
43128/* confdefs.h. */
43129_ACEOF
43130cat confdefs.h >>conftest.$ac_ext
43131cat >>conftest.$ac_ext <<_ACEOF
43132/* end confdefs.h. */
43133$ac_includes_default
43134#include <$ac_header>
43135_ACEOF
43136rm -f conftest.$ac_objext
43137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43138 (eval $ac_compile) 2>conftest.er1
a848cd7e 43139 ac_status=$?
ac1cb8d3
VS
43140 grep -v '^ *+' conftest.er1 >conftest.err
43141 rm -f conftest.er1
43142 cat conftest.err >&5
a848cd7e
SC
43143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43144 (exit $ac_status); } &&
3565d135
RR
43145 { ac_try='test -z "$ac_c_werror_flag"
43146 || test ! -s conftest.err'
ac1cb8d3
VS
43147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43148 (eval $ac_try) 2>&5
43149 ac_status=$?
43150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43151 (exit $ac_status); }; } &&
43152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43154 (eval $ac_try) 2>&5
43155 ac_status=$?
43156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43157 (exit $ac_status); }; }; then
43158 ac_header_compiler=yes
43159else
43160 echo "$as_me: failed program was:" >&5
43161sed 's/^/| /' conftest.$ac_ext >&5
43162
43163ac_header_compiler=no
43164fi
ac1cb8d3 43165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43166echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43167echo "${ECHO_T}$ac_header_compiler" >&6
43168
43169# Is the header present?
43170echo "$as_me:$LINENO: checking $ac_header presence" >&5
43171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43172cat >conftest.$ac_ext <<_ACEOF
43173/* confdefs.h. */
43174_ACEOF
43175cat confdefs.h >>conftest.$ac_ext
43176cat >>conftest.$ac_ext <<_ACEOF
43177/* end confdefs.h. */
43178#include <$ac_header>
43179_ACEOF
43180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43182 ac_status=$?
43183 grep -v '^ *+' conftest.er1 >conftest.err
43184 rm -f conftest.er1
43185 cat conftest.err >&5
43186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43187 (exit $ac_status); } >/dev/null; then
43188 if test -s conftest.err; then
43189 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 43190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
43191 else
43192 ac_cpp_err=
43193 fi
43194else
43195 ac_cpp_err=yes
43196fi
43197if test -z "$ac_cpp_err"; then
43198 ac_header_preproc=yes
43199else
43200 echo "$as_me: failed program was:" >&5
43201sed 's/^/| /' conftest.$ac_ext >&5
43202
43203 ac_header_preproc=no
43204fi
43205rm -f conftest.err conftest.$ac_ext
43206echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43207echo "${ECHO_T}$ac_header_preproc" >&6
43208
43209# So? What about this header?
ac1cb8d3
VS
43210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43211 yes:no: )
a848cd7e
SC
43212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43216 ac_header_preproc=yes
a848cd7e 43217 ;;
ac1cb8d3 43218 no:yes:* )
a848cd7e
SC
43219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43231 (
43232 cat <<\_ASBOX
ac1cb8d3
VS
43233## ----------------------------------------- ##
43234## Report this to wx-dev@lists.wxwidgets.org ##
43235## ----------------------------------------- ##
a848cd7e
SC
43236_ASBOX
43237 ) |
43238 sed "s/^/$as_me: WARNING: /" >&2
43239 ;;
43240esac
43241echo "$as_me:$LINENO: checking for $ac_header" >&5
43242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43243if eval "test \"\${$as_ac_Header+set}\" = set"; then
43244 echo $ECHO_N "(cached) $ECHO_C" >&6
43245else
ac1cb8d3 43246 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43247fi
43248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43250
43251fi
43252if test `eval echo '${'$as_ac_Header'}'` = yes; then
43253 cat >>confdefs.h <<_ACEOF
43254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43255_ACEOF
43256
43257fi
43258
43259done
43260
43261
43262 if test "$ac_cv_header_ole2_h" = "yes" ; then
43263 if test "$GCC" = yes ; then
43264
43265
43266 ac_ext=cc
43267ac_cpp='$CXXCPP $CPPFLAGS'
43268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43271
43272
43273 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43274echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43275 cat >conftest.$ac_ext <<_ACEOF
43276/* confdefs.h. */
43277_ACEOF
43278cat confdefs.h >>conftest.$ac_ext
43279cat >>conftest.$ac_ext <<_ACEOF
43280/* end confdefs.h. */
43281#include <windows.h>
43282 #include <ole2.h>
43283int
43284main ()
43285{
43286
43287 ;
43288 return 0;
43289}
43290_ACEOF
43291rm -f conftest.$ac_objext
43292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43293 (eval $ac_compile) 2>conftest.er1
a848cd7e 43294 ac_status=$?
ac1cb8d3
VS
43295 grep -v '^ *+' conftest.er1 >conftest.err
43296 rm -f conftest.er1
43297 cat conftest.err >&5
a848cd7e
SC
43298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43299 (exit $ac_status); } &&
3565d135
RR
43300 { ac_try='test -z "$ac_cxx_werror_flag"
43301 || test ! -s conftest.err'
ac1cb8d3
VS
43302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43303 (eval $ac_try) 2>&5
43304 ac_status=$?
43305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43306 (exit $ac_status); }; } &&
43307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43309 (eval $ac_try) 2>&5
43310 ac_status=$?
43311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43312 (exit $ac_status); }; }; then
43313 echo "$as_me:$LINENO: result: no" >&5
43314echo "${ECHO_T}no" >&6
43315else
43316 echo "$as_me: failed program was:" >&5
43317sed 's/^/| /' conftest.$ac_ext >&5
43318
43319echo "$as_me:$LINENO: result: yes" >&5
43320echo "${ECHO_T}yes" >&6
5ff751d6 43321 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43322fi
ac1cb8d3 43323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43324 ac_ext=c
43325ac_cpp='$CPP $CPPFLAGS'
43326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43328ac_compiler_gnu=$ac_cv_c_compiler_gnu
43329
a848cd7e
SC
43330 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43331 if test "$wxUSE_OLE" = "yes" ; then
43332 cat >>confdefs.h <<\_ACEOF
43333#define wxUSE_OLE 1
43334_ACEOF
43335
0b78747f 43336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43337 fi
43338 fi
43339
43340 if test "$wxUSE_DATAOBJ" = "yes" ; then
43341 cat >>confdefs.h <<\_ACEOF
43342#define wxUSE_DATAOBJ 1
43343_ACEOF
43344
43345 fi
43346 else
43347 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43348echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43349
43350 wxUSE_CLIPBOARD=no
43351 wxUSE_DRAG_AND_DROP=no
43352 wxUSE_DATAOBJ=no
43353 wxUSE_OLE=no
43354 fi
43355
43356 if test "$wxUSE_METAFILE" = "yes"; then
43357 cat >>confdefs.h <<\_ACEOF
43358#define wxUSE_METAFILE 1
43359_ACEOF
43360
43361
43362 cat >>confdefs.h <<\_ACEOF
43363#define wxUSE_ENH_METAFILE 1
43364_ACEOF
43365
43366 fi
43367fi
43368
43369if test "$wxUSE_IPC" = "yes"; then
0b78747f 43370 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43371 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43372echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43373 wxUSE_IPC=no
a848cd7e
SC
43374 fi
43375
0b78747f
MW
43376 if test "$wxUSE_IPC" = "yes"; then
43377 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43378#define wxUSE_IPC 1
43379_ACEOF
43380
0b78747f
MW
43381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43382 fi
a848cd7e
SC
43383fi
43384
eb730a0c 43385if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43386 if test "$wxUSE_MGL" = 1; then
43387 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43388echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43389 wxUSE_DATAOBJ=no
43390 else
43391 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43392#define wxUSE_DATAOBJ 1
43393_ACEOF
43394
2113bc77 43395 fi
eb730a0c
JS
43396else
43397 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43398echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43399 wxUSE_CLIPBOARD=no
43400 wxUSE_DRAG_AND_DROP=no
43401fi
43402
a848cd7e
SC
43403if test "$wxUSE_CLIPBOARD" = "yes"; then
43404 if test "$wxUSE_MGL" = 1; then
43405 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43406echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43407 wxUSE_CLIPBOARD=no
43408 fi
43409
43410 if test "$wxUSE_CLIPBOARD" = "yes"; then
43411 cat >>confdefs.h <<\_ACEOF
43412#define wxUSE_CLIPBOARD 1
43413_ACEOF
43414
a848cd7e
SC
43415 fi
43416fi
43417
43418if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43419 if test "$wxUSE_GTK" = 1; then
43420 if test "$WXGTK12" != 1; then
43421 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43422echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43423 wxUSE_DRAG_AND_DROP=no
43424 fi
43425 fi
43426
43427 if test "$wxUSE_MOTIF" = 1; then
43428 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43429echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43430 wxUSE_DRAG_AND_DROP=no
43431 fi
43432
43433 if test "$wxUSE_X11" = 1; then
43434 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43435echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43436 wxUSE_DRAG_AND_DROP=no
43437 fi
43438
43439 if test "$wxUSE_MGL" = 1; then
43440 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43441echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43442 wxUSE_DRAG_AND_DROP=no
43443 fi
43444
43445 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43446 cat >>confdefs.h <<\_ACEOF
43447#define wxUSE_DRAG_AND_DROP 1
43448_ACEOF
43449
43450 fi
43451
43452fi
43453
43454if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43456fi
43457
43458if test "$wxUSE_SPLINES" = "yes" ; then
43459 cat >>confdefs.h <<\_ACEOF
43460#define wxUSE_SPLINES 1
43461_ACEOF
43462
43463fi
43464
fbe2ca43
SN
43465if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43466 cat >>confdefs.h <<\_ACEOF
43467#define wxUSE_MOUSEWHEEL 1
43468_ACEOF
43469
43470fi
43471
a848cd7e
SC
43472
43473USES_CONTROLS=0
43474if test "$wxUSE_CONTROLS" = "yes"; then
43475 USES_CONTROLS=1
43476fi
43477
43478if test "$wxUSE_ACCEL" = "yes"; then
43479 cat >>confdefs.h <<\_ACEOF
43480#define wxUSE_ACCEL 1
43481_ACEOF
43482
43483 USES_CONTROLS=1
43484fi
43485
43486if test "$wxUSE_BUTTON" = "yes"; then
43487 cat >>confdefs.h <<\_ACEOF
43488#define wxUSE_BUTTON 1
43489_ACEOF
43490
43491 USES_CONTROLS=1
43492fi
43493
43494if test "$wxUSE_BMPBUTTON" = "yes"; then
43495 cat >>confdefs.h <<\_ACEOF
43496#define wxUSE_BMPBUTTON 1
43497_ACEOF
43498
43499 USES_CONTROLS=1
43500fi
43501
43502if test "$wxUSE_CALCTRL" = "yes"; then
43503 cat >>confdefs.h <<\_ACEOF
43504#define wxUSE_CALENDARCTRL 1
43505_ACEOF
43506
43507 USES_CONTROLS=1
43508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43509fi
43510
43511if test "$wxUSE_CARET" = "yes"; then
43512 cat >>confdefs.h <<\_ACEOF
43513#define wxUSE_CARET 1
43514_ACEOF
43515
43516 USES_CONTROLS=1
43517 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43518fi
43519
43520if test "$wxUSE_COMBOBOX" = "yes"; then
43521 cat >>confdefs.h <<\_ACEOF
43522#define wxUSE_COMBOBOX 1
43523_ACEOF
43524
43525 USES_CONTROLS=1
43526fi
43527
43528if test "$wxUSE_CHOICE" = "yes"; then
43529 cat >>confdefs.h <<\_ACEOF
43530#define wxUSE_CHOICE 1
43531_ACEOF
43532
43533 USES_CONTROLS=1
43534fi
43535
92bbdbcd
WS
43536if test "$wxUSE_CHOICEBOOK" = "yes"; then
43537 cat >>confdefs.h <<\_ACEOF
43538#define wxUSE_CHOICEBOOK 1
43539_ACEOF
43540
43541 USES_CONTROLS=1
43542fi
43543
a848cd7e
SC
43544if test "$wxUSE_CHECKBOX" = "yes"; then
43545 cat >>confdefs.h <<\_ACEOF
43546#define wxUSE_CHECKBOX 1
43547_ACEOF
43548
43549 USES_CONTROLS=1
43550fi
43551
43552if test "$wxUSE_CHECKLST" = "yes"; then
43553 cat >>confdefs.h <<\_ACEOF
43554#define wxUSE_CHECKLISTBOX 1
43555_ACEOF
43556
43557 USES_CONTROLS=1
43558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43559fi
43560
da98e9be
VZ
43561if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43562 cat >>confdefs.h <<\_ACEOF
43563#define wxUSE_DATEPICKCTRL 1
43564_ACEOF
43565
43566 USES_CONTROLS=1
43567fi
43568
a848cd7e
SC
43569if test "$wxUSE_DISPLAY" = "yes"; then
43570 cat >>confdefs.h <<\_ACEOF
43571#define wxUSE_DISPLAY 1
43572_ACEOF
43573
0b78747f 43574 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
43575fi
43576
43577if test "$wxUSE_GAUGE" = "yes"; then
43578 cat >>confdefs.h <<\_ACEOF
43579#define wxUSE_GAUGE 1
43580_ACEOF
43581
43582 USES_CONTROLS=1
43583fi
43584
43585if test "$wxUSE_GRID" = "yes"; then
43586 cat >>confdefs.h <<\_ACEOF
43587#define wxUSE_GRID 1
43588_ACEOF
43589
43590 USES_CONTROLS=1
43591 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43592fi
43593
20e34ecc
RR
43594if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
43595 cat >>confdefs.h <<\_ACEOF
43596#define wxUSE_DATAVIEWCTRL 1
43597_ACEOF
43598
43599 USES_CONTROLS=1
43600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
43601fi
43602
a848cd7e
SC
43603if test "$wxUSE_IMAGLIST" = "yes"; then
43604 cat >>confdefs.h <<\_ACEOF
43605#define wxUSE_IMAGLIST 1
43606_ACEOF
43607
43608fi
43609
43610if test "$wxUSE_LISTBOOK" = "yes"; then
43611 cat >>confdefs.h <<\_ACEOF
43612#define wxUSE_LISTBOOK 1
43613_ACEOF
43614
43615 USES_CONTROLS=1
43616fi
43617
43618if test "$wxUSE_LISTBOX" = "yes"; then
43619 cat >>confdefs.h <<\_ACEOF
43620#define wxUSE_LISTBOX 1
43621_ACEOF
43622
43623 USES_CONTROLS=1
0b78747f 43624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
43625fi
43626
43627if test "$wxUSE_LISTCTRL" = "yes"; then
43628 if test "$wxUSE_IMAGLIST" = "yes"; then
43629 cat >>confdefs.h <<\_ACEOF
43630#define wxUSE_LISTCTRL 1
43631_ACEOF
43632
43633 USES_CONTROLS=1
43634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43635 else
43636 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43637echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43638 fi
43639fi
43640
43641if test "$wxUSE_NOTEBOOK" = "yes"; then
43642 cat >>confdefs.h <<\_ACEOF
43643#define wxUSE_NOTEBOOK 1
43644_ACEOF
43645
43646 USES_CONTROLS=1
43647 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43648fi
43649
43650
43651if test "$wxUSE_RADIOBOX" = "yes"; then
43652 cat >>confdefs.h <<\_ACEOF
43653#define wxUSE_RADIOBOX 1
43654_ACEOF
43655
43656 USES_CONTROLS=1
43657fi
43658
43659if test "$wxUSE_RADIOBTN" = "yes"; then
43660 cat >>confdefs.h <<\_ACEOF
43661#define wxUSE_RADIOBTN 1
43662_ACEOF
43663
43664 USES_CONTROLS=1
43665fi
43666
43667if test "$wxUSE_SASH" = "yes"; then
43668 cat >>confdefs.h <<\_ACEOF
43669#define wxUSE_SASH 1
43670_ACEOF
43671
43672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43673fi
43674
43675if test "$wxUSE_SCROLLBAR" = "yes"; then
43676 cat >>confdefs.h <<\_ACEOF
43677#define wxUSE_SCROLLBAR 1
43678_ACEOF
43679
43680 USES_CONTROLS=1
43681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43682fi
43683
43684if test "$wxUSE_SLIDER" = "yes"; then
43685 cat >>confdefs.h <<\_ACEOF
43686#define wxUSE_SLIDER 1
43687_ACEOF
43688
43689 USES_CONTROLS=1
43690fi
43691
43692if test "$wxUSE_SPINBTN" = "yes"; then
43693 cat >>confdefs.h <<\_ACEOF
43694#define wxUSE_SPINBTN 1
43695_ACEOF
43696
43697 USES_CONTROLS=1
43698fi
43699
43700if test "$wxUSE_SPINCTRL" = "yes"; then
43701 cat >>confdefs.h <<\_ACEOF
43702#define wxUSE_SPINCTRL 1
43703_ACEOF
43704
43705 USES_CONTROLS=1
43706fi
43707
43708if test "$wxUSE_SPLITTER" = "yes"; then
43709 cat >>confdefs.h <<\_ACEOF
43710#define wxUSE_SPLITTER 1
43711_ACEOF
43712
43713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43714fi
43715
43716if test "$wxUSE_STATBMP" = "yes"; then
43717 cat >>confdefs.h <<\_ACEOF
43718#define wxUSE_STATBMP 1
43719_ACEOF
43720
43721 USES_CONTROLS=1
43722fi
43723
43724if test "$wxUSE_STATBOX" = "yes"; then
43725 cat >>confdefs.h <<\_ACEOF
43726#define wxUSE_STATBOX 1
43727_ACEOF
43728
43729 USES_CONTROLS=1
43730fi
43731
43732if test "$wxUSE_STATTEXT" = "yes"; then
43733 cat >>confdefs.h <<\_ACEOF
43734#define wxUSE_STATTEXT 1
43735_ACEOF
43736
43737 USES_CONTROLS=1
43738fi
43739
43740if test "$wxUSE_STATLINE" = "yes"; then
43741 cat >>confdefs.h <<\_ACEOF
43742#define wxUSE_STATLINE 1
43743_ACEOF
43744
43745 USES_CONTROLS=1
43746fi
43747
43748if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
43749 cat >>confdefs.h <<\_ACEOF
43750#define wxUSE_NATIVE_STATUSBAR 1
43751_ACEOF
43752
a848cd7e
SC
43753 cat >>confdefs.h <<\_ACEOF
43754#define wxUSE_STATUSBAR 1
43755_ACEOF
43756
43757 USES_CONTROLS=1
43758
43759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
43760fi
43761
43762if test "$wxUSE_TABDIALOG" = "yes"; then
43763 cat >>confdefs.h <<\_ACEOF
43764#define wxUSE_TAB_DIALOG 1
43765_ACEOF
43766
a848cd7e
SC
43767fi
43768
43769if test "$wxUSE_TEXTCTRL" = "yes"; then
43770 cat >>confdefs.h <<\_ACEOF
43771#define wxUSE_TEXTCTRL 1
43772_ACEOF
43773
43774 USES_CONTROLS=1
43775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
43776fi
43777
43778if test "$wxUSE_TOGGLEBTN" = "yes"; then
43779 if test "$wxUSE_COCOA" = 1 ; then
43780 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
43781echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
43782 wxUSE_TOGGLEBTN=no
43783 fi
43784 if test "$wxUSE_UNIVERSAL" = "yes"; then
43785 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
43786echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
43787 wxUSE_TOGGLEBTN=no
43788 fi
43789
43790 if test "$wxUSE_TOGGLEBTN" = "yes"; then
43791 cat >>confdefs.h <<\_ACEOF
43792#define wxUSE_TOGGLEBTN 1
43793_ACEOF
43794
43795 USES_CONTROLS=1
43796 fi
43797fi
43798
43799if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
43800 cat >>confdefs.h <<\_ACEOF
43801#define wxUSE_TOOLBAR_SIMPLE 1
43802_ACEOF
43803
43804 wxUSE_TOOLBAR="yes"
43805 USES_CONTROLS=1
43806fi
43807
43808if test "$wxUSE_TOOLBAR" = "yes"; then
43809 cat >>confdefs.h <<\_ACEOF
43810#define wxUSE_TOOLBAR 1
43811_ACEOF
43812
43813 USES_CONTROLS=1
43814
43815 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
43816 wxUSE_TOOLBAR_NATIVE="yes"
43817 fi
43818
43819 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
43820 cat >>confdefs.h <<\_ACEOF
43821#define wxUSE_TOOLBAR_NATIVE 1
43822_ACEOF
43823
43824 USES_CONTROLS=1
43825 fi
43826
43827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
43828fi
43829
43830if test "$wxUSE_TOOLTIPS" = "yes"; then
43831 if test "$wxUSE_MOTIF" = 1; then
43832 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
43833echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
43834 else
43835 if test "$wxUSE_UNIVERSAL" = "yes"; then
43836 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
43837echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
43838 else
43839 cat >>confdefs.h <<\_ACEOF
43840#define wxUSE_TOOLTIPS 1
43841_ACEOF
43842
43843 fi
43844 fi
43845fi
43846
0093c2fc
VZ
43847if test "$wxUSE_TREEBOOK" = "yes"; then
43848 cat >>confdefs.h <<\_ACEOF
43849#define wxUSE_TREEBOOK 1
43850_ACEOF
43851
43852 USES_CONTROLS=1
43853fi
43854
a848cd7e
SC
43855if test "$wxUSE_TREECTRL" = "yes"; then
43856 if test "$wxUSE_IMAGLIST" = "yes"; then
43857 cat >>confdefs.h <<\_ACEOF
43858#define wxUSE_TREECTRL 1
43859_ACEOF
43860
43861 USES_CONTROLS=1
43862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
43863 else
43864 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
43865echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
43866 fi
43867fi
43868
43869if test "$wxUSE_POPUPWIN" = "yes"; then
43870 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43871 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
43872echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
43873 else
43874 if test "$wxUSE_PM" = 1; then
43875 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
43876echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
43877 else
43878 cat >>confdefs.h <<\_ACEOF
43879#define wxUSE_POPUPWIN 1
43880_ACEOF
43881
0b78747f 43882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
43883
43884 USES_CONTROLS=1
43885 fi
43886 fi
43887fi
43888
0dcd06dd 43889if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
43890 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43891 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
43892echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
43893 else
43894 cat >>confdefs.h <<\_ACEOF
43895#define wxUSE_DIALUP_MANAGER 1
43896_ACEOF
43897
43898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
43899 fi
43900fi
43901
a848cd7e
SC
43902if test "$wxUSE_TIPWINDOW" = "yes"; then
43903 if test "$wxUSE_PM" = 1; then
43904 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
43905echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
43906 else
43907 cat >>confdefs.h <<\_ACEOF
43908#define wxUSE_TIPWINDOW 1
43909_ACEOF
43910
43911 fi
43912fi
43913
43914if test "$USES_CONTROLS" = 1; then
43915 cat >>confdefs.h <<\_ACEOF
43916#define wxUSE_CONTROLS 1
43917_ACEOF
43918
43919fi
43920
43921
43922if test "$wxUSE_ACCESSIBILITY" = "yes"; then
43923 cat >>confdefs.h <<\_ACEOF
43924#define wxUSE_ACCESSIBILITY 1
43925_ACEOF
43926
43927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
43928fi
43929
38b4a946
VZ
43930if test "$wxUSE_DC_CACHEING" = "yes"; then
43931 cat >>confdefs.h <<\_ACEOF
43932#define wxUSE_DC_CACHEING 1
43933_ACEOF
43934
43935fi
43936
a848cd7e
SC
43937if test "$wxUSE_DRAGIMAGE" = "yes"; then
43938 cat >>confdefs.h <<\_ACEOF
43939#define wxUSE_DRAGIMAGE 1
43940_ACEOF
43941
43942 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
43943fi
43944
43945if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
43946 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43947 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
43948echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
43949 else
43950 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43951#define wxUSE_EXCEPTIONS 1
43952_ACEOF
43953
07bea8f0
VS
43954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
43955 fi
a848cd7e
SC
43956fi
43957
43958USE_HTML=0
43959if test "$wxUSE_HTML" = "yes"; then
43960 cat >>confdefs.h <<\_ACEOF
43961#define wxUSE_HTML 1
43962_ACEOF
43963
43964 USE_HTML=1
43965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
43966 if test "$wxUSE_MAC" = 1; then
43967 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
43968 fi
a848cd7e 43969fi
646b6ec1 43970if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 43971 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 43972 old_CPPFLAGS="$CPPFLAGS"
c92ad099 43973 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
43974 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
43975echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
43976if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
43977 echo $ECHO_N "(cached) $ECHO_C" >&6
43978else
43979 cat >conftest.$ac_ext <<_ACEOF
43980/* confdefs.h. */
43981_ACEOF
43982cat confdefs.h >>conftest.$ac_ext
43983cat >>conftest.$ac_ext <<_ACEOF
43984/* end confdefs.h. */
43985#include <Carbon/Carbon.h>
43986
43987#include <WebKit/HIWebView.h>
43988_ACEOF
43989rm -f conftest.$ac_objext
43990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43991 (eval $ac_compile) 2>conftest.er1
43992 ac_status=$?
43993 grep -v '^ *+' conftest.er1 >conftest.err
43994 rm -f conftest.er1
43995 cat conftest.err >&5
43996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43997 (exit $ac_status); } &&
3565d135
RR
43998 { ac_try='test -z "$ac_c_werror_flag"
43999 || test ! -s conftest.err'
07bea8f0
VS
44000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44001 (eval $ac_try) 2>&5
44002 ac_status=$?
44003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44004 (exit $ac_status); }; } &&
44005 { ac_try='test -s conftest.$ac_objext'
44006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44007 (eval $ac_try) 2>&5
44008 ac_status=$?
44009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44010 (exit $ac_status); }; }; then
44011 ac_cv_header_WebKit_HIWebView_h=yes
44012else
44013 echo "$as_me: failed program was:" >&5
44014sed 's/^/| /' conftest.$ac_ext >&5
44015
44016ac_cv_header_WebKit_HIWebView_h=no
44017fi
44018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44019fi
44020echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44021echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44022if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44023
44024 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44025#define wxUSE_WEBKIT 1
44026_ACEOF
44027
07bea8f0
VS
44028 WEBKIT_LINK="-framework WebKit"
44029
44030else
44031
44032 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44033echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44034 wxUSE_WEBKIT=no
44035
646b6ec1
VS
44036fi
44037
07bea8f0
VS
44038
44039 CPPFLAGS="$old_CPPFLAGS"
44040 elif test "$wxUSE_COCOA" = 1; then
44041 cat >>confdefs.h <<\_ACEOF
44042#define wxUSE_WEBKIT 1
44043_ACEOF
44044
44045 else
44046 wxUSE_WEBKIT=no
44047 fi
44048fi
44049
9a8f0513
VS
44050USE_XRC=0
44051if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44052 if test "$wxUSE_XML" != "yes"; then
44053 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44054echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44055 wxUSE_XRC=no
44056 else
44057 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44058#define wxUSE_XRC 1
44059_ACEOF
44060
d2ebf0b7
VS
44061 USE_XRC=1
44062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44063 fi
9a8f0513 44064fi
07bea8f0 44065
a848cd7e
SC
44066if test "$wxUSE_MENUS" = "yes"; then
44067 cat >>confdefs.h <<\_ACEOF
44068#define wxUSE_MENUS 1
44069_ACEOF
44070
44071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44072fi
44073
44074if test "$wxUSE_METAFILE" = "yes"; then
44075 cat >>confdefs.h <<\_ACEOF
44076#define wxUSE_METAFILE 1
44077_ACEOF
44078
44079fi
44080
44081if test "$wxUSE_MIMETYPE" = "yes"; then
44082 cat >>confdefs.h <<\_ACEOF
44083#define wxUSE_MIMETYPE 1
44084_ACEOF
44085
44086fi
44087
44088if test "$wxUSE_MINIFRAME" = "yes"; then
44089 cat >>confdefs.h <<\_ACEOF
44090#define wxUSE_MINIFRAME 1
44091_ACEOF
44092
44093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44094fi
44095
44096if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44097 cat >>confdefs.h <<\_ACEOF
44098#define wxUSE_SYSTEM_OPTIONS 1
44099_ACEOF
44100
44101 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44102 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44104 fi
44105fi
44106
44107
44108if test "$wxUSE_VALIDATORS" = "yes"; then
44109 cat >>confdefs.h <<\_ACEOF
44110#define wxUSE_VALIDATORS 1
44111_ACEOF
44112
44113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44114fi
44115
44116if test "$wxUSE_PALETTE" = "yes" ; then
44117 cat >>confdefs.h <<\_ACEOF
44118#define wxUSE_PALETTE 1
44119_ACEOF
44120
44121fi
44122
44123if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44124 LIBS=" -lunicows $LIBS"
44125fi
44126
91dea314
MW
44127USE_RICHTEXT=0
44128if test "$wxUSE_RICHTEXT" = "yes"; then
44129 cat >>confdefs.h <<\_ACEOF
44130#define wxUSE_RICHTEXT 1
44131_ACEOF
44132
44133 USE_RICHTEXT=1
44134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44135fi
44136
a848cd7e
SC
44137
44138if test "$wxUSE_IMAGE" = "yes" ; then
44139 cat >>confdefs.h <<\_ACEOF
44140#define wxUSE_IMAGE 1
44141_ACEOF
44142
44143
44144 if test "$wxUSE_GIF" = "yes" ; then
44145 cat >>confdefs.h <<\_ACEOF
44146#define wxUSE_GIF 1
44147_ACEOF
44148
44149 fi
44150
44151 if test "$wxUSE_PCX" = "yes" ; then
44152 cat >>confdefs.h <<\_ACEOF
44153#define wxUSE_PCX 1
44154_ACEOF
44155
44156 fi
44157
44158 if test "$wxUSE_IFF" = "yes" ; then
44159 cat >>confdefs.h <<\_ACEOF
44160#define wxUSE_IFF 1
44161_ACEOF
44162
44163 fi
44164
44165 if test "$wxUSE_PNM" = "yes" ; then
44166 cat >>confdefs.h <<\_ACEOF
44167#define wxUSE_PNM 1
44168_ACEOF
44169
44170 fi
44171
44172 if test "$wxUSE_XPM" = "yes" ; then
44173 cat >>confdefs.h <<\_ACEOF
44174#define wxUSE_XPM 1
44175_ACEOF
44176
44177 fi
44178
44179 if test "$wxUSE_ICO_CUR" = "yes" ; then
44180 cat >>confdefs.h <<\_ACEOF
44181#define wxUSE_ICO_CUR 1
44182_ACEOF
44183
44184 fi
44185fi
44186
44187
44188if test "$wxUSE_CHOICEDLG" = "yes"; then
44189 cat >>confdefs.h <<\_ACEOF
44190#define wxUSE_CHOICEDLG 1
44191_ACEOF
44192
44193fi
44194
44195if test "$wxUSE_COLOURDLG" = "yes"; then
44196 cat >>confdefs.h <<\_ACEOF
44197#define wxUSE_COLOURDLG 1
44198_ACEOF
44199
44200fi
44201
44202if test "$wxUSE_FILEDLG" = "yes"; then
44203 cat >>confdefs.h <<\_ACEOF
44204#define wxUSE_FILEDLG 1
44205_ACEOF
44206
44207fi
44208
44209if test "$wxUSE_FINDREPLDLG" = "yes"; then
44210 cat >>confdefs.h <<\_ACEOF
44211#define wxUSE_FINDREPLDLG 1
44212_ACEOF
44213
44214fi
44215
44216if test "$wxUSE_FONTDLG" = "yes"; then
44217 cat >>confdefs.h <<\_ACEOF
44218#define wxUSE_FONTDLG 1
44219_ACEOF
44220
44221fi
44222
44223if test "$wxUSE_DIRDLG" = "yes"; then
44224 if test "$wxUSE_TREECTRL" != "yes"; then
44225 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44226echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44227 else
44228 cat >>confdefs.h <<\_ACEOF
44229#define wxUSE_DIRDLG 1
44230_ACEOF
44231
44232 fi
44233fi
44234
44235if test "$wxUSE_MSGDLG" = "yes"; then
44236 cat >>confdefs.h <<\_ACEOF
44237#define wxUSE_MSGDLG 1
44238_ACEOF
44239
44240fi
44241
44242if test "$wxUSE_NUMBERDLG" = "yes"; then
44243 cat >>confdefs.h <<\_ACEOF
44244#define wxUSE_NUMBERDLG 1
44245_ACEOF
44246
44247fi
44248
44249if test "$wxUSE_PROGRESSDLG" = "yes"; then
44250 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44251 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44252echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44253 else
44254 cat >>confdefs.h <<\_ACEOF
44255#define wxUSE_PROGRESSDLG 1
44256_ACEOF
44257
44258 fi
44259fi
44260
44261if test "$wxUSE_SPLASH" = "yes"; then
44262 cat >>confdefs.h <<\_ACEOF
44263#define wxUSE_SPLASH 1
44264_ACEOF
44265
2057db16 44266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44267fi
44268
44269if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44270 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44271 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44272echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44273 else
44274 cat >>confdefs.h <<\_ACEOF
44275#define wxUSE_STARTUP_TIPS 1
44276_ACEOF
44277
44278 fi
44279fi
44280
44281if test "$wxUSE_TEXTDLG" = "yes"; then
44282 cat >>confdefs.h <<\_ACEOF
44283#define wxUSE_TEXTDLG 1
44284_ACEOF
44285
44286fi
44287
44288if test "$wxUSE_WIZARDDLG" = "yes"; then
44289 cat >>confdefs.h <<\_ACEOF
44290#define wxUSE_WIZARDDLG 1
44291_ACEOF
44292
44293 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44294fi
44295
44296
ce756cb0 44297if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44298 if test "$wxUSE_GTK" = 1; then
44299 wxUSE_GSTREAMER="yes"
44300
ce756cb0 44301
dae87f93 44302 succeeded=no
ce756cb0 44303
dae87f93
RN
44304 if test -z "$PKG_CONFIG"; then
44305 # Extract the first word of "pkg-config", so it can be a program name with args.
44306set dummy pkg-config; ac_word=$2
44307echo "$as_me:$LINENO: checking for $ac_word" >&5
44308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44309if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44310 echo $ECHO_N "(cached) $ECHO_C" >&6
44311else
44312 case $PKG_CONFIG in
44313 [\\/]* | ?:[\\/]*)
44314 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44315 ;;
44316 *)
44317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44318for as_dir in $PATH
44319do
44320 IFS=$as_save_IFS
44321 test -z "$as_dir" && as_dir=.
44322 for ac_exec_ext in '' $ac_executable_extensions; do
44323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44324 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44326 break 2
44327 fi
44328done
44329done
44330
44331 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44332 ;;
44333esac
44334fi
44335PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44336
44337if test -n "$PKG_CONFIG"; then
44338 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44339echo "${ECHO_T}$PKG_CONFIG" >&6
44340else
44341 echo "$as_me:$LINENO: result: no" >&5
44342echo "${ECHO_T}no" >&6
44343fi
44344
44345 fi
44346
44347 if test "$PKG_CONFIG" = "no" ; then
44348 echo "*** The pkg-config script could not be found. Make sure it is"
44349 echo "*** in your path, or set the PKG_CONFIG environment variable"
44350 echo "*** to the full path to pkg-config."
44351 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44352 else
44353 PKG_CONFIG_MIN_VERSION=0.9.0
44354 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44355 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
44356echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
44357
44358 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
44359 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44360echo "${ECHO_T}yes" >&6
dae87f93 44361 succeeded=yes
ce756cb0 44362
dae87f93
RN
44363 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
44364echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
44365 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
44366 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
44367echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
44368
44369 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
44370echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
44371 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
44372 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
44373echo "${ECHO_T}$GSTREAMER_LIBS" >&6
44374 else
44375 GSTREAMER_CFLAGS=""
44376 GSTREAMER_LIBS=""
44377 ## If we have a custom action on failure, don't print errors, but
44378 ## do set a variable so people can do so.
44379 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 44380
dae87f93
RN
44381 fi
44382
44383
44384
44385 else
44386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44388 fi
44389 fi
44390
44391 if test $succeeded = yes; then
44392
c92ad099 44393 CPPFLAGS="$GSTREAMER_CFLAGS $CPPFLAGS"
dae87f93 44394 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 44395
ce756cb0 44396 else
dae87f93
RN
44397
44398 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
44399echo "$as_me: WARNING: GStreamer installation not found" >&2;}
44400 wxUSE_GSTREAMER="no"
44401
44402 fi
44403
44404
44405
44406
44407
44408 if test "x$GST_INSPECT" == "x"; then
44409 # Extract the first word of "gst-inspect", so it can be a program name with args.
44410set dummy gst-inspect; ac_word=$2
44411echo "$as_me:$LINENO: checking for $ac_word" >&5
44412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44413if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
44414 echo $ECHO_N "(cached) $ECHO_C" >&6
44415else
44416 if test -n "$GST_INSPECT"; then
44417 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
44418else
44419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44420for as_dir in $PATH
44421do
44422 IFS=$as_save_IFS
44423 test -z "$as_dir" && as_dir=.
44424 for ac_exec_ext in '' $ac_executable_extensions; do
44425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44426 ac_cv_prog_GST_INSPECT="gst-inspect"
44427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44428 break 2
ce756cb0 44429 fi
dae87f93
RN
44430done
44431done
44432
44433fi
44434fi
44435GST_INSPECT=$ac_cv_prog_GST_INSPECT
44436if test -n "$GST_INSPECT"; then
44437 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
44438echo "${ECHO_T}$GST_INSPECT" >&6
44439else
44440 echo "$as_me:$LINENO: result: no" >&5
44441echo "${ECHO_T}no" >&6
44442fi
44443
44444 fi
44445
44446 if test "x$GST_INSPECT" != "x"; then
44447 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
44448echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
44449 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
44450 echo "$as_me:$LINENO: result: found." >&5
44451echo "${ECHO_T}found." >&6
ce756cb0 44452
ce756cb0 44453 else
dae87f93
RN
44454 echo "$as_me:$LINENO: result: not found." >&5
44455echo "${ECHO_T}not found." >&6
44456
44457 wxUSE_GSTREAMER="no"
44458 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
44459echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
44460
44461 fi
44462 fi
44463
44464
44465 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
44466echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
44467if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
44468 echo $ECHO_N "(cached) $ECHO_C" >&6
44469else
44470 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
44471/* confdefs.h. */
44472_ACEOF
44473cat confdefs.h >>conftest.$ac_ext
44474cat >>conftest.$ac_ext <<_ACEOF
44475/* end confdefs.h. */
dae87f93 44476#include <gst/gst.h>
ce756cb0 44477
dae87f93 44478#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
44479_ACEOF
44480rm -f conftest.$ac_objext
44481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44482 (eval $ac_compile) 2>conftest.er1
44483 ac_status=$?
44484 grep -v '^ *+' conftest.er1 >conftest.err
44485 rm -f conftest.er1
44486 cat conftest.err >&5
44487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44488 (exit $ac_status); } &&
3565d135
RR
44489 { ac_try='test -z "$ac_c_werror_flag"
44490 || test ! -s conftest.err'
ce756cb0
RN
44491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44492 (eval $ac_try) 2>&5
44493 ac_status=$?
44494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44495 (exit $ac_status); }; } &&
44496 { ac_try='test -s conftest.$ac_objext'
44497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44498 (eval $ac_try) 2>&5
44499 ac_status=$?
44500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44501 (exit $ac_status); }; }; then
dae87f93 44502 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
44503else
44504 echo "$as_me: failed program was:" >&5
44505sed 's/^/| /' conftest.$ac_ext >&5
44506
dae87f93 44507ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
44508fi
44509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
44510fi
44511echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
44512echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
44513if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
44514 :
44515else
ce756cb0 44516
dae87f93
RN
44517 wxUSE_GSTREAMER="no"
44518 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
44519echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 44520
dae87f93 44521fi
ce756cb0 44522
dae87f93
RN
44523
44524
44525 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
44526echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
44527
0ad5d837
VZ
44528 ac_find_libraries=
44529 for ac_dir in $SEARCH_LIB;
ce756cb0 44530 do
3eca31dc 44531 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
44532 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
44533 ac_find_libraries=$ac_dir
44534 break 2
44535 fi
44536 done
44537 done
44538
ce756cb0 44539
dae87f93
RN
44540 if test "$ac_find_libraries" = "" ; then
44541 echo "$as_me:$LINENO: result: no" >&5
44542echo "${ECHO_T}no" >&6
44543 wxUSE_GSTREAMER="no"
44544 else
44545 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44546echo "${ECHO_T}yes" >&6
dae87f93 44547 fi
ce756cb0 44548
dae87f93
RN
44549 if test "$wxUSE_GSTREAMER" = "yes"; then
44550 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
44551#define wxUSE_GSTREAMER 1
44552_ACEOF
44553
dae87f93
RN
44554 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44555echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
44556 fi
44557 fi
44558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44559 cat >>confdefs.h <<\_ACEOF
44560#define wxUSE_MEDIACTRL 1
44561_ACEOF
44562
44563fi
44564
44565
a848cd7e
SC
44566if test "$cross_compiling" = "yes"; then
44567 OSINFO="\"$host\""
44568else
44569 OSINFO=`uname -s -r -m`
44570 OSINFO="\"$OSINFO\""
44571fi
44572
44573cat >>confdefs.h <<_ACEOF
44574#define WXWIN_OS_DESCRIPTION $OSINFO
44575_ACEOF
44576
44577
44578
44579if test "x$prefix" != "xNONE"; then
44580 wxPREFIX=$prefix
44581else
44582 wxPREFIX=$ac_default_prefix
44583fi
44584
44585cat >>confdefs.h <<_ACEOF
44586#define wxINSTALL_PREFIX "$wxPREFIX"
44587_ACEOF
44588
44589
a848cd7e
SC
44590
44591
44592CORE_BASE_LIBS="net base"
44593CORE_GUI_LIBS="adv core"
44594
44595if test "$wxUSE_XML" = "yes" ; then
44596 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44597fi
44598if test "$wxUSE_ODBC" != "no" ; then
44599 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44600 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44601fi
44602if test "$wxUSE_HTML" = "yes" ; then
44603 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44604fi
61639efb
VZ
44605if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44606 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44607fi
9a8f0513
VS
44608if test "$wxUSE_XRC" = "yes" ; then
44609 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44610fi
a848cd7e
SC
44611
44612if test "$wxUSE_GUI" != "yes"; then
44613 CORE_GUI_LIBS=""
44614fi
44615
44616
44617
44618
44619
44620
44621
44622
44623if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 44624 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
44625 if test "$USE_DARWIN" = 1; then
44626 LDFLAGS="$LDFLAGS -framework QuickTime"
44627 else
44628 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44629 fi
07bea8f0 44630 fi
5dcf30a0 44631 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
44632 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44633 else
44634 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 44635 fi
a848cd7e
SC
44636fi
44637if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 44638 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
44639 if test "$wxUSE_MEDIACTRL" = "yes"; then
44640 LDFLAGS="$LDFLAGS -framework QuickTime"
44641 fi
a848cd7e 44642fi
19b27e78
MW
44643if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44644 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44645fi
a848cd7e
SC
44646
44647
44648LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44649
44650have_cos=0
44651have_floor=0
44652
44653for ac_func in cos
44654do
44655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44656echo "$as_me:$LINENO: checking for $ac_func" >&5
44657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44658if eval "test \"\${$as_ac_var+set}\" = set"; then
44659 echo $ECHO_N "(cached) $ECHO_C" >&6
44660else
44661 cat >conftest.$ac_ext <<_ACEOF
44662/* confdefs.h. */
44663_ACEOF
44664cat confdefs.h >>conftest.$ac_ext
44665cat >>conftest.$ac_ext <<_ACEOF
44666/* end confdefs.h. */
ac1cb8d3
VS
44667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44669#define $ac_func innocuous_$ac_func
44670
a848cd7e
SC
44671/* System header to define __stub macros and hopefully few prototypes,
44672 which can conflict with char $ac_func (); below.
44673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44674 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44675
a848cd7e
SC
44676#ifdef __STDC__
44677# include <limits.h>
44678#else
44679# include <assert.h>
44680#endif
ac1cb8d3
VS
44681
44682#undef $ac_func
44683
a848cd7e
SC
44684/* Override any gcc2 internal prototype to avoid an error. */
44685#ifdef __cplusplus
44686extern "C"
44687{
44688#endif
44689/* We use char because int might match the return type of a gcc2
44690 builtin and then its argument prototype would still apply. */
44691char $ac_func ();
44692/* The GNU C library defines this for functions which it implements
44693 to always fail with ENOSYS. Some functions are actually named
44694 something starting with __ and the normal name is an alias. */
44695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44696choke me
44697#else
44698char (*f) () = $ac_func;
44699#endif
44700#ifdef __cplusplus
44701}
44702#endif
44703
44704int
44705main ()
44706{
44707return f != $ac_func;
44708 ;
44709 return 0;
44710}
44711_ACEOF
44712rm -f conftest.$ac_objext conftest$ac_exeext
44713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44714 (eval $ac_link) 2>conftest.er1
a848cd7e 44715 ac_status=$?
ac1cb8d3
VS
44716 grep -v '^ *+' conftest.er1 >conftest.err
44717 rm -f conftest.er1
44718 cat conftest.err >&5
a848cd7e
SC
44719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44720 (exit $ac_status); } &&
3565d135
RR
44721 { ac_try='test -z "$ac_c_werror_flag"
44722 || test ! -s conftest.err'
ac1cb8d3
VS
44723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44724 (eval $ac_try) 2>&5
44725 ac_status=$?
44726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44727 (exit $ac_status); }; } &&
44728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44730 (eval $ac_try) 2>&5
44731 ac_status=$?
44732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44733 (exit $ac_status); }; }; then
44734 eval "$as_ac_var=yes"
44735else
44736 echo "$as_me: failed program was:" >&5
44737sed 's/^/| /' conftest.$ac_ext >&5
44738
44739eval "$as_ac_var=no"
44740fi
ac1cb8d3
VS
44741rm -f conftest.err conftest.$ac_objext \
44742 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44743fi
44744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44745echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44746if test `eval echo '${'$as_ac_var'}'` = yes; then
44747 cat >>confdefs.h <<_ACEOF
44748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44749_ACEOF
44750 have_cos=1
44751fi
44752done
44753
44754
44755for ac_func in floor
44756do
44757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44758echo "$as_me:$LINENO: checking for $ac_func" >&5
44759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44760if eval "test \"\${$as_ac_var+set}\" = set"; then
44761 echo $ECHO_N "(cached) $ECHO_C" >&6
44762else
44763 cat >conftest.$ac_ext <<_ACEOF
44764/* confdefs.h. */
44765_ACEOF
44766cat confdefs.h >>conftest.$ac_ext
44767cat >>conftest.$ac_ext <<_ACEOF
44768/* end confdefs.h. */
ac1cb8d3
VS
44769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44771#define $ac_func innocuous_$ac_func
44772
a848cd7e
SC
44773/* System header to define __stub macros and hopefully few prototypes,
44774 which can conflict with char $ac_func (); below.
44775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44776 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44777
a848cd7e
SC
44778#ifdef __STDC__
44779# include <limits.h>
44780#else
44781# include <assert.h>
44782#endif
ac1cb8d3
VS
44783
44784#undef $ac_func
44785
a848cd7e
SC
44786/* Override any gcc2 internal prototype to avoid an error. */
44787#ifdef __cplusplus
44788extern "C"
44789{
44790#endif
44791/* We use char because int might match the return type of a gcc2
44792 builtin and then its argument prototype would still apply. */
44793char $ac_func ();
44794/* The GNU C library defines this for functions which it implements
44795 to always fail with ENOSYS. Some functions are actually named
44796 something starting with __ and the normal name is an alias. */
44797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44798choke me
44799#else
44800char (*f) () = $ac_func;
44801#endif
44802#ifdef __cplusplus
44803}
44804#endif
44805
44806int
44807main ()
44808{
44809return f != $ac_func;
44810 ;
44811 return 0;
44812}
44813_ACEOF
44814rm -f conftest.$ac_objext conftest$ac_exeext
44815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44816 (eval $ac_link) 2>conftest.er1
a848cd7e 44817 ac_status=$?
ac1cb8d3
VS
44818 grep -v '^ *+' conftest.er1 >conftest.err
44819 rm -f conftest.er1
44820 cat conftest.err >&5
a848cd7e
SC
44821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44822 (exit $ac_status); } &&
3565d135
RR
44823 { ac_try='test -z "$ac_c_werror_flag"
44824 || test ! -s conftest.err'
ac1cb8d3
VS
44825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44826 (eval $ac_try) 2>&5
44827 ac_status=$?
44828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44829 (exit $ac_status); }; } &&
44830 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44832 (eval $ac_try) 2>&5
44833 ac_status=$?
44834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44835 (exit $ac_status); }; }; then
44836 eval "$as_ac_var=yes"
44837else
44838 echo "$as_me: failed program was:" >&5
44839sed 's/^/| /' conftest.$ac_ext >&5
44840
44841eval "$as_ac_var=no"
44842fi
ac1cb8d3
VS
44843rm -f conftest.err conftest.$ac_objext \
44844 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44845fi
44846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44847echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44848if test `eval echo '${'$as_ac_var'}'` = yes; then
44849 cat >>confdefs.h <<_ACEOF
44850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44851_ACEOF
44852 have_floor=1
44853fi
44854done
44855
44856echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
44857echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
44858if test "$have_cos" = 1 -a "$have_floor" = 1; then
44859 echo "$as_me:$LINENO: result: yes" >&5
44860echo "${ECHO_T}yes" >&6
44861else
44862 echo "$as_me:$LINENO: result: no" >&5
44863echo "${ECHO_T}no" >&6
44864 LIBS="$LIBS -lm"
44865 # use different functions to avoid configure caching
44866 have_sin=0
44867 have_ceil=0
44868
44869for ac_func in sin
44870do
44871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44872echo "$as_me:$LINENO: checking for $ac_func" >&5
44873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44874if eval "test \"\${$as_ac_var+set}\" = set"; then
44875 echo $ECHO_N "(cached) $ECHO_C" >&6
44876else
44877 cat >conftest.$ac_ext <<_ACEOF
44878/* confdefs.h. */
44879_ACEOF
44880cat confdefs.h >>conftest.$ac_ext
44881cat >>conftest.$ac_ext <<_ACEOF
44882/* end confdefs.h. */
ac1cb8d3
VS
44883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44885#define $ac_func innocuous_$ac_func
44886
a848cd7e
SC
44887/* System header to define __stub macros and hopefully few prototypes,
44888 which can conflict with char $ac_func (); below.
44889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44890 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44891
a848cd7e
SC
44892#ifdef __STDC__
44893# include <limits.h>
44894#else
44895# include <assert.h>
44896#endif
ac1cb8d3
VS
44897
44898#undef $ac_func
44899
a848cd7e
SC
44900/* Override any gcc2 internal prototype to avoid an error. */
44901#ifdef __cplusplus
44902extern "C"
44903{
44904#endif
44905/* We use char because int might match the return type of a gcc2
44906 builtin and then its argument prototype would still apply. */
44907char $ac_func ();
44908/* The GNU C library defines this for functions which it implements
44909 to always fail with ENOSYS. Some functions are actually named
44910 something starting with __ and the normal name is an alias. */
44911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44912choke me
44913#else
44914char (*f) () = $ac_func;
44915#endif
44916#ifdef __cplusplus
44917}
44918#endif
44919
44920int
44921main ()
44922{
44923return f != $ac_func;
44924 ;
44925 return 0;
44926}
44927_ACEOF
44928rm -f conftest.$ac_objext conftest$ac_exeext
44929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44930 (eval $ac_link) 2>conftest.er1
a848cd7e 44931 ac_status=$?
ac1cb8d3
VS
44932 grep -v '^ *+' conftest.er1 >conftest.err
44933 rm -f conftest.er1
44934 cat conftest.err >&5
a848cd7e
SC
44935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44936 (exit $ac_status); } &&
3565d135
RR
44937 { ac_try='test -z "$ac_c_werror_flag"
44938 || test ! -s conftest.err'
ac1cb8d3
VS
44939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44940 (eval $ac_try) 2>&5
44941 ac_status=$?
44942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44943 (exit $ac_status); }; } &&
44944 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44946 (eval $ac_try) 2>&5
44947 ac_status=$?
44948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44949 (exit $ac_status); }; }; then
44950 eval "$as_ac_var=yes"
44951else
44952 echo "$as_me: failed program was:" >&5
44953sed 's/^/| /' conftest.$ac_ext >&5
44954
44955eval "$as_ac_var=no"
44956fi
ac1cb8d3
VS
44957rm -f conftest.err conftest.$ac_objext \
44958 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44959fi
44960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44961echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44962if test `eval echo '${'$as_ac_var'}'` = yes; then
44963 cat >>confdefs.h <<_ACEOF
44964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44965_ACEOF
44966 have_sin=1
44967fi
44968done
44969
44970
44971for ac_func in ceil
44972do
44973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44974echo "$as_me:$LINENO: checking for $ac_func" >&5
44975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44976if eval "test \"\${$as_ac_var+set}\" = set"; then
44977 echo $ECHO_N "(cached) $ECHO_C" >&6
44978else
44979 cat >conftest.$ac_ext <<_ACEOF
44980/* confdefs.h. */
44981_ACEOF
44982cat confdefs.h >>conftest.$ac_ext
44983cat >>conftest.$ac_ext <<_ACEOF
44984/* end confdefs.h. */
ac1cb8d3
VS
44985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44987#define $ac_func innocuous_$ac_func
44988
a848cd7e
SC
44989/* System header to define __stub macros and hopefully few prototypes,
44990 which can conflict with char $ac_func (); below.
44991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44992 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44993
a848cd7e
SC
44994#ifdef __STDC__
44995# include <limits.h>
44996#else
44997# include <assert.h>
44998#endif
ac1cb8d3
VS
44999
45000#undef $ac_func
45001
a848cd7e
SC
45002/* Override any gcc2 internal prototype to avoid an error. */
45003#ifdef __cplusplus
45004extern "C"
45005{
45006#endif
45007/* We use char because int might match the return type of a gcc2
45008 builtin and then its argument prototype would still apply. */
45009char $ac_func ();
45010/* The GNU C library defines this for functions which it implements
45011 to always fail with ENOSYS. Some functions are actually named
45012 something starting with __ and the normal name is an alias. */
45013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45014choke me
45015#else
45016char (*f) () = $ac_func;
45017#endif
45018#ifdef __cplusplus
45019}
45020#endif
45021
45022int
45023main ()
45024{
45025return f != $ac_func;
45026 ;
45027 return 0;
45028}
45029_ACEOF
45030rm -f conftest.$ac_objext conftest$ac_exeext
45031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45032 (eval $ac_link) 2>conftest.er1
a848cd7e 45033 ac_status=$?
ac1cb8d3
VS
45034 grep -v '^ *+' conftest.er1 >conftest.err
45035 rm -f conftest.er1
45036 cat conftest.err >&5
a848cd7e
SC
45037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45038 (exit $ac_status); } &&
3565d135
RR
45039 { ac_try='test -z "$ac_c_werror_flag"
45040 || test ! -s conftest.err'
ac1cb8d3
VS
45041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45042 (eval $ac_try) 2>&5
45043 ac_status=$?
45044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45045 (exit $ac_status); }; } &&
45046 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45048 (eval $ac_try) 2>&5
45049 ac_status=$?
45050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45051 (exit $ac_status); }; }; then
45052 eval "$as_ac_var=yes"
45053else
45054 echo "$as_me: failed program was:" >&5
45055sed 's/^/| /' conftest.$ac_ext >&5
45056
45057eval "$as_ac_var=no"
45058fi
ac1cb8d3
VS
45059rm -f conftest.err conftest.$ac_objext \
45060 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45061fi
45062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45064if test `eval echo '${'$as_ac_var'}'` = yes; then
45065 cat >>confdefs.h <<_ACEOF
45066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45067_ACEOF
45068 have_ceil=1
45069fi
45070done
45071
45072 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
45073echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
45074 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
45075 echo "$as_me:$LINENO: result: yes" >&5
45076echo "${ECHO_T}yes" >&6
45077 else
45078 echo "$as_me:$LINENO: result: no" >&5
45079echo "${ECHO_T}no" >&6
45080 # not sure we should warn the user, crash, etc.
45081 fi
45082fi
45083
45084if test "$wxUSE_GUI" = "yes"; then
45085
45086
8bce5cda
MW
45087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45088 dynamic erase event exec font image minimal mobile \
45089 mobile/wxedit mobile/styles propsize render \
45090 richedit rotate shaped vscroll widgets"
a848cd7e
SC
45091
45092 if test "$wxUSE_MONOLITHIC" != "yes"; then
45093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45094 fi
0b78747f 45095 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45097 if test "$wxUSE_UNIVERSAL" != "yes"; then
45098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45099 fi
45100 fi
45101 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45103 fi
a848cd7e
SC
45104else
45105 SAMPLES_SUBDIRS="console"
45106fi
45107
45108
48f625bc 45109if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45110 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45111elif test "$GCC" = yes ; then
45112 CWARNINGS="-Wall -Wundef"
45113fi
45114
48f625bc 45115if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45116 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45117elif test "$GXX" = yes ; then
45118 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45119fi
a848cd7e 45120
a848cd7e 45121
5ff751d6
VZ
45122WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45123WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45124
45125
c92ad099 45126CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45127 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45128 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45129 $CPPFLAGS `
5ff751d6 45130
8aeeb05c 45131C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45132CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45133CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45134
45135WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45136
a848cd7e 45137
95986553
DE
45138if test "x$MWCC" = "xyes"; then
45139
45140 CC="$CC -cwd source -I-"
45141 CXX="$CXX -cwd source -I-"
45142fi
45143
a848cd7e 45144
0c3c69fc 45145LIBS=`echo $LIBS`
a848cd7e
SC
45146EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45147EXTRALIBS_XML="$EXPAT_LINK"
45148EXTRALIBS_HTML="$MSPACK_LINK"
45149EXTRALIBS_ODBC="$ODBC_LINK"
45150if test "$wxUSE_GUI" = "yes"; then
3565d135 45151 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45152fi
45153if test "$wxUSE_OPENGL" = "yes"; then
45154 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45155fi
45156
8aeeb05c 45157LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45158
5ff751d6 45159WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45160
45161if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45162 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45163fi
45164if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45165 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45166fi
45167if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45168 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45169fi
45170if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45171 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45172fi
45173if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45174 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45175fi
45176if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45177 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45178fi
45179if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45180 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45181fi
45182
45183for i in $wxconfig_3rdparty ; do
5ff751d6 45184 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45185done
45186
45187
45188if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45189 WXUNIV=1
45190else
45191 WXUNIV=0
45192fi
45193
45194
45195
45196
45197
45198
45199
45200
45201
45202if test $wxUSE_MONOLITHIC = "yes" ; then
45203 MONOLITHIC=1
45204else
45205 MONOLITHIC=0
45206fi
45207
45208if test $wxUSE_PLUGINS = "yes" ; then
45209 USE_PLUGINS=1
45210else
45211 USE_PLUGINS=0
45212fi
45213
45214if test $wxUSE_ODBC != "no" ; then
45215 USE_ODBC=1
45216else
45217 USE_ODBC=0
45218fi
45219
16358932
VZ
45220if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45221 USE_QA=1
45222else
45223 USE_QA=0
45224fi
45225
a848cd7e
SC
45226if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45227 OFFICIAL_BUILD=1
45228else
45229 OFFICIAL_BUILD=0
45230fi
45231
45232
45233
45234
45235
45236
45237
45238
45239
45240
45241
45242
45243
45244
45245
45246
45247
45248
45249
ceec2216 45250
d1c38808 45251
3565d135 45252
a848cd7e
SC
45253
45254
45255TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45256
45257
45258
45259
45260
45261
45262
45263
4d4ff94c
VZ
45264case "$TOOLKIT" in
45265 GTK)
45266 TOOLKIT_USER="GTK+"
45267 if test "$WXGTK20" = 1; then
45268 TOOLKIT_USER="$TOOLKIT_USER 2"
45269 fi
9a8f0513 45270 ;;
4d4ff94c
VZ
45271
45272 *)
45273 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45274 ;;
4d4ff94c 45275esac
a848cd7e 45276
fb00f58d
JS
45277if test "$wxUSE_WINE" = "yes"; then
45278 BAKEFILE_FORCE_PLATFORM=win32
45279fi
45280
9a8f0513 45281
1e9e8aba
DE
45282
45283
a848cd7e
SC
45284 if test "x$BAKEFILE_HOST" = "x"; then
45285 BAKEFILE_HOST="${host}"
45286 fi
45287
45288 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45289
45290 if test -n "$ac_tool_prefix"; then
45291 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45292set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45293echo "$as_me:$LINENO: checking for $ac_word" >&5
45294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45295if test "${ac_cv_prog_RANLIB+set}" = set; then
45296 echo $ECHO_N "(cached) $ECHO_C" >&6
45297else
45298 if test -n "$RANLIB"; then
45299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45300else
45301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45302for as_dir in $PATH
45303do
45304 IFS=$as_save_IFS
45305 test -z "$as_dir" && as_dir=.
45306 for ac_exec_ext in '' $ac_executable_extensions; do
45307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45308 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45310 break 2
45311 fi
45312done
45313done
45314
45315fi
45316fi
45317RANLIB=$ac_cv_prog_RANLIB
45318if test -n "$RANLIB"; then
45319 echo "$as_me:$LINENO: result: $RANLIB" >&5
45320echo "${ECHO_T}$RANLIB" >&6
45321else
45322 echo "$as_me:$LINENO: result: no" >&5
45323echo "${ECHO_T}no" >&6
45324fi
45325
45326fi
45327if test -z "$ac_cv_prog_RANLIB"; then
45328 ac_ct_RANLIB=$RANLIB
45329 # Extract the first word of "ranlib", so it can be a program name with args.
45330set dummy ranlib; ac_word=$2
45331echo "$as_me:$LINENO: checking for $ac_word" >&5
45332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45333if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45334 echo $ECHO_N "(cached) $ECHO_C" >&6
45335else
45336 if test -n "$ac_ct_RANLIB"; then
45337 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45338else
45339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45340for as_dir in $PATH
45341do
45342 IFS=$as_save_IFS
45343 test -z "$as_dir" && as_dir=.
45344 for ac_exec_ext in '' $ac_executable_extensions; do
45345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45346 ac_cv_prog_ac_ct_RANLIB="ranlib"
45347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45348 break 2
45349 fi
45350done
45351done
45352
45353 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45354fi
45355fi
45356ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45357if test -n "$ac_ct_RANLIB"; then
45358 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45359echo "${ECHO_T}$ac_ct_RANLIB" >&6
45360else
45361 echo "$as_me:$LINENO: result: no" >&5
45362echo "${ECHO_T}no" >&6
45363fi
45364
45365 RANLIB=$ac_ct_RANLIB
45366else
45367 RANLIB="$ac_cv_prog_RANLIB"
45368fi
45369
45370 # Find a good install program. We prefer a C program (faster),
45371# so one script is as good as another. But avoid the broken or
45372# incompatible versions:
45373# SysV /etc/install, /usr/sbin/install
45374# SunOS /usr/etc/install
45375# IRIX /sbin/install
45376# AIX /bin/install
45377# AmigaOS /C/install, which installs bootblocks on floppy discs
45378# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45379# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45380# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45381# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45382# ./install, which can be erroneously created by make from ./install.sh.
45383echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45384echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45385if test -z "$INSTALL"; then
45386if test "${ac_cv_path_install+set}" = set; then
45387 echo $ECHO_N "(cached) $ECHO_C" >&6
45388else
45389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45390for as_dir in $PATH
45391do
45392 IFS=$as_save_IFS
45393 test -z "$as_dir" && as_dir=.
45394 # Account for people who put trailing slashes in PATH elements.
45395case $as_dir/ in
45396 ./ | .// | /cC/* | \
45397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45398 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45399 /usr/ucb/* ) ;;
45400 *)
45401 # OSF1 and SCO ODT 3.0 have their own names for install.
45402 # Don't use installbsd from OSF since it installs stuff as root
45403 # by default.
45404 for ac_prog in ginstall scoinst install; do
45405 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45406 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45407 if test $ac_prog = install &&
45408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45409 # AIX install. It has an incompatible calling convention.
45410 :
45411 elif test $ac_prog = install &&
45412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45413 # program-specific install script used by HP pwplus--don't use.
45414 :
45415 else
45416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45417 break 3
45418 fi
45419 fi
a848cd7e
SC
45420 done
45421 done
45422 ;;
45423esac
45424done
45425
45426
45427fi
45428 if test "${ac_cv_path_install+set}" = set; then
45429 INSTALL=$ac_cv_path_install
45430 else
45431 # As a last resort, use the slow shell script. We don't cache a
45432 # path for INSTALL within a source directory, because that will
45433 # break other packages using the cache if that directory is
45434 # removed, or if the path is relative.
45435 INSTALL=$ac_install_sh
45436 fi
45437fi
45438echo "$as_me:$LINENO: result: $INSTALL" >&5
45439echo "${ECHO_T}$INSTALL" >&6
45440
45441# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45442# It thinks the first close brace ends the variable substitution.
45443test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45444
45445test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45446
45447test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45448
45449 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45450echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45451LN_S=$as_ln_s
45452if test "$LN_S" = "ln -s"; then
45453 echo "$as_me:$LINENO: result: yes" >&5
45454echo "${ECHO_T}yes" >&6
45455else
45456 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45457echo "${ECHO_T}no, using $LN_S" >&6
45458fi
45459
45460
45461 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45462echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45463set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45464if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45465 echo $ECHO_N "(cached) $ECHO_C" >&6
45466else
45467 cat >conftest.make <<\_ACEOF
45468all:
45469 @echo 'ac_maketemp="$(MAKE)"'
45470_ACEOF
45471# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45472eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45473if test -n "$ac_maketemp"; then
45474 eval ac_cv_prog_make_${ac_make}_set=yes
45475else
45476 eval ac_cv_prog_make_${ac_make}_set=no
45477fi
45478rm -f conftest.make
45479fi
45480if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45481 echo "$as_me:$LINENO: result: yes" >&5
45482echo "${ECHO_T}yes" >&6
45483 SET_MAKE=
45484else
45485 echo "$as_me:$LINENO: result: no" >&5
45486echo "${ECHO_T}no" >&6
45487 SET_MAKE="MAKE=${MAKE-make}"
45488fi
45489
45490
45491
45492 if test -n "$ac_tool_prefix"; then
45493 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45494set dummy ${ac_tool_prefix}ar; ac_word=$2
45495echo "$as_me:$LINENO: checking for $ac_word" >&5
45496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45497if test "${ac_cv_prog_AR+set}" = set; then
45498 echo $ECHO_N "(cached) $ECHO_C" >&6
45499else
45500 if test -n "$AR"; then
45501 ac_cv_prog_AR="$AR" # Let the user override the test.
45502else
45503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45504for as_dir in $PATH
45505do
45506 IFS=$as_save_IFS
45507 test -z "$as_dir" && as_dir=.
45508 for ac_exec_ext in '' $ac_executable_extensions; do
45509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45510 ac_cv_prog_AR="${ac_tool_prefix}ar"
45511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45512 break 2
45513 fi
45514done
45515done
45516
45517fi
45518fi
45519AR=$ac_cv_prog_AR
45520if test -n "$AR"; then
45521 echo "$as_me:$LINENO: result: $AR" >&5
45522echo "${ECHO_T}$AR" >&6
45523else
45524 echo "$as_me:$LINENO: result: no" >&5
45525echo "${ECHO_T}no" >&6
45526fi
45527
45528fi
45529if test -z "$ac_cv_prog_AR"; then
45530 ac_ct_AR=$AR
45531 # Extract the first word of "ar", so it can be a program name with args.
45532set dummy ar; ac_word=$2
45533echo "$as_me:$LINENO: checking for $ac_word" >&5
45534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45535if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45536 echo $ECHO_N "(cached) $ECHO_C" >&6
45537else
45538 if test -n "$ac_ct_AR"; then
45539 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45540else
45541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45542for as_dir in $PATH
45543do
45544 IFS=$as_save_IFS
45545 test -z "$as_dir" && as_dir=.
45546 for ac_exec_ext in '' $ac_executable_extensions; do
45547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45548 ac_cv_prog_ac_ct_AR="ar"
45549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45550 break 2
45551 fi
45552done
45553done
45554
45555 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45556fi
45557fi
45558ac_ct_AR=$ac_cv_prog_ac_ct_AR
45559if test -n "$ac_ct_AR"; then
45560 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45561echo "${ECHO_T}$ac_ct_AR" >&6
45562else
45563 echo "$as_me:$LINENO: result: no" >&5
45564echo "${ECHO_T}no" >&6
45565fi
45566
45567 AR=$ac_ct_AR
45568else
45569 AR="$ac_cv_prog_AR"
45570fi
45571
45572 if test -n "$ac_tool_prefix"; then
45573 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45574set dummy ${ac_tool_prefix}strip; ac_word=$2
45575echo "$as_me:$LINENO: checking for $ac_word" >&5
45576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45577if test "${ac_cv_prog_STRIP+set}" = set; then
45578 echo $ECHO_N "(cached) $ECHO_C" >&6
45579else
45580 if test -n "$STRIP"; then
45581 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45582else
45583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45584for as_dir in $PATH
45585do
45586 IFS=$as_save_IFS
45587 test -z "$as_dir" && as_dir=.
45588 for ac_exec_ext in '' $ac_executable_extensions; do
45589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45590 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45592 break 2
45593 fi
45594done
45595done
45596
45597fi
45598fi
45599STRIP=$ac_cv_prog_STRIP
45600if test -n "$STRIP"; then
45601 echo "$as_me:$LINENO: result: $STRIP" >&5
45602echo "${ECHO_T}$STRIP" >&6
45603else
45604 echo "$as_me:$LINENO: result: no" >&5
45605echo "${ECHO_T}no" >&6
45606fi
45607
45608fi
45609if test -z "$ac_cv_prog_STRIP"; then
45610 ac_ct_STRIP=$STRIP
45611 # Extract the first word of "strip", so it can be a program name with args.
45612set dummy strip; ac_word=$2
45613echo "$as_me:$LINENO: checking for $ac_word" >&5
45614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45615if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45616 echo $ECHO_N "(cached) $ECHO_C" >&6
45617else
45618 if test -n "$ac_ct_STRIP"; then
45619 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45620else
45621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45622for as_dir in $PATH
45623do
45624 IFS=$as_save_IFS
45625 test -z "$as_dir" && as_dir=.
45626 for ac_exec_ext in '' $ac_executable_extensions; do
45627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45628 ac_cv_prog_ac_ct_STRIP="strip"
45629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45630 break 2
45631 fi
45632done
45633done
45634
45635 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45636fi
45637fi
45638ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45639if test -n "$ac_ct_STRIP"; then
45640 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45641echo "${ECHO_T}$ac_ct_STRIP" >&6
45642else
45643 echo "$as_me:$LINENO: result: no" >&5
45644echo "${ECHO_T}no" >&6
45645fi
45646
45647 STRIP=$ac_ct_STRIP
45648else
45649 STRIP="$ac_cv_prog_STRIP"
45650fi
45651
45652 if test -n "$ac_tool_prefix"; then
45653 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45654set dummy ${ac_tool_prefix}nm; ac_word=$2
45655echo "$as_me:$LINENO: checking for $ac_word" >&5
45656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45657if test "${ac_cv_prog_NM+set}" = set; then
45658 echo $ECHO_N "(cached) $ECHO_C" >&6
45659else
45660 if test -n "$NM"; then
45661 ac_cv_prog_NM="$NM" # Let the user override the test.
45662else
45663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45664for as_dir in $PATH
45665do
45666 IFS=$as_save_IFS
45667 test -z "$as_dir" && as_dir=.
45668 for ac_exec_ext in '' $ac_executable_extensions; do
45669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45670 ac_cv_prog_NM="${ac_tool_prefix}nm"
45671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45672 break 2
45673 fi
45674done
45675done
45676
45677fi
45678fi
45679NM=$ac_cv_prog_NM
45680if test -n "$NM"; then
45681 echo "$as_me:$LINENO: result: $NM" >&5
45682echo "${ECHO_T}$NM" >&6
45683else
45684 echo "$as_me:$LINENO: result: no" >&5
45685echo "${ECHO_T}no" >&6
45686fi
45687
45688fi
45689if test -z "$ac_cv_prog_NM"; then
45690 ac_ct_NM=$NM
45691 # Extract the first word of "nm", so it can be a program name with args.
45692set dummy nm; ac_word=$2
45693echo "$as_me:$LINENO: checking for $ac_word" >&5
45694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45695if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45696 echo $ECHO_N "(cached) $ECHO_C" >&6
45697else
45698 if test -n "$ac_ct_NM"; then
45699 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45700else
45701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45702for as_dir in $PATH
45703do
45704 IFS=$as_save_IFS
45705 test -z "$as_dir" && as_dir=.
45706 for ac_exec_ext in '' $ac_executable_extensions; do
45707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45708 ac_cv_prog_ac_ct_NM="nm"
45709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45710 break 2
45711 fi
45712done
45713done
45714
45715 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45716fi
45717fi
45718ac_ct_NM=$ac_cv_prog_ac_ct_NM
45719if test -n "$ac_ct_NM"; then
45720 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45721echo "${ECHO_T}$ac_ct_NM" >&6
45722else
45723 echo "$as_me:$LINENO: result: no" >&5
45724echo "${ECHO_T}no" >&6
45725fi
45726
45727 NM=$ac_ct_NM
45728else
45729 NM="$ac_cv_prog_NM"
45730fi
45731
45732
45733 case ${BAKEFILE_HOST} in
45734 *-hp-hpux* )
1e9e8aba 45735 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45736 ;;
45737 *) INSTALL_DIR="$INSTALL -d"
45738 ;;
45739 esac
45740
45741
45742 LDFLAGS_GUI=
45743 case ${BAKEFILE_HOST} in
45744 *-*-cygwin* | *-*-mingw32* )
45745 LDFLAGS_GUI="-mwindows"
45746 esac
45747
45748
45749 fi
45750
45751 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45752echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45753if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45754 echo $ECHO_N "(cached) $ECHO_C" >&6
45755else
45756
45757 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45758 egrep -s GNU > /dev/null); then
45759 bakefile_cv_prog_makeisgnu="yes"
45760 else
45761 bakefile_cv_prog_makeisgnu="no"
45762 fi
45763
45764fi
45765echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45766echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45767
45768 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45769 IF_GNU_MAKE=""
45770 else
45771 IF_GNU_MAKE="#"
45772 fi
45773
45774
45775
45776 PLATFORM_UNIX=0
45777 PLATFORM_WIN32=0
45778 PLATFORM_MSDOS=0
45779 PLATFORM_MAC=0
1e9e8aba 45780 PLATFORM_MACOS=0
a848cd7e
SC
45781 PLATFORM_MACOSX=0
45782 PLATFORM_OS2=0
1e9e8aba 45783 PLATFORM_BEOS=0
a848cd7e
SC
45784
45785 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45786 case "${BAKEFILE_HOST}" in
810b94f0 45787 *-*-mingw32* )
a848cd7e
SC
45788 PLATFORM_WIN32=1
45789 ;;
45790 *-pc-msdosdjgpp )
45791 PLATFORM_MSDOS=1
45792 ;;
45793 *-pc-os2_emx | *-pc-os2-emx )
45794 PLATFORM_OS2=1
45795 ;;
47bd5406 45796 *-*-darwin* )
a848cd7e
SC
45797 PLATFORM_MAC=1
45798 PLATFORM_MACOSX=1
45799 ;;
1e9e8aba
DE
45800 *-*-beos* )
45801 PLATFORM_BEOS=1
45802 ;;
45803 powerpc-apple-macos* )
45804 PLATFORM_MAC=1
45805 PLATFORM_MACOS=1
45806 ;;
a848cd7e
SC
45807 * )
45808 PLATFORM_UNIX=1
45809 ;;
45810 esac
45811 else
45812 case "$BAKEFILE_FORCE_PLATFORM" in
45813 win32 )
45814 PLATFORM_WIN32=1
45815 ;;
45816 msdos )
45817 PLATFORM_MSDOS=1
45818 ;;
45819 os2 )
45820 PLATFORM_OS2=1
45821 ;;
45822 darwin )
45823 PLATFORM_MAC=1
45824 PLATFORM_MACOSX=1
45825 ;;
45826 unix )
45827 PLATFORM_UNIX=1
45828 ;;
1e9e8aba
DE
45829 beos )
45830 PLATFORM_BEOS=1
45831 ;;
a848cd7e
SC
45832 * )
45833 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45834echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45835 { (exit 1); exit 1; }; }
45836 ;;
45837 esac
45838 fi
45839
45840
45841
45842
45843
45844
45845
45846
45847
1e9e8aba
DE
45848
45849
a848cd7e
SC
45850 # Check whether --enable-omf or --disable-omf was given.
45851if test "${enable_omf+set}" = set; then
45852 enableval="$enable_omf"
45853 bk_os2_use_omf="$enableval"
45854fi;
45855
45856 case "${BAKEFILE_HOST}" in
45857 *-*-darwin* )
47bd5406
VZ
45858 if test "x$GCC" = "xyes"; then
45859 CFLAGS="$CFLAGS -fno-common"
45860 CXXFLAGS="$CXXFLAGS -fno-common"
45861 fi
45862 if test "x$XLCC" = "xyes"; then
45863 CFLAGS="$CFLAGS -qnocommon"
45864 CXXFLAGS="$CXXFLAGS -qnocommon"
45865 fi
a848cd7e
SC
45866 ;;
45867
45868 *-pc-os2_emx | *-pc-os2-emx )
45869 if test "x$bk_os2_use_omf" = "xyes" ; then
45870 AR=emxomfar
45871 RANLIB=:
45872 LDFLAGS="-Zomf $LDFLAGS"
45873 CFLAGS="-Zomf $CFLAGS"
45874 CXXFLAGS="-Zomf $CXXFLAGS"
45875 OS2_LIBEXT="lib"
45876 else
45877 OS2_LIBEXT="a"
45878 fi
45879 ;;
1e9e8aba
DE
45880
45881 i*86-*-beos* )
45882 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
45883 ;;
a848cd7e
SC
45884 esac
45885
45886
45887 SO_SUFFIX="so"
45888 SO_SUFFIX_MODULE="so"
45889 EXEEXT=""
45890 LIBPREFIX="lib"
45891 LIBEXT=".a"
45892 DLLPREFIX="lib"
45893 DLLPREFIX_MODULE=""
45894 DLLIMP_SUFFIX=""
810b94f0 45895 dlldir="$libdir"
a848cd7e
SC
45896
45897 case "${BAKEFILE_HOST}" in
45898 *-hp-hpux* )
45899 SO_SUFFIX="sl"
45900 SO_SUFFIX_MODULE="sl"
45901 ;;
45902 *-*-aix* )
45903 SO_SUFFIX="a"
45904 SO_SUFFIX_MODULE="a"
45905 ;;
810b94f0
MW
45906 *-*-cygwin* )
45907 SO_SUFFIX="dll"
45908 SO_SUFFIX_MODULE="dll"
45909 DLLIMP_SUFFIX="dll.a"
45910 EXEEXT=".exe"
45911 DLLPREFIX="cyg"
45912 dlldir="$bindir"
45913 ;;
45914 *-*-mingw32* )
a848cd7e
SC
45915 SO_SUFFIX="dll"
45916 SO_SUFFIX_MODULE="dll"
45917 DLLIMP_SUFFIX="dll.a"
45918 EXEEXT=".exe"
45919 DLLPREFIX=""
810b94f0 45920 dlldir="$bindir"
a848cd7e
SC
45921 ;;
45922 *-pc-msdosdjgpp )
45923 EXEEXT=".exe"
45924 DLLPREFIX=""
810b94f0 45925 dlldir="$bindir"
a848cd7e
SC
45926 ;;
45927 *-pc-os2_emx | *-pc-os2-emx )
45928 SO_SUFFIX="dll"
45929 SO_SUFFIX_MODULE="dll"
45930 DLLIMP_SUFFIX=$OS2_LIBEXT
45931 EXEEXT=".exe"
45932 DLLPREFIX=""
45933 LIBPREFIX=""
45934 LIBEXT=".$OS2_LIBEXT"
810b94f0 45935 dlldir="$bindir"
a848cd7e 45936 ;;
47bd5406 45937 *-*-darwin* )
a848cd7e
SC
45938 SO_SUFFIX="dylib"
45939 SO_SUFFIX_MODULE="bundle"
45940 ;;
45941 esac
45942
45943 if test "x$DLLIMP_SUFFIX" = "x" ; then
45944 DLLIMP_SUFFIX="$SO_SUFFIX"
45945 fi
45946
45947
45948
45949
45950
45951
45952
45953
45954
45955
45956
810b94f0 45957
1e9e8aba
DE
45958 PIC_FLAG=""
45959 if test "x$GCC" = "xyes"; then
a848cd7e
SC
45960 PIC_FLAG="-fPIC"
45961 fi
45962
1e9e8aba
DE
45963 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
45964 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 45965 WINDOWS_IMPLIB=0
1e9e8aba 45966
a848cd7e
SC
45967 case "${BAKEFILE_HOST}" in
45968 *-hp-hpux* )
1e9e8aba 45969 if test "x$GCC" != "xyes"; then
a848cd7e
SC
45970 LDFLAGS="$LDFLAGS -L/usr/lib"
45971
45972 SHARED_LD_CC="${CC} -b -o"
45973 SHARED_LD_CXX="${CXX} -b -o"
45974 PIC_FLAG="+Z"
45975 fi
45976 ;;
45977
45978 *-*-linux* )
45979 if test "x$GCC" != "xyes"; then
45980 echo "$as_me:$LINENO: checking for Intel compiler" >&5
45981echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
45982if test "${bakefile_cv_prog_icc+set}" = set; then
45983 echo $ECHO_N "(cached) $ECHO_C" >&6
45984else
45985
45986 cat >conftest.$ac_ext <<_ACEOF
45987/* confdefs.h. */
45988_ACEOF
45989cat confdefs.h >>conftest.$ac_ext
45990cat >>conftest.$ac_ext <<_ACEOF
45991/* end confdefs.h. */
45992
45993int
45994main ()
45995{
45996
45997 #ifndef __INTEL_COMPILER
45998 #error Not icc
45999 #endif
46000
46001 ;
46002 return 0;
46003}
46004_ACEOF
46005rm -f conftest.$ac_objext
46006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46007 (eval $ac_compile) 2>conftest.er1
a848cd7e 46008 ac_status=$?
ac1cb8d3
VS
46009 grep -v '^ *+' conftest.er1 >conftest.err
46010 rm -f conftest.er1
46011 cat conftest.err >&5
a848cd7e
SC
46012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46013 (exit $ac_status); } &&
3565d135
RR
46014 { ac_try='test -z "$ac_c_werror_flag"
46015 || test ! -s conftest.err'
ac1cb8d3
VS
46016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46017 (eval $ac_try) 2>&5
46018 ac_status=$?
46019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46020 (exit $ac_status); }; } &&
46021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46023 (eval $ac_try) 2>&5
46024 ac_status=$?
46025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46026 (exit $ac_status); }; }; then
46027 bakefile_cv_prog_icc=yes
46028else
46029 echo "$as_me: failed program was:" >&5
46030sed 's/^/| /' conftest.$ac_ext >&5
46031
46032bakefile_cv_prog_icc=no
46033
46034fi
ac1cb8d3 46035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46036
46037fi
46038echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46039echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46040 if test "$bakefile_cv_prog_icc" = "yes"; then
46041 PIC_FLAG="-KPIC"
46042 fi
46043 fi
46044 ;;
46045
46046 *-*-solaris2* )
46047 if test "x$GCC" != xyes ; then
46048 SHARED_LD_CC="${CC} -G -o"
46049 SHARED_LD_CXX="${CXX} -G -o"
46050 PIC_FLAG="-KPIC"
46051 fi
46052 ;;
46053
46054 *-*-darwin* )
46055
473276a9
VS
46056D='$'
46057cat <<EOF >shared-ld-sh
a848cd7e
SC
46058#!/bin/sh
46059#-----------------------------------------------------------------------------
46060#-- Name: distrib/mac/shared-ld-sh
46061#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46062#-- Author: Gilles Depeyrot
46063#-- Copyright: (c) 2002 Gilles Depeyrot
46064#-- Licence: any use permitted
46065#-----------------------------------------------------------------------------
46066
46067verbose=0
46068args=""
46069objects=""
46070linking_flag="-dynamiclib"
810b94f0 46071ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46072
473276a9
VS
46073while test ${D}# -gt 0; do
46074 case ${D}1 in
a848cd7e
SC
46075
46076 -v)
46077 verbose=1
46078 ;;
46079
46080 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46081 # collect these options and values
473276a9 46082 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46083 shift
46084 ;;
46085
810b94f0
MW
46086 -s|-Wl,*)
46087 # collect these load args
46088 ldargs="${D}{ldargs} ${D}1"
2113bc77 46089 ;;
810b94f0
MW
46090
46091 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46092 # collect these options
473276a9 46093 args="${D}{args} ${D}1"
a848cd7e
SC
46094 ;;
46095
46096 -dynamiclib|-bundle)
473276a9 46097 linking_flag="${D}1"
a848cd7e
SC
46098 ;;
46099
46100 -*)
473276a9 46101 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46102 exit 1
46103 ;;
46104
46105 *.o | *.a | *.dylib)
46106 # collect object files
473276a9 46107 objects="${D}{objects} ${D}1"
a848cd7e
SC
46108 ;;
46109
46110 *)
473276a9 46111 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46112 exit 1
46113 ;;
46114
46115 esac
46116 shift
46117done
46118
810b94f0
MW
46119status=0
46120
a848cd7e
SC
46121#
46122# Link one module containing all the others
46123#
473276a9 46124if test ${D}{verbose} = 1; then
810b94f0 46125 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46126fi
810b94f0 46127c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46128status=${D}?
a848cd7e
SC
46129
46130#
810b94f0
MW
46131# Link the shared library from the single module created, but only if the
46132# previous command didn't fail:
a848cd7e 46133#
810b94f0
MW
46134if test ${D}{status} = 0; then
46135 if test ${D}{verbose} = 1; then
46136 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46137 fi
46138 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46139 status=${D}?
a848cd7e
SC
46140fi
46141
46142#
46143# Remove intermediate module
46144#
473276a9 46145rm -f master.${D}${D}.o
a848cd7e 46146
810b94f0 46147exit ${D}status
a848cd7e 46148EOF
473276a9 46149
583d6b4b
VZ
46150 chmod +x shared-ld-sh
46151
46152 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46153 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46154
46155
46156 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46157echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46158if test "${bakefile_cv_gcc31+set}" = set; then
46159 echo $ECHO_N "(cached) $ECHO_C" >&6
46160else
46161
46162 cat >conftest.$ac_ext <<_ACEOF
46163/* confdefs.h. */
46164_ACEOF
46165cat confdefs.h >>conftest.$ac_ext
46166cat >>conftest.$ac_ext <<_ACEOF
46167/* end confdefs.h. */
46168
46169int
46170main ()
46171{
46172
46173 #if (__GNUC__ < 3) || \
46174 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
46175 #error old gcc
46176 #endif
a848cd7e 46177
583d6b4b
VZ
46178 ;
46179 return 0;
46180}
46181_ACEOF
46182rm -f conftest.$ac_objext
46183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46184 (eval $ac_compile) 2>conftest.er1
46185 ac_status=$?
46186 grep -v '^ *+' conftest.er1 >conftest.err
46187 rm -f conftest.er1
46188 cat conftest.err >&5
46189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46190 (exit $ac_status); } &&
3565d135
RR
46191 { ac_try='test -z "$ac_c_werror_flag"
46192 || test ! -s conftest.err'
583d6b4b
VZ
46193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46194 (eval $ac_try) 2>&5
46195 ac_status=$?
46196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46197 (exit $ac_status); }; } &&
46198 { ac_try='test -s conftest.$ac_objext'
46199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46200 (eval $ac_try) 2>&5
46201 ac_status=$?
46202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46203 (exit $ac_status); }; }; then
46204
46205 bakefile_cv_gcc31=yes
46206
46207else
46208 echo "$as_me: failed program was:" >&5
46209sed 's/^/| /' conftest.$ac_ext >&5
46210
46211
46212 bakefile_cv_gcc31=no
46213
46214
46215fi
46216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46217
46218fi
46219echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46220echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46221 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46222 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46223 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46224 else
46225 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46226 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46227 fi
46228
47bd5406
VZ
46229 if test "x$GCC" == "xyes"; then
46230 PIC_FLAG="-dynamic -fPIC"
46231 fi
46232 if test "x$XLCC" = "xyes"; then
46233 PIC_FLAG="-dynamic -DPIC"
46234 fi
a848cd7e
SC
46235 ;;
46236
46237 *-*-aix* )
f6b50c59 46238 if test "x$GCC" = "xyes"; then
583d6b4b 46239 PIC_FLAG=""
f6b50c59 46240
583d6b4b
VZ
46241 case "${BAKEFILE_HOST}" in
46242 *-*-aix5* )
46243 LD_EXPFULL="-Wl,-bexpfull"
46244 ;;
46245 esac
f6b50c59 46246
583d6b4b
VZ
46247 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46248 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46249 else
46250 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46251set dummy makeC++SharedLib; ac_word=$2
46252echo "$as_me:$LINENO: checking for $ac_word" >&5
46253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46254if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46255 echo $ECHO_N "(cached) $ECHO_C" >&6
46256else
46257 if test -n "$AIX_CXX_LD"; then
46258 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46259else
46260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46261for as_dir in $PATH
46262do
46263 IFS=$as_save_IFS
46264 test -z "$as_dir" && as_dir=.
46265 for ac_exec_ext in '' $ac_executable_extensions; do
46266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46267 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46269 break 2
46270 fi
46271done
46272done
46273
46274 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46275fi
46276fi
46277AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46278if test -n "$AIX_CXX_LD"; then
46279 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46280echo "${ECHO_T}$AIX_CXX_LD" >&6
46281else
46282 echo "$as_me:$LINENO: result: no" >&5
46283echo "${ECHO_T}no" >&6
46284fi
46285
f6b50c59 46286 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46287 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46288 fi
46289 ;;
46290
46291 *-*-beos* )
1e9e8aba
DE
46292 SHARED_LD_CC="${LD} -nostart -o"
46293 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46294 ;;
46295
46296 *-*-irix* )
46297 if test "x$GCC" != "xyes"; then
46298 PIC_FLAG="-KPIC"
46299 fi
46300 ;;
46301
46302 *-*-cygwin* | *-*-mingw32* )
46303 PIC_FLAG=""
1e9e8aba
DE
46304 SHARED_LD_CC="\$(CC) -shared -o"
46305 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46306 WINDOWS_IMPLIB=1
a848cd7e
SC
46307 ;;
46308
46309 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46310 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46311 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46312 PIC_FLAG=""
473276a9
VS
46313
46314D='$'
46315cat <<EOF >dllar.sh
46316#!/bin/sh
46317#
46318# dllar - a tool to build both a .dll and an .a file
46319# from a set of object (.o) files for EMX/OS2.
46320#
46321# Written by Andrew Zabolotny, bit@freya.etu.ru
46322# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46323#
46324# This script will accept a set of files on the command line.
46325# All the public symbols from the .o files will be exported into
46326# a .DEF file, then linker will be run (through gcc) against them to
46327# build a shared library consisting of all given .o files. All libraries
46328# (.a) will be first decompressed into component .o files then act as
46329# described above. You can optionally give a description (-d "description")
46330# which will be put into .DLL. To see the list of accepted options (as well
46331# as command-line format) simply run this program without options. The .DLL
46332# is built to be imported by name (there is no guarantee that new versions
46333# of the library you build will have same ordinals for same symbols).
46334#
46335# dllar is free software; you can redistribute it and/or modify
46336# it under the terms of the GNU General Public License as published by
46337# the Free Software Foundation; either version 2, or (at your option)
46338# any later version.
46339#
46340# dllar is distributed in the hope that it will be useful,
46341# but WITHOUT ANY WARRANTY; without even the implied warranty of
46342# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46343# GNU General Public License for more details.
46344#
46345# You should have received a copy of the GNU General Public License
46346# along with dllar; see the file COPYING. If not, write to the Free
46347# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46348# 02111-1307, USA.
46349
46350# To successfuly run this program you will need:
46351# - Current drive should have LFN support (HPFS, ext2, network, etc)
46352# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46353# - gcc
46354# (used to build the .dll)
46355# - emxexp
46356# (used to create .def file from .o files)
46357# - emximp
46358# (used to create .a file from .def file)
46359# - GNU text utilites (cat, sort, uniq)
46360# used to process emxexp output
46361# - GNU file utilities (mv, rm)
46362# - GNU sed
46363# - lxlite (optional, see flag below)
46364# (used for general .dll cleanup)
46365#
46366
46367flag_USE_LXLITE=1;
46368
46369#
46370# helper functions
46371# basnam, variant of basename, which does _not_ remove the path, _iff_
46372# second argument (suffix to remove) is given
46373basnam(){
46374 case ${D}# in
46375 1)
1e9e8aba 46376 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46377 ;;
46378 2)
46379 echo ${D}1 | sed 's/'${D}2'${D}//'
46380 ;;
46381 *)
46382 echo "error in basnam ${D}*"
46383 exit 8
46384 ;;
46385 esac
46386}
46387
46388# Cleanup temporary files and output
46389CleanUp() {
46390 cd ${D}curDir
46391 for i in ${D}inputFiles ; do
46392 case ${D}i in
46393 *!)
46394 rm -rf \`basnam ${D}i !\`
46395 ;;
46396 *)
46397 ;;
46398 esac
46399 done
46400
46401 # Kill result in case of failure as there is just to many stupid make/nmake
46402 # things out there which doesn't do this.
1e9e8aba 46403 if [ ${D}# -eq 0 ]; then
473276a9
VS
46404 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46405 fi
46406}
46407
46408# Print usage and exit script with rc=1.
46409PrintHelp() {
b1d22ded
DE
46410 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46411 echo ' [-name-mangler-script script.sh]'
46412 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46413 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46414 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46415 echo ' [*.o] [*.a]'
473276a9
VS
46416 echo '*> "output_file" should have no extension.'
46417 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46418 echo ' The import library name is derived from this and is set to "name".a,'
46419 echo ' unless overridden by -import'
46420 echo '*> "importlib_name" should have no extension.'
46421 echo ' If it has the .o, or .a extension, it is automatically removed.'
46422 echo ' This name is used as the import library name and may be longer and'
46423 echo ' more descriptive than the DLL name which has to follow the old '
46424 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46425 echo '*> "script.sh may be given to override the output_file name by a'
46426 echo ' different name. It is mainly useful if the regular make process'
46427 echo ' of some package does not take into account OS/2 restriction of'
46428 echo ' DLL name lengths. It takes the importlib name as input and is'
46429 echo ' supposed to procude a shorter name as output. The script should'
46430 echo ' expect to get importlib_name without extension and should produce'
46431 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46432 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46433 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46434 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46435 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46436 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46437 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46438 echo ' If the last character of a symbol is "*", all symbols beginning'
46439 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46440 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46441 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46442 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46443 echo ' C runtime DLLs.'
b1d22ded 46444 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46445 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46446 echo ' unchanged to GCC at the end of command line.'
46447 echo '*> If you create a DLL from a library and you do not specify -o,'
46448 echo ' the basename for DLL and import library will be set to library name,'
46449 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46450 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46451 echo ' library will be renamed into gcc_s.a.'
46452 echo '--------'
46453 echo 'Example:'
46454 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46455 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46456 CleanUp
46457 exit 1
46458}
46459
46460# Execute a command.
46461# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46462# @Uses Whatever CleanUp() uses.
46463doCommand() {
46464 echo "${D}*"
46465 eval ${D}*
46466 rcCmd=${D}?
46467
1e9e8aba 46468 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46469 echo "command failed, exit code="${D}rcCmd
46470 CleanUp
46471 exit ${D}rcCmd
46472 fi
46473}
46474
46475# main routine
46476# setup globals
46477cmdLine=${D}*
46478outFile=""
46479outimpFile=""
46480inputFiles=""
b1d22ded 46481renameScript=""
473276a9
VS
46482description=""
46483CC=gcc.exe
46484CFLAGS="-s -Zcrtdll"
46485EXTRA_CFLAGS=""
46486EXPORT_BY_ORDINALS=0
46487exclude_symbols=""
46488library_flags=""
46489curDir=\`pwd\`
46490curDirS=curDir
46491case ${D}curDirS in
46492*/)
46493 ;;
46494*)
46495 curDirS=${D}{curDirS}"/"
46496 ;;
46497esac
46498# Parse commandline
46499libsToLink=0
b1d22ded 46500omfLinking=0
1e9e8aba 46501while [ ${D}1 ]; do
473276a9
VS
46502 case ${D}1 in
46503 -ord*)
46504 EXPORT_BY_ORDINALS=1;
46505 ;;
46506 -o*)
46507 shift
46508 outFile=${D}1
46509 ;;
46510 -i*)
46511 shift
46512 outimpFile=${D}1
46513 ;;
b1d22ded
DE
46514 -name-mangler-script)
46515 shift
46516 renameScript=${D}1
46517 ;;
473276a9
VS
46518 -d*)
46519 shift
46520 description=${D}1
46521 ;;
46522 -f*)
46523 shift
46524 CFLAGS=${D}1
46525 ;;
46526 -c*)
46527 shift
46528 CC=${D}1
46529 ;;
46530 -h*)
46531 PrintHelp
46532 ;;
46533 -ex*)
46534 shift
46535 exclude_symbols=${D}{exclude_symbols}${D}1" "
46536 ;;
46537 -libf*)
46538 shift
46539 library_flags=${D}{library_flags}${D}1" "
46540 ;;
46541 -nocrt*)
46542 CFLAGS="-s"
46543 ;;
46544 -nolxl*)
46545 flag_USE_LXLITE=0
46546 ;;
46547 -* | /*)
46548 case ${D}1 in
46549 -L* | -l*)
46550 libsToLink=1
46551 ;;
b1d22ded
DE
46552 -Zomf)
46553 omfLinking=1
46554 ;;
473276a9
VS
46555 *)
46556 ;;
46557 esac
46558 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46559 ;;
b1d22ded
DE
46560 *.dll)
46561 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46562 if [ ${D}omfLinking -eq 1 ]; then
46563 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46564 else
46565 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46566 fi
46567 ;;
473276a9
VS
46568 *)
46569 found=0;
1e9e8aba 46570 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46571 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46572 else
46573 for file in ${D}1 ; do
1e9e8aba 46574 if [ -f ${D}file ]; then
473276a9
VS
46575 inputFiles="${D}{inputFiles} ${D}file"
46576 found=1
46577 fi
46578 done
1e9e8aba 46579 if [ ${D}found -eq 0 ]; then
473276a9
VS
46580 echo "ERROR: No file(s) found: "${D}1
46581 exit 8
46582 fi
46583 fi
46584 ;;
46585 esac
46586 shift
46587done # iterate cmdline words
46588
46589#
1e9e8aba 46590if [ -z "${D}inputFiles" ]; then
473276a9
VS
46591 echo "dllar: no input files"
46592 PrintHelp
46593fi
46594
46595# Now extract all .o files from .a files
46596newInputFiles=""
46597for file in ${D}inputFiles ; do
46598 case ${D}file in
46599 *.a | *.lib)
46600 case ${D}file in
46601 *.a)
46602 suffix=".a"
46603 AR="ar"
46604 ;;
46605 *.lib)
46606 suffix=".lib"
46607 AR="emxomfar"
46608 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46609 ;;
46610 *)
46611 ;;
46612 esac
46613 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46614 mkdir ${D}dirname
1e9e8aba 46615 if [ ${D}? -ne 0 ]; then
473276a9
VS
46616 echo "Failed to create subdirectory ./${D}dirname"
46617 CleanUp
46618 exit 8;
46619 fi
46620 # Append '!' to indicate archive
46621 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46622 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46623 cd ${D}curDir
46624 found=0;
46625 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46626 if [ -f ${D}subfile ]; then
473276a9 46627 found=1
1e9e8aba 46628 if [ -s ${D}subfile ]; then
473276a9
VS
46629 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46630 newInputFiles="${D}newInputFiles ${D}subfile"
46631 fi
46632 fi
46633 done
1e9e8aba
DE
46634 if [ ${D}found -eq 0 ]; then
46635 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46636 fi
46637 ;;
46638 *)
46639 newInputFiles="${D}{newInputFiles} ${D}file"
46640 ;;
46641 esac
46642done
46643inputFiles="${D}newInputFiles"
46644
46645# Output filename(s).
46646do_backup=0;
1e9e8aba 46647if [ -z ${D}outFile ]; then
473276a9
VS
46648 do_backup=1;
46649 set outFile ${D}inputFiles; outFile=${D}2
46650fi
46651
46652# If it is an archive, remove the '!' and the '_%' suffixes
46653case ${D}outFile in
46654*_%!)
46655 outFile=\`basnam ${D}outFile _%!\`
46656 ;;
46657*)
46658 ;;
46659esac
46660case ${D}outFile in
46661*.dll)
46662 outFile=\`basnam ${D}outFile .dll\`
46663 ;;
46664*.DLL)
46665 outFile=\`basnam ${D}outFile .DLL\`
46666 ;;
46667*.o)
46668 outFile=\`basnam ${D}outFile .o\`
46669 ;;
46670*.obj)
46671 outFile=\`basnam ${D}outFile .obj\`
46672 ;;
46673*.a)
46674 outFile=\`basnam ${D}outFile .a\`
46675 ;;
46676*.lib)
46677 outFile=\`basnam ${D}outFile .lib\`
46678 ;;
46679*)
46680 ;;
46681esac
46682case ${D}outimpFile in
46683*.a)
46684 outimpFile=\`basnam ${D}outimpFile .a\`
46685 ;;
46686*.lib)
46687 outimpFile=\`basnam ${D}outimpFile .lib\`
46688 ;;
46689*)
46690 ;;
46691esac
1e9e8aba 46692if [ -z ${D}outimpFile ]; then
473276a9
VS
46693 outimpFile=${D}outFile
46694fi
46695defFile="${D}{outFile}.def"
46696arcFile="${D}{outimpFile}.a"
46697arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46698
46699#create ${D}dllFile as something matching 8.3 restrictions,
46700if [ -z ${D}renameScript ] ; then
46701 dllFile="${D}outFile"
46702else
46703 dllFile=\`${D}renameScript ${D}outimpFile\`
46704fi
473276a9 46705
1e9e8aba
DE
46706if [ ${D}do_backup -ne 0 ] ; then
46707 if [ -f ${D}arcFile ] ; then
473276a9
VS
46708 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46709 fi
1e9e8aba 46710 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46711 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46712 fi
46713fi
46714
46715# Extract public symbols from all the object files.
46716tmpdefFile=${D}{defFile}_%
46717rm -f ${D}tmpdefFile
46718for file in ${D}inputFiles ; do
46719 case ${D}file in
46720 *!)
46721 ;;
46722 *)
46723 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46724 ;;
46725 esac
46726done
46727
46728# Create the def file.
46729rm -f ${D}defFile
46730echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46731dllFile="${D}{dllFile}.dll"
46732if [ ! -z ${D}description ]; then
1e9e8aba 46733 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46734fi
46735echo "EXPORTS" >> ${D}defFile
46736
46737doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46738grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46739
46740# Checks if the export is ok or not.
46741for word in ${D}exclude_symbols; do
46742 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46743 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46744done
46745
46746
1e9e8aba
DE
46747if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46748 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46749 sed '
46750 N
46751 : loop
1e9e8aba 46752 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46753 t loop
46754 ' > ${D}{tmpdefFile}%
46755 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46756else
46757 rm -f ${D}{tmpdefFile}%
46758fi
46759cat ${D}tmpdefFile >> ${D}defFile
46760rm -f ${D}tmpdefFile
46761
46762# Do linking, create implib, and apply lxlite.
46763gccCmdl="";
46764for file in ${D}inputFiles ; do
46765 case ${D}file in
46766 *!)
46767 ;;
46768 *)
46769 gccCmdl="${D}gccCmdl ${D}file"
46770 ;;
46771 esac
46772done
46773doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46774touch "${D}{outFile}.dll"
46775
46776doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46777if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46778 add_flags="";
1e9e8aba 46779 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46780 add_flags="-ynd"
46781 fi
46782 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46783fi
46784doCommand "emxomf -s -l ${D}arcFile"
46785
46786# Successful exit.
46787CleanUp 1
46788exit 0
46789EOF
46790
46791 chmod +x dllar.sh
a848cd7e
SC
46792 ;;
46793
1e9e8aba 46794 powerpc-apple-macos* | \
0ad5d837 46795 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46796 *-*-sunos4* | \
46797 *-*-osf* | \
46798 *-*-dgux5* | \
47a7e797
MW
46799 *-*-sysv5* | \
46800 *-pc-msdosdjgpp )
a848cd7e
SC
46801 ;;
46802
46803 *)
46804 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46805echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46806 { (exit 1); exit 1; }; }
46807 esac
46808
2057db16
VS
46809 if test "x$PIC_FLAG" != "x" ; then
46810 PIC_FLAG="$PIC_FLAG -DPIC"
46811 fi
46812
a848cd7e
SC
46813 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46814 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46815 fi
46816 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46817 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46818 fi
46819
46820
46821
46822
46823
46824
46825
46826
810b94f0 46827
a848cd7e
SC
46828 USE_SOVERSION=0
46829 USE_SOVERLINUX=0
46830 USE_SOVERSOLARIS=0
810b94f0 46831 USE_SOVERCYGWIN=0
a848cd7e
SC
46832 USE_SOSYMLINKS=0
46833 USE_MACVERSION=0
46834 SONAME_FLAG=
46835
46836 case "${BAKEFILE_HOST}" in
0ad5d837 46837 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46838 SONAME_FLAG="-Wl,-soname,"
46839 USE_SOVERSION=1
46840 USE_SOVERLINUX=1
46841 USE_SOSYMLINKS=1
46842 ;;
46843
a848cd7e
SC
46844 *-*-solaris2* )
46845 SONAME_FLAG="-h "
46846 USE_SOVERSION=1
46847 USE_SOVERSOLARIS=1
46848 USE_SOSYMLINKS=1
46849 ;;
46850
46851 *-*-darwin* )
46852 USE_MACVERSION=1
46853 USE_SOVERSION=1
46854 USE_SOSYMLINKS=1
46855 ;;
810b94f0
MW
46856
46857 *-*-cygwin* )
46858 USE_SOVERSION=1
46859 USE_SOVERCYGWIN=1
46860 ;;
a848cd7e
SC
46861 esac
46862
46863
46864
46865
46866
46867
46868
46869
46870
810b94f0 46871
a848cd7e
SC
46872 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
46873echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 46874 DEPS_TRACKING=1
a848cd7e
SC
46875
46876 if test "x$GCC" = "xyes"; then
46877 DEPSMODE=gcc
a848cd7e 46878 case "${BAKEFILE_HOST}" in
47bd5406 46879 *-*-darwin* )
0ad5d837 46880 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
46881 ;;
46882 * )
0ad5d837 46883 DEPSFLAG="-MMD"
a848cd7e
SC
46884 ;;
46885 esac
46886 echo "$as_me:$LINENO: result: gcc" >&5
46887echo "${ECHO_T}gcc" >&6
b1d22ded 46888 elif test "x$MWCC" = "xyes"; then
81f90336 46889 DEPSMODE=mwcc
0ad5d837 46890 DEPSFLAG="-MM"
b1d22ded
DE
46891 echo "$as_me:$LINENO: result: mwcc" >&5
46892echo "${ECHO_T}mwcc" >&6
a9e5b1f0 46893 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
46894 DEPSMODE=unixcc
46895 DEPSFLAG="-xM1"
46896 echo "$as_me:$LINENO: result: Sun cc" >&5
46897echo "${ECHO_T}Sun cc" >&6
46898 elif test "x$SGICC" = "xyes"; then
46899 DEPSMODE=unixcc
46900 DEPSFLAG="-M"
46901 echo "$as_me:$LINENO: result: SGI cc" >&5
46902echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
46903 elif test "x$HPCC" = "xyes"; then
46904 DEPSMODE=unixcc
46905 DEPSFLAG="+make"
46906 echo "$as_me:$LINENO: result: HP cc" >&5
46907echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
46908 elif test "x$COMPAQCC" = "xyes"; then
46909 DEPSMODE=gcc
46910 DEPSFLAG="-MD"
46911 echo "$as_me:$LINENO: result: Compaq cc" >&5
46912echo "${ECHO_T}Compaq cc" >&6
a848cd7e 46913 else
3006edc0 46914 DEPS_TRACKING=0
a848cd7e
SC
46915 echo "$as_me:$LINENO: result: none" >&5
46916echo "${ECHO_T}none" >&6
46917 fi
46918
46919 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
46920
46921D='$'
46922cat <<EOF >bk-deps
a848cd7e
SC
46923#!/bin/sh
46924
46925# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
46926# script. It is used to track C/C++ files dependencies in portable way.
46927#
46928# Permission is given to use this file in any way.
46929
473276a9 46930DEPSMODE=${DEPSMODE}
a848cd7e 46931DEPSDIR=.deps
0ad5d837 46932DEPSFLAG="${DEPSFLAG}"
a848cd7e 46933
473276a9 46934mkdir -p ${D}DEPSDIR
a848cd7e 46935
473276a9 46936if test ${D}DEPSMODE = gcc ; then
0ad5d837 46937 ${D}* ${D}{DEPSFLAG}
473276a9
VS
46938 status=${D}?
46939 if test ${D}{status} != 0 ; then
46940 exit ${D}{status}
a848cd7e
SC
46941 fi
46942 # move created file to the location we want it in:
473276a9
VS
46943 while test ${D}# -gt 0; do
46944 case "${D}1" in
a848cd7e
SC
46945 -o )
46946 shift
473276a9 46947 objfile=${D}1
a848cd7e
SC
46948 ;;
46949 -* )
46950 ;;
46951 * )
473276a9 46952 srcfile=${D}1
a848cd7e
SC
46953 ;;
46954 esac
46955 shift
46956 done
1e9e8aba
DE
46957 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
46958 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
46959 if test -f ${D}depfile ; then
46960 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46961 rm -f ${D}depfile
a848cd7e 46962 else
a1aa0349 46963 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 46964 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
46965 if test ! -f ${D}depfile ; then
46966 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
46967 depfile="${D}objfile.d"
46968 fi
473276a9
VS
46969 if test -f ${D}depfile ; then
46970 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46971 rm -f ${D}depfile
a848cd7e
SC
46972 fi
46973 fi
46974 exit 0
81f90336 46975elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 46976 ${D}* || exit ${D}?
81f90336
MW
46977 # Run mwcc again with -MM and redirect into the dep file we want
46978 # NOTE: We can't use shift here because we need ${D}* to be valid
46979 prevarg=
46980 for arg in ${D}* ; do
46981 if test "${D}prevarg" = "-o"; then
46982 objfile=${D}arg
46983 else
46984 case "${D}arg" in
46985 -* )
46986 ;;
46987 * )
46988 srcfile=${D}arg
46989 ;;
46990 esac
46991 fi
46992 prevarg="${D}arg"
46993 done
0ad5d837 46994 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 46995 exit 0
0ad5d837 46996elif test ${D}DEPSMODE = unixcc; then
f6b50c59 46997 ${D}* || exit ${D}?
a9e5b1f0
MW
46998 # Run compiler again with deps flag and redirect into the dep file.
46999 # It doesn't work if the '-o FILE' option is used, but without it the
47000 # dependency file will contain the wrong name for the object. So it is
47001 # removed from the command line, and the dep file is fixed with sed.
47002 cmd=""
47003 while test ${D}# -gt 0; do
47004 case "${D}1" in
47005 -o )
47006 shift
47007 objfile=${D}1
47008 ;;
47009 * )
47010 eval arg${D}#=\\${D}1
47011 cmd="${D}cmd \\${D}arg${D}#"
47012 ;;
47013 esac
47014 shift
47015 done
0ad5d837 47016 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47017 exit 0
a848cd7e 47018else
473276a9
VS
47019 ${D}*
47020 exit ${D}?
a848cd7e
SC
47021fi
47022EOF
473276a9 47023
a848cd7e
SC
47024 chmod +x bk-deps
47025 fi
47026
47027
47028
47029
a848cd7e
SC
47030 case ${BAKEFILE_HOST} in
47031 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47032 if test -n "$ac_tool_prefix"; then
47033 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47034set dummy ${ac_tool_prefix}windres; ac_word=$2
47035echo "$as_me:$LINENO: checking for $ac_word" >&5
47036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47037if test "${ac_cv_prog_WINDRES+set}" = set; then
47038 echo $ECHO_N "(cached) $ECHO_C" >&6
47039else
47040 if test -n "$WINDRES"; then
47041 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47042else
47043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47044for as_dir in $PATH
47045do
47046 IFS=$as_save_IFS
47047 test -z "$as_dir" && as_dir=.
47048 for ac_exec_ext in '' $ac_executable_extensions; do
47049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47050 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47052 break 2
47053 fi
47054done
47055done
47056
47057fi
47058fi
47059WINDRES=$ac_cv_prog_WINDRES
47060if test -n "$WINDRES"; then
47061 echo "$as_me:$LINENO: result: $WINDRES" >&5
47062echo "${ECHO_T}$WINDRES" >&6
47063else
47064 echo "$as_me:$LINENO: result: no" >&5
47065echo "${ECHO_T}no" >&6
47066fi
47067
47068fi
47069if test -z "$ac_cv_prog_WINDRES"; then
47070 ac_ct_WINDRES=$WINDRES
47071 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47072set dummy windres; ac_word=$2
47073echo "$as_me:$LINENO: checking for $ac_word" >&5
47074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47075if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47076 echo $ECHO_N "(cached) $ECHO_C" >&6
47077else
8ced02f6
DE
47078 if test -n "$ac_ct_WINDRES"; then
47079 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47080else
47081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47082for as_dir in $PATH
47083do
47084 IFS=$as_save_IFS
47085 test -z "$as_dir" && as_dir=.
47086 for ac_exec_ext in '' $ac_executable_extensions; do
47087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47088 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47090 break 2
47091 fi
47092done
47093done
47094
a848cd7e
SC
47095fi
47096fi
8ced02f6
DE
47097ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47098if test -n "$ac_ct_WINDRES"; then
47099 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47100echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47101else
47102 echo "$as_me:$LINENO: result: no" >&5
47103echo "${ECHO_T}no" >&6
47104fi
47105
8ced02f6
DE
47106 WINDRES=$ac_ct_WINDRES
47107else
47108 WINDRES="$ac_cv_prog_WINDRES"
47109fi
47110
a848cd7e
SC
47111 ;;
47112
1e9e8aba 47113 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47114 # Extract the first word of "Rez", so it can be a program name with args.
47115set dummy Rez; ac_word=$2
47116echo "$as_me:$LINENO: checking for $ac_word" >&5
47117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47118if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47119 echo $ECHO_N "(cached) $ECHO_C" >&6
47120else
8ced02f6
DE
47121 if test -n "$REZ"; then
47122 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47123else
47124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47125for as_dir in $PATH
47126do
47127 IFS=$as_save_IFS
47128 test -z "$as_dir" && as_dir=.
47129 for ac_exec_ext in '' $ac_executable_extensions; do
47130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47131 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47133 break 2
47134 fi
47135done
47136done
47137
8ced02f6 47138 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47139fi
47140fi
8ced02f6
DE
47141REZ=$ac_cv_prog_REZ
47142if test -n "$REZ"; then
47143 echo "$as_me:$LINENO: result: $REZ" >&5
47144echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47145else
47146 echo "$as_me:$LINENO: result: no" >&5
47147echo "${ECHO_T}no" >&6
47148fi
47149
47150 # Extract the first word of "SetFile", so it can be a program name with args.
47151set dummy SetFile; ac_word=$2
47152echo "$as_me:$LINENO: checking for $ac_word" >&5
47153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47154if test "${ac_cv_prog_SETFILE+set}" = set; then
47155 echo $ECHO_N "(cached) $ECHO_C" >&6
47156else
47157 if test -n "$SETFILE"; then
47158 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47159else
47160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47161for as_dir in $PATH
47162do
47163 IFS=$as_save_IFS
47164 test -z "$as_dir" && as_dir=.
47165 for ac_exec_ext in '' $ac_executable_extensions; do
47166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47167 ac_cv_prog_SETFILE="SetFile"
47168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47169 break 2
47170 fi
47171done
47172done
47173
47174 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47175fi
47176fi
47177SETFILE=$ac_cv_prog_SETFILE
47178if test -n "$SETFILE"; then
47179 echo "$as_me:$LINENO: result: $SETFILE" >&5
47180echo "${ECHO_T}$SETFILE" >&6
47181else
47182 echo "$as_me:$LINENO: result: no" >&5
47183echo "${ECHO_T}no" >&6
47184fi
47185
47186 ;;
47187 esac
47188
47189
47190
47191
47192
8ced02f6 47193
c9469659 47194 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 47195
dcc1b6ad 47196
c9469659 47197BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 47198
646b6ec1 47199
74b84332 47200
a848cd7e
SC
47201 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47202if test "${enable_precomp_headers+set}" = set; then
47203 enableval="$enable_precomp_headers"
47204 bk_use_pch="$enableval"
47205fi;
47206
47207 GCC_PCH=0
47208
5c60e845
MW
47209 case ${BAKEFILE_HOST} in
47210 *-*-cygwin* )
47211 bk_use_pch="no"
47212 ;;
47213 esac
47214
a848cd7e
SC
47215 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47216 if test "x$GCC" = "xyes"; then
47217 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47218echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47219 cat >conftest.$ac_ext <<_ACEOF
47220/* confdefs.h. */
47221_ACEOF
47222cat confdefs.h >>conftest.$ac_ext
47223cat >>conftest.$ac_ext <<_ACEOF
47224/* end confdefs.h. */
47225
47226int
47227main ()
47228{
47229
47230 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
47231 #error "no pch support"
47232 #endif
47233 #if (__GNUC__ < 3)
47234 #error "no pch support"
47235 #endif
47236 #if (__GNUC__ == 3) && \
47237 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
47238 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
47239 #error "no pch support"
47240 #endif
47241
47242 ;
47243 return 0;
47244}
47245_ACEOF
47246rm -f conftest.$ac_objext
47247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47248 (eval $ac_compile) 2>conftest.er1
a848cd7e 47249 ac_status=$?
ac1cb8d3
VS
47250 grep -v '^ *+' conftest.er1 >conftest.err
47251 rm -f conftest.er1
47252 cat conftest.err >&5
a848cd7e
SC
47253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47254 (exit $ac_status); } &&
3565d135
RR
47255 { ac_try='test -z "$ac_c_werror_flag"
47256 || test ! -s conftest.err'
ac1cb8d3
VS
47257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47258 (eval $ac_try) 2>&5
47259 ac_status=$?
47260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47261 (exit $ac_status); }; } &&
47262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47264 (eval $ac_try) 2>&5
47265 ac_status=$?
47266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47267 (exit $ac_status); }; }; then
47268
47269 echo "$as_me:$LINENO: result: yes" >&5
47270echo "${ECHO_T}yes" >&6
a848cd7e
SC
47271 GCC_PCH=1
47272
47273else
47274 echo "$as_me: failed program was:" >&5
47275sed 's/^/| /' conftest.$ac_ext >&5
47276
47277
47278 echo "$as_me:$LINENO: result: no" >&5
47279echo "${ECHO_T}no" >&6
47280
47281fi
ac1cb8d3 47282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 47283 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
47284
47285D='$'
47286cat <<EOF >bk-make-pch
a848cd7e
SC
47287#!/bin/sh
47288
47289# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47290# script. It is used to generated precompiled headers.
47291#
47292# Permission is given to use this file in any way.
47293
1e9e8aba
DE
47294outfile="${D}{1}"
47295header="${D}{2}"
a848cd7e
SC
47296shift
47297shift
47298
47299compiler=
47300headerfile=
1e9e8aba
DE
47301while test ${D}{#} -gt 0; do
47302 case "${D}{1}" in
a848cd7e 47303 -I* )
1e9e8aba
DE
47304 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47305 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47306 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47307 fi
47308 ;;
47309 esac
1e9e8aba 47310 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
47311 shift
47312done
47313
1e9e8aba
DE
47314if test "x${D}{headerfile}" = "x" ; then
47315 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 47316else
1e9e8aba
DE
47317 if test -f ${D}{outfile} ; then
47318 rm -f ${D}{outfile}
a848cd7e 47319 else
1e9e8aba 47320 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47321 fi
1e9e8aba 47322 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
47323 mkdir -p .deps
47324 # can do this because gcc is >= 3.4:
1e9e8aba
DE
47325 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47326 exit ${D}{?}
a848cd7e
SC
47327fi
47328EOF
1e9e8aba 47329
a848cd7e
SC
47330 chmod +x bk-make-pch
47331 fi
47332 fi
47333 fi
47334
47335
47336
a848cd7e
SC
47337 COND_BUILD_DEBUG="#"
47338 if test "x$BUILD" = "xdebug" ; then
47339 COND_BUILD_DEBUG=""
47340 fi
47341
47342 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47343 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47344 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47345 fi
47346
47347 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47348 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47349 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47350 fi
47351
47352 COND_BUILD_DEBUG_UNICODE_0="#"
47353 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47354 COND_BUILD_DEBUG_UNICODE_0=""
47355 fi
47356
47357 COND_BUILD_DEBUG_UNICODE_1="#"
47358 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47359 COND_BUILD_DEBUG_UNICODE_1=""
47360 fi
47361
47362 COND_BUILD_RELEASE="#"
47363 if test "x$BUILD" = "xrelease" ; then
47364 COND_BUILD_RELEASE=""
47365 fi
47366
47367 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47368 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47369 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47370 fi
47371
47372 COND_BUILD_RELEASE_UNICODE_0="#"
47373 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47374 COND_BUILD_RELEASE_UNICODE_0=""
47375 fi
47376
47377 COND_BUILD_RELEASE_UNICODE_1="#"
47378 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47379 COND_BUILD_RELEASE_UNICODE_1=""
47380 fi
47381
47382 COND_DEBUG_FLAG_1="#"
47383 if test "x$DEBUG_FLAG" = "x1" ; then
47384 COND_DEBUG_FLAG_1=""
47385 fi
47386
47387 COND_DEBUG_INFO_0="#"
47388 if test "x$DEBUG_INFO" = "x0" ; then
47389 COND_DEBUG_INFO_0=""
47390 fi
47391
47392 COND_DEBUG_INFO_1="#"
47393 if test "x$DEBUG_INFO" = "x1" ; then
47394 COND_DEBUG_INFO_1=""
47395 fi
47396
47397 COND_DEPS_TRACKING_0="#"
47398 if test "x$DEPS_TRACKING" = "x0" ; then
47399 COND_DEPS_TRACKING_0=""
47400 fi
47401
47402 COND_DEPS_TRACKING_1="#"
47403 if test "x$DEPS_TRACKING" = "x1" ; then
47404 COND_DEPS_TRACKING_1=""
47405 fi
47406
47407 COND_GCC_PCH_1="#"
47408 if test "x$GCC_PCH" = "x1" ; then
47409 COND_GCC_PCH_1=""
47410 fi
47411
47412 COND_MONOLITHIC_0="#"
47413 if test "x$MONOLITHIC" = "x0" ; then
47414 COND_MONOLITHIC_0=""
47415 fi
47416
47417 COND_MONOLITHIC_0_SHARED_0="#"
47418 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47419 COND_MONOLITHIC_0_SHARED_0=""
47420 fi
47421
47422 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47423 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47424 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47425 fi
47426
90970d69
DE
47427 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47428 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47429 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47430 fi
47431
a848cd7e
SC
47432 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47433 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47434 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47435 fi
47436
6671c68b
VZ
47437 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47438 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47439 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47440 fi
47441
a848cd7e
SC
47442 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47443 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47444 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47445 fi
47446
ceec2216
RL
47447 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47448 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47449 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47450 fi
47451
a848cd7e
SC
47452 COND_MONOLITHIC_0_SHARED_1="#"
47453 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47454 COND_MONOLITHIC_0_SHARED_1=""
47455 fi
47456
47457 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47458 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47459 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47460 fi
47461
90970d69
DE
47462 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47463 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47464 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47465 fi
47466
a848cd7e
SC
47467 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47468 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47469 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47470 fi
47471
6671c68b
VZ
47472 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47473 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47474 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47475 fi
47476
a848cd7e
SC
47477 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47478 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47479 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47480 fi
47481
ceec2216
RL
47482 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47483 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47484 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47485 fi
47486
a848cd7e
SC
47487 COND_MONOLITHIC_0_USE_ODBC_1="#"
47488 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47489 COND_MONOLITHIC_0_USE_ODBC_1=""
47490 fi
47491
47492 COND_MONOLITHIC_1="#"
47493 if test "x$MONOLITHIC" = "x1" ; then
47494 COND_MONOLITHIC_1=""
47495 fi
47496
47497 COND_MONOLITHIC_1_SHARED_0="#"
47498 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47499 COND_MONOLITHIC_1_SHARED_0=""
47500 fi
47501
47502 COND_MONOLITHIC_1_SHARED_1="#"
47503 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47504 COND_MONOLITHIC_1_SHARED_1=""
47505 fi
47506
47507 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47508 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47509 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47510 fi
47511
47512 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47513 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47514 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47515 fi
47516
eb730a0c
JS
47517 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47518 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47519 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47520 fi
47521
a848cd7e
SC
47522 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47523 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47524 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47525 fi
47526
47527 COND_PLATFORM_MACOSX_1="#"
47528 if test "x$PLATFORM_MACOSX" = "x1" ; then
47529 COND_PLATFORM_MACOSX_1=""
47530 fi
47531
a30f955f
VS
47532 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47533 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47534 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47535 fi
47536
a848cd7e
SC
47537 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47538 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47539 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47540 fi
47541
47542 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47543 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47544 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47545 fi
47546
47547 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47548 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47549 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47550 fi
47551
fc480dc1
DE
47552 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47553 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47554 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47555 fi
47556
1e9e8aba
DE
47557 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47558 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47559 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47560 fi
47561
ebee3cd0
VS
47562 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47563 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47564 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47565 fi
47566
47567 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47568 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47569 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47570 fi
47571
a848cd7e
SC
47572 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47573 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47574 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47575 fi
47576
47577 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47578 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47579 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47580 fi
47581
b48a2016
DE
47582 COND_PLATFORM_MACOS_1="#"
47583 if test "x$PLATFORM_MACOS" = "x1" ; then
47584 COND_PLATFORM_MACOS_1=""
47585 fi
47586
083508af
MW
47587 COND_PLATFORM_MAC_1="#"
47588 if test "x$PLATFORM_MAC" = "x1" ; then
47589 COND_PLATFORM_MAC_1=""
47590 fi
47591
83d8eb47
MW
47592 COND_PLATFORM_MSDOS_1="#"
47593 if test "x$PLATFORM_MSDOS" = "x1" ; then
47594 COND_PLATFORM_MSDOS_1=""
47595 fi
47596
a848cd7e
SC
47597 COND_PLATFORM_OS2_1="#"
47598 if test "x$PLATFORM_OS2" = "x1" ; then
47599 COND_PLATFORM_OS2_1=""
47600 fi
47601
47602 COND_PLATFORM_UNIX_0="#"
47603 if test "x$PLATFORM_UNIX" = "x0" ; then
47604 COND_PLATFORM_UNIX_0=""
47605 fi
47606
47607 COND_PLATFORM_UNIX_1="#"
47608 if test "x$PLATFORM_UNIX" = "x1" ; then
47609 COND_PLATFORM_UNIX_1=""
47610 fi
47611
47612 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47613 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47614 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47615 fi
47616
47617 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47618 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47619 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47620 fi
47621
47622 COND_PLATFORM_WIN32_0="#"
47623 if test "x$PLATFORM_WIN32" = "x0" ; then
47624 COND_PLATFORM_WIN32_0=""
47625 fi
47626
47627 COND_PLATFORM_WIN32_1="#"
47628 if test "x$PLATFORM_WIN32" = "x1" ; then
47629 COND_PLATFORM_WIN32_1=""
47630 fi
47631
47632 COND_SHARED_0="#"
47633 if test "x$SHARED" = "x0" ; then
47634 COND_SHARED_0=""
47635 fi
47636
083508af
MW
47637 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47638 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47639 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47640 fi
47641
47642 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47643 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47644 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47645 fi
47646
47647 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47648 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47649 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47650 fi
47651
a848cd7e
SC
47652 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47653 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47654 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47655 fi
47656
47657 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47658 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47659 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47660 fi
47661
47662 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47663 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47664 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47665 fi
47666
47667 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47668 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47669 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47670 fi
47671
083508af
MW
47672 COND_SHARED_0_USE_XRC_1="#"
47673 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47674 COND_SHARED_0_USE_XRC_1=""
47675 fi
47676
a848cd7e
SC
47677 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47678 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47679 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47680 fi
47681
47682 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47683 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47684 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47685 fi
47686
47687 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47688 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47689 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47690 fi
47691
47692 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47693 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47694 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47695 fi
47696
47697 COND_SHARED_1="#"
47698 if test "x$SHARED" = "x1" ; then
47699 COND_SHARED_1=""
47700 fi
47701
47702 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47703 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47704 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47705 fi
47706
083508af
MW
47707 COND_SHARED_1_USE_XRC_1="#"
47708 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47709 COND_SHARED_1_USE_XRC_1=""
47710 fi
47711
a30f955f
VS
47712 COND_TOOLKIT_="#"
47713 if test "x$TOOLKIT" = "x" ; then
47714 COND_TOOLKIT_=""
47715 fi
47716
a848cd7e
SC
47717 COND_TOOLKIT_COCOA="#"
47718 if test "x$TOOLKIT" = "xCOCOA" ; then
47719 COND_TOOLKIT_COCOA=""
47720 fi
47721
a49baeab
DE
47722 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47723 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47724 COND_TOOLKIT_COCOA_USE_GUI_1=""
47725 fi
47726
a848cd7e
SC
47727 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47728 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47729 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47730 fi
47731
47732 COND_TOOLKIT_GTK="#"
47733 if test "x$TOOLKIT" = "xGTK" ; then
47734 COND_TOOLKIT_GTK=""
47735 fi
47736
d044deea
MW
47737 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47738 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47739 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47740 fi
47741
47742 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
47743 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
47744 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
47745 fi
47746
47747 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
47748 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
47749 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
47750 fi
47751
47752 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
47753 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47754 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
47755 fi
47756
47757 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
47758 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
47759 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
47760 fi
47761
47762 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
47763 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47764 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
47765 fi
47766
a848cd7e
SC
47767 COND_TOOLKIT_GTK_USE_GUI_1="#"
47768 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
47769 COND_TOOLKIT_GTK_USE_GUI_1=""
47770 fi
47771
a848cd7e
SC
47772 COND_TOOLKIT_MAC="#"
47773 if test "x$TOOLKIT" = "xMAC" ; then
47774 COND_TOOLKIT_MAC=""
47775 fi
47776
47777 COND_TOOLKIT_MAC_USE_GUI_1="#"
47778 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47779 COND_TOOLKIT_MAC_USE_GUI_1=""
47780 fi
47781
47782 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47783 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47784 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47785 fi
47786
47787 COND_TOOLKIT_MGL="#"
47788 if test "x$TOOLKIT" = "xMGL" ; then
47789 COND_TOOLKIT_MGL=""
47790 fi
47791
47792 COND_TOOLKIT_MGL_USE_GUI_1="#"
47793 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
47794 COND_TOOLKIT_MGL_USE_GUI_1=""
47795 fi
47796
47797 COND_TOOLKIT_MOTIF="#"
47798 if test "x$TOOLKIT" = "xMOTIF" ; then
47799 COND_TOOLKIT_MOTIF=""
47800 fi
47801
47802 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
47803 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
47804 COND_TOOLKIT_MOTIF_USE_GUI_1=""
47805 fi
47806
47807 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
47808 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47809 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
47810 fi
47811
47812 COND_TOOLKIT_MSW="#"
47813 if test "x$TOOLKIT" = "xMSW" ; then
47814 COND_TOOLKIT_MSW=""
47815 fi
47816
47817 COND_TOOLKIT_MSW_USE_GUI_1="#"
47818 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
47819 COND_TOOLKIT_MSW_USE_GUI_1=""
47820 fi
47821
47822 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
47823 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47824 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
47825 fi
47826
0ee4059d
DE
47827 COND_TOOLKIT_MSW_WXUNIV_0="#"
47828 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47829 COND_TOOLKIT_MSW_WXUNIV_0=""
47830 fi
47831
a848cd7e
SC
47832 COND_TOOLKIT_PM="#"
47833 if test "x$TOOLKIT" = "xPM" ; then
47834 COND_TOOLKIT_PM=""
47835 fi
47836
47837 COND_TOOLKIT_PM_USE_GUI_1="#"
47838 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
47839 COND_TOOLKIT_PM_USE_GUI_1=""
47840 fi
47841
47842 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
47843 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47844 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
47845 fi
47846
3fd9c298
DE
47847 COND_TOOLKIT_WINCE="#"
47848 if test "x$TOOLKIT" = "xWINCE" ; then
47849 COND_TOOLKIT_WINCE=""
47850 fi
47851
47852 COND_TOOLKIT_WINCE_USE_GUI_1="#"
47853 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
47854 COND_TOOLKIT_WINCE_USE_GUI_1=""
47855 fi
47856
47857 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
47858 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47859 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
47860 fi
47861
0ee4059d
DE
47862 COND_TOOLKIT_WINCE_WXUNIV_0="#"
47863 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
47864 COND_TOOLKIT_WINCE_WXUNIV_0=""
47865 fi
47866
a848cd7e
SC
47867 COND_TOOLKIT_X11="#"
47868 if test "x$TOOLKIT" = "xX11" ; then
47869 COND_TOOLKIT_X11=""
47870 fi
47871
47872 COND_TOOLKIT_X11_USE_GUI_1="#"
47873 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
47874 COND_TOOLKIT_X11_USE_GUI_1=""
47875 fi
47876
47877 COND_UNICODE_1="#"
47878 if test "x$UNICODE" = "x1" ; then
47879 COND_UNICODE_1=""
47880 fi
47881
47882 COND_USE_EXCEPTIONS_0="#"
47883 if test "x$USE_EXCEPTIONS" = "x0" ; then
47884 COND_USE_EXCEPTIONS_0=""
47885 fi
47886
47887 COND_USE_EXCEPTIONS_1="#"
47888 if test "x$USE_EXCEPTIONS" = "x1" ; then
47889 COND_USE_EXCEPTIONS_1=""
47890 fi
47891
47892 COND_USE_GUI_0="#"
47893 if test "x$USE_GUI" = "x0" ; then
47894 COND_USE_GUI_0=""
47895 fi
47896
47897 COND_USE_GUI_1="#"
47898 if test "x$USE_GUI" = "x1" ; then
47899 COND_USE_GUI_1=""
47900 fi
47901
47902 COND_USE_GUI_1_WXUNIV_0="#"
47903 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47904 COND_USE_GUI_1_WXUNIV_0=""
47905 fi
47906
47907 COND_USE_GUI_1_WXUNIV_1="#"
47908 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
47909 COND_USE_GUI_1_WXUNIV_1=""
47910 fi
47911
47912 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47913 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47914 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47915 fi
47916
47917 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47918 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47919 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47920 fi
47921
47922 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47923 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47924 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47925 fi
47926
083508af
MW
47927 COND_USE_ODBC_1="#"
47928 if test "x$USE_ODBC" = "x1" ; then
47929 COND_USE_ODBC_1=""
47930 fi
47931
47932 COND_USE_OPENGL_1="#"
47933 if test "x$USE_OPENGL" = "x1" ; then
47934 COND_USE_OPENGL_1=""
47935 fi
47936
a848cd7e
SC
47937 COND_USE_PLUGINS_0="#"
47938 if test "x$USE_PLUGINS" = "x0" ; then
47939 COND_USE_PLUGINS_0=""
47940 fi
47941
0b78747f
MW
47942 COND_USE_RTTI_0="#"
47943 if test "x$USE_RTTI" = "x0" ; then
47944 COND_USE_RTTI_0=""
47945 fi
47946
47947 COND_USE_RTTI_1="#"
47948 if test "x$USE_RTTI" = "x1" ; then
47949 COND_USE_RTTI_1=""
47950 fi
47951
a848cd7e
SC
47952 COND_USE_SOSYMLINKS_1="#"
47953 if test "x$USE_SOSYMLINKS" = "x1" ; then
47954 COND_USE_SOSYMLINKS_1=""
47955 fi
47956
eb730a0c
JS
47957 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
47958 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47959 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
47960 fi
47961
a848cd7e
SC
47962 COND_USE_SOVERLINUX_1="#"
47963 if test "x$USE_SOVERLINUX" = "x1" ; then
47964 COND_USE_SOVERLINUX_1=""
47965 fi
47966
47967 COND_USE_SOVERSION_0="#"
47968 if test "x$USE_SOVERSION" = "x0" ; then
47969 COND_USE_SOVERSION_0=""
47970 fi
47971
47972 COND_USE_SOVERSOLARIS_1="#"
47973 if test "x$USE_SOVERSOLARIS" = "x1" ; then
47974 COND_USE_SOVERSOLARIS_1=""
47975 fi
47976
0b78747f
MW
47977 COND_USE_THREADS_0="#"
47978 if test "x$USE_THREADS" = "x0" ; then
47979 COND_USE_THREADS_0=""
47980 fi
47981
47982 COND_USE_THREADS_1="#"
47983 if test "x$USE_THREADS" = "x1" ; then
47984 COND_USE_THREADS_1=""
47985 fi
47986
a13a7f89
RL
47987 COND_USE_XRC_1="#"
47988 if test "x$USE_XRC" = "x1" ; then
47989 COND_USE_XRC_1=""
47990 fi
47991
eb730a0c
JS
47992 COND_WINDOWS_IMPLIB_1="#"
47993 if test "x$WINDOWS_IMPLIB" = "x1" ; then
47994 COND_WINDOWS_IMPLIB_1=""
47995 fi
47996
a848cd7e
SC
47997 COND_WITH_PLUGIN_SDL_1="#"
47998 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
47999 COND_WITH_PLUGIN_SDL_1=""
48000 fi
48001
1e6eb025
VZ
48002 COND_WXUNIV_0="#"
48003 if test "x$WXUNIV" = "x0" ; then
48004 COND_WXUNIV_0=""
48005 fi
48006
a848cd7e
SC
48007 COND_WXUNIV_1="#"
48008 if test "x$WXUNIV" = "x1" ; then
48009 COND_WXUNIV_1=""
48010 fi
48011
48012 COND_WXUSE_EXPAT_BUILTIN="#"
48013 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48014 COND_WXUSE_EXPAT_BUILTIN=""
48015 fi
48016
48017 COND_WXUSE_LIBJPEG_BUILTIN="#"
48018 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48019 COND_WXUSE_LIBJPEG_BUILTIN=""
48020 fi
48021
48022 COND_WXUSE_LIBPNG_BUILTIN="#"
48023 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48024 COND_WXUSE_LIBPNG_BUILTIN=""
48025 fi
48026
48027 COND_WXUSE_LIBTIFF_BUILTIN="#"
48028 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48029 COND_WXUSE_LIBTIFF_BUILTIN=""
48030 fi
48031
48032 COND_WXUSE_ODBC_BUILTIN="#"
48033 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48034 COND_WXUSE_ODBC_BUILTIN=""
48035 fi
48036
48037 COND_WXUSE_REGEX_BUILTIN="#"
48038 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48039 COND_WXUSE_REGEX_BUILTIN=""
48040 fi
48041
48042 COND_WXUSE_ZLIB_BUILTIN="#"
48043 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48044 COND_WXUSE_ZLIB_BUILTIN=""
48045 fi
48046
48047
48048
810b94f0
MW
48049 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48050 { { 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
48051echo "$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;}
48052 { (exit 1); exit 1; }; }
48053 fi
48054
2057db16
VS
48055 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48056 { { 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
48057echo "$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;}
48058 { (exit 1); exit 1; }; }
48059 fi
48060
a848cd7e 48061
ceec2216
RL
48062if test "$wxUSE_SHARED" = "yes"; then
48063
48064 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48065 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48066
5b674b9d
DE
48067 case "${host}" in
48068 *-pc-os2_emx | *-pc-os2-emx )
48069 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48070 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48071 cp -p ${srcdir}/src/os2/dllnames.sh .
48072 cp -p ${srcdir}/src/os2/dllar.sh .
48073 ;;
48074 esac
ceec2216
RL
48075else
48076
48077 EXE_LINKER="$CXX -o"
48078
48079fi
69120ee4
VZ
48080if test "$wxUSE_OMF" = "yes"; then
48081 case "${host}" in
48082 *-pc-os2_emx | *-pc-os2-emx )
48083 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48084 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48085 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48086 ;;
48087 esac
48088fi
a848cd7e 48089
c08ebc62 48090if test $GCC_PCH = 1 ; then
254e8e29 48091 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48092fi
a848cd7e 48093
5ff751d6 48094WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48095
48096SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48097
48098
48099
48100
48101
48102
48103
48104
48105
48106
48107
48108
48109
48110
48111
48112
48113
48114
48115
48116
48117
48118
48119
48120
48121
48122
48123
48124
48125
48126
48127
48128
48129
48130
48131
48132
48133
48134
48135
48136
48137
48138
a848cd7e
SC
48139
48140
48141
48142
48143
48144
48145
48146
48147
48148
48149
48150
a848cd7e
SC
48151
48152
ddd14b14 48153
370d2fd7 48154
8ced02f6 48155
a848cd7e
SC
48156
48157
48158echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48159echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48160set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48161if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48162 echo $ECHO_N "(cached) $ECHO_C" >&6
48163else
48164 cat >conftest.make <<\_ACEOF
48165all:
48166 @echo 'ac_maketemp="$(MAKE)"'
48167_ACEOF
48168# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48169eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48170if test -n "$ac_maketemp"; then
48171 eval ac_cv_prog_make_${ac_make}_set=yes
48172else
48173 eval ac_cv_prog_make_${ac_make}_set=no
48174fi
48175rm -f conftest.make
48176fi
48177if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48178 echo "$as_me:$LINENO: result: yes" >&5
48179echo "${ECHO_T}yes" >&6
48180 SET_MAKE=
48181else
48182 echo "$as_me:$LINENO: result: no" >&5
48183echo "${ECHO_T}no" >&6
48184 SET_MAKE="MAKE=${MAKE-make}"
48185fi
48186
48187
a848cd7e 48188
ceec2216
RL
48189 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48190
a848cd7e 48191
5c60e845
MW
48192if test "$USE_WIN32" = 1; then
48193 ac_config_commands="$ac_config_commands
48194 rcdefs.h
48195 "
48196
48197fi
48198
ceec2216 48199 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48200
a848cd7e 48201
ceec2216 48202 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48203
ceec2216
RL
48204
48205 ac_config_files="$ac_config_files version-script Makefile"
48206
48207
5c60e845 48208 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48209
48210
9103d280 48211
1c14217d 48212if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48213if test "$wxUSE_GUI" = "yes"; then
48214 SUBDIRS="samples demos utils contrib"
48215else SUBDIRS="samples utils"
48216fi
48217
48218
48219
48220# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48221if test "${with_cppunit_prefix+set}" = set; then
48222 withval="$with_cppunit_prefix"
48223 cppunit_config_prefix="$withval"
48224else
48225 cppunit_config_prefix=""
48226fi;
48227
48228# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48229if test "${with_cppunit_exec_prefix+set}" = set; then
48230 withval="$with_cppunit_exec_prefix"
48231 cppunit_config_exec_prefix="$withval"
48232else
48233 cppunit_config_exec_prefix=""
48234fi;
48235
48236 if test x$cppunit_config_exec_prefix != x ; then
48237 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48238 if test x${CPPUNIT_CONFIG+set} != xset ; then
48239 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48240 fi
48241 fi
48242 if test x$cppunit_config_prefix != x ; then
48243 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48244 if test x${CPPUNIT_CONFIG+set} != xset ; then
48245 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48246 fi
48247 fi
48248
48249 # Extract the first word of "cppunit-config", so it can be a program name with args.
48250set dummy cppunit-config; ac_word=$2
48251echo "$as_me:$LINENO: checking for $ac_word" >&5
48252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48253if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48254 echo $ECHO_N "(cached) $ECHO_C" >&6
48255else
48256 case $CPPUNIT_CONFIG in
48257 [\\/]* | ?:[\\/]*)
48258 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48259 ;;
48260 *)
48261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48262for as_dir in $PATH
48263do
48264 IFS=$as_save_IFS
48265 test -z "$as_dir" && as_dir=.
48266 for ac_exec_ext in '' $ac_executable_extensions; do
48267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48268 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48270 break 2
48271 fi
48272done
48273done
48274
48275 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48276 ;;
48277esac
48278fi
48279CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48280
48281if test -n "$CPPUNIT_CONFIG"; then
48282 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48283echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48284else
48285 echo "$as_me:$LINENO: result: no" >&5
48286echo "${ECHO_T}no" >&6
48287fi
48288
48289 cppunit_version_min=1.8.0
48290
48291 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48292echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48293 no_cppunit=""
48294 if test "$CPPUNIT_CONFIG" = "no" ; then
48295 no_cppunit=yes
48296 else
48297 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48298 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48299 cppunit_version=`$CPPUNIT_CONFIG --version`
48300
48301 cppunit_major_version=`echo $cppunit_version | \
48302 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48303 cppunit_minor_version=`echo $cppunit_version | \
48304 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48305 cppunit_micro_version=`echo $cppunit_version | \
48306 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48307
48308 cppunit_major_min=`echo $cppunit_version_min | \
48309 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48310 cppunit_minor_min=`echo $cppunit_version_min | \
48311 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48312 cppunit_micro_min=`echo $cppunit_version_min | \
48313 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48314
48315 cppunit_version_proper=`expr \
48316 $cppunit_major_version \> $cppunit_major_min \| \
48317 $cppunit_major_version \= $cppunit_major_min \& \
48318 $cppunit_minor_version \> $cppunit_minor_min \| \
48319 $cppunit_major_version \= $cppunit_major_min \& \
48320 $cppunit_minor_version \= $cppunit_minor_min \& \
48321 $cppunit_micro_version \>= $cppunit_micro_min `
48322
48323 if test "$cppunit_version_proper" = "1" ; then
48324 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48325echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48326 else
48327 echo "$as_me:$LINENO: result: no" >&5
48328echo "${ECHO_T}no" >&6
48329 no_cppunit=yes
48330 fi
48331 fi
48332
48333 if test "x$no_cppunit" = x ; then
c2218763 48334 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48335 else
48336 CPPUNIT_CFLAGS=""
48337 CPPUNIT_LIBS=""
c2218763 48338 :
a848cd7e
SC
48339 fi
48340
48341
48342
48343
48344
48345for subdir in `echo $SUBDIRS`; do
48346 if test -d ${srcdir}/${subdir} ; then
48347 if test "$wxUSE_GUI" = "yes"; then
48348 if test ${subdir} = "samples"; then
48349 makefiles="samples/Makefile.in $makefiles"
48350 for sample in `echo $SAMPLES_SUBDIRS`; do
48351 if test -d $srcdir/samples/$sample; then
48352 makefiles="samples/$sample/Makefile.in $makefiles"
48353 fi
48354 done
9c112555
MW
48355 else
48356 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48357 eval "disabled=\$$disabled_var"
48358 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48359 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48360 fi
48361 else if test ${subdir} = "samples"; then
48362 makefiles="samples/Makefile.in samples/console/Makefile.in"
48363 elif test ${subdir} = "utils"; then
6537ccf8
VS
48364 makefiles=""
48365 for util in HelpGen tex2rtf ; do
48366 if test -d $srcdir/utils/$util ; then
48367 makefiles="utils/$util/Makefile.in \
48368 utils/$util/src/Makefile.in \
48369 $makefiles"
48370 fi
48371 done
a848cd7e
SC
48372 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48373 fi
48374 fi
48375
48376 for mkin in $makefiles ; do
48377 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48378 ac_config_files="$ac_config_files $mk"
48379
48380 done
48381 fi
48382done
1c14217d 48383fi
a848cd7e
SC
48384cat >confcache <<\_ACEOF
48385# This file is a shell script that caches the results of configure
48386# tests run on this system so they can be shared between configure
48387# scripts and configure runs, see configure's option --config-cache.
48388# It is not useful on other systems. If it contains results you don't
48389# want to keep, you may remove or edit it.
48390#
48391# config.status only pays attention to the cache file if you give it
48392# the --recheck option to rerun configure.
48393#
48394# `ac_cv_env_foo' variables (set or unset) will be overridden when
48395# loading this file, other *unset* `ac_cv_foo' will be assigned the
48396# following values.
48397
48398_ACEOF
48399
48400# The following way of writing the cache mishandles newlines in values,
48401# but we know of no workaround that is simple, portable, and efficient.
48402# So, don't put newlines in cache variables' values.
48403# Ultrix sh set writes to stderr and can't be redirected directly,
48404# and sets the high bit in the cache file unless we assign to the vars.
48405{
48406 (set) 2>&1 |
48407 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48408 *ac_space=\ *)
48409 # `set' does not quote correctly, so add quotes (double-quote
48410 # substitution turns \\\\ into \\, and sed turns \\ into \).
48411 sed -n \
ac1cb8d3
VS
48412 "s/'/'\\\\''/g;
48413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48414 ;;
48415 *)
48416 # `set' quotes correctly as required by POSIX, so do not add quotes.
48417 sed -n \
ac1cb8d3 48418 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48419 ;;
48420 esac;
48421} |
48422 sed '
48423 t clear
48424 : clear
48425 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48426 t end
48427 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48428 : end' >>confcache
48429if diff $cache_file confcache >/dev/null 2>&1; then :; else
48430 if test -w $cache_file; then
48431 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48432 cat confcache >$cache_file
48433 else
48434 echo "not updating unwritable cache $cache_file"
48435 fi
48436fi
48437rm -f confcache
48438
48439test "x$prefix" = xNONE && prefix=$ac_default_prefix
48440# Let make expand exec_prefix.
48441test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48442
48443# VPATH may cause trouble with some makes, so we remove $(srcdir),
48444# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48445# trailing colons and then remove the whole line if VPATH becomes empty
48446# (actually we leave an empty line to preserve line numbers).
48447if test "x$srcdir" = x.; then
ac1cb8d3 48448 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48449s/:*\$(srcdir):*/:/;
48450s/:*\${srcdir}:*/:/;
48451s/:*@srcdir@:*/:/;
ac1cb8d3 48452s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48453s/:*$//;
ac1cb8d3 48454s/^[^=]*=[ ]*$//;
a848cd7e
SC
48455}'
48456fi
48457
48458DEFS=-DHAVE_CONFIG_H
48459
48460ac_libobjs=
48461ac_ltlibobjs=
48462for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48463 # 1. Remove the extension, and $U if already installed.
48464 ac_i=`echo "$ac_i" |
ac1cb8d3 48465 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48466 # 2. Add them.
48467 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48468 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48469done
48470LIBOBJS=$ac_libobjs
48471
48472LTLIBOBJS=$ac_ltlibobjs
48473
48474
48475
48476: ${CONFIG_STATUS=./config.status}
48477ac_clean_files_save=$ac_clean_files
48478ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48479{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48480echo "$as_me: creating $CONFIG_STATUS" >&6;}
48481cat >$CONFIG_STATUS <<_ACEOF
48482#! $SHELL
48483# Generated by $as_me.
48484# Run this file to recreate the current configuration.
48485# Compiler output produced by configure, useful for debugging
48486# configure, is in config.log if it exists.
48487
48488debug=false
48489ac_cs_recheck=false
48490ac_cs_silent=false
48491SHELL=\${CONFIG_SHELL-$SHELL}
48492_ACEOF
48493
48494cat >>$CONFIG_STATUS <<\_ACEOF
48495## --------------------- ##
48496## M4sh Initialization. ##
48497## --------------------- ##
48498
48499# Be Bourne compatible
48500if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48501 emulate sh
48502 NULLCMD=:
48503 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48504 # is contrary to our usage. Disable this feature.
48505 alias -g '${1+"$@"}'='"$@"'
48506elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48507 set -o posix
48508fi
ac1cb8d3 48509DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48510
48511# Support unset when possible.
ac1cb8d3 48512if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48513 as_unset=unset
48514else
48515 as_unset=false
48516fi
48517
48518
48519# Work around bugs in pre-3.0 UWIN ksh.
48520$as_unset ENV MAIL MAILPATH
48521PS1='$ '
48522PS2='> '
48523PS4='+ '
48524
48525# NLS nuisances.
48526for as_var in \
48527 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48528 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48529 LC_TELEPHONE LC_TIME
48530do
ac1cb8d3 48531 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48532 eval $as_var=C; export $as_var
48533 else
48534 $as_unset $as_var
48535 fi
48536done
48537
48538# Required to use basename.
48539if expr a : '\(a\)' >/dev/null 2>&1; then
48540 as_expr=expr
48541else
48542 as_expr=false
48543fi
48544
48545if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48546 as_basename=basename
48547else
48548 as_basename=false
48549fi
48550
48551
48552# Name of the executable.
48553as_me=`$as_basename "$0" ||
48554$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48555 X"$0" : 'X\(//\)$' \| \
48556 X"$0" : 'X\(/\)$' \| \
48557 . : '\(.\)' 2>/dev/null ||
48558echo X/"$0" |
48559 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48560 /^X\/\(\/\/\)$/{ s//\1/; q; }
48561 /^X\/\(\/\).*/{ s//\1/; q; }
48562 s/.*/./; q'`
48563
48564
48565# PATH needs CR, and LINENO needs CR and PATH.
48566# Avoid depending upon Character Ranges.
48567as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48568as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48569as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48570as_cr_digits='0123456789'
48571as_cr_alnum=$as_cr_Letters$as_cr_digits
48572
48573# The user is always right.
48574if test "${PATH_SEPARATOR+set}" != set; then
48575 echo "#! /bin/sh" >conf$$.sh
48576 echo "exit 0" >>conf$$.sh
48577 chmod +x conf$$.sh
48578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48579 PATH_SEPARATOR=';'
48580 else
48581 PATH_SEPARATOR=:
48582 fi
48583 rm -f conf$$.sh
48584fi
48585
48586
48587 as_lineno_1=$LINENO
48588 as_lineno_2=$LINENO
48589 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48590 test "x$as_lineno_1" != "x$as_lineno_2" &&
48591 test "x$as_lineno_3" = "x$as_lineno_2" || {
48592 # Find who we are. Look in the path if we contain no path at all
48593 # relative or not.
48594 case $0 in
48595 *[\\/]* ) as_myself=$0 ;;
48596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48597for as_dir in $PATH
48598do
48599 IFS=$as_save_IFS
48600 test -z "$as_dir" && as_dir=.
48601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48602done
48603
48604 ;;
48605 esac
48606 # We did not find ourselves, most probably we were run as `sh COMMAND'
48607 # in which case we are not to be found in the path.
48608 if test "x$as_myself" = x; then
48609 as_myself=$0
48610 fi
48611 if test ! -f "$as_myself"; then
48612 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48613echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48614 { (exit 1); exit 1; }; }
48615 fi
48616 case $CONFIG_SHELL in
48617 '')
48618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48619for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48620do
48621 IFS=$as_save_IFS
48622 test -z "$as_dir" && as_dir=.
48623 for as_base in sh bash ksh sh5; do
48624 case $as_dir in
48625 /*)
48626 if ("$as_dir/$as_base" -c '
48627 as_lineno_1=$LINENO
48628 as_lineno_2=$LINENO
48629 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48630 test "x$as_lineno_1" != "x$as_lineno_2" &&
48631 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48632 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48633 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48634 CONFIG_SHELL=$as_dir/$as_base
48635 export CONFIG_SHELL
48636 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48637 fi;;
48638 esac
48639 done
48640done
48641;;
48642 esac
48643
48644 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48645 # uniformly replaced by the line number. The first 'sed' inserts a
48646 # line-number line before each line; the second 'sed' does the real
48647 # work. The second script uses 'N' to pair each line-number line
48648 # with the numbered line, and appends trailing '-' during
48649 # substitution so that $LINENO is not a special case at line end.
48650 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48651 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48652 sed '=' <$as_myself |
48653 sed '
48654 N
48655 s,$,-,
48656 : loop
48657 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48658 t loop
48659 s,-$,,
48660 s,^['$as_cr_digits']*\n,,
48661 ' >$as_me.lineno &&
48662 chmod +x $as_me.lineno ||
48663 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48664echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48665 { (exit 1); exit 1; }; }
48666
48667 # Don't try to exec as it changes $[0], causing all sort of problems
48668 # (the dirname of $[0] is not the place where we might find the
48669 # original and so on. Autoconf is especially sensible to this).
48670 . ./$as_me.lineno
48671 # Exit status is that of the last command.
48672 exit
48673}
48674
48675
48676case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48677 *c*,-n*) ECHO_N= ECHO_C='
48678' ECHO_T=' ' ;;
48679 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48680 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48681esac
48682
48683if expr a : '\(a\)' >/dev/null 2>&1; then
48684 as_expr=expr
48685else
48686 as_expr=false
48687fi
48688
48689rm -f conf$$ conf$$.exe conf$$.file
48690echo >conf$$.file
48691if ln -s conf$$.file conf$$ 2>/dev/null; then
48692 # We could just check for DJGPP; but this test a) works b) is more generic
48693 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48694 if test -f conf$$.exe; then
48695 # Don't use ln at all; we don't have any links
48696 as_ln_s='cp -p'
48697 else
48698 as_ln_s='ln -s'
48699 fi
48700elif ln conf$$.file conf$$ 2>/dev/null; then
48701 as_ln_s=ln
48702else
48703 as_ln_s='cp -p'
48704fi
48705rm -f conf$$ conf$$.exe conf$$.file
48706
48707if mkdir -p . 2>/dev/null; then
48708 as_mkdir_p=:
48709else
ac1cb8d3 48710 test -d ./-p && rmdir ./-p
a848cd7e
SC
48711 as_mkdir_p=false
48712fi
48713
48714as_executable_p="test -f"
48715
48716# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48717as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48718
48719# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48720as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48721
48722
48723# IFS
48724# We need space, tab and new line, in precisely that order.
48725as_nl='
48726'
48727IFS=" $as_nl"
48728
48729# CDPATH.
48730$as_unset CDPATH
48731
48732exec 6>&1
48733
48734# Open the log real soon, to keep \$[0] and so on meaningful, and to
48735# report actual input values of CONFIG_FILES etc. instead of their
48736# values after options handling. Logging --version etc. is OK.
48737exec 5>>config.log
48738{
48739 echo
48740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48741## Running $as_me. ##
48742_ASBOX
48743} >&5
48744cat >&5 <<_CSEOF
48745
dd8df4fc 48746This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 48747generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
48748
48749 CONFIG_FILES = $CONFIG_FILES
48750 CONFIG_HEADERS = $CONFIG_HEADERS
48751 CONFIG_LINKS = $CONFIG_LINKS
48752 CONFIG_COMMANDS = $CONFIG_COMMANDS
48753 $ $0 $@
48754
48755_CSEOF
48756echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
48757echo >&5
48758_ACEOF
48759
48760# Files that config.status was made for.
48761if test -n "$ac_config_files"; then
48762 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
48763fi
48764
48765if test -n "$ac_config_headers"; then
48766 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
48767fi
48768
48769if test -n "$ac_config_links"; then
48770 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
48771fi
48772
48773if test -n "$ac_config_commands"; then
48774 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
48775fi
48776
48777cat >>$CONFIG_STATUS <<\_ACEOF
48778
48779ac_cs_usage="\
48780\`$as_me' instantiates files from templates according to the
48781current configuration.
48782
48783Usage: $0 [OPTIONS] [FILE]...
48784
48785 -h, --help print this help, then exit
48786 -V, --version print version number, then exit
48787 -q, --quiet do not print progress messages
48788 -d, --debug don't remove temporary files
48789 --recheck update $as_me by reconfiguring in the same conditions
48790 --file=FILE[:TEMPLATE]
ac1cb8d3 48791 instantiate the configuration file FILE
a848cd7e 48792 --header=FILE[:TEMPLATE]
ac1cb8d3 48793 instantiate the configuration header FILE
a848cd7e
SC
48794
48795Configuration files:
48796$config_files
48797
48798Configuration headers:
48799$config_headers
48800
48801Configuration commands:
48802$config_commands
48803
48804Report bugs to <bug-autoconf@gnu.org>."
48805_ACEOF
48806
48807cat >>$CONFIG_STATUS <<_ACEOF
48808ac_cs_version="\\
dd8df4fc 48809wxWidgets config.status 2.7.0
ac1cb8d3 48810configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
48811 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
48812
ac1cb8d3 48813Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
48814This config.status script is free software; the Free Software Foundation
48815gives unlimited permission to copy, distribute and modify it."
48816srcdir=$srcdir
48817INSTALL="$INSTALL"
48818_ACEOF
48819
48820cat >>$CONFIG_STATUS <<\_ACEOF
48821# If no file are specified by the user, then we need to provide default
48822# value. By we need to know if files were specified by the user.
48823ac_need_defaults=:
48824while test $# != 0
48825do
48826 case $1 in
48827 --*=*)
48828 ac_option=`expr "x$1" : 'x\([^=]*\)='`
48829 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
48830 ac_shift=:
48831 ;;
48832 -*)
48833 ac_option=$1
48834 ac_optarg=$2
48835 ac_shift=shift
48836 ;;
48837 *) # This is not an option, so the user has probably given explicit
48838 # arguments.
48839 ac_option=$1
48840 ac_need_defaults=false;;
48841 esac
48842
48843 case $ac_option in
48844 # Handling of the options.
48845_ACEOF
48846cat >>$CONFIG_STATUS <<\_ACEOF
48847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48848 ac_cs_recheck=: ;;
48849 --version | --vers* | -V )
48850 echo "$ac_cs_version"; exit 0 ;;
48851 --he | --h)
48852 # Conflict between --help and --header
48853 { { echo "$as_me:$LINENO: error: ambiguous option: $1
48854Try \`$0 --help' for more information." >&5
48855echo "$as_me: error: ambiguous option: $1
48856Try \`$0 --help' for more information." >&2;}
48857 { (exit 1); exit 1; }; };;
48858 --help | --hel | -h )
48859 echo "$ac_cs_usage"; exit 0 ;;
48860 --debug | --d* | -d )
48861 debug=: ;;
48862 --file | --fil | --fi | --f )
48863 $ac_shift
48864 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48865 ac_need_defaults=false;;
48866 --header | --heade | --head | --hea )
48867 $ac_shift
48868 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48869 ac_need_defaults=false;;
48870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48871 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48872 ac_cs_silent=: ;;
48873
48874 # This is an error.
48875 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
48876Try \`$0 --help' for more information." >&5
48877echo "$as_me: error: unrecognized option: $1
48878Try \`$0 --help' for more information." >&2;}
48879 { (exit 1); exit 1; }; } ;;
48880
48881 *) ac_config_targets="$ac_config_targets $1" ;;
48882
48883 esac
48884 shift
48885done
48886
48887ac_configure_extra_args=
48888
48889if $ac_cs_silent; then
48890 exec 6>/dev/null
48891 ac_configure_extra_args="$ac_configure_extra_args --silent"
48892fi
48893
48894_ACEOF
48895cat >>$CONFIG_STATUS <<_ACEOF
48896if \$ac_cs_recheck; then
48897 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48898 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48899fi
48900
48901_ACEOF
48902
48903cat >>$CONFIG_STATUS <<_ACEOF
48904#
48905# INIT-COMMANDS section.
48906#
48907
5c60e845
MW
48908
48909 CPP="$CPP"
48910 infile="$srcdir/include/wx/msw/genrcdefs.h"
48911 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
48912
48913
ceec2216
RL
48914 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48915 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48916 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48917 LN_S="${LN_S}"
a848cd7e
SC
48918
48919
48920_ACEOF
48921
48922
48923
48924cat >>$CONFIG_STATUS <<\_ACEOF
48925for ac_config_target in $ac_config_targets
48926do
48927 case "$ac_config_target" in
48928 # Handling of arguments.
ceec2216
RL
48929 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
48930 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
48931 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
48932 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48933 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 48934 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
48935 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
48936 "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
48937 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48938echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48939 { (exit 1); exit 1; }; };;
48940 esac
48941done
48942
48943# If the user did not use the arguments to specify the items to instantiate,
48944# then the envvar interface is used. Set only those that are not.
48945# We use the long form for the default assignment because of an extremely
48946# bizarre bug on SunOS 4.1.3.
48947if $ac_need_defaults; then
48948 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48949 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48950 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48951fi
48952
48953# Have a temporary directory for convenience. Make it in the build tree
48954# simply because there is no reason to put it here, and in addition,
48955# creating and moving files from /tmp can sometimes cause problems.
48956# Create a temporary directory, and hook for its removal unless debugging.
48957$debug ||
48958{
48959 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
48960 trap '{ (exit 1); exit 1; }' 1 2 13 15
48961}
48962
48963# Create a (secure) tmp directory for tmp files.
48964
48965{
48966 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
48967 test -n "$tmp" && test -d "$tmp"
48968} ||
48969{
48970 tmp=./confstat$$-$RANDOM
48971 (umask 077 && mkdir $tmp)
48972} ||
48973{
48974 echo "$me: cannot create a temporary directory in ." >&2
48975 { (exit 1); exit 1; }
48976}
48977
48978_ACEOF
48979
48980cat >>$CONFIG_STATUS <<_ACEOF
48981
48982#
48983# CONFIG_FILES section.
48984#
48985
48986# No need to generate the scripts if there are no CONFIG_FILES.
48987# This happens for instance when ./config.status config.h
48988if test -n "\$CONFIG_FILES"; then
48989 # Protect against being on the right side of a sed subst in config.status.
48990 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
48991 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
48992s,@SHELL@,$SHELL,;t t
48993s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
48994s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
48995s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
48996s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
48997s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
48998s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
48999s,@exec_prefix@,$exec_prefix,;t t
49000s,@prefix@,$prefix,;t t
49001s,@program_transform_name@,$program_transform_name,;t t
49002s,@bindir@,$bindir,;t t
49003s,@sbindir@,$sbindir,;t t
49004s,@libexecdir@,$libexecdir,;t t
49005s,@datadir@,$datadir,;t t
49006s,@sysconfdir@,$sysconfdir,;t t
49007s,@sharedstatedir@,$sharedstatedir,;t t
49008s,@localstatedir@,$localstatedir,;t t
49009s,@libdir@,$libdir,;t t
49010s,@includedir@,$includedir,;t t
49011s,@oldincludedir@,$oldincludedir,;t t
49012s,@infodir@,$infodir,;t t
49013s,@mandir@,$mandir,;t t
49014s,@build_alias@,$build_alias,;t t
49015s,@host_alias@,$host_alias,;t t
49016s,@target_alias@,$target_alias,;t t
49017s,@DEFS@,$DEFS,;t t
49018s,@ECHO_C@,$ECHO_C,;t t
49019s,@ECHO_N@,$ECHO_N,;t t
49020s,@ECHO_T@,$ECHO_T,;t t
49021s,@LIBS@,$LIBS,;t t
49022s,@build@,$build,;t t
49023s,@build_cpu@,$build_cpu,;t t
49024s,@build_vendor@,$build_vendor,;t t
49025s,@build_os@,$build_os,;t t
49026s,@host@,$host,;t t
49027s,@host_cpu@,$host_cpu,;t t
49028s,@host_vendor@,$host_vendor,;t t
49029s,@host_os@,$host_os,;t t
49030s,@target@,$target,;t t
49031s,@target_cpu@,$target_cpu,;t t
49032s,@target_vendor@,$target_vendor,;t t
49033s,@target_os@,$target_os,;t t
49034s,@CC@,$CC,;t t
49035s,@CFLAGS@,$CFLAGS,;t t
49036s,@LDFLAGS@,$LDFLAGS,;t t
49037s,@CPPFLAGS@,$CPPFLAGS,;t t
49038s,@ac_ct_CC@,$ac_ct_CC,;t t
49039s,@EXEEXT@,$EXEEXT,;t t
49040s,@OBJEXT@,$OBJEXT,;t t
49041s,@CPP@,$CPP,;t t
49042s,@EGREP@,$EGREP,;t t
49043s,@CXX@,$CXX,;t t
49044s,@CXXFLAGS@,$CXXFLAGS,;t t
49045s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49046s,@RANLIB@,$RANLIB,;t t
49047s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49048s,@AR@,$AR,;t t
8c80d384 49049s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49050s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49051s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49052s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49053s,@STRIP@,$STRIP,;t t
8c80d384 49054s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49055s,@WINDRES@,$WINDRES,;t t
49056s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49057s,@DLLTOOL@,$DLLTOOL,;t t
49058s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49059s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49060s,@LN_S@,$LN_S,;t t
bcaab0f9 49061s,@LNDIR@,$LNDIR,;t t
a848cd7e
SC
49062s,@CXXCPP@,$CXXCPP,;t t
49063s,@subdirs@,$subdirs,;t t
49064s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49065s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49066s,@GTK_LIBS@,$GTK_LIBS,;t t
49067s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49068s,@X_CFLAGS@,$X_CFLAGS,;t t
49069s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49070s,@X_LIBS@,$X_LIBS,;t t
49071s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49072s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49073s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49074s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49075s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49076s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49077s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49078s,@REZ@,$REZ,;t t
a848cd7e
SC
49079s,@DEREZ@,$DEREZ,;t t
49080s,@SETFILE@,$SETFILE,;t t
49081s,@LIBICONV@,$LIBICONV,;t t
49082s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49083s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49084s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49085s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49086s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49087s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
3565d135
RR
49088s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49089s,@HILDON_LIBS@,$HILDON_LIBS,;t t
dae87f93
RN
49090s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
49091s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
49092s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
49093s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49094s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49095s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49096s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49097s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49098s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49099s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49100s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49101s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49102s,@VENDOR@,$VENDOR,;t t
49103s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49104s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49105s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49106s,@WXUNIV@,$WXUNIV,;t t
49107s,@MONOLITHIC@,$MONOLITHIC,;t t
49108s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49109s,@EXTRALIBS@,$EXTRALIBS,;t t
49110s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49111s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49112s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49113s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49114s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49115s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49116s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49117s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
3565d135 49118s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49119s,@UNICODE@,$UNICODE,;t t
49120s,@BUILD@,$BUILD,;t t
49121s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49122s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49123s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49124s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49125s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49126s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49127s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49128s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49129s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49130s,@SET_MAKE@,$SET_MAKE,;t t
49131s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49132s,@NM@,$NM,;t t
49133s,@ac_ct_NM@,$ac_ct_NM,;t t
49134s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49135s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49136s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49137s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49138s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49139s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49140s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49141s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49142s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49143s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49144s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49145s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49146s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49147s,@LIBPREFIX@,$LIBPREFIX,;t t
49148s,@LIBEXT@,$LIBEXT,;t t
49149s,@DLLPREFIX@,$DLLPREFIX,;t t
49150s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49151s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49152s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49153s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49154s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49155s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49156s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49157s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49158s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49159s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49160s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49161s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49162s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49163s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49164s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49165s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49166s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49167s,@GCC_PCH@,$GCC_PCH,;t t
49168s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49169s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49170s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49171s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49172s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49173s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49174s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49175s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49176s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49177s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49178s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49179s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49180s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49181s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49182s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
49183s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49184s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49185s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49186s,@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 49187s,@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 49188s,@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 49189s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49190s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49191s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49192s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49193s,@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 49194s,@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 49195s,@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 49196s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49197s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
49198s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49199s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49200s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49201s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49202s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49203s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49204s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49205s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49206s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49207s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49208s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49209s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49210s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49211s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49212s,@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
49213s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49214s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49215s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49216s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49217s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49218s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 49219s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49220s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49221s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49222s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49223s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49224s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49225s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49226s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49227s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49228s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49229s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49230s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49231s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49232s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49233s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49234s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49235s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49236s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49237s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49238s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49239s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49240s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49241s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49242s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49243s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49244s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49245s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49246s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49247s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49248s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49249s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49250s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49251s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49252s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49253s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49254s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49255s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49256s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49257s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49258s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49259s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49260s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49261s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49262s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49263s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49264s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49265s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49266s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49267s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49268s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49269s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49270s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49271s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49272s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49273s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49274s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49275s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49276s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49277s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49278s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49279s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49280s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49281s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49282s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49283s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49284s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49285s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49286s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49287s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 49288s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49289s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49290s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49291s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49292s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49293s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49294s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49295s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49296s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49297s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49298s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49299s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49300s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49301s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49302s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49303s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49304s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49305s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49306s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49307s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49308s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49309s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49310s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49311s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49312s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49313s,@USE_GUI@,$USE_GUI,;t t
49314s,@AFMINSTALL@,$AFMINSTALL,;t t
49315s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49316s,@TOOLKIT@,$TOOLKIT,;t t
49317s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49318s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49319s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49320s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49321s,@WIDGET_SET@,$WIDGET_SET,;t t
49322s,@WX_RELEASE@,$WX_RELEASE,;t t
49323s,@WX_VERSION@,$WX_VERSION,;t t
49324s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49325s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49326s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49327s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49328s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49329s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49330s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49331s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49332s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49333s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49334s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49335s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49336s,@DISTDIR@,$DISTDIR,;t t
49337s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49338s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49339s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49340s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49341s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49342s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49343s,@RESFLAGS@,$RESFLAGS,;t t
49344s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49345s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49346s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49347s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49348s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49349s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49350s,@GCC@,$GCC,;t t
a848cd7e
SC
49351s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49352s,@LIBOBJS@,$LIBOBJS,;t t
49353s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49354CEOF
49355
49356_ACEOF
49357
49358 cat >>$CONFIG_STATUS <<\_ACEOF
49359 # Split the substitutions into bite-sized pieces for seds with
49360 # small command number limits, like on Digital OSF/1 and HP-UX.
49361 ac_max_sed_lines=48
49362 ac_sed_frag=1 # Number of current file.
49363 ac_beg=1 # First line for current file.
49364 ac_end=$ac_max_sed_lines # Line after last line for current file.
49365 ac_more_lines=:
49366 ac_sed_cmds=
49367 while $ac_more_lines; do
49368 if test $ac_beg -gt 1; then
49369 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49370 else
49371 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49372 fi
49373 if test ! -s $tmp/subs.frag; then
49374 ac_more_lines=false
49375 else
49376 # The purpose of the label and of the branching condition is to
49377 # speed up the sed processing (if there are no `@' at all, there
49378 # is no need to browse any of the substitutions).
49379 # These are the two extra sed commands mentioned above.
49380 (echo ':t
49381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49382 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49383 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49384 else
ac1cb8d3 49385 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49386 fi
49387 ac_sed_frag=`expr $ac_sed_frag + 1`
49388 ac_beg=$ac_end
49389 ac_end=`expr $ac_end + $ac_max_sed_lines`
49390 fi
49391 done
49392 if test -z "$ac_sed_cmds"; then
49393 ac_sed_cmds=cat
49394 fi
49395fi # test -n "$CONFIG_FILES"
49396
49397_ACEOF
49398cat >>$CONFIG_STATUS <<\_ACEOF
49399for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49400 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49401 case $ac_file in
49402 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49403 cat >$tmp/stdin
49404 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49405 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49406 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49407 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49408 * ) ac_file_in=$ac_file.in ;;
49409 esac
49410
49411 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49412 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49413$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49414 X"$ac_file" : 'X\(//\)[^/]' \| \
49415 X"$ac_file" : 'X\(//\)$' \| \
49416 X"$ac_file" : 'X\(/\)' \| \
49417 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49418echo X"$ac_file" |
49419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49421 /^X\(\/\/\)$/{ s//\1/; q; }
49422 /^X\(\/\).*/{ s//\1/; q; }
49423 s/.*/./; q'`
49424 { if $as_mkdir_p; then
49425 mkdir -p "$ac_dir"
49426 else
49427 as_dir="$ac_dir"
49428 as_dirs=
49429 while test ! -d "$as_dir"; do
49430 as_dirs="$as_dir $as_dirs"
49431 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49433 X"$as_dir" : 'X\(//\)[^/]' \| \
49434 X"$as_dir" : 'X\(//\)$' \| \
49435 X"$as_dir" : 'X\(/\)' \| \
49436 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49437echo X"$as_dir" |
49438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49440 /^X\(\/\/\)$/{ s//\1/; q; }
49441 /^X\(\/\).*/{ s//\1/; q; }
49442 s/.*/./; q'`
49443 done
49444 test ! -n "$as_dirs" || mkdir $as_dirs
49445 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49446echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49447 { (exit 1); exit 1; }; }; }
49448
49449 ac_builddir=.
49450
49451if test "$ac_dir" != .; then
49452 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49453 # A "../" for each directory in $ac_dir_suffix.
49454 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49455else
49456 ac_dir_suffix= ac_top_builddir=
49457fi
49458
49459case $srcdir in
49460 .) # No --srcdir option. We are building in place.
49461 ac_srcdir=.
49462 if test -z "$ac_top_builddir"; then
49463 ac_top_srcdir=.
49464 else
49465 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49466 fi ;;
49467 [\\/]* | ?:[\\/]* ) # Absolute path.
49468 ac_srcdir=$srcdir$ac_dir_suffix;
49469 ac_top_srcdir=$srcdir ;;
49470 *) # Relative path.
49471 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49472 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49473esac
ac1cb8d3
VS
49474
49475# Do not use `cd foo && pwd` to compute absolute paths, because
49476# the directories may not exist.
49477case `pwd` in
49478.) ac_abs_builddir="$ac_dir";;
49479*)
49480 case "$ac_dir" in
49481 .) ac_abs_builddir=`pwd`;;
49482 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49483 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49484 esac;;
49485esac
49486case $ac_abs_builddir in
49487.) ac_abs_top_builddir=${ac_top_builddir}.;;
49488*)
49489 case ${ac_top_builddir}. in
49490 .) ac_abs_top_builddir=$ac_abs_builddir;;
49491 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49492 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49493 esac;;
49494esac
49495case $ac_abs_builddir in
49496.) ac_abs_srcdir=$ac_srcdir;;
49497*)
49498 case $ac_srcdir in
49499 .) ac_abs_srcdir=$ac_abs_builddir;;
49500 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49501 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49502 esac;;
49503esac
49504case $ac_abs_builddir in
49505.) ac_abs_top_srcdir=$ac_top_srcdir;;
49506*)
49507 case $ac_top_srcdir in
49508 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49509 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49510 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49511 esac;;
49512esac
a848cd7e
SC
49513
49514
49515 case $INSTALL in
49516 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49517 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49518 esac
49519
3565d135
RR
49520 if test x"$ac_file" != x-; then
49521 { echo "$as_me:$LINENO: creating $ac_file" >&5
49522echo "$as_me: creating $ac_file" >&6;}
49523 rm -f "$ac_file"
49524 fi
a848cd7e
SC
49525 # Let's still pretend it is `configure' which instantiates (i.e., don't
49526 # use $as_me), people would be surprised to read:
49527 # /* config.h. Generated by config.status. */
49528 if test x"$ac_file" = x-; then
49529 configure_input=
49530 else
49531 configure_input="$ac_file. "
49532 fi
49533 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49534 sed 's,.*/,,'` by configure."
a848cd7e
SC
49535
49536 # First look for the input files in the build tree, otherwise in the
49537 # src tree.
49538 ac_file_inputs=`IFS=:
49539 for f in $ac_file_in; do
49540 case $f in
49541 -) echo $tmp/stdin ;;
49542 [\\/$]*)
ac1cb8d3
VS
49543 # Absolute (can't be DOS-style, as IFS=:)
49544 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49545echo "$as_me: error: cannot find input file: $f" >&2;}
49546 { (exit 1); exit 1; }; }
ac1cb8d3 49547 echo "$f";;
a848cd7e 49548 *) # Relative
ac1cb8d3
VS
49549 if test -f "$f"; then
49550 # Build tree
49551 echo "$f"
49552 elif test -f "$srcdir/$f"; then
49553 # Source tree
49554 echo "$srcdir/$f"
49555 else
49556 # /dev/null tree
49557 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49558echo "$as_me: error: cannot find input file: $f" >&2;}
49559 { (exit 1); exit 1; }; }
ac1cb8d3 49560 fi;;
a848cd7e
SC
49561 esac
49562 done` || { (exit 1); exit 1; }
49563_ACEOF
49564cat >>$CONFIG_STATUS <<_ACEOF
49565 sed "$ac_vpsub
49566$extrasub
49567_ACEOF
49568cat >>$CONFIG_STATUS <<\_ACEOF
49569:t
49570/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49571s,@configure_input@,$configure_input,;t t
49572s,@srcdir@,$ac_srcdir,;t t
49573s,@abs_srcdir@,$ac_abs_srcdir,;t t
49574s,@top_srcdir@,$ac_top_srcdir,;t t
49575s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49576s,@builddir@,$ac_builddir,;t t
49577s,@abs_builddir@,$ac_abs_builddir,;t t
49578s,@top_builddir@,$ac_top_builddir,;t t
49579s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49580s,@INSTALL@,$ac_INSTALL,;t t
49581" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49582 rm -f $tmp/stdin
49583 if test x"$ac_file" != x-; then
49584 mv $tmp/out $ac_file
49585 else
49586 cat $tmp/out
49587 rm -f $tmp/out
49588 fi
49589
ceec2216
RL
49590 # Run the commands associated with the file.
49591 case $ac_file in
49592 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49593 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49594 esac
a848cd7e
SC
49595done
49596_ACEOF
49597cat >>$CONFIG_STATUS <<\_ACEOF
49598
49599#
49600# CONFIG_HEADER section.
49601#
49602
49603# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49604# NAME is the cpp macro being defined and VALUE is the value it is being given.
49605#
49606# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49607ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49608ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49609ac_dC=' '
49610ac_dD=',;t'
49611# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49612ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49613ac_uB='$,\1#\2define\3'
49614ac_uC=' '
49615ac_uD=',;t'
49616
49617for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49618 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49619 case $ac_file in
49620 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49621 cat >$tmp/stdin
49622 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49623 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49624 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49625 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49626 * ) ac_file_in=$ac_file.in ;;
49627 esac
49628
49629 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49630echo "$as_me: creating $ac_file" >&6;}
49631
49632 # First look for the input files in the build tree, otherwise in the
49633 # src tree.
49634 ac_file_inputs=`IFS=:
49635 for f in $ac_file_in; do
49636 case $f in
49637 -) echo $tmp/stdin ;;
49638 [\\/$]*)
ac1cb8d3
VS
49639 # Absolute (can't be DOS-style, as IFS=:)
49640 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49641echo "$as_me: error: cannot find input file: $f" >&2;}
49642 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49643 # Do quote $f, to prevent DOS paths from being IFS'd.
49644 echo "$f";;
a848cd7e 49645 *) # Relative
ac1cb8d3
VS
49646 if test -f "$f"; then
49647 # Build tree
49648 echo "$f"
49649 elif test -f "$srcdir/$f"; then
49650 # Source tree
49651 echo "$srcdir/$f"
49652 else
49653 # /dev/null tree
49654 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49655echo "$as_me: error: cannot find input file: $f" >&2;}
49656 { (exit 1); exit 1; }; }
ac1cb8d3 49657 fi;;
a848cd7e
SC
49658 esac
49659 done` || { (exit 1); exit 1; }
49660 # Remove the trailing spaces.
ac1cb8d3 49661 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49662
49663_ACEOF
49664
49665# Transform confdefs.h into two sed scripts, `conftest.defines' and
49666# `conftest.undefs', that substitutes the proper values into
49667# config.h.in to produce config.h. The first handles `#define'
49668# templates, and the second `#undef' templates.
49669# And first: Protect against being on the right side of a sed subst in
49670# config.status. Protect against being in an unquoted here document
49671# in config.status.
49672rm -f conftest.defines conftest.undefs
49673# Using a here document instead of a string reduces the quoting nightmare.
49674# Putting comments in sed scripts is not portable.
49675#
49676# `end' is used to avoid that the second main sed command (meant for
49677# 0-ary CPP macros) applies to n-ary macro definitions.
49678# See the Autoconf documentation for `clear'.
49679cat >confdef2sed.sed <<\_ACEOF
49680s/[\\&,]/\\&/g
49681s,[\\$`],\\&,g
49682t clear
49683: clear
ac1cb8d3 49684s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49685t end
ac1cb8d3 49686s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49687: end
49688_ACEOF
49689# If some macros were called several times there might be several times
49690# the same #defines, which is useless. Nevertheless, we may not want to
49691# sort them, since we want the *last* AC-DEFINE to be honored.
49692uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49693sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49694rm -f confdef2sed.sed
49695
49696# This sed command replaces #undef with comments. This is necessary, for
49697# example, in the case of _POSIX_SOURCE, which is predefined and required
49698# on some systems where configure will not decide to define it.
49699cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49700s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49701_ACEOF
49702
49703# Break up conftest.defines because some shells have a limit on the size
49704# of here documents, and old seds have small limits too (100 cmds).
49705echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49706echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49707echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49708echo ' :' >>$CONFIG_STATUS
49709rm -f conftest.tail
49710while grep . conftest.defines >/dev/null
49711do
49712 # Write a limited-size here document to $tmp/defines.sed.
49713 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49714 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49715 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49716 # Work around the forget-to-reset-the-flag bug.
49717 echo 't clr' >>$CONFIG_STATUS
49718 echo ': clr' >>$CONFIG_STATUS
49719 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49720 echo 'CEOF
49721 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49722 rm -f $tmp/in
49723 mv $tmp/out $tmp/in
49724' >>$CONFIG_STATUS
49725 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49726 rm -f conftest.defines
49727 mv conftest.tail conftest.defines
49728done
49729rm -f conftest.defines
49730echo ' fi # grep' >>$CONFIG_STATUS
49731echo >>$CONFIG_STATUS
49732
49733# Break up conftest.undefs because some shells have a limit on the size
49734# of here documents, and old seds have small limits too (100 cmds).
49735echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
49736rm -f conftest.tail
49737while grep . conftest.undefs >/dev/null
49738do
49739 # Write a limited-size here document to $tmp/undefs.sed.
49740 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
49741 # Speed up: don't consider the non `#undef'
ac1cb8d3 49742 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
49743 # Work around the forget-to-reset-the-flag bug.
49744 echo 't clr' >>$CONFIG_STATUS
49745 echo ': clr' >>$CONFIG_STATUS
49746 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
49747 echo 'CEOF
49748 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
49749 rm -f $tmp/in
49750 mv $tmp/out $tmp/in
49751' >>$CONFIG_STATUS
49752 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
49753 rm -f conftest.undefs
49754 mv conftest.tail conftest.undefs
49755done
49756rm -f conftest.undefs
49757
49758cat >>$CONFIG_STATUS <<\_ACEOF
49759 # Let's still pretend it is `configure' which instantiates (i.e., don't
49760 # use $as_me), people would be surprised to read:
49761 # /* config.h. Generated by config.status. */
49762 if test x"$ac_file" = x-; then
49763 echo "/* Generated by configure. */" >$tmp/config.h
49764 else
49765 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
49766 fi
49767 cat $tmp/in >>$tmp/config.h
49768 rm -f $tmp/in
49769 if test x"$ac_file" != x-; then
49770 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
49771 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49772echo "$as_me: $ac_file is unchanged" >&6;}
49773 else
49774 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49775$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49776 X"$ac_file" : 'X\(//\)[^/]' \| \
49777 X"$ac_file" : 'X\(//\)$' \| \
49778 X"$ac_file" : 'X\(/\)' \| \
49779 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49780echo X"$ac_file" |
49781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49783 /^X\(\/\/\)$/{ s//\1/; q; }
49784 /^X\(\/\).*/{ s//\1/; q; }
49785 s/.*/./; q'`
49786 { if $as_mkdir_p; then
49787 mkdir -p "$ac_dir"
49788 else
49789 as_dir="$ac_dir"
49790 as_dirs=
49791 while test ! -d "$as_dir"; do
49792 as_dirs="$as_dir $as_dirs"
49793 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49795 X"$as_dir" : 'X\(//\)[^/]' \| \
49796 X"$as_dir" : 'X\(//\)$' \| \
49797 X"$as_dir" : 'X\(/\)' \| \
49798 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49799echo X"$as_dir" |
49800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49801 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49802 /^X\(\/\/\)$/{ s//\1/; q; }
49803 /^X\(\/\).*/{ s//\1/; q; }
49804 s/.*/./; q'`
49805 done
49806 test ! -n "$as_dirs" || mkdir $as_dirs
49807 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49808echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49809 { (exit 1); exit 1; }; }; }
49810
49811 rm -f $ac_file
49812 mv $tmp/config.h $ac_file
49813 fi
49814 else
49815 cat $tmp/config.h
49816 rm -f $tmp/config.h
49817 fi
49818done
49819_ACEOF
49820cat >>$CONFIG_STATUS <<\_ACEOF
49821
49822#
49823# CONFIG_COMMANDS section.
49824#
49825for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
49826 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
49827 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
49828 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
49829$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49830 X"$ac_dest" : 'X\(//\)[^/]' \| \
49831 X"$ac_dest" : 'X\(//\)$' \| \
49832 X"$ac_dest" : 'X\(/\)' \| \
49833 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49834echo X"$ac_dest" |
49835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49837 /^X\(\/\/\)$/{ s//\1/; q; }
49838 /^X\(\/\).*/{ s//\1/; q; }
49839 s/.*/./; q'`
ac1cb8d3
VS
49840 { if $as_mkdir_p; then
49841 mkdir -p "$ac_dir"
49842 else
49843 as_dir="$ac_dir"
49844 as_dirs=
49845 while test ! -d "$as_dir"; do
49846 as_dirs="$as_dir $as_dirs"
49847 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49848$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49849 X"$as_dir" : 'X\(//\)[^/]' \| \
49850 X"$as_dir" : 'X\(//\)$' \| \
49851 X"$as_dir" : 'X\(/\)' \| \
49852 . : '\(.\)' 2>/dev/null ||
49853echo X"$as_dir" |
49854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49856 /^X\(\/\/\)$/{ s//\1/; q; }
49857 /^X\(\/\).*/{ s//\1/; q; }
49858 s/.*/./; q'`
49859 done
49860 test ! -n "$as_dirs" || mkdir $as_dirs
49861 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49862echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49863 { (exit 1); exit 1; }; }; }
49864
a848cd7e
SC
49865 ac_builddir=.
49866
49867if test "$ac_dir" != .; then
49868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49869 # A "../" for each directory in $ac_dir_suffix.
49870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49871else
49872 ac_dir_suffix= ac_top_builddir=
49873fi
49874
49875case $srcdir in
49876 .) # No --srcdir option. We are building in place.
49877 ac_srcdir=.
49878 if test -z "$ac_top_builddir"; then
49879 ac_top_srcdir=.
49880 else
49881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49882 fi ;;
49883 [\\/]* | ?:[\\/]* ) # Absolute path.
49884 ac_srcdir=$srcdir$ac_dir_suffix;
49885 ac_top_srcdir=$srcdir ;;
49886 *) # Relative path.
49887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49889esac
ac1cb8d3
VS
49890
49891# Do not use `cd foo && pwd` to compute absolute paths, because
49892# the directories may not exist.
49893case `pwd` in
49894.) ac_abs_builddir="$ac_dir";;
49895*)
49896 case "$ac_dir" in
49897 .) ac_abs_builddir=`pwd`;;
49898 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49899 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49900 esac;;
49901esac
49902case $ac_abs_builddir in
49903.) ac_abs_top_builddir=${ac_top_builddir}.;;
49904*)
49905 case ${ac_top_builddir}. in
49906 .) ac_abs_top_builddir=$ac_abs_builddir;;
49907 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49908 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49909 esac;;
49910esac
49911case $ac_abs_builddir in
49912.) ac_abs_srcdir=$ac_srcdir;;
49913*)
49914 case $ac_srcdir in
49915 .) ac_abs_srcdir=$ac_abs_builddir;;
49916 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49917 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49918 esac;;
49919esac
49920case $ac_abs_builddir in
49921.) ac_abs_top_srcdir=$ac_top_srcdir;;
49922*)
49923 case $ac_top_srcdir in
49924 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49925 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49926 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49927 esac;;
49928esac
a848cd7e
SC
49929
49930
49931 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
49932echo "$as_me: executing $ac_dest commands" >&6;}
49933 case $ac_dest in
5c60e845
MW
49934 rcdefs.h )
49935 mkdir -p $outdir &&
49936 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
49937 ;;
ceec2216
RL
49938 wx-config ) rm -f wx-config
49939 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
49940 ;;
a848cd7e
SC
49941 esac
49942done
49943_ACEOF
49944
49945cat >>$CONFIG_STATUS <<\_ACEOF
49946
49947{ (exit 0); exit 0; }
49948_ACEOF
49949chmod +x $CONFIG_STATUS
49950ac_clean_files=$ac_clean_files_save
49951
49952
49953# configure is writing to config.log, and then calls config.status.
49954# config.status does its own redirection, appending to config.log.
49955# Unfortunately, on DOS this fails, as config.log is still kept open
49956# by configure, so config.status won't be able to write to it; its
49957# output is simply discarded. So we exec the FD to /dev/null,
49958# effectively closing config.log, so it can be properly (re)opened and
49959# appended to by config.status. When coming back to configure, we
49960# need to make the FD available again.
49961if test "$no_create" != yes; then
49962 ac_cs_success=:
49963 ac_config_status_args=
49964 test "$silent" = yes &&
49965 ac_config_status_args="$ac_config_status_args --quiet"
49966 exec 5>/dev/null
49967 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49968 exec 5>>config.log
49969 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49970 # would make configure fail if this is the last instruction.
49971 $ac_cs_success || { (exit 1); exit 1; }
49972fi
49973
49974#
49975# CONFIG_SUBDIRS section.
49976#
49977if test "$no_recursion" != yes; then
49978
49979 # Remove --cache-file and --srcdir arguments so they do not pile up.
49980 ac_sub_configure_args=
49981 ac_prev=
49982 for ac_arg in $ac_configure_args; do
49983 if test -n "$ac_prev"; then
49984 ac_prev=
49985 continue
49986 fi
49987 case $ac_arg in
49988 -cache-file | --cache-file | --cache-fil | --cache-fi \
49989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
49990 ac_prev=cache_file ;;
49991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
49992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
49993 | --c=*)
49994 ;;
49995 --config-cache | -C)
49996 ;;
49997 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
49998 ac_prev=srcdir ;;
49999 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50000 ;;
50001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50002 ac_prev=prefix ;;
50003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50004 ;;
50005 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50006 esac
50007 done
50008
50009 # Always prepend --prefix to ensure using the same prefix
50010 # in subdir configurations.
50011 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50012
50013 ac_popdir=`pwd`
50014 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50015
50016 # Do not complain, so a configure script can configure whichever
50017 # parts of a large source tree are present.
50018 test -d $srcdir/$ac_dir || continue
50019
50020 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50021echo "$as_me: configuring in $ac_dir" >&6;}
50022 { if $as_mkdir_p; then
50023 mkdir -p "$ac_dir"
50024 else
50025 as_dir="$ac_dir"
50026 as_dirs=
50027 while test ! -d "$as_dir"; do
50028 as_dirs="$as_dir $as_dirs"
50029 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50030$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50031 X"$as_dir" : 'X\(//\)[^/]' \| \
50032 X"$as_dir" : 'X\(//\)$' \| \
50033 X"$as_dir" : 'X\(/\)' \| \
50034 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50035echo X"$as_dir" |
50036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50038 /^X\(\/\/\)$/{ s//\1/; q; }
50039 /^X\(\/\).*/{ s//\1/; q; }
50040 s/.*/./; q'`
50041 done
50042 test ! -n "$as_dirs" || mkdir $as_dirs
50043 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50044echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50045 { (exit 1); exit 1; }; }; }
50046
50047 ac_builddir=.
50048
50049if test "$ac_dir" != .; then
50050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50051 # A "../" for each directory in $ac_dir_suffix.
50052 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50053else
50054 ac_dir_suffix= ac_top_builddir=
50055fi
50056
50057case $srcdir in
50058 .) # No --srcdir option. We are building in place.
50059 ac_srcdir=.
50060 if test -z "$ac_top_builddir"; then
50061 ac_top_srcdir=.
50062 else
50063 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50064 fi ;;
50065 [\\/]* | ?:[\\/]* ) # Absolute path.
50066 ac_srcdir=$srcdir$ac_dir_suffix;
50067 ac_top_srcdir=$srcdir ;;
50068 *) # Relative path.
50069 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50070 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50071esac
ac1cb8d3
VS
50072
50073# Do not use `cd foo && pwd` to compute absolute paths, because
50074# the directories may not exist.
50075case `pwd` in
50076.) ac_abs_builddir="$ac_dir";;
50077*)
50078 case "$ac_dir" in
50079 .) ac_abs_builddir=`pwd`;;
50080 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50081 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50082 esac;;
50083esac
50084case $ac_abs_builddir in
50085.) ac_abs_top_builddir=${ac_top_builddir}.;;
50086*)
50087 case ${ac_top_builddir}. in
50088 .) ac_abs_top_builddir=$ac_abs_builddir;;
50089 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50090 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50091 esac;;
50092esac
50093case $ac_abs_builddir in
50094.) ac_abs_srcdir=$ac_srcdir;;
50095*)
50096 case $ac_srcdir in
50097 .) ac_abs_srcdir=$ac_abs_builddir;;
50098 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50099 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50100 esac;;
50101esac
50102case $ac_abs_builddir in
50103.) ac_abs_top_srcdir=$ac_top_srcdir;;
50104*)
50105 case $ac_top_srcdir in
50106 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50107 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50108 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50109 esac;;
50110esac
a848cd7e
SC
50111
50112
50113 cd $ac_dir
50114
50115 # Check for guested configure; otherwise get Cygnus style configure.
50116 if test -f $ac_srcdir/configure.gnu; then
50117 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50118 elif test -f $ac_srcdir/configure; then
50119 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50120 elif test -f $ac_srcdir/configure.in; then
50121 ac_sub_configure=$ac_configure
50122 else
50123 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50124echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50125 ac_sub_configure=
50126 fi
50127
50128 # The recursion is here.
50129 if test -n "$ac_sub_configure"; then
50130 # Make the cache file name correct relative to the subdirectory.
50131 case $cache_file in
50132 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50133 *) # Relative path.
ac1cb8d3 50134 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50135 esac
50136
50137 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50138echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50139 # The eval makes quoting arguments work.
50140 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50141 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50142 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50143echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50144 { (exit 1); exit 1; }; }
50145 fi
50146
3565d135 50147 cd $ac_popdir
a848cd7e
SC
50148 done
50149fi
50150
50151
50152echo
77ffb593 50153echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50154echo ""
4d4ff94c 50155echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50156echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50157
77ffb593
JS
50158echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50159echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50160echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50161
77ffb593 50162echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50163echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50164echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50165
77ffb593 50166echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50167echo " jpeg ${wxUSE_LIBJPEG-none}"
50168echo " png ${wxUSE_LIBPNG-none}"
50169echo " regex ${wxUSE_REGEX}"
50170echo " tiff ${wxUSE_LIBTIFF-none}"
50171if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50172echo " xpm ${wxUSE_LIBXPM-none}"
50173fi
50174echo " zlib ${wxUSE_ZLIB}"
50175echo " odbc ${wxUSE_ODBC}"
50176echo " expat ${wxUSE_EXPAT}"
50177echo " libmspack ${wxUSE_LIBMSPACK}"
50178echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50179echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
3565d135 50180echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50181
50182echo ""
50183