]> git.saurik.com Git - wxWidgets.git/blame - configure
Removed richedit from index file
[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"
7afc46ab 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 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
7afc46ab 892 --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
893 --enable-compat24 enable wxWidgets 2.4 compatibility
894 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 895 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
896 --enable-intl use internationalization system
897 --enable-config use wxConfig (and derived) classes
898 --enable-protocols use wxProtocol and derived classes
899 --enable-ftp use wxFTP (requires wxProtocol
900 --enable-http use wxHTTP (requires wxProtocol
901 --enable-fileproto use wxFileProto class (requires wxProtocol
902 --enable-sockets use socket/network classes
903 --enable-ole use OLE classes (Win32 only)
904 --enable-dataobj use data object classes
905 --enable-ipc use interprocess communication (wxSocket etc.)
906 --enable-apple_ieee use the Apple IEEE codec
81f90336 907 --enable-arcstream use wxArchive streams
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 909 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
910 --enable-cmdline use wxCmdLineParser class
911 --enable-datetime use wxDateTime class
36b6448c 912 --enable-debugreport use wxDebugReport class
a848cd7e
SC
913 --enable-dialupman use dialup network classes
914 --enable-dynlib use wxLibrary class for DLL loading
915 --enable-dynamicloader use (new) wxDynamicLibrary class
916 --enable-exceptions build exception-safe library
917 --enable-ffile use wxFFile class
918 --enable-file use wxFile class
919 --enable-filesystem use virtual file systems classes
920 --enable-fontmap use font encodings conversion classes
921 --enable-fs_inet use virtual HTTP/FTP filesystems
922 --enable-fs_zip use virtual ZIP filesystems
923 --enable-geometry use geometry class
924 --enable-log use logging system
925 --enable-longlong use wxLongLong class
926 --enable-mimetype use wxMimeTypesManager
927 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
928 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 929 --enable-std_iostreams use standard C++ stream classes
59746b65 930 --enable-std_string use standard C++ string classes
07158944 931 --enable-stdpaths use wxStandardPaths class
a848cd7e 932 --enable-stopwatch use wxStopWatch class
07158944 933 --enable-streams use wxStream etc classes
a848cd7e
SC
934 --enable-sysoptions use wxSystemOptions
935 --enable-textbuf use wxTextBuffer class
936 --enable-textfile use wxTextFile class
937 --enable-timer use wxTimer class
938 --enable-unicode compile wxString with Unicode support
939 --enable-sound use wxSound class
3b57de8b 940 --enable-mediactrl use wxMediaCtrl class
77ffb593 941 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 942 --enable-zipstream use wxZip streams
a848cd7e
SC
943 --enable-url use wxURL class
944 --enable-protocol use wxProtocol class
945 --enable-protocol-http HTTP support in wxProtocol
946 --enable-protocol-ftp FTP support in wxProtocol
947 --enable-protocol-file FILE support in wxProtocol
948 --enable-threads use threads
949 --enable-docview use document view architecture
950 --enable-help use help subsystem
951 --enable-mshtmlhelp use MS HTML Help (win32)
952 --enable-html use wxHTML sub-library
953 --enable-htmlhelp use wxHTML-based help
9a8f0513 954 --enable-xrc use XRC resources sub-library
a848cd7e
SC
955 --enable-constraints use layout-constraints system
956 --enable-printarch use printing architecture
957 --enable-mdi use multiple document interface architecture
8a7b1113 958 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
959 --enable-loggui use standard GUI logger
960 --enable-logwin use wxLogWindow
961 --enable-logdialog use wxLogDialog
646b6ec1 962 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 963 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
964 --enable-postscript use wxPostscriptDC device context (default for gtk+)
965 --enable-prologio not available; see contrib
966 --enable-resources not available; see contrib
967 --enable-clipboard use wxClipboard class
968 --enable-dnd use Drag'n'Drop classes
969 --enable-metafile use win32 metafiles
970 --enable-controls use all usual controls
971 --enable-accel use accelerators
972 --enable-button use wxButton class
973 --enable-bmpbutton use wxBitmapButton class
974 --enable-calendar use wxCalendarCtrl class
975 --enable-caret use wxCaret class
976 --enable-checkbox use wxCheckBox class
977 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
978 --enable-choice use wxChoice class
92bbdbcd 979 --enable-choicebook use wxChoicebook class
a848cd7e 980 --enable-combobox use wxComboBox class
da98e9be 981 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
982 --enable-display use wxDisplay class
983 --enable-gauge use wxGauge class
984 --enable-grid use wxGrid class
20e34ecc 985 --enable-dataviewctrl, use wxDataViewCtrl class
a848cd7e
SC
986 --enable-imaglist use wxImageList class
987 --enable-listbook use wxListbook class
988 --enable-listbox use wxListBox class
989 --enable-listctrl use wxListCtrl class
990 --enable-notebook use wxNotebook class
991 --enable-radiobox use wxRadioBox class
992 --enable-radiobtn use wxRadioButton class
993 --enable-sash use wxSashWindow class
994 --enable-scrollbar use wxScrollBar class and scrollable windows
995 --enable-slider use wxSlider class
996 --enable-spinbtn use wxSpinButton class
997 --enable-spinctrl use wxSpinCtrl class
998 --enable-splitter use wxSplitterWindow class
999 --enable-statbmp use wxStaticBitmap class
1000 --enable-statbox use wxStaticBox class
1001 --enable-statline use wxStaticLine class
1002 --enable-stattext use wxStaticText class
1003 --enable-statusbar use wxStatusBar class
1004 --enable-tabdialog use wxTabControl class
1005 --enable-textctrl use wxTextCtrl class
1006 --enable-togglebtn use wxToggleButton class
1007 --enable-toolbar use wxToolBar class
1008 --enable-tbarnative use native wxToolBar class
1009 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1010 --enable-treebook use wxTreebook class
5ec3bc43 1011 --enable-toolbook use wxToolbook class
a848cd7e
SC
1012 --enable-treectrl use wxTreeCtrl class
1013 --enable-tipwindow use wxTipWindow class
1014 --enable-popupwin use wxPopUpWindow class
1015 --enable-commondlg use all common dialogs
1016 --enable-choicedlg use wxChoiceDialog
1017 --enable-coldlg use wxColourDialog
1018 --enable-filedlg use wxFileDialog
1019 --enable-finddlg use wxFindReplaceDialog
1020 --enable-fontdlg use wxFontDialog
1021 --enable-dirdlg use wxDirDialog
1022 --enable-msgdlg use wxMessageDialog
1023 --enable-numberdlg use wxNumberEntryDialog
1024 --enable-splash use wxSplashScreen
1025 --enable-textdlg use wxTextDialog
1026 --enable-tipdlg use startup tips
1027 --enable-progressdlg use wxProgressDialog
1028 --enable-wizarddlg use wxWizard
1029 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1030 --enable-miniframe use wxMiniFrame class
1031 --enable-tooltips use wxToolTip class
1032 --enable-splines use spline drawing code
fbe2ca43 1033 --enable-mousewheel use mousewheel
a848cd7e
SC
1034 --enable-validators use wxValidator and derived classes
1035 --enable-busyinfo use wxBusyInfo
4cb1d3da 1036 --enable-joystick use wxJoystick
38b4a946 1037 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1038 --enable-dragimage use wxDragImage
1039 --enable-accessibility enable accessibility support
38b4a946 1040 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1041 --enable-palette use wxPalette class
1042 --enable-image use wxImage class
1043 --enable-gif use gif images (GIF file format)
1044 --enable-pcx use pcx images (PCX file format)
1045 --enable-iff use iff images (IFF file format)
1046 --enable-pnm use pnm images (PNM file format)
1047 --enable-xpm use xpm images (XPM file format)
1048 --enable-icocur use Windows ICO and CUR formats
77ffb593 1049 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1050 --enable-vendor=VENDOR vendor name (win32 DLL only)
1051 --disable-largefile omit support for large files
1052 --disable-gtktest do not try to compile and run a test GTK+ program
1053 --disable-gtktest Do not try to compile and run a test GTK program
1054 --disable-sdltest Do not try to compile and run a test SDL program
1055 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1056 --disable-precomp-headers
1057 don't use precompiled headers even if compiler can
a848cd7e
SC
1058
1059Optional Packages:
1060 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1061 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1062 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1063 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1064 --with-motif use Motif/Lesstif
1065 --with-mac use Mac OS X
1066 --with-cocoa use Cocoa
1067 --with-wine use Wine
1068 --with-msw use MS-Windows
1069 --with-pm use OS/2 Presentation Manager
1070 --with-mgl use SciTech MGL
1071 --with-microwin use MicroWindows
1072 --with-x11 use X11
1073 --with-libpng use libpng (PNG image format)
1074 --with-libjpeg use libjpeg (JPEG file format)
1075 --with-libtiff use libtiff (TIFF file format)
1076 --with-libxpm use libxpm (XPM file format)
1077 --with-libmspack use libmspack (CHM help files loading)
1078 --with-sdl use SDL for audio on Unix
d51253e8 1079 --with-gnomeprint use GNOME print for printing under Unix
3565d135 1080 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1081 --with-opengl use OpenGL (or Mesa)
1082 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1083 --with-regex enable support for wxRegEx class
1084 --with-zlib use zlib for LZW compression
1085 --with-odbc use the IODBC and wxODBC classes
1086 --with-expat enable XML support using expat parser
ceec2216 1087 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1088 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1089 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1090 --with-x use the X Window System
1091 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1092 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1093 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1094 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1095 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1096
1097Some influential environment variables:
dcc1b6ad
VS
1098 CC C compiler command
1099 CFLAGS C compiler flags
1100 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1101 nonstandard directory <lib dir>
1102 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1103 headers in a nonstandard directory <include dir>
1104 CPP C preprocessor
1105 CXX C++ compiler command
1106 CXXFLAGS C++ compiler flags
1107 CXXCPP C++ preprocessor
a848cd7e
SC
1108
1109Use these variables to override the choices made by `configure' or to help
1110it to find libraries and programs with nonstandard names/locations.
1111
77ffb593 1112Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1113_ACEOF
1114fi
1115
1116if test "$ac_init_help" = "recursive"; then
1117 # If there are subdirs, report their specific --help.
1118 ac_popdir=`pwd`
1119 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1120 test -d $ac_dir || continue
1121 ac_builddir=.
1122
1123if test "$ac_dir" != .; then
1124 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1125 # A "../" for each directory in $ac_dir_suffix.
1126 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127else
1128 ac_dir_suffix= ac_top_builddir=
1129fi
1130
1131case $srcdir in
1132 .) # No --srcdir option. We are building in place.
1133 ac_srcdir=.
1134 if test -z "$ac_top_builddir"; then
1135 ac_top_srcdir=.
1136 else
1137 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138 fi ;;
1139 [\\/]* | ?:[\\/]* ) # Absolute path.
1140 ac_srcdir=$srcdir$ac_dir_suffix;
1141 ac_top_srcdir=$srcdir ;;
1142 *) # Relative path.
1143 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1144 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1145esac
ac1cb8d3
VS
1146
1147# Do not use `cd foo && pwd` to compute absolute paths, because
1148# the directories may not exist.
1149case `pwd` in
1150.) ac_abs_builddir="$ac_dir";;
1151*)
1152 case "$ac_dir" in
1153 .) ac_abs_builddir=`pwd`;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1155 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1156 esac;;
1157esac
1158case $ac_abs_builddir in
1159.) ac_abs_top_builddir=${ac_top_builddir}.;;
1160*)
1161 case ${ac_top_builddir}. in
1162 .) ac_abs_top_builddir=$ac_abs_builddir;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1164 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1165 esac;;
1166esac
1167case $ac_abs_builddir in
1168.) ac_abs_srcdir=$ac_srcdir;;
1169*)
1170 case $ac_srcdir in
1171 .) ac_abs_srcdir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1173 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1174 esac;;
1175esac
1176case $ac_abs_builddir in
1177.) ac_abs_top_srcdir=$ac_top_srcdir;;
1178*)
1179 case $ac_top_srcdir in
1180 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1182 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1183 esac;;
1184esac
a848cd7e
SC
1185
1186 cd $ac_dir
1187 # Check for guested configure; otherwise get Cygnus style configure.
1188 if test -f $ac_srcdir/configure.gnu; then
1189 echo
1190 $SHELL $ac_srcdir/configure.gnu --help=recursive
1191 elif test -f $ac_srcdir/configure; then
1192 echo
1193 $SHELL $ac_srcdir/configure --help=recursive
1194 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1195 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1196 echo
1197 $ac_configure --help
1198 else
1199 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1200 fi
3565d135 1201 cd $ac_popdir
a848cd7e
SC
1202 done
1203fi
1204
1205test -n "$ac_init_help" && exit 0
1206if $ac_init_version; then
1207 cat <<\_ACEOF
dd8df4fc 1208wxWidgets configure 2.7.0
ac1cb8d3 1209generated by GNU Autoconf 2.59
a848cd7e 1210
ac1cb8d3 1211Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1212This configure script is free software; the Free Software Foundation
1213gives unlimited permission to copy, distribute and modify it.
1214_ACEOF
1215 exit 0
1216fi
1217exec 5>config.log
1218cat >&5 <<_ACEOF
1219This file contains any messages produced by compilers while
1220running configure, to aid debugging if configure makes a mistake.
1221
dd8df4fc 1222It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1223generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1224
1225 $ $0 $@
1226
1227_ACEOF
1228{
1229cat <<_ASUNAME
1230## --------- ##
1231## Platform. ##
1232## --------- ##
1233
1234hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239
1240/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1242
1243/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1244/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1245/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1247/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1248/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1249/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1250
1251_ASUNAME
1252
1253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1254for as_dir in $PATH
1255do
1256 IFS=$as_save_IFS
1257 test -z "$as_dir" && as_dir=.
1258 echo "PATH: $as_dir"
1259done
1260
1261} >&5
1262
1263cat >&5 <<_ACEOF
1264
1265
1266## ----------- ##
1267## Core tests. ##
1268## ----------- ##
1269
1270_ACEOF
1271
1272
1273# Keep a trace of the command line.
1274# Strip out --no-create and --no-recursion so they do not pile up.
1275# Strip out --silent because we don't want to record it for future runs.
1276# Also quote any args containing shell meta-characters.
1277# Make two passes to allow for proper duplicate-argument suppression.
1278ac_configure_args=
1279ac_configure_args0=
1280ac_configure_args1=
1281ac_sep=
1282ac_must_keep_next=false
1283for ac_pass in 1 2
1284do
1285 for ac_arg
1286 do
1287 case $ac_arg in
1288 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290 | -silent | --silent | --silen | --sile | --sil)
1291 continue ;;
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 esac
1295 case $ac_pass in
1296 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297 2)
1298 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299 if test $ac_must_keep_next = true; then
ac1cb8d3 1300 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1301 else
ac1cb8d3
VS
1302 case $ac_arg in
1303 *=* | --config-cache | -C | -disable-* | --disable-* \
1304 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306 | -with-* | --with-* | -without-* | --without-* | --x)
1307 case "$ac_configure_args0 " in
1308 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309 esac
1310 ;;
1311 -* ) ac_must_keep_next=true ;;
1312 esac
a848cd7e
SC
1313 fi
1314 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315 # Get rid of the leading space.
1316 ac_sep=" "
1317 ;;
1318 esac
1319 done
1320done
1321$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323
1324# When interrupted or exit'd, cleanup temporary files, and complete
1325# config.log. We remove comments because anyway the quotes in there
1326# would cause problems or look ugly.
1327# WARNING: Be sure not to use single quotes in there, as some shells,
1328# such as our DU 5.0 friend, will then `close' the trap.
1329trap 'exit_status=$?
1330 # Save into config.log some information that might help in debugging.
1331 {
1332 echo
1333
1334 cat <<\_ASBOX
1335## ---------------- ##
1336## Cache variables. ##
1337## ---------------- ##
1338_ASBOX
1339 echo
1340 # The following way of writing the cache mishandles newlines in values,
1341{
1342 (set) 2>&1 |
1343 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344 *ac_space=\ *)
1345 sed -n \
ac1cb8d3
VS
1346 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1348 ;;
1349 *)
1350 sed -n \
ac1cb8d3 1351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1352 ;;
1353 esac;
1354}
1355 echo
1356
1357 cat <<\_ASBOX
1358## ----------------- ##
1359## Output variables. ##
1360## ----------------- ##
1361_ASBOX
1362 echo
1363 for ac_var in $ac_subst_vars
1364 do
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
1367 done | sort
1368 echo
1369
1370 if test -n "$ac_subst_files"; then
1371 cat <<\_ASBOX
1372## ------------- ##
1373## Output files. ##
1374## ------------- ##
1375_ASBOX
1376 echo
1377 for ac_var in $ac_subst_files
1378 do
1379 eval ac_val=$`echo $ac_var`
ac1cb8d3 1380 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1381 done | sort
1382 echo
1383 fi
1384
1385 if test -s confdefs.h; then
1386 cat <<\_ASBOX
1387## ----------- ##
1388## confdefs.h. ##
1389## ----------- ##
1390_ASBOX
1391 echo
1392 sed "/^$/d" confdefs.h | sort
1393 echo
1394 fi
1395 test "$ac_signal" != 0 &&
1396 echo "$as_me: caught signal $ac_signal"
1397 echo "$as_me: exit $exit_status"
1398 } >&5
ac1cb8d3 1399 rm -f core *.core &&
a848cd7e
SC
1400 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401 exit $exit_status
1402 ' 0
1403for ac_signal in 1 2 13 15; do
1404 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1405done
1406ac_signal=0
1407
1408# confdefs.h avoids OS command line length limits that DEFS can exceed.
1409rm -rf conftest* confdefs.h
1410# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411echo >confdefs.h
1412
1413# Predefined preprocessor variables.
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_NAME "$PACKAGE_NAME"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_VERSION "$PACKAGE_VERSION"
1427_ACEOF
1428
1429
1430cat >>confdefs.h <<_ACEOF
1431#define PACKAGE_STRING "$PACKAGE_STRING"
1432_ACEOF
1433
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1437_ACEOF
1438
1439
1440# Let the site file select an alternate cache file if it wants to.
1441# Prefer explicitly selected file to automatically selected ones.
1442if test -z "$CONFIG_SITE"; then
1443 if test "x$prefix" != xNONE; then
1444 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1445 else
1446 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447 fi
1448fi
1449for ac_site_file in $CONFIG_SITE; do
1450 if test -r "$ac_site_file"; then
1451 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452echo "$as_me: loading site script $ac_site_file" >&6;}
1453 sed 's/^/| /' "$ac_site_file" >&5
1454 . "$ac_site_file"
1455 fi
1456done
1457
1458if test -r "$cache_file"; then
1459 # Some versions of bash will fail to source /dev/null (special
1460 # files actually), so we avoid doing that.
1461 if test -f "$cache_file"; then
1462 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1463echo "$as_me: loading cache $cache_file" >&6;}
1464 case $cache_file in
1465 [\\/]* | ?:[\\/]* ) . $cache_file;;
1466 *) . ./$cache_file;;
1467 esac
1468 fi
1469else
1470 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1471echo "$as_me: creating cache $cache_file" >&6;}
1472 >$cache_file
1473fi
1474
1475# Check that the precious variables saved in the cache have kept the same
1476# value.
1477ac_cache_corrupted=false
1478for ac_var in `(set) 2>&1 |
ac1cb8d3 1479 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1480 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1481 eval ac_new_set=\$ac_env_${ac_var}_set
1482 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1483 eval ac_new_val="\$ac_env_${ac_var}_value"
1484 case $ac_old_set,$ac_new_set in
1485 set,)
1486 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1487echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1488 ac_cache_corrupted=: ;;
1489 ,set)
1490 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1491echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1492 ac_cache_corrupted=: ;;
1493 ,);;
1494 *)
1495 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1496 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1497echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1498 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1499echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1500 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1501echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1502 ac_cache_corrupted=:
a848cd7e
SC
1503 fi;;
1504 esac
1505 # Pass precious variables to config.status.
1506 if test "$ac_new_set" = set; then
1507 case $ac_new_val in
1508 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1509 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1510 *) ac_arg=$ac_var=$ac_new_val ;;
1511 esac
1512 case " $ac_configure_args " in
1513 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1514 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1515 esac
1516 fi
1517done
1518if $ac_cache_corrupted; then
1519 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1520echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1521 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1522echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1523 { (exit 1); exit 1; }; }
1524fi
1525
1526ac_ext=c
1527ac_cpp='$CPP $CPPFLAGS'
1528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1530ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1559
1560
1561ac_aux_dir=
1562for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1563 if test -f $ac_dir/install-sh; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/install-sh -c"
1566 break
1567 elif test -f $ac_dir/install.sh; then
1568 ac_aux_dir=$ac_dir
1569 ac_install_sh="$ac_aux_dir/install.sh -c"
1570 break
1571 elif test -f $ac_dir/shtool; then
1572 ac_aux_dir=$ac_dir
1573 ac_install_sh="$ac_aux_dir/shtool install -c"
1574 break
1575 fi
1576done
1577if test -z "$ac_aux_dir"; then
1578 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1579echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1580 { (exit 1); exit 1; }; }
1581fi
1582ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1583ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1584ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1585
1586# Make sure we can run config.sub.
1587$ac_config_sub sun4 >/dev/null 2>&1 ||
1588 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1589echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1590 { (exit 1); exit 1; }; }
1591
1592echo "$as_me:$LINENO: checking build system type" >&5
1593echo $ECHO_N "checking build system type... $ECHO_C" >&6
1594if test "${ac_cv_build+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1596else
1597 ac_cv_build_alias=$build_alias
1598test -z "$ac_cv_build_alias" &&
1599 ac_cv_build_alias=`$ac_config_guess`
1600test -z "$ac_cv_build_alias" &&
1601 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1602echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1603 { (exit 1); exit 1; }; }
1604ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1605 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1606echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1607 { (exit 1); exit 1; }; }
1608
1609fi
1610echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1611echo "${ECHO_T}$ac_cv_build" >&6
1612build=$ac_cv_build
1613build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1614build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1615build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616
1617
1618echo "$as_me:$LINENO: checking host system type" >&5
1619echo $ECHO_N "checking host system type... $ECHO_C" >&6
1620if test "${ac_cv_host+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622else
1623 ac_cv_host_alias=$host_alias
1624test -z "$ac_cv_host_alias" &&
1625 ac_cv_host_alias=$ac_cv_build_alias
1626ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1628echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1630
1631fi
1632echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1633echo "${ECHO_T}$ac_cv_host" >&6
1634host=$ac_cv_host
1635host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640echo "$as_me:$LINENO: checking target system type" >&5
1641echo $ECHO_N "checking target system type... $ECHO_C" >&6
1642if test "${ac_cv_target+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645 ac_cv_target_alias=$target_alias
1646test "x$ac_cv_target_alias" = "x" &&
1647 ac_cv_target_alias=$ac_cv_host_alias
1648ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1650echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653fi
1654echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1655echo "${ECHO_T}$ac_cv_target" >&6
1656target=$ac_cv_target
1657target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662# The aliases save the names the user supplied, while $host etc.
1663# will get canonicalized.
1664test -n "$target_alias" &&
1665 test "$program_prefix$program_suffix$program_transform_name" = \
1666 NONENONEs,x,x, &&
1667 program_prefix=${target_alias}-
1668
1669
1670
ceec2216 1671wx_major_version_number=2
dd8df4fc
VZ
1672wx_minor_version_number=7
1673wx_release_number=0
1674wx_subrelease_number=0
a848cd7e 1675
ceec2216
RL
1676WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1677WX_VERSION=$WX_RELEASE.$wx_release_number
1678WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1679
ceec2216 1680WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1681
a848cd7e
SC
1682
1683
1684
1685USE_UNIX=1
1686USE_OS2=0
1687USE_WIN32=0
1688USE_DOS=0
1689USE_BEOS=0
1690USE_MAC=0
1691
1692USE_AIX=
1693USE_BSD= USE_DARWIN= USE_FREEBSD=
1694USE_GNU= USE_HPUX=
1695USE_LINUX=
1696USE_NETBSD=
1697USE_OPENBSD=
1698USE_OSF= USE_SGI=
1699USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1700USE_ULTRIX=
1701USE_UNIXWARE=
1702
1703USE_ALPHA=
1704
1705NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1706
1707ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1708
1709DEFAULT_wxUSE_COCOA=0
1710DEFAULT_wxUSE_GTK=0
1711DEFAULT_wxUSE_MAC=0
1712DEFAULT_wxUSE_MGL=0
1713DEFAULT_wxUSE_MICROWIN=0
1714DEFAULT_wxUSE_MOTIF=0
1715DEFAULT_wxUSE_MSW=0
1716DEFAULT_wxUSE_PM=0
1717DEFAULT_wxUSE_X11=0
1718
1719DEFAULT_DEFAULT_wxUSE_COCOA=0
1720DEFAULT_DEFAULT_wxUSE_GTK=0
1721DEFAULT_DEFAULT_wxUSE_MAC=0
1722DEFAULT_DEFAULT_wxUSE_MGL=0
1723DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1724DEFAULT_DEFAULT_wxUSE_MOTIF=0
1725DEFAULT_DEFAULT_wxUSE_MSW=0
1726DEFAULT_DEFAULT_wxUSE_PM=0
1727DEFAULT_DEFAULT_wxUSE_X11=0
1728
1729PROGRAM_EXT=
1730SO_SUFFIX=so
1731SAMPLES_RPATH_FLAG=
1732SAMPLES_RPATH_POSTLINK=
1733
a03b8b04
RD
1734DEFAULT_STD_FLAG=yes
1735
a848cd7e
SC
1736case "${host}" in
1737 *-hp-hpux* )
1738 USE_HPUX=1
1739 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1740 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1741 SO_SUFFIX=sl
1742 cat >>confdefs.h <<\_ACEOF
1743#define __HPUX__ 1
1744_ACEOF
1745
2eef8513 1746
c92ad099 1747 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1748 ;;
1749 *-*-linux* )
1750 USE_LINUX=1
1751 cat >>confdefs.h <<\_ACEOF
1752#define __LINUX__ 1
1753_ACEOF
1754
1755 TMP=`uname -m`
1756 if test "x$TMP" = "xalpha"; then
1757 USE_ALPHA=1
1758 cat >>confdefs.h <<\_ACEOF
1759#define __ALPHA__ 1
1760_ACEOF
1761
1762 fi
1763 DEFAULT_DEFAULT_wxUSE_GTK=1
1764 ;;
1765 *-*-gnu* | *-*-k*bsd*-gnu )
1766 USE_GNU=1
1767 TMP=`uname -m`
1768 if test "x$TMP" = "xalpha"; then
1769 USE_ALPHA=1
1770 cat >>confdefs.h <<\_ACEOF
1771#define __ALPHA__ 1
1772_ACEOF
1773
1774 fi
1775 DEFAULT_DEFAULT_wxUSE_GTK=1
1776 ;;
1777 *-*-irix5* | *-*-irix6* )
1778 USE_SGI=1
1779 USE_SVR4=1
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SGI__ 1
1782_ACEOF
1783
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SVR4__ 1
1786_ACEOF
1787
1788 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1789 ;;
1790 *-*-solaris2* )
1791 USE_SUN=1
1792 USE_SOLARIS=1
1793 USE_SVR4=1
1794 cat >>confdefs.h <<\_ACEOF
1795#define __SUN__ 1
1796_ACEOF
1797
1798 cat >>confdefs.h <<\_ACEOF
1799#define __SOLARIS__ 1
1800_ACEOF
1801
1802 cat >>confdefs.h <<\_ACEOF
1803#define __SVR4__ 1
1804_ACEOF
1805
1806 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1807 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1808 ;;
1809 *-*-sunos4* )
1810 USE_SUN=1
1811 USE_SUNOS=1
1812 USE_BSD=1
1813 cat >>confdefs.h <<\_ACEOF
1814#define __SUN__ 1
1815_ACEOF
1816
1817 cat >>confdefs.h <<\_ACEOF
1818#define __SUNOS__ 1
1819_ACEOF
1820
1821 cat >>confdefs.h <<\_ACEOF
1822#define __BSD__ 1
1823_ACEOF
1824
1825 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1826 ;;
1827 *-*-freebsd*)
1828 USE_BSD=1
1829 USE_FREEBSD=1
1830 cat >>confdefs.h <<\_ACEOF
1831#define __FREEBSD__ 1
1832_ACEOF
1833
1834 cat >>confdefs.h <<\_ACEOF
1835#define __BSD__ 1
1836_ACEOF
1837
1838 DEFAULT_DEFAULT_wxUSE_GTK=1
1839 ;;
1840 *-*-openbsd*)
1841 USE_BSD=1
1842 USE_OPENBSD=1
1843 cat >>confdefs.h <<\_ACEOF
1844#define __OPENBSD__ 1
1845_ACEOF
1846
1847 cat >>confdefs.h <<\_ACEOF
1848#define __BSD__ 1
1849_ACEOF
1850
1851 DEFAULT_DEFAULT_wxUSE_GTK=1
1852 ;;
1853 *-*-netbsd*)
1854 USE_BSD=1
1855 USE_NETBSD=1
1856 cat >>confdefs.h <<\_ACEOF
1857#define __NETBSD__ 1
1858_ACEOF
1859
1860 cat >>confdefs.h <<\_ACEOF
1861#define __BSD__ 1
1862_ACEOF
1863
1864 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1865 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1866
def7c04a 1867 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1868 ;;
1869 *-*-osf* )
1870 USE_ALPHA=1
1871 USE_OSF=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __ALPHA__ 1
1874_ACEOF
1875
1876 cat >>confdefs.h <<\_ACEOF
1877#define __OSF__ 1
1878_ACEOF
1879
1880 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1881 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1882 ;;
1883 *-*-dgux5* )
1884 USE_ALPHA=1
1885 USE_SVR4=1
1886 cat >>confdefs.h <<\_ACEOF
1887#define __ALPHA__ 1
1888_ACEOF
1889
1890 cat >>confdefs.h <<\_ACEOF
1891#define __SVR4__ 1
1892_ACEOF
1893
1894 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1895 ;;
1896 *-*-sysv5* )
1897 USE_SYSV=1
1898 USE_SVR4=1
1899 cat >>confdefs.h <<\_ACEOF
1900#define __SYSV__ 1
1901_ACEOF
1902
1903 cat >>confdefs.h <<\_ACEOF
1904#define __SVR4__ 1
1905_ACEOF
1906
1907 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1908 ;;
1909 *-*-aix* )
1910 USE_AIX=1
1911 USE_SYSV=1
1912 USE_SVR4=1
1913 SO_SUFFIX=a
1914 cat >>confdefs.h <<\_ACEOF
1915#define __AIX__ 1
1916_ACEOF
1917
1918 cat >>confdefs.h <<\_ACEOF
1919#define __SYSV__ 1
1920_ACEOF
1921
1922 cat >>confdefs.h <<\_ACEOF
1923#define __SVR4__ 1
1924_ACEOF
1925
1926 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1927 ;;
1928
1929 *-*-*UnixWare*)
1930 USE_SYSV=1
1931 USE_SVR4=1
1932 USE_UNIXWARE=1
1933 cat >>confdefs.h <<\_ACEOF
1934#define __UNIXWARE__ 1
1935_ACEOF
1936
1937 ;;
1938
1939 *-*-cygwin* | *-*-mingw32* )
1940 SO_SUFFIX=dll
1941 PROGRAM_EXT=".exe"
a848cd7e 1942 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1943 DEFAULT_STD_FLAG=no
a848cd7e
SC
1944 ;;
1945
1946 *-pc-msdosdjgpp )
1947 USE_UNIX=0
1948 USE_DOS=1
1949 cat >>confdefs.h <<\_ACEOF
1950#define __DOS__ 1
1951_ACEOF
1952
1953 PROGRAM_EXT=".exe"
1954 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1955 ;;
1956
1957 *-pc-os2_emx | *-pc-os2-emx )
1958 cat >>confdefs.h <<\_ACEOF
1959#define __EMX__ 1
1960_ACEOF
1961
1962 USE_OS2=1
1963 cat >>confdefs.h <<\_ACEOF
1964#define __OS2__ 1
1965_ACEOF
1966
1967 PROGRAM_EXT=".exe"
1968 DEFAULT_DEFAULT_wxUSE_PM=1
1969 CXX=gcc
1970 LDFLAGS="$LDFLAGS -Zcrtdll"
1971 ac_executable_extensions=".exe"
1972 export ac_executable_extensions
1973 ac_save_IFS="$IFS"
1974 IFS='\\'
1975 ac_TEMP_PATH=
1976 for ac_dir in $PATH; do
1977 IFS=$ac_save_IFS
1978 if test -z "$ac_TEMP_PATH"; then
1979 ac_TEMP_PATH="$ac_dir"
1980 else
1981 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1982 fi
1983 done
1984 export PATH="$ac_TEMP_PATH"
1985 unset ac_TEMP_PATH
a03b8b04 1986 DEFAULT_STD_FLAG=no
a848cd7e
SC
1987 ;;
1988
cfda0ea8 1989 *-*-darwin* )
a848cd7e
SC
1990 USE_BSD=1
1991 USE_DARWIN=1
1992 SO_SUFFIX=dylib
1993 cat >>confdefs.h <<\_ACEOF
1994#define __BSD__ 1
1995_ACEOF
1996
1997 cat >>confdefs.h <<\_ACEOF
1998#define __DARWIN__ 1
a848cd7e
SC
1999_ACEOF
2000
2001 cat >>confdefs.h <<\_ACEOF
2002#define TARGET_CARBON 1
2003_ACEOF
2004
2005 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2006 DEFAULT_STD_FLAG=no
a848cd7e 2007 ;;
1e9e8aba
DE
2008 powerpc-apple-macos* )
2009 USE_UNIX=0
2010 ac_cv_c_bigendian=yes
2011 SO_SUFFIX=shlib
2012 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2013 DEFAULT_STD_FLAG=no
1e9e8aba 2014 ;;
a848cd7e
SC
2015
2016 *-*-beos* )
2017 USE_BEOS=1
2018 cat >>confdefs.h <<\_ACEOF
2019#define __BEOS__ 1
2020_ACEOF
2021
2022 ;;
2023
2024 *)
2025 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2026echo "$as_me: error: unknown system type ${host}." >&2;}
2027 { (exit 1); exit 1; }; }
2028esac
2029
2030
2031
2032
2033 wx_arg_cache_file="configarg.cache"
2034 echo "loading argument cache $wx_arg_cache_file"
2035 rm -f ${wx_arg_cache_file}.tmp
2036 touch ${wx_arg_cache_file}.tmp
2037 touch ${wx_arg_cache_file}
2038
2039
2040DEBUG_CONFIGURE=0
2041if test $DEBUG_CONFIGURE = 1; then
2042 DEFAULT_wxUSE_UNIVERSAL=no
2043 DEFAULT_wxUSE_STL=no
2044
2045 DEFAULT_wxUSE_NANOX=no
2046
2047 DEFAULT_wxUSE_THREADS=yes
2048
2049 DEFAULT_wxUSE_SHARED=yes
2050 DEFAULT_wxUSE_OPTIMISE=no
2051 DEFAULT_wxUSE_PROFILE=no
2052 DEFAULT_wxUSE_NO_DEPS=no
2053 DEFAULT_wxUSE_NO_RTTI=no
2054 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2055 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2056 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2057 DEFAULT_wxUSE_PERMISSIVE=no
2058 DEFAULT_wxUSE_DEBUG_FLAG=yes
2059 DEFAULT_wxUSE_DEBUG_INFO=yes
2060 DEFAULT_wxUSE_DEBUG_GDB=yes
2061 DEFAULT_wxUSE_MEM_TRACING=no
2062 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2063 DEFAULT_wxUSE_DMALLOC=no
2064 DEFAULT_wxUSE_APPLE_IEEE=no
2065
2066 DEFAULT_wxUSE_EXCEPTIONS=no
2067 DEFAULT_wxUSE_LOG=yes
2068 DEFAULT_wxUSE_LOGWINDOW=no
2069 DEFAULT_wxUSE_LOGGUI=no
2070 DEFAULT_wxUSE_LOGDIALOG=no
2071
2072 DEFAULT_wxUSE_GUI=yes
2073 DEFAULT_wxUSE_CONTROLS=no
2074
2075 DEFAULT_wxUSE_REGEX=no
2076 DEFAULT_wxUSE_XML=no
2077 DEFAULT_wxUSE_EXPAT=no
2078 DEFAULT_wxUSE_ZLIB=no
2079 DEFAULT_wxUSE_LIBPNG=no
2080 DEFAULT_wxUSE_LIBJPEG=no
2081 DEFAULT_wxUSE_LIBTIFF=no
2082 DEFAULT_wxUSE_LIBXPM=no
2083 DEFAULT_wxUSE_LIBMSPACK=no
2084 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2085 DEFAULT_wxUSE_LIBGNOMEPRINT=no
3565d135 2086 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2087 DEFAULT_wxUSE_ODBC=no
2088 DEFAULT_wxUSE_OPENGL=no
2089
2090 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2091 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2092 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2093 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2094 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2095 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2096 DEFAULT_wxUSE_CMDLINE_PARSER=no
2097 DEFAULT_wxUSE_DATETIME=no
2098 DEFAULT_wxUSE_TIMER=no
2099 DEFAULT_wxUSE_STOPWATCH=no
2100 DEFAULT_wxUSE_FILE=no
2101 DEFAULT_wxUSE_FFILE=no
07158944 2102 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2103 DEFAULT_wxUSE_TEXTBUFFER=no
2104 DEFAULT_wxUSE_TEXTFILE=no
2105 DEFAULT_wxUSE_SOUND=no
3b57de8b 2106 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2107 DEFAULT_wxUSE_INTL=no
2108 DEFAULT_wxUSE_CONFIG=no
2109 DEFAULT_wxUSE_FONTMAP=no
2110 DEFAULT_wxUSE_STREAMS=no
2111 DEFAULT_wxUSE_SOCKETS=no
2112 DEFAULT_wxUSE_OLE=no
2113 DEFAULT_wxUSE_DATAOBJ=no
2114 DEFAULT_wxUSE_DIALUP_MANAGER=no
2115 DEFAULT_wxUSE_JOYSTICK=no
2116 DEFAULT_wxUSE_DYNLIB_CLASS=no
2117 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2118 DEFAULT_wxUSE_LONGLONG=no
2119 DEFAULT_wxUSE_GEOMETRY=no
2120
2121 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2122 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2123 DEFAULT_wxUSE_POSTSCRIPT=no
2124
2125 DEFAULT_wxUSE_CLIPBOARD=no
2126 DEFAULT_wxUSE_TOOLTIPS=no
2127 DEFAULT_wxUSE_DRAG_AND_DROP=no
2128 DEFAULT_wxUSE_DRAGIMAGE=no
2129 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2130 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2131
8a7b1113 2132 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2133 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2134 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2135 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2136
2137 DEFAULT_wxUSE_RESOURCES=no
2138 DEFAULT_wxUSE_CONSTRAINTS=no
2139 DEFAULT_wxUSE_IPC=no
2140 DEFAULT_wxUSE_HELP=no
2141 DEFAULT_wxUSE_MS_HTML_HELP=no
2142 DEFAULT_wxUSE_WXHTML_HELP=no
2143 DEFAULT_wxUSE_TREELAYOUT=no
2144 DEFAULT_wxUSE_METAFILE=no
2145 DEFAULT_wxUSE_MIMETYPE=no
2146 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2147 DEFAULT_wxUSE_PROTOCOL=no
2148 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2149 DEFAULT_wxUSE_PROTOCOL_FTP=no
2150 DEFAULT_wxUSE_PROTOCOL_FILE=no
2151 DEFAULT_wxUSE_URL=no
2152
2153 DEFAULT_wxUSE_COMMONDLGS=no
2154 DEFAULT_wxUSE_CHOICEDLG=no
2155 DEFAULT_wxUSE_COLOURDLG=no
2156 DEFAULT_wxUSE_DIRDLG=no
2157 DEFAULT_wxUSE_FILEDLG=no
2158 DEFAULT_wxUSE_FINDREPLDLG=no
2159 DEFAULT_wxUSE_FONTDLG=no
2160 DEFAULT_wxUSE_MSGDLG=no
2161 DEFAULT_wxUSE_NUMBERDLG=no
2162 DEFAULT_wxUSE_TEXTDLG=no
2163 DEFAULT_wxUSE_SPLASH=no
2164 DEFAULT_wxUSE_STARTUP_TIPS=no
2165 DEFAULT_wxUSE_PROGRESSDLG=no
2166 DEFAULT_wxUSE_WIZARDDLG=no
2167
2168 DEFAULT_wxUSE_MENUS=no
2169 DEFAULT_wxUSE_MINIFRAME=no
2170 DEFAULT_wxUSE_HTML=no
91dea314 2171 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2172 DEFAULT_wxUSE_XRC=no
646b6ec1 2173 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2174 DEFAULT_wxUSE_FILESYSTEM=no
2175 DEFAULT_wxUSE_FS_INET=no
2176 DEFAULT_wxUSE_FS_ZIP=no
2177 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2178 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2179 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2180 DEFAULT_wxUSE_VALIDATORS=no
2181
2182 DEFAULT_wxUSE_ACCEL=no
2183 DEFAULT_wxUSE_BUTTON=no
2184 DEFAULT_wxUSE_BMPBUTTON=no
2185 DEFAULT_wxUSE_CALCTRL=no
2186 DEFAULT_wxUSE_CARET=no
2187 DEFAULT_wxUSE_CHECKBOX=no
2188 DEFAULT_wxUSE_CHECKLST=no
2189 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2190 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2191 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2192 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2193 DEFAULT_wxUSE_DISPLAY=no
2194 DEFAULT_wxUSE_GAUGE=no
2195 DEFAULT_wxUSE_GRID=no
20e34ecc 2196 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2197 DEFAULT_wxUSE_IMAGLIST=no
2198 DEFAULT_wxUSE_LISTBOOK=no
2199 DEFAULT_wxUSE_LISTBOX=no
2200 DEFAULT_wxUSE_LISTCTRL=no
2201 DEFAULT_wxUSE_NOTEBOOK=no
2202 DEFAULT_wxUSE_RADIOBOX=no
2203 DEFAULT_wxUSE_RADIOBTN=no
2204 DEFAULT_wxUSE_SASH=no
2205 DEFAULT_wxUSE_SCROLLBAR=no
2206 DEFAULT_wxUSE_SLIDER=no
2207 DEFAULT_wxUSE_SPINBTN=no
2208 DEFAULT_wxUSE_SPINCTRL=no
2209 DEFAULT_wxUSE_SPLITTER=no
2210 DEFAULT_wxUSE_STATBMP=no
2211 DEFAULT_wxUSE_STATBOX=no
2212 DEFAULT_wxUSE_STATLINE=no
2213 DEFAULT_wxUSE_STATTEXT=no
2214 DEFAULT_wxUSE_STATUSBAR=yes
2215 DEFAULT_wxUSE_TABDIALOG=no
2216 DEFAULT_wxUSE_TEXTCTRL=no
2217 DEFAULT_wxUSE_TOGGLEBTN=no
2218 DEFAULT_wxUSE_TOOLBAR=no
2219 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2220 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2221 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2222 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2223 DEFAULT_wxUSE_TREECTRL=no
2224 DEFAULT_wxUSE_POPUPWIN=no
2225 DEFAULT_wxUSE_TIPWINDOW=no
2226
2227 DEFAULT_wxUSE_UNICODE=no
2228 DEFAULT_wxUSE_UNICODE_MSLU=no
2229 DEFAULT_wxUSE_WCSRTOMBS=no
2230
2231 DEFAULT_wxUSE_PALETTE=no
2232 DEFAULT_wxUSE_IMAGE=no
2233 DEFAULT_wxUSE_GIF=no
2234 DEFAULT_wxUSE_PCX=no
2235 DEFAULT_wxUSE_PNM=no
2236 DEFAULT_wxUSE_IFF=no
2237 DEFAULT_wxUSE_XPM=no
2238 DEFAULT_wxUSE_ICO_CUR=no
2239 DEFAULT_wxUSE_ACCESSIBILITY=no
2240
2241 DEFAULT_wxUSE_MONOLITHIC=no
2242 DEFAULT_wxUSE_PLUGINS=no
2243 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2244else
2245 DEFAULT_wxUSE_UNIVERSAL=no
2246 DEFAULT_wxUSE_STL=no
2247
2248 DEFAULT_wxUSE_NANOX=no
2249
2250 DEFAULT_wxUSE_THREADS=yes
2251
2252 DEFAULT_wxUSE_SHARED=yes
2253 DEFAULT_wxUSE_OPTIMISE=yes
2254 DEFAULT_wxUSE_PROFILE=no
2255 DEFAULT_wxUSE_NO_DEPS=no
2256 DEFAULT_wxUSE_NO_RTTI=no
2257 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2258 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2259 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2260 DEFAULT_wxUSE_PERMISSIVE=no
2261 DEFAULT_wxUSE_DEBUG_FLAG=no
2262 DEFAULT_wxUSE_DEBUG_INFO=no
2263 DEFAULT_wxUSE_DEBUG_GDB=no
2264 DEFAULT_wxUSE_MEM_TRACING=no
2265 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2266 DEFAULT_wxUSE_DMALLOC=no
2267 DEFAULT_wxUSE_APPLE_IEEE=yes
2268
2269 DEFAULT_wxUSE_EXCEPTIONS=yes
2270 DEFAULT_wxUSE_LOG=yes
2271 DEFAULT_wxUSE_LOGWINDOW=yes
2272 DEFAULT_wxUSE_LOGGUI=yes
2273 DEFAULT_wxUSE_LOGDIALOG=yes
2274
2275 DEFAULT_wxUSE_GUI=yes
2276
2277 DEFAULT_wxUSE_REGEX=yes
2278 DEFAULT_wxUSE_XML=yes
2279 DEFAULT_wxUSE_EXPAT=yes
2280 DEFAULT_wxUSE_ZLIB=yes
2281 DEFAULT_wxUSE_LIBPNG=yes
2282 DEFAULT_wxUSE_LIBJPEG=yes
2283 DEFAULT_wxUSE_LIBTIFF=yes
2284 DEFAULT_wxUSE_LIBXPM=yes
2285 DEFAULT_wxUSE_LIBMSPACK=yes
2286 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2287 DEFAULT_wxUSE_LIBGNOMEPRINT=no
3565d135 2288 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2289 DEFAULT_wxUSE_ODBC=no
52cb607e 2290 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2291
2292 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2293 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2294 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2295 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2296 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2297 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2298 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2299 DEFAULT_wxUSE_DATETIME=yes
2300 DEFAULT_wxUSE_TIMER=yes
2301 DEFAULT_wxUSE_STOPWATCH=yes
2302 DEFAULT_wxUSE_FILE=yes
2303 DEFAULT_wxUSE_FFILE=yes
07158944 2304 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2305 DEFAULT_wxUSE_TEXTBUFFER=yes
2306 DEFAULT_wxUSE_TEXTFILE=yes
2307 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2308 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2309 DEFAULT_wxUSE_INTL=yes
2310 DEFAULT_wxUSE_CONFIG=yes
2311 DEFAULT_wxUSE_FONTMAP=yes
2312 DEFAULT_wxUSE_STREAMS=yes
2313 DEFAULT_wxUSE_SOCKETS=yes
2314 DEFAULT_wxUSE_OLE=yes
2315 DEFAULT_wxUSE_DATAOBJ=yes
2316 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2317 DEFAULT_wxUSE_JOYSTICK=yes
2318 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2319 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2320 DEFAULT_wxUSE_LONGLONG=yes
2321 DEFAULT_wxUSE_GEOMETRY=yes
2322
2323 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2324 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2325 DEFAULT_wxUSE_POSTSCRIPT=yes
2326
2327 DEFAULT_wxUSE_CLIPBOARD=yes
2328 DEFAULT_wxUSE_TOOLTIPS=yes
2329 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2330 DEFAULT_wxUSE_DRAGIMAGE=yes
2331 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2332 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2333
8a7b1113 2334 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2335 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2336 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2337 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2338
2339 DEFAULT_wxUSE_RESOURCES=no
2340 DEFAULT_wxUSE_CONSTRAINTS=yes
2341 DEFAULT_wxUSE_IPC=yes
2342 DEFAULT_wxUSE_HELP=yes
2343 DEFAULT_wxUSE_MS_HTML_HELP=yes
2344 DEFAULT_wxUSE_WXHTML_HELP=yes
2345 DEFAULT_wxUSE_TREELAYOUT=yes
2346 DEFAULT_wxUSE_METAFILE=yes
2347 DEFAULT_wxUSE_MIMETYPE=yes
2348 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2349 DEFAULT_wxUSE_PROTOCOL=yes
2350 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2351 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2352 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2353 DEFAULT_wxUSE_URL=yes
2354
2355 DEFAULT_wxUSE_COMMONDLGS=yes
2356 DEFAULT_wxUSE_CHOICEDLG=yes
2357 DEFAULT_wxUSE_COLOURDLG=yes
2358 DEFAULT_wxUSE_DIRDLG=yes
2359 DEFAULT_wxUSE_FILEDLG=yes
2360 DEFAULT_wxUSE_FINDREPLDLG=yes
2361 DEFAULT_wxUSE_FONTDLG=yes
2362 DEFAULT_wxUSE_MSGDLG=yes
2363 DEFAULT_wxUSE_NUMBERDLG=yes
2364 DEFAULT_wxUSE_TEXTDLG=yes
2365 DEFAULT_wxUSE_SPLASH=yes
2366 DEFAULT_wxUSE_STARTUP_TIPS=yes
2367 DEFAULT_wxUSE_PROGRESSDLG=yes
2368 DEFAULT_wxUSE_WIZARDDLG=yes
2369
2370 DEFAULT_wxUSE_MENUS=yes
2371 DEFAULT_wxUSE_MINIFRAME=yes
2372 DEFAULT_wxUSE_HTML=yes
91dea314 2373 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2374 DEFAULT_wxUSE_XRC=yes
646b6ec1 2375 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2376 DEFAULT_wxUSE_FILESYSTEM=yes
2377 DEFAULT_wxUSE_FS_INET=yes
2378 DEFAULT_wxUSE_FS_ZIP=yes
2379 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2380 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2381 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2382 DEFAULT_wxUSE_VALIDATORS=yes
2383
2384 DEFAULT_wxUSE_ACCEL=yes
2385 DEFAULT_wxUSE_BUTTON=yes
2386 DEFAULT_wxUSE_BMPBUTTON=yes
2387 DEFAULT_wxUSE_CALCTRL=yes
2388 DEFAULT_wxUSE_CARET=yes
2389 DEFAULT_wxUSE_CHECKBOX=yes
2390 DEFAULT_wxUSE_CHECKLST=yes
2391 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2392 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2393 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2394 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2395 DEFAULT_wxUSE_DISPLAY=yes
2396 DEFAULT_wxUSE_GAUGE=yes
2397 DEFAULT_wxUSE_GRID=yes
20e34ecc 2398 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2399 DEFAULT_wxUSE_IMAGLIST=yes
2400 DEFAULT_wxUSE_LISTBOOK=yes
2401 DEFAULT_wxUSE_LISTBOX=yes
2402 DEFAULT_wxUSE_LISTCTRL=yes
2403 DEFAULT_wxUSE_NOTEBOOK=yes
2404 DEFAULT_wxUSE_RADIOBOX=yes
2405 DEFAULT_wxUSE_RADIOBTN=yes
2406 DEFAULT_wxUSE_SASH=yes
2407 DEFAULT_wxUSE_SCROLLBAR=yes
2408 DEFAULT_wxUSE_SLIDER=yes
2409 DEFAULT_wxUSE_SPINBTN=yes
2410 DEFAULT_wxUSE_SPINCTRL=yes
2411 DEFAULT_wxUSE_SPLITTER=yes
2412 DEFAULT_wxUSE_STATBMP=yes
2413 DEFAULT_wxUSE_STATBOX=yes
2414 DEFAULT_wxUSE_STATLINE=yes
2415 DEFAULT_wxUSE_STATTEXT=yes
2416 DEFAULT_wxUSE_STATUSBAR=yes
2417 DEFAULT_wxUSE_TABDIALOG=no
2418 DEFAULT_wxUSE_TEXTCTRL=yes
2419 DEFAULT_wxUSE_TOGGLEBTN=yes
2420 DEFAULT_wxUSE_TOOLBAR=yes
2421 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2422 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2423 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2424 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2425 DEFAULT_wxUSE_TREECTRL=yes
2426 DEFAULT_wxUSE_POPUPWIN=yes
2427 DEFAULT_wxUSE_TIPWINDOW=yes
2428
78de529b 2429 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2430 DEFAULT_wxUSE_UNICODE_MSLU=yes
2431 DEFAULT_wxUSE_WCSRTOMBS=no
2432
2433 DEFAULT_wxUSE_PALETTE=yes
2434 DEFAULT_wxUSE_IMAGE=yes
2435 DEFAULT_wxUSE_GIF=yes
2436 DEFAULT_wxUSE_PCX=yes
2437 DEFAULT_wxUSE_IFF=no
2438 DEFAULT_wxUSE_PNM=yes
2439 DEFAULT_wxUSE_XPM=yes
2440 DEFAULT_wxUSE_ICO_CUR=yes
2441 DEFAULT_wxUSE_ACCESSIBILITY=no
2442
2443 DEFAULT_wxUSE_MONOLITHIC=no
2444 DEFAULT_wxUSE_PLUGINS=no
2445 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2446
f34ca037 2447 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2448fi
2449
2450
2451
f34ca037 2452
a848cd7e
SC
2453for toolkit in `echo $ALL_TOOLKITS`; do
2454 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2455 if test "x$LINE" != "x" ; then
2456 has_toolkit_in_cache=1
2457 eval "DEFAULT_$LINE"
2458 eval "CACHE_$toolkit=1"
f34ca037
MW
2459
2460 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2461 if test "x$LINE" != "x" ; then
2462 eval "DEFAULT_$LINE"
2463 fi
a848cd7e
SC
2464 fi
2465done
2466
2467
2468
2469 enablestring=
2470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2471echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2472 no_cache=0
2473 # Check whether --enable-gui or --disable-gui was given.
2474if test "${enable_gui+set}" = set; then
2475 enableval="$enable_gui"
2476
2477 if test "$enableval" = yes; then
2478 ac_cv_use_gui='wxUSE_GUI=yes'
2479 else
2480 ac_cv_use_gui='wxUSE_GUI=no'
2481 fi
2482
2483else
2484
2485 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2486 if test "x$LINE" != x ; then
2487 eval "DEFAULT_$LINE"
2488 else
2489 no_cache=1
2490 fi
2491
2492 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2493
2494fi;
2495
2496 eval "$ac_cv_use_gui"
2497 if test "$no_cache" != 1; then
2498 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2499 fi
2500
2501 if test "$wxUSE_GUI" = yes; then
2502 echo "$as_me:$LINENO: result: yes" >&5
2503echo "${ECHO_T}yes" >&6
2504 else
2505 echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6
2507 fi
2508
2509
2510 enablestring=
2511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2512echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2513 no_cache=0
2514 # Check whether --enable-monolithic or --disable-monolithic was given.
2515if test "${enable_monolithic+set}" = set; then
2516 enableval="$enable_monolithic"
2517
2518 if test "$enableval" = yes; then
2519 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2520 else
2521 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2522 fi
2523
2524else
2525
2526 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2527 if test "x$LINE" != x ; then
2528 eval "DEFAULT_$LINE"
2529 else
2530 no_cache=1
2531 fi
2532
2533 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2534
2535fi;
2536
2537 eval "$ac_cv_use_monolithic"
2538 if test "$no_cache" != 1; then
2539 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2540 fi
2541
2542 if test "$wxUSE_MONOLITHIC" = yes; then
2543 echo "$as_me:$LINENO: result: yes" >&5
2544echo "${ECHO_T}yes" >&6
2545 else
2546 echo "$as_me:$LINENO: result: no" >&5
2547echo "${ECHO_T}no" >&6
2548 fi
2549
2550
2551 enablestring=
2552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2553echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2554 no_cache=0
2555 # Check whether --enable-plugins or --disable-plugins was given.
2556if test "${enable_plugins+set}" = set; then
2557 enableval="$enable_plugins"
2558
2559 if test "$enableval" = yes; then
2560 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2561 else
2562 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2563 fi
2564
2565else
2566
2567 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2568 if test "x$LINE" != x ; then
2569 eval "DEFAULT_$LINE"
2570 else
2571 no_cache=1
2572 fi
2573
2574 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2575
2576fi;
2577
2578 eval "$ac_cv_use_plugins"
2579 if test "$no_cache" != 1; then
2580 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2581 fi
2582
2583 if test "$wxUSE_PLUGINS" = yes; then
2584 echo "$as_me:$LINENO: result: yes" >&5
2585echo "${ECHO_T}yes" >&6
2586 else
2587 echo "$as_me:$LINENO: result: no" >&5
2588echo "${ECHO_T}no" >&6
2589 fi
2590
2591
1c14217d
VZ
2592 withstring=without
2593 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2594echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2595 no_cache=0
2596
2597# Check whether --with-subdirs or --without-subdirs was given.
2598if test "${with_subdirs+set}" = set; then
2599 withval="$with_subdirs"
2600
2601 if test "$withval" = yes; then
2602 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2603 else
2604 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2605 fi
2606
2607else
2608
2609 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2610 if test "x$LINE" != x ; then
2611 eval "DEFAULT_$LINE"
2612 else
2613 no_cache=1
2614 fi
2615
2616 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2617
2618fi;
2619
2620 eval "$ac_cv_use_subdirs"
2621 if test "$no_cache" != 1; then
2622 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2623 fi
2624
2625 if test "$wxWITH_SUBDIRS" = yes; then
2626 echo "$as_me:$LINENO: result: yes" >&5
2627echo "${ECHO_T}yes" >&6
2628 else
2629 echo "$as_me:$LINENO: result: no" >&5
2630echo "${ECHO_T}no" >&6
2631 fi
2632
2633
a848cd7e
SC
2634if test "$wxUSE_GUI" = "yes"; then
2635
2636
2637 enablestring=
2638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2639echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2640 no_cache=0
2641 # Check whether --enable-universal or --disable-universal was given.
2642if test "${enable_universal+set}" = set; then
2643 enableval="$enable_universal"
2644
2645 if test "$enableval" = yes; then
2646 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2647 else
2648 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2649 fi
2650
2651else
2652
2653 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2654 if test "x$LINE" != x ; then
2655 eval "DEFAULT_$LINE"
2656 else
2657 no_cache=1
2658 fi
2659
2660 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2661
2662fi;
2663
2664 eval "$ac_cv_use_universal"
2665 if test "$no_cache" != 1; then
2666 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2667 fi
2668
2669 if test "$wxUSE_UNIVERSAL" = yes; then
2670 echo "$as_me:$LINENO: result: yes" >&5
2671echo "${ECHO_T}yes" >&6
2672 else
2673 echo "$as_me:$LINENO: result: no" >&5
2674echo "${ECHO_T}no" >&6
2675 fi
2676
2677
2678# Check whether --with-gtk or --without-gtk was given.
2679if test "${with_gtk+set}" = set; then
2680 withval="$with_gtk"
2681 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2682fi;
2683
2684# Check whether --with-motif or --without-motif was given.
2685if test "${with_motif+set}" = set; then
2686 withval="$with_motif"
2687 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2688fi;
2689
2690# Check whether --with-mac or --without-mac was given.
2691if test "${with_mac+set}" = set; then
2692 withval="$with_mac"
c228d3a4 2693 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2694fi;
2695
2696# Check whether --with-cocoa or --without-cocoa was given.
2697if test "${with_cocoa+set}" = set; then
2698 withval="$with_cocoa"
c228d3a4 2699 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2700fi;
2701
2702# Check whether --with-wine or --without-wine was given.
2703if test "${with_wine+set}" = set; then
2704 withval="$with_wine"
2705 wxUSE_WINE="$withval" CACHE_WINE=1
2706fi;
2707
2708# Check whether --with-msw or --without-msw was given.
2709if test "${with_msw+set}" = set; then
2710 withval="$with_msw"
2711 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2712fi;
2713
2714# Check whether --with-pm or --without-pm was given.
2715if test "${with_pm+set}" = set; then
2716 withval="$with_pm"
2717 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2718fi;
2719
2720# Check whether --with-mgl or --without-mgl was given.
2721if test "${with_mgl+set}" = set; then
2722 withval="$with_mgl"
2723 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2724fi;
2725
2726# Check whether --with-microwin or --without-microwin was given.
2727if test "${with_microwin+set}" = set; then
2728 withval="$with_microwin"
2729 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2730fi;
2731
2732# Check whether --with-x11 or --without-x11 was given.
2733if test "${with_x11+set}" = set; then
2734 withval="$with_x11"
2735 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2736fi;
2737
2738 enablestring=
2739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2740echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2741 no_cache=0
2742 # Check whether --enable-nanox or --disable-nanox was given.
2743if test "${enable_nanox+set}" = set; then
2744 enableval="$enable_nanox"
2745
2746 if test "$enableval" = yes; then
2747 ac_cv_use_nanox='wxUSE_NANOX=yes'
2748 else
2749 ac_cv_use_nanox='wxUSE_NANOX=no'
2750 fi
2751
2752else
2753
2754 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2755 if test "x$LINE" != x ; then
2756 eval "DEFAULT_$LINE"
2757 else
2758 no_cache=1
2759 fi
2760
2761 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2762
2763fi;
2764
2765 eval "$ac_cv_use_nanox"
2766 if test "$no_cache" != 1; then
2767 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2768 fi
2769
2770 if test "$wxUSE_NANOX" = yes; then
2771 echo "$as_me:$LINENO: result: yes" >&5
2772echo "${ECHO_T}yes" >&6
2773 else
2774 echo "$as_me:$LINENO: result: no" >&5
2775echo "${ECHO_T}no" >&6
2776 fi
2777
2778
f34ca037
MW
2779# Check whether --enable-gtk2 or --disable-gtk2 was given.
2780if test "${enable_gtk2+set}" = set; then
2781 enableval="$enable_gtk2"
2782 wxUSE_GTK2="$enableval"
2783fi;
a848cd7e 2784
a848cd7e
SC
2785 enablestring=
2786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2787echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2788 no_cache=0
2789 # Check whether --enable-gpe or --disable-gpe was given.
2790if test "${enable_gpe+set}" = set; then
2791 enableval="$enable_gpe"
2792
2793 if test "$enableval" = yes; then
2794 ac_cv_use_gpe='wxUSE_GPE=yes'
2795 else
2796 ac_cv_use_gpe='wxUSE_GPE=no'
2797 fi
2798
2799else
2800
2801 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2802 if test "x$LINE" != x ; then
2803 eval "DEFAULT_$LINE"
2804 else
2805 no_cache=1
2806 fi
2807
2808 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2809
2810fi;
2811
2812 eval "$ac_cv_use_gpe"
2813 if test "$no_cache" != 1; then
2814 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2815 fi
2816
2817 if test "$wxUSE_GPE" = yes; then
2818 echo "$as_me:$LINENO: result: yes" >&5
2819echo "${ECHO_T}yes" >&6
2820 else
2821 echo "$as_me:$LINENO: result: no" >&5
2822echo "${ECHO_T}no" >&6
2823 fi
2824
2825
2826
2827 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2828echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2829 no_cache=0
2830
2831# Check whether --with-libpng or --without-libpng was given.
2832if test "${with_libpng+set}" = set; then
2833 withval="$with_libpng"
2834
2835 if test "$withval" = yes; then
2836 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2837 elif test "$withval" = no; then
2838 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2839 elif test "$withval" = sys; then
2840 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2841 elif test "$withval" = builtin; then
2842 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2843 else
2844 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2845echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2846 { (exit 1); exit 1; }; }
2847 fi
2848
2849else
2850
2851 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2852 if test "x$LINE" != x ; then
2853 eval "DEFAULT_$LINE"
2854 else
2855 no_cache=1
2856 fi
2857
2858 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2859
2860fi;
2861
2862 eval "$ac_cv_use_libpng"
2863 if test "$no_cache" != 1; then
2864 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2865 fi
2866
2867 if test "$wxUSE_LIBPNG" = yes; then
2868 echo "$as_me:$LINENO: result: yes" >&5
2869echo "${ECHO_T}yes" >&6
2870 elif test "$wxUSE_LIBPNG" = no; then
2871 echo "$as_me:$LINENO: result: no" >&5
2872echo "${ECHO_T}no" >&6
2873 elif test "$wxUSE_LIBPNG" = sys; then
2874 echo "$as_me:$LINENO: result: system version" >&5
2875echo "${ECHO_T}system version" >&6
2876 elif test "$wxUSE_LIBPNG" = builtin; then
2877 echo "$as_me:$LINENO: result: builtin version" >&5
2878echo "${ECHO_T}builtin version" >&6
2879 else
2880 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2881echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2882 { (exit 1); exit 1; }; }
2883 fi
2884
2885
2886 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2887echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2888 no_cache=0
2889
2890# Check whether --with-libjpeg or --without-libjpeg was given.
2891if test "${with_libjpeg+set}" = set; then
2892 withval="$with_libjpeg"
2893
2894 if test "$withval" = yes; then
2895 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2896 elif test "$withval" = no; then
2897 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2898 elif test "$withval" = sys; then
2899 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2900 elif test "$withval" = builtin; then
2901 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2902 else
2903 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2904echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2905 { (exit 1); exit 1; }; }
2906 fi
2907
2908else
2909
2910 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2911 if test "x$LINE" != x ; then
2912 eval "DEFAULT_$LINE"
2913 else
2914 no_cache=1
2915 fi
2916
2917 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2918
2919fi;
2920
2921 eval "$ac_cv_use_libjpeg"
2922 if test "$no_cache" != 1; then
2923 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2924 fi
2925
2926 if test "$wxUSE_LIBJPEG" = yes; then
2927 echo "$as_me:$LINENO: result: yes" >&5
2928echo "${ECHO_T}yes" >&6
2929 elif test "$wxUSE_LIBJPEG" = no; then
2930 echo "$as_me:$LINENO: result: no" >&5
2931echo "${ECHO_T}no" >&6
2932 elif test "$wxUSE_LIBJPEG" = sys; then
2933 echo "$as_me:$LINENO: result: system version" >&5
2934echo "${ECHO_T}system version" >&6
2935 elif test "$wxUSE_LIBJPEG" = builtin; then
2936 echo "$as_me:$LINENO: result: builtin version" >&5
2937echo "${ECHO_T}builtin version" >&6
2938 else
2939 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2940echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2941 { (exit 1); exit 1; }; }
2942 fi
2943
2944
2945 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2946echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2947 no_cache=0
2948
2949# Check whether --with-libtiff or --without-libtiff was given.
2950if test "${with_libtiff+set}" = set; then
2951 withval="$with_libtiff"
2952
2953 if test "$withval" = yes; then
2954 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2955 elif test "$withval" = no; then
2956 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2957 elif test "$withval" = sys; then
2958 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2959 elif test "$withval" = builtin; then
2960 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2961 else
2962 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2963echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2964 { (exit 1); exit 1; }; }
2965 fi
2966
2967else
2968
2969 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2970 if test "x$LINE" != x ; then
2971 eval "DEFAULT_$LINE"
2972 else
2973 no_cache=1
2974 fi
2975
2976 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2977
2978fi;
2979
2980 eval "$ac_cv_use_libtiff"
2981 if test "$no_cache" != 1; then
2982 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2983 fi
2984
2985 if test "$wxUSE_LIBTIFF" = yes; then
2986 echo "$as_me:$LINENO: result: yes" >&5
2987echo "${ECHO_T}yes" >&6
2988 elif test "$wxUSE_LIBTIFF" = no; then
2989 echo "$as_me:$LINENO: result: no" >&5
2990echo "${ECHO_T}no" >&6
2991 elif test "$wxUSE_LIBTIFF" = sys; then
2992 echo "$as_me:$LINENO: result: system version" >&5
2993echo "${ECHO_T}system version" >&6
2994 elif test "$wxUSE_LIBTIFF" = builtin; then
2995 echo "$as_me:$LINENO: result: builtin version" >&5
2996echo "${ECHO_T}builtin version" >&6
2997 else
2998 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2999echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3000 { (exit 1); exit 1; }; }
3001 fi
3002
3003
3004 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3005echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3006 no_cache=0
3007
3008# Check whether --with-libxpm or --without-libxpm was given.
3009if test "${with_libxpm+set}" = set; then
3010 withval="$with_libxpm"
3011
3012 if test "$withval" = yes; then
3013 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3014 elif test "$withval" = no; then
3015 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3016 elif test "$withval" = sys; then
3017 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3018 elif test "$withval" = builtin; then
3019 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3020 else
3021 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3022echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3023 { (exit 1); exit 1; }; }
3024 fi
3025
3026else
3027
3028 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3029 if test "x$LINE" != x ; then
3030 eval "DEFAULT_$LINE"
3031 else
3032 no_cache=1
3033 fi
3034
3035 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3036
3037fi;
3038
3039 eval "$ac_cv_use_libxpm"
3040 if test "$no_cache" != 1; then
3041 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3042 fi
3043
3044 if test "$wxUSE_LIBXPM" = yes; then
3045 echo "$as_me:$LINENO: result: yes" >&5
3046echo "${ECHO_T}yes" >&6
3047 elif test "$wxUSE_LIBXPM" = no; then
3048 echo "$as_me:$LINENO: result: no" >&5
3049echo "${ECHO_T}no" >&6
3050 elif test "$wxUSE_LIBXPM" = sys; then
3051 echo "$as_me:$LINENO: result: system version" >&5
3052echo "${ECHO_T}system version" >&6
3053 elif test "$wxUSE_LIBXPM" = builtin; then
3054 echo "$as_me:$LINENO: result: builtin version" >&5
3055echo "${ECHO_T}builtin version" >&6
3056 else
3057 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3058echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3059 { (exit 1); exit 1; }; }
3060 fi
3061
3062
1c14217d
VZ
3063 withstring=
3064 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3065echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3066 no_cache=0
3067
3068# Check whether --with-libmspack or --without-libmspack was given.
3069if test "${with_libmspack+set}" = set; then
3070 withval="$with_libmspack"
3071
3072 if test "$withval" = yes; then
3073 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3074 else
3075 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3076 fi
3077
3078else
3079
3080 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3081 if test "x$LINE" != x ; then
3082 eval "DEFAULT_$LINE"
3083 else
3084 no_cache=1
3085 fi
3086
3087 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3088
3089fi;
3090
3091 eval "$ac_cv_use_libmspack"
3092 if test "$no_cache" != 1; then
3093 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3094 fi
3095
3096 if test "$wxUSE_LIBMSPACK" = yes; then
3097 echo "$as_me:$LINENO: result: yes" >&5
3098echo "${ECHO_T}yes" >&6
3099 else
3100 echo "$as_me:$LINENO: result: no" >&5
3101echo "${ECHO_T}no" >&6
3102 fi
3103
3104
1c14217d
VZ
3105 withstring=
3106 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3107echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3108 no_cache=0
3109
3110# Check whether --with-sdl or --without-sdl was given.
3111if test "${with_sdl+set}" = set; then
3112 withval="$with_sdl"
3113
3114 if test "$withval" = yes; then
3115 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3116 else
3117 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3118 fi
3119
3120else
3121
3122 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3123 if test "x$LINE" != x ; then
3124 eval "DEFAULT_$LINE"
3125 else
3126 no_cache=1
3127 fi
3128
3129 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3130
3131fi;
3132
3133 eval "$ac_cv_use_sdl"
3134 if test "$no_cache" != 1; then
3135 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3136 fi
3137
3138 if test "$wxUSE_LIBSDL" = yes; then
3139 echo "$as_me:$LINENO: result: yes" >&5
3140echo "${ECHO_T}yes" >&6
3141 else
3142 echo "$as_me:$LINENO: result: no" >&5
3143echo "${ECHO_T}no" >&6
3144 fi
3145
3146
1c14217d
VZ
3147 withstring=
3148 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3149echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3150 no_cache=0
3151
3152# Check whether --with-gnomeprint or --without-gnomeprint was given.
3153if test "${with_gnomeprint+set}" = set; then
3154 withval="$with_gnomeprint"
3155
3156 if test "$withval" = yes; then
3157 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3158 else
3159 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3160 fi
3161
3162else
3163
3164 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3165 if test "x$LINE" != x ; then
3166 eval "DEFAULT_$LINE"
3167 else
3168 no_cache=1
3169 fi
3170
3171 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3172
3173fi;
3174
3175 eval "$ac_cv_use_gnomeprint"
3176 if test "$no_cache" != 1; then
3177 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3178 fi
3179
3180 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3181 echo "$as_me:$LINENO: result: yes" >&5
3182echo "${ECHO_T}yes" >&6
3183 else
3184 echo "$as_me:$LINENO: result: no" >&5
3185echo "${ECHO_T}no" >&6
3186 fi
3187
3188
3565d135
RR
3189 withstring=
3190 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3191echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3192 no_cache=0
3193
3194# Check whether --with-hildon or --without-hildon was given.
3195if test "${with_hildon+set}" = set; then
3196 withval="$with_hildon"
3197
3198 if test "$withval" = yes; then
3199 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3200 else
3201 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3202 fi
3203
3204else
3205
3206 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3207 if test "x$LINE" != x ; then
3208 eval "DEFAULT_$LINE"
3209 else
3210 no_cache=1
3211 fi
3212
3213 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3214
3215fi;
3216
3217 eval "$ac_cv_use_hildon"
3218 if test "$no_cache" != 1; then
3219 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3220 fi
3221
3222 if test "$wxUSE_LIBHILDON" = yes; then
3223 echo "$as_me:$LINENO: result: yes" >&5
3224echo "${ECHO_T}yes" >&6
3225 else
3226 echo "$as_me:$LINENO: result: no" >&5
3227echo "${ECHO_T}no" >&6
3228 fi
3229
3230
1c14217d
VZ
3231 withstring=
3232 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3233echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3234 no_cache=0
3235
3236# Check whether --with-opengl or --without-opengl was given.
3237if test "${with_opengl+set}" = set; then
3238 withval="$with_opengl"
3239
3240 if test "$withval" = yes; then
3241 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3242 else
3243 ac_cv_use_opengl='wxUSE_OPENGL=no'
3244 fi
3245
3246else
3247
3248 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3249 if test "x$LINE" != x ; then
3250 eval "DEFAULT_$LINE"
3251 else
3252 no_cache=1
3253 fi
3254
3255 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3256
3257fi;
3258
3259 eval "$ac_cv_use_opengl"
3260 if test "$no_cache" != 1; then
3261 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3262 fi
3263
3264 if test "$wxUSE_OPENGL" = yes; then
3265 echo "$as_me:$LINENO: result: yes" >&5
3266echo "${ECHO_T}yes" >&6
3267 else
3268 echo "$as_me:$LINENO: result: no" >&5
3269echo "${ECHO_T}no" >&6
3270 fi
3271
3272
3273fi
3274
3275
1c14217d
VZ
3276 withstring=
3277 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3278echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3279 no_cache=0
3280
3281# Check whether --with-dmalloc or --without-dmalloc was given.
3282if test "${with_dmalloc+set}" = set; then
3283 withval="$with_dmalloc"
3284
3285 if test "$withval" = yes; then
3286 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3287 else
3288 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3289 fi
3290
3291else
3292
3293 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
3300 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3301
3302fi;
3303
3304 eval "$ac_cv_use_dmalloc"
3305 if test "$no_cache" != 1; then
3306 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3307 fi
3308
3309 if test "$wxUSE_DMALLOC" = yes; then
3310 echo "$as_me:$LINENO: result: yes" >&5
3311echo "${ECHO_T}yes" >&6
3312 else
3313 echo "$as_me:$LINENO: result: no" >&5
3314echo "${ECHO_T}no" >&6
3315 fi
3316
3317
3318 echo "$as_me:$LINENO: checking for --with-regex" >&5
3319echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3320 no_cache=0
3321
3322# Check whether --with-regex or --without-regex was given.
3323if test "${with_regex+set}" = set; then
3324 withval="$with_regex"
3325
3326 if test "$withval" = yes; then
3327 ac_cv_use_regex='wxUSE_REGEX=yes'
3328 elif test "$withval" = no; then
3329 ac_cv_use_regex='wxUSE_REGEX=no'
3330 elif test "$withval" = sys; then
3331 ac_cv_use_regex='wxUSE_REGEX=sys'
3332 elif test "$withval" = builtin; then
3333 ac_cv_use_regex='wxUSE_REGEX=builtin'
3334 else
3335 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3336echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3337 { (exit 1); exit 1; }; }
3338 fi
3339
3340else
3341
3342 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3343 if test "x$LINE" != x ; then
3344 eval "DEFAULT_$LINE"
3345 else
3346 no_cache=1
3347 fi
3348
3349 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3350
3351fi;
3352
3353 eval "$ac_cv_use_regex"
3354 if test "$no_cache" != 1; then
3355 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3356 fi
3357
3358 if test "$wxUSE_REGEX" = yes; then
3359 echo "$as_me:$LINENO: result: yes" >&5
3360echo "${ECHO_T}yes" >&6
3361 elif test "$wxUSE_REGEX" = no; then
3362 echo "$as_me:$LINENO: result: no" >&5
3363echo "${ECHO_T}no" >&6
3364 elif test "$wxUSE_REGEX" = sys; then
3365 echo "$as_me:$LINENO: result: system version" >&5
3366echo "${ECHO_T}system version" >&6
3367 elif test "$wxUSE_REGEX" = builtin; then
3368 echo "$as_me:$LINENO: result: builtin version" >&5
3369echo "${ECHO_T}builtin version" >&6
3370 else
3371 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3372echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3373 { (exit 1); exit 1; }; }
3374 fi
3375
3376
3377 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3378echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3379 no_cache=0
3380
3381# Check whether --with-zlib or --without-zlib was given.
3382if test "${with_zlib+set}" = set; then
3383 withval="$with_zlib"
3384
3385 if test "$withval" = yes; then
3386 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3387 elif test "$withval" = no; then
3388 ac_cv_use_zlib='wxUSE_ZLIB=no'
3389 elif test "$withval" = sys; then
3390 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3391 elif test "$withval" = builtin; then
3392 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3393 else
3394 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3395echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3396 { (exit 1); exit 1; }; }
3397 fi
3398
3399else
3400
3401 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3402 if test "x$LINE" != x ; then
3403 eval "DEFAULT_$LINE"
3404 else
3405 no_cache=1
3406 fi
3407
3408 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3409
3410fi;
3411
3412 eval "$ac_cv_use_zlib"
3413 if test "$no_cache" != 1; then
3414 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3415 fi
3416
3417 if test "$wxUSE_ZLIB" = yes; then
3418 echo "$as_me:$LINENO: result: yes" >&5
3419echo "${ECHO_T}yes" >&6
3420 elif test "$wxUSE_ZLIB" = no; then
3421 echo "$as_me:$LINENO: result: no" >&5
3422echo "${ECHO_T}no" >&6
3423 elif test "$wxUSE_ZLIB" = sys; then
3424 echo "$as_me:$LINENO: result: system version" >&5
3425echo "${ECHO_T}system version" >&6
3426 elif test "$wxUSE_ZLIB" = builtin; then
3427 echo "$as_me:$LINENO: result: builtin version" >&5
3428echo "${ECHO_T}builtin version" >&6
3429 else
3430 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3431echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3432 { (exit 1); exit 1; }; }
3433 fi
3434
3435
3436 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3437echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3438 no_cache=0
3439
3440# Check whether --with-odbc or --without-odbc was given.
3441if test "${with_odbc+set}" = set; then
3442 withval="$with_odbc"
3443
3444 if test "$withval" = yes; then
3445 ac_cv_use_odbc='wxUSE_ODBC=yes'
3446 elif test "$withval" = no; then
3447 ac_cv_use_odbc='wxUSE_ODBC=no'
3448 elif test "$withval" = sys; then
3449 ac_cv_use_odbc='wxUSE_ODBC=sys'
3450 elif test "$withval" = builtin; then
3451 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3452 else
3453 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3454echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3455 { (exit 1); exit 1; }; }
3456 fi
3457
3458else
3459
3460 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3461 if test "x$LINE" != x ; then
3462 eval "DEFAULT_$LINE"
3463 else
3464 no_cache=1
3465 fi
3466
3467 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3468
3469fi;
3470
3471 eval "$ac_cv_use_odbc"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_ODBC" = yes; then
3477 echo "$as_me:$LINENO: result: yes" >&5
3478echo "${ECHO_T}yes" >&6
3479 elif test "$wxUSE_ODBC" = no; then
3480 echo "$as_me:$LINENO: result: no" >&5
3481echo "${ECHO_T}no" >&6
3482 elif test "$wxUSE_ODBC" = sys; then
3483 echo "$as_me:$LINENO: result: system version" >&5
3484echo "${ECHO_T}system version" >&6
3485 elif test "$wxUSE_ODBC" = builtin; then
3486 echo "$as_me:$LINENO: result: builtin version" >&5
3487echo "${ECHO_T}builtin version" >&6
3488 else
3489 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3490echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3491 { (exit 1); exit 1; }; }
3492 fi
3493
3494
3495 echo "$as_me:$LINENO: checking for --with-expat" >&5
3496echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3497 no_cache=0
3498
3499# Check whether --with-expat or --without-expat was given.
3500if test "${with_expat+set}" = set; then
3501 withval="$with_expat"
3502
3503 if test "$withval" = yes; then
3504 ac_cv_use_expat='wxUSE_EXPAT=yes'
3505 elif test "$withval" = no; then
3506 ac_cv_use_expat='wxUSE_EXPAT=no'
3507 elif test "$withval" = sys; then
3508 ac_cv_use_expat='wxUSE_EXPAT=sys'
3509 elif test "$withval" = builtin; then
3510 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3511 else
3512 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3513echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3514 { (exit 1); exit 1; }; }
3515 fi
3516
3517else
3518
3519 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3520 if test "x$LINE" != x ; then
3521 eval "DEFAULT_$LINE"
3522 else
3523 no_cache=1
3524 fi
3525
3526 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3527
3528fi;
3529
3530 eval "$ac_cv_use_expat"
3531 if test "$no_cache" != 1; then
3532 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3533 fi
3534
3535 if test "$wxUSE_EXPAT" = yes; then
3536 echo "$as_me:$LINENO: result: yes" >&5
3537echo "${ECHO_T}yes" >&6
3538 elif test "$wxUSE_EXPAT" = no; then
3539 echo "$as_me:$LINENO: result: no" >&5
3540echo "${ECHO_T}no" >&6
3541 elif test "$wxUSE_EXPAT" = sys; then
3542 echo "$as_me:$LINENO: result: system version" >&5
3543echo "${ECHO_T}system version" >&6
3544 elif test "$wxUSE_EXPAT" = builtin; then
3545 echo "$as_me:$LINENO: result: builtin version" >&5
3546echo "${ECHO_T}builtin version" >&6
3547 else
3548 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3549echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3550 { (exit 1); exit 1; }; }
3551 fi
3552
3553
3554
3555
3556 enablestring=
3557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3558echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3559 no_cache=0
3560 # Check whether --enable-shared or --disable-shared was given.
3561if test "${enable_shared+set}" = set; then
3562 enableval="$enable_shared"
3563
3564 if test "$enableval" = yes; then
3565 ac_cv_use_shared='wxUSE_SHARED=yes'
3566 else
3567 ac_cv_use_shared='wxUSE_SHARED=no'
3568 fi
3569
3570else
3571
3572 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3573 if test "x$LINE" != x ; then
3574 eval "DEFAULT_$LINE"
3575 else
3576 no_cache=1
3577 fi
3578
3579 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3580
3581fi;
3582
3583 eval "$ac_cv_use_shared"
3584 if test "$no_cache" != 1; then
3585 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3586 fi
3587
3588 if test "$wxUSE_SHARED" = yes; then
3589 echo "$as_me:$LINENO: result: yes" >&5
3590echo "${ECHO_T}yes" >&6
3591 else
3592 echo "$as_me:$LINENO: result: no" >&5
3593echo "${ECHO_T}no" >&6
3594 fi
3595
3596
3597 enablestring=
3598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3599echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3600 no_cache=0
3601 # Check whether --enable-optimise or --disable-optimise was given.
3602if test "${enable_optimise+set}" = set; then
3603 enableval="$enable_optimise"
3604
3605 if test "$enableval" = yes; then
3606 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3607 else
3608 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3609 fi
3610
3611else
3612
3613 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3614 if test "x$LINE" != x ; then
3615 eval "DEFAULT_$LINE"
3616 else
3617 no_cache=1
3618 fi
3619
3620 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3621
3622fi;
3623
3624 eval "$ac_cv_use_optimise"
3625 if test "$no_cache" != 1; then
3626 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3627 fi
3628
3629 if test "$wxUSE_OPTIMISE" = yes; then
3630 echo "$as_me:$LINENO: result: yes" >&5
3631echo "${ECHO_T}yes" >&6
3632 else
3633 echo "$as_me:$LINENO: result: no" >&5
3634echo "${ECHO_T}no" >&6
3635 fi
3636
3637
3638 enablestring=
3639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3640echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3641 no_cache=0
3642 # Check whether --enable-debug or --disable-debug was given.
3643if test "${enable_debug+set}" = set; then
3644 enableval="$enable_debug"
3645
3646 if test "$enableval" = yes; then
3647 ac_cv_use_debug='wxUSE_DEBUG=yes'
3648 else
3649 ac_cv_use_debug='wxUSE_DEBUG=no'
3650 fi
3651
3652else
3653
3654 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3655 if test "x$LINE" != x ; then
3656 eval "DEFAULT_$LINE"
3657 else
3658 no_cache=1
3659 fi
3660
3661 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3662
3663fi;
3664
3665 eval "$ac_cv_use_debug"
3666 if test "$no_cache" != 1; then
3667 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3668 fi
3669
3670 if test "$wxUSE_DEBUG" = yes; then
3671 echo "$as_me:$LINENO: result: yes" >&5
3672echo "${ECHO_T}yes" >&6
3673 else
3674 echo "$as_me:$LINENO: result: no" >&5
3675echo "${ECHO_T}no" >&6
3676 fi
3677
3678
3679 enablestring=
3680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3681echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3682 no_cache=0
3683 # Check whether --enable-stl or --disable-stl was given.
3684if test "${enable_stl+set}" = set; then
3685 enableval="$enable_stl"
3686
3687 if test "$enableval" = yes; then
3688 ac_cv_use_stl='wxUSE_STL=yes'
3689 else
3690 ac_cv_use_stl='wxUSE_STL=no'
3691 fi
3692
3693else
3694
3695 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3696 if test "x$LINE" != x ; then
3697 eval "DEFAULT_$LINE"
3698 else
3699 no_cache=1
3700 fi
3701
3702 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3703
3704fi;
3705
3706 eval "$ac_cv_use_stl"
3707 if test "$no_cache" != 1; then
3708 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3709 fi
3710
3711 if test "$wxUSE_STL" = yes; then
3712 echo "$as_me:$LINENO: result: yes" >&5
3713echo "${ECHO_T}yes" >&6
3714 else
3715 echo "$as_me:$LINENO: result: no" >&5
3716echo "${ECHO_T}no" >&6
3717 fi
3718
3719if test "$USE_OS2" = "1"; then
69120ee4 3720 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3721
3722 enablestring=
3723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3724echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3725 no_cache=0
3726 # Check whether --enable-omf or --disable-omf was given.
3727if test "${enable_omf+set}" = set; then
3728 enableval="$enable_omf"
3729
3730 if test "$enableval" = yes; then
3731 ac_cv_use_omf='wxUSE_OMF=yes'
3732 else
3733 ac_cv_use_omf='wxUSE_OMF=no'
3734 fi
3735
3736else
3737
3738 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3739 if test "x$LINE" != x ; then
3740 eval "DEFAULT_$LINE"
3741 else
3742 no_cache=1
3743 fi
3744
3745 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3746
3747fi;
3748
3749 eval "$ac_cv_use_omf"
3750 if test "$no_cache" != 1; then
3751 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3752 fi
3753
3754 if test "$wxUSE_OMF" = yes; then
3755 echo "$as_me:$LINENO: result: yes" >&5
3756echo "${ECHO_T}yes" >&6
3757 else
3758 echo "$as_me:$LINENO: result: no" >&5
3759echo "${ECHO_T}no" >&6
3760 fi
3761
3762fi
3763
3764if test "$wxUSE_DEBUG" = "yes"; then
3765 DEFAULT_wxUSE_DEBUG_FLAG=yes
3766 DEFAULT_wxUSE_DEBUG_INFO=yes
3767 BUILD=debug
3768elif test "$wxUSE_DEBUG" = "no"; then
3769 DEFAULT_wxUSE_DEBUG_FLAG=no
3770 DEFAULT_wxUSE_DEBUG_INFO=no
3771 BUILD=release
3772fi
3773
3774
3775 enablestring=
3776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3777echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3778 no_cache=0
3779 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3780if test "${enable_debug_flag+set}" = set; then
3781 enableval="$enable_debug_flag"
3782
3783 if test "$enableval" = yes; then
3784 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3785 else
3786 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3787 fi
3788
3789else
3790
3791 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3792 if test "x$LINE" != x ; then
3793 eval "DEFAULT_$LINE"
3794 else
3795 no_cache=1
3796 fi
3797
3798 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3799
3800fi;
3801
3802 eval "$ac_cv_use_debug_flag"
3803 if test "$no_cache" != 1; then
3804 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3805 fi
3806
3807 if test "$wxUSE_DEBUG_FLAG" = yes; then
3808 echo "$as_me:$LINENO: result: yes" >&5
3809echo "${ECHO_T}yes" >&6
3810 else
3811 echo "$as_me:$LINENO: result: no" >&5
3812echo "${ECHO_T}no" >&6
3813 fi
3814
3815
3816 enablestring=
3817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3818echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3819 no_cache=0
3820 # Check whether --enable-debug_info or --disable-debug_info was given.
3821if test "${enable_debug_info+set}" = set; then
3822 enableval="$enable_debug_info"
3823
3824 if test "$enableval" = yes; then
3825 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3826 else
3827 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3828 fi
3829
3830else
3831
3832 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3833 if test "x$LINE" != x ; then
3834 eval "DEFAULT_$LINE"
3835 else
3836 no_cache=1
3837 fi
3838
3839 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3840
3841fi;
3842
3843 eval "$ac_cv_use_debug_info"
3844 if test "$no_cache" != 1; then
3845 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3846 fi
3847
3848 if test "$wxUSE_DEBUG_INFO" = yes; then
3849 echo "$as_me:$LINENO: result: yes" >&5
3850echo "${ECHO_T}yes" >&6
3851 else
3852 echo "$as_me:$LINENO: result: no" >&5
3853echo "${ECHO_T}no" >&6
3854 fi
3855
3856
3857 enablestring=
3858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3859echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3860 no_cache=0
3861 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3862if test "${enable_debug_gdb+set}" = set; then
3863 enableval="$enable_debug_gdb"
3864
3865 if test "$enableval" = yes; then
3866 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3867 else
3868 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3869 fi
3870
3871else
3872
3873 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3874 if test "x$LINE" != x ; then
3875 eval "DEFAULT_$LINE"
3876 else
3877 no_cache=1
3878 fi
3879
3880 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3881
3882fi;
3883
3884 eval "$ac_cv_use_debug_gdb"
3885 if test "$no_cache" != 1; then
3886 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3887 fi
3888
3889 if test "$wxUSE_DEBUG_GDB" = yes; then
3890 echo "$as_me:$LINENO: result: yes" >&5
3891echo "${ECHO_T}yes" >&6
3892 else
3893 echo "$as_me:$LINENO: result: no" >&5
3894echo "${ECHO_T}no" >&6
3895 fi
3896
3897
3898 enablestring=
3899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3900echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3901 no_cache=0
3902 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3903if test "${enable_debug_cntxt+set}" = set; then
3904 enableval="$enable_debug_cntxt"
3905
3906 if test "$enableval" = yes; then
3907 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3908 else
3909 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3910 fi
3911
3912else
3913
3914 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3915 if test "x$LINE" != x ; then
3916 eval "DEFAULT_$LINE"
3917 else
3918 no_cache=1
3919 fi
3920
3921 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3922
3923fi;
3924
3925 eval "$ac_cv_use_debug_cntxt"
3926 if test "$no_cache" != 1; then
3927 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3928 fi
3929
3930 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3931 echo "$as_me:$LINENO: result: yes" >&5
3932echo "${ECHO_T}yes" >&6
3933 else
3934 echo "$as_me:$LINENO: result: no" >&5
3935echo "${ECHO_T}no" >&6
3936 fi
3937
3938
3939 enablestring=
3940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3941echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3942 no_cache=0
3943 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3944if test "${enable_mem_tracing+set}" = set; then
3945 enableval="$enable_mem_tracing"
3946
3947 if test "$enableval" = yes; then
3948 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3949 else
3950 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3951 fi
3952
3953else
3954
3955 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3956 if test "x$LINE" != x ; then
3957 eval "DEFAULT_$LINE"
3958 else
3959 no_cache=1
3960 fi
3961
3962 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3963
3964fi;
3965
3966 eval "$ac_cv_use_mem_tracing"
3967 if test "$no_cache" != 1; then
3968 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3969 fi
3970
3971 if test "$wxUSE_MEM_TRACING" = yes; then
3972 echo "$as_me:$LINENO: result: yes" >&5
3973echo "${ECHO_T}yes" >&6
3974 else
3975 echo "$as_me:$LINENO: result: no" >&5
3976echo "${ECHO_T}no" >&6
3977 fi
3978
3979
3980 enablestring=
3981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3982echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3983 no_cache=0
3984 # Check whether --enable-profile or --disable-profile was given.
3985if test "${enable_profile+set}" = set; then
3986 enableval="$enable_profile"
3987
3988 if test "$enableval" = yes; then
3989 ac_cv_use_profile='wxUSE_PROFILE=yes'
3990 else
3991 ac_cv_use_profile='wxUSE_PROFILE=no'
3992 fi
3993
3994else
3995
3996 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3997 if test "x$LINE" != x ; then
3998 eval "DEFAULT_$LINE"
3999 else
4000 no_cache=1
4001 fi
4002
4003 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4004
4005fi;
4006
4007 eval "$ac_cv_use_profile"
4008 if test "$no_cache" != 1; then
4009 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4010 fi
4011
4012 if test "$wxUSE_PROFILE" = yes; then
4013 echo "$as_me:$LINENO: result: yes" >&5
4014echo "${ECHO_T}yes" >&6
4015 else
4016 echo "$as_me:$LINENO: result: no" >&5
4017echo "${ECHO_T}no" >&6
4018 fi
4019
4020
4021 enablestring=
4022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4023echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4024 no_cache=0
4025 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4026if test "${enable_no_rtti+set}" = set; then
4027 enableval="$enable_no_rtti"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4031 else
4032 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4033 fi
4034
4035else
4036
4037 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4045
4046fi;
4047
4048 eval "$ac_cv_use_no_rtti"
4049 if test "$no_cache" != 1; then
4050 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4051 fi
4052
4053 if test "$wxUSE_NO_RTTI" = yes; then
4054 echo "$as_me:$LINENO: result: yes" >&5
4055echo "${ECHO_T}yes" >&6
4056 else
4057 echo "$as_me:$LINENO: result: no" >&5
4058echo "${ECHO_T}no" >&6
4059 fi
4060
4061
4062 enablestring=
4063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4064echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4065 no_cache=0
4066 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4067if test "${enable_no_exceptions+set}" = set; then
4068 enableval="$enable_no_exceptions"
4069
4070 if test "$enableval" = yes; then
4071 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4072 else
4073 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4074 fi
4075
4076else
4077
4078 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4079 if test "x$LINE" != x ; then
4080 eval "DEFAULT_$LINE"
4081 else
4082 no_cache=1
4083 fi
4084
4085 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4086
4087fi;
4088
4089 eval "$ac_cv_use_no_exceptions"
4090 if test "$no_cache" != 1; then
4091 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4092 fi
4093
4094 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4095 echo "$as_me:$LINENO: result: yes" >&5
4096echo "${ECHO_T}yes" >&6
4097 else
4098 echo "$as_me:$LINENO: result: no" >&5
4099echo "${ECHO_T}no" >&6
4100 fi
4101
4102
4103 enablestring=
4104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4105echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4106 no_cache=0
4107 # Check whether --enable-permissive or --disable-permissive was given.
4108if test "${enable_permissive+set}" = set; then
4109 enableval="$enable_permissive"
4110
4111 if test "$enableval" = yes; then
4112 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4113 else
4114 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4115 fi
4116
4117else
4118
4119 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4120 if test "x$LINE" != x ; then
4121 eval "DEFAULT_$LINE"
4122 else
4123 no_cache=1
4124 fi
4125
4126 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4127
4128fi;
4129
4130 eval "$ac_cv_use_permissive"
4131 if test "$no_cache" != 1; then
4132 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4133 fi
4134
4135 if test "$wxUSE_PERMISSIVE" = yes; then
4136 echo "$as_me:$LINENO: result: yes" >&5
4137echo "${ECHO_T}yes" >&6
4138 else
4139 echo "$as_me:$LINENO: result: no" >&5
4140echo "${ECHO_T}no" >&6
4141 fi
4142
4143
4144 enablestring=
4145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4146echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4147 no_cache=0
4148 # Check whether --enable-no_deps or --disable-no_deps was given.
4149if test "${enable_no_deps+set}" = set; then
4150 enableval="$enable_no_deps"
4151
4152 if test "$enableval" = yes; then
4153 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4154 else
4155 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4156 fi
4157
4158else
4159
4160 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4161 if test "x$LINE" != x ; then
4162 eval "DEFAULT_$LINE"
4163 else
4164 no_cache=1
4165 fi
4166
4167 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4168
4169fi;
4170
4171 eval "$ac_cv_use_no_deps"
4172 if test "$no_cache" != 1; then
4173 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4174 fi
4175
4176 if test "$wxUSE_NO_DEPS" = yes; then
4177 echo "$as_me:$LINENO: result: yes" >&5
4178echo "${ECHO_T}yes" >&6
4179 else
4180 echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
4182 fi
4183
4184
7afc46ab
KO
4185 enablestring=
4186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4187echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4188 no_cache=0
4189 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4190if test "${enable_universal_binary+set}" = set; then
4191 enableval="$enable_universal_binary"
4192
4193 if test "$enableval" = yes; then
4194 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4195 else
4196 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4197 fi
4198
4199else
4200
4201 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4202 if test "x$LINE" != x ; then
4203 eval "DEFAULT_$LINE"
4204 else
4205 no_cache=1
4206 fi
4207
4208 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4209
4210fi;
4211
4212 eval "$ac_cv_use_universal_binary"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4218 echo "$as_me:$LINENO: result: yes" >&5
4219echo "${ECHO_T}yes" >&6
4220 else
4221 echo "$as_me:$LINENO: result: no" >&5
4222echo "${ECHO_T}no" >&6
4223 fi
4224
4225
a848cd7e 4226
dee1a63f
MB
4227 enablestring=enable
4228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4229echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4230 no_cache=0
dee1a63f
MB
4231 # Check whether --enable-compat24 or --disable-compat24 was given.
4232if test "${enable_compat24+set}" = set; then
4233 enableval="$enable_compat24"
a848cd7e
SC
4234
4235 if test "$enableval" = yes; then
dee1a63f 4236 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4237 else
dee1a63f 4238 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4239 fi
4240
4241else
4242
dee1a63f 4243 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4244 if test "x$LINE" != x ; then
4245 eval "DEFAULT_$LINE"
4246 else
4247 no_cache=1
4248 fi
4249
dee1a63f 4250 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4251
4252fi;
4253
dee1a63f 4254 eval "$ac_cv_use_compat24"
a848cd7e 4255 if test "$no_cache" != 1; then
dee1a63f 4256 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4257 fi
4258
dee1a63f 4259 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4260 echo "$as_me:$LINENO: result: yes" >&5
4261echo "${ECHO_T}yes" >&6
4262 else
4263 echo "$as_me:$LINENO: result: no" >&5
4264echo "${ECHO_T}no" >&6
4265 fi
4266
4267
4268 enablestring=disable
dee1a63f
MB
4269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4270echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4271 no_cache=0
dee1a63f
MB
4272 # Check whether --enable-compat26 or --disable-compat26 was given.
4273if test "${enable_compat26+set}" = set; then
4274 enableval="$enable_compat26"
a848cd7e
SC
4275
4276 if test "$enableval" = yes; then
dee1a63f 4277 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4278 else
dee1a63f 4279 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4280 fi
4281
4282else
4283
dee1a63f 4284 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4285 if test "x$LINE" != x ; then
4286 eval "DEFAULT_$LINE"
4287 else
4288 no_cache=1
4289 fi
4290
dee1a63f 4291 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4292
4293fi;
4294
dee1a63f 4295 eval "$ac_cv_use_compat26"
a848cd7e 4296 if test "$no_cache" != 1; then
dee1a63f 4297 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4298 fi
4299
dee1a63f 4300 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4301 echo "$as_me:$LINENO: result: yes" >&5
4302echo "${ECHO_T}yes" >&6
4303 else
4304 echo "$as_me:$LINENO: result: no" >&5
4305echo "${ECHO_T}no" >&6
4306 fi
4307
4308
ffa0583f
RL
4309
4310 enablestring=
4311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4312echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4313 no_cache=0
4314 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4315if test "${enable_rpath+set}" = set; then
4316 enableval="$enable_rpath"
ffa0583f
RL
4317
4318 if test "$enableval" = yes; then
4319 ac_cv_use_rpath='wxUSE_RPATH=yes'
4320 else
4321 ac_cv_use_rpath='wxUSE_RPATH=no'
4322 fi
4323
4324else
4325
4326 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4327 if test "x$LINE" != x ; then
4328 eval "DEFAULT_$LINE"
4329 else
4330 no_cache=1
4331 fi
4332
4333 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4334
a848cd7e
SC
4335fi;
4336
ffa0583f
RL
4337 eval "$ac_cv_use_rpath"
4338 if test "$no_cache" != 1; then
4339 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4340 fi
4341
4342 if test "$wxUSE_RPATH" = yes; then
4343 echo "$as_me:$LINENO: result: yes" >&5
4344echo "${ECHO_T}yes" >&6
4345 else
4346 echo "$as_me:$LINENO: result: no" >&5
4347echo "${ECHO_T}no" >&6
4348 fi
4349
a848cd7e
SC
4350
4351
4352
4353
4354 enablestring=
4355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4356echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4357 no_cache=0
4358 # Check whether --enable-intl or --disable-intl was given.
4359if test "${enable_intl+set}" = set; then
4360 enableval="$enable_intl"
4361
4362 if test "$enableval" = yes; then
4363 ac_cv_use_intl='wxUSE_INTL=yes'
4364 else
4365 ac_cv_use_intl='wxUSE_INTL=no'
4366 fi
4367
4368else
4369
4370 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4371 if test "x$LINE" != x ; then
4372 eval "DEFAULT_$LINE"
4373 else
4374 no_cache=1
4375 fi
4376
4377 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4378
4379fi;
4380
4381 eval "$ac_cv_use_intl"
4382 if test "$no_cache" != 1; then
4383 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4384 fi
4385
4386 if test "$wxUSE_INTL" = yes; then
4387 echo "$as_me:$LINENO: result: yes" >&5
4388echo "${ECHO_T}yes" >&6
4389 else
4390 echo "$as_me:$LINENO: result: no" >&5
4391echo "${ECHO_T}no" >&6
4392 fi
4393
4394
4395 enablestring=
4396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4397echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4398 no_cache=0
4399 # Check whether --enable-config or --disable-config was given.
4400if test "${enable_config+set}" = set; then
4401 enableval="$enable_config"
4402
4403 if test "$enableval" = yes; then
4404 ac_cv_use_config='wxUSE_CONFIG=yes'
4405 else
4406 ac_cv_use_config='wxUSE_CONFIG=no'
4407 fi
4408
4409else
4410
4411 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4412 if test "x$LINE" != x ; then
4413 eval "DEFAULT_$LINE"
4414 else
4415 no_cache=1
4416 fi
4417
4418 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4419
4420fi;
4421
4422 eval "$ac_cv_use_config"
4423 if test "$no_cache" != 1; then
4424 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4425 fi
4426
4427 if test "$wxUSE_CONFIG" = yes; then
4428 echo "$as_me:$LINENO: result: yes" >&5
4429echo "${ECHO_T}yes" >&6
4430 else
4431 echo "$as_me:$LINENO: result: no" >&5
4432echo "${ECHO_T}no" >&6
4433 fi
4434
4435
4436
4437 enablestring=
4438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4439echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4440 no_cache=0
4441 # Check whether --enable-protocols or --disable-protocols was given.
4442if test "${enable_protocols+set}" = set; then
4443 enableval="$enable_protocols"
4444
4445 if test "$enableval" = yes; then
4446 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4447 else
4448 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4449 fi
4450
4451else
4452
4453 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4454 if test "x$LINE" != x ; then
4455 eval "DEFAULT_$LINE"
4456 else
4457 no_cache=1
4458 fi
4459
4460 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4461
4462fi;
4463
4464 eval "$ac_cv_use_protocols"
4465 if test "$no_cache" != 1; then
4466 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4467 fi
4468
4469 if test "$wxUSE_PROTOCOL" = yes; then
4470 echo "$as_me:$LINENO: result: yes" >&5
4471echo "${ECHO_T}yes" >&6
4472 else
4473 echo "$as_me:$LINENO: result: no" >&5
4474echo "${ECHO_T}no" >&6
4475 fi
4476
4477
4478 enablestring=
4479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4480echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4481 no_cache=0
4482 # Check whether --enable-ftp or --disable-ftp was given.
4483if test "${enable_ftp+set}" = set; then
4484 enableval="$enable_ftp"
4485
4486 if test "$enableval" = yes; then
4487 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4488 else
4489 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4490 fi
4491
4492else
4493
4494 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4495 if test "x$LINE" != x ; then
4496 eval "DEFAULT_$LINE"
4497 else
4498 no_cache=1
4499 fi
4500
4501 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4502
4503fi;
4504
4505 eval "$ac_cv_use_ftp"
4506 if test "$no_cache" != 1; then
4507 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4508 fi
4509
4510 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4511 echo "$as_me:$LINENO: result: yes" >&5
4512echo "${ECHO_T}yes" >&6
4513 else
4514 echo "$as_me:$LINENO: result: no" >&5
4515echo "${ECHO_T}no" >&6
4516 fi
4517
4518
4519 enablestring=
4520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4521echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4522 no_cache=0
4523 # Check whether --enable-http or --disable-http was given.
4524if test "${enable_http+set}" = set; then
4525 enableval="$enable_http"
4526
4527 if test "$enableval" = yes; then
4528 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4529 else
4530 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4531 fi
4532
4533else
4534
4535 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4536 if test "x$LINE" != x ; then
4537 eval "DEFAULT_$LINE"
4538 else
4539 no_cache=1
4540 fi
4541
4542 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4543
4544fi;
4545
4546 eval "$ac_cv_use_http"
4547 if test "$no_cache" != 1; then
4548 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4549 fi
4550
4551 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4552 echo "$as_me:$LINENO: result: yes" >&5
4553echo "${ECHO_T}yes" >&6
4554 else
4555 echo "$as_me:$LINENO: result: no" >&5
4556echo "${ECHO_T}no" >&6
4557 fi
4558
4559
4560 enablestring=
4561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4562echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4563 no_cache=0
4564 # Check whether --enable-fileproto or --disable-fileproto was given.
4565if test "${enable_fileproto+set}" = set; then
4566 enableval="$enable_fileproto"
4567
4568 if test "$enableval" = yes; then
4569 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4570 else
4571 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4572 fi
4573
4574else
4575
4576 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4577 if test "x$LINE" != x ; then
4578 eval "DEFAULT_$LINE"
4579 else
4580 no_cache=1
4581 fi
4582
4583 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4584
4585fi;
4586
4587 eval "$ac_cv_use_fileproto"
4588 if test "$no_cache" != 1; then
4589 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4590 fi
4591
4592 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4593 echo "$as_me:$LINENO: result: yes" >&5
4594echo "${ECHO_T}yes" >&6
4595 else
4596 echo "$as_me:$LINENO: result: no" >&5
4597echo "${ECHO_T}no" >&6
4598 fi
4599
4600
4601 enablestring=
4602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4603echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4604 no_cache=0
4605 # Check whether --enable-sockets or --disable-sockets was given.
4606if test "${enable_sockets+set}" = set; then
4607 enableval="$enable_sockets"
4608
4609 if test "$enableval" = yes; then
4610 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4611 else
4612 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4613 fi
4614
4615else
4616
4617 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4618 if test "x$LINE" != x ; then
4619 eval "DEFAULT_$LINE"
4620 else
4621 no_cache=1
4622 fi
4623
4624 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4625
4626fi;
4627
4628 eval "$ac_cv_use_sockets"
4629 if test "$no_cache" != 1; then
4630 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4631 fi
4632
4633 if test "$wxUSE_SOCKETS" = yes; then
4634 echo "$as_me:$LINENO: result: yes" >&5
4635echo "${ECHO_T}yes" >&6
4636 else
4637 echo "$as_me:$LINENO: result: no" >&5
4638echo "${ECHO_T}no" >&6
4639 fi
4640
4641
4642 enablestring=
4643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4644echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4645 no_cache=0
4646 # Check whether --enable-ole or --disable-ole was given.
4647if test "${enable_ole+set}" = set; then
4648 enableval="$enable_ole"
4649
4650 if test "$enableval" = yes; then
4651 ac_cv_use_ole='wxUSE_OLE=yes'
4652 else
4653 ac_cv_use_ole='wxUSE_OLE=no'
4654 fi
4655
4656else
4657
4658 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4659 if test "x$LINE" != x ; then
4660 eval "DEFAULT_$LINE"
4661 else
4662 no_cache=1
4663 fi
4664
4665 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4666
4667fi;
4668
4669 eval "$ac_cv_use_ole"
4670 if test "$no_cache" != 1; then
4671 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4672 fi
4673
4674 if test "$wxUSE_OLE" = yes; then
4675 echo "$as_me:$LINENO: result: yes" >&5
4676echo "${ECHO_T}yes" >&6
4677 else
4678 echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6
4680 fi
4681
4682
4683 enablestring=
4684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4685echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4686 no_cache=0
4687 # Check whether --enable-dataobj or --disable-dataobj was given.
4688if test "${enable_dataobj+set}" = set; then
4689 enableval="$enable_dataobj"
4690
4691 if test "$enableval" = yes; then
4692 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4693 else
4694 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4695 fi
4696
4697else
4698
4699 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4700 if test "x$LINE" != x ; then
4701 eval "DEFAULT_$LINE"
4702 else
4703 no_cache=1
4704 fi
4705
4706 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4707
4708fi;
4709
4710 eval "$ac_cv_use_dataobj"
4711 if test "$no_cache" != 1; then
4712 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4713 fi
4714
4715 if test "$wxUSE_DATAOBJ" = yes; then
4716 echo "$as_me:$LINENO: result: yes" >&5
4717echo "${ECHO_T}yes" >&6
4718 else
4719 echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6
4721 fi
4722
4723
4724
4725 enablestring=
4726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4727echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4728 no_cache=0
4729 # Check whether --enable-ipc or --disable-ipc was given.
4730if test "${enable_ipc+set}" = set; then
4731 enableval="$enable_ipc"
4732
4733 if test "$enableval" = yes; then
4734 ac_cv_use_ipc='wxUSE_IPC=yes'
4735 else
4736 ac_cv_use_ipc='wxUSE_IPC=no'
4737 fi
4738
4739else
4740
4741 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4742 if test "x$LINE" != x ; then
4743 eval "DEFAULT_$LINE"
4744 else
4745 no_cache=1
4746 fi
4747
4748 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4749
4750fi;
4751
4752 eval "$ac_cv_use_ipc"
4753 if test "$no_cache" != 1; then
4754 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4755 fi
4756
4757 if test "$wxUSE_IPC" = yes; then
4758 echo "$as_me:$LINENO: result: yes" >&5
4759echo "${ECHO_T}yes" >&6
4760 else
4761 echo "$as_me:$LINENO: result: no" >&5
4762echo "${ECHO_T}no" >&6
4763 fi
4764
4765
4766
4767 enablestring=
4768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4769echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4770 no_cache=0
4771 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4772if test "${enable_apple_ieee+set}" = set; then
4773 enableval="$enable_apple_ieee"
4774
4775 if test "$enableval" = yes; then
4776 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4777 else
4778 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4779 fi
4780
4781else
4782
4783 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4784 if test "x$LINE" != x ; then
4785 eval "DEFAULT_$LINE"
4786 else
4787 no_cache=1
4788 fi
4789
4790 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4791
4792fi;
4793
4794 eval "$ac_cv_use_apple_ieee"
4795 if test "$no_cache" != 1; then
4796 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4797 fi
4798
4799 if test "$wxUSE_APPLE_IEEE" = yes; then
4800 echo "$as_me:$LINENO: result: yes" >&5
4801echo "${ECHO_T}yes" >&6
4802 else
4803 echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6
4805 fi
4806
4807
81f90336
MW
4808 enablestring=
4809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4810echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4811 no_cache=0
4812 # Check whether --enable-arcstream or --disable-arcstream was given.
4813if test "${enable_arcstream+set}" = set; then
4814 enableval="$enable_arcstream"
4815
4816 if test "$enableval" = yes; then
9e8e867f 4817 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4818 else
9e8e867f 4819 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4820 fi
4821
4822else
4823
9e8e867f 4824 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
9e8e867f 4831 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4832
4833fi;
4834
4835 eval "$ac_cv_use_arcstream"
4836 if test "$no_cache" != 1; then
4837 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4838 fi
4839
9e8e867f 4840 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4841 echo "$as_me:$LINENO: result: yes" >&5
4842echo "${ECHO_T}yes" >&6
4843 else
4844 echo "$as_me:$LINENO: result: no" >&5
4845echo "${ECHO_T}no" >&6
4846 fi
4847
4848
a848cd7e 4849 enablestring=
36b6448c
VZ
4850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4851echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4852 no_cache=0
36b6448c
VZ
4853 # Check whether --enable-backtrace or --disable-backtrace was given.
4854if test "${enable_backtrace+set}" = set; then
4855 enableval="$enable_backtrace"
a848cd7e
SC
4856
4857 if test "$enableval" = yes; then
36b6448c 4858 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4859 else
36b6448c 4860 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4861 fi
4862
4863else
4864
36b6448c 4865 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
36b6448c 4872 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4873
4874fi;
4875
36b6448c 4876 eval "$ac_cv_use_backtrace"
a848cd7e 4877 if test "$no_cache" != 1; then
36b6448c 4878 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4879 fi
4880
36b6448c 4881 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4882 echo "$as_me:$LINENO: result: yes" >&5
4883echo "${ECHO_T}yes" >&6
4884 else
4885 echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6
4887 fi
4888
4889
eaff0f0d 4890 enablestring=
36b6448c
VZ
4891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4892echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4893 no_cache=0
36b6448c
VZ
4894 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4895if test "${enable_catch_segvs+set}" = set; then
4896 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4897
4898 if test "$enableval" = yes; then
36b6448c 4899 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4900 else
36b6448c 4901 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4902 fi
4903
4904else
4905
36b6448c 4906 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4907 if test "x$LINE" != x ; then
4908 eval "DEFAULT_$LINE"
4909 else
4910 no_cache=1
4911 fi
4912
36b6448c 4913 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4914
4915fi;
4916
36b6448c 4917 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4918 if test "$no_cache" != 1; then
36b6448c 4919 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4920 fi
4921
36b6448c 4922 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4923 echo "$as_me:$LINENO: result: yes" >&5
4924echo "${ECHO_T}yes" >&6
4925 else
4926 echo "$as_me:$LINENO: result: no" >&5
4927echo "${ECHO_T}no" >&6
4928 fi
4929
4930
a848cd7e
SC
4931 enablestring=
4932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4933echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4934 no_cache=0
4935 # Check whether --enable-cmdline or --disable-cmdline was given.
4936if test "${enable_cmdline+set}" = set; then
4937 enableval="$enable_cmdline"
4938
4939 if test "$enableval" = yes; then
4940 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4941 else
4942 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4943 fi
4944
4945else
4946
4947 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4948 if test "x$LINE" != x ; then
4949 eval "DEFAULT_$LINE"
4950 else
4951 no_cache=1
4952 fi
4953
4954 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4955
4956fi;
4957
4958 eval "$ac_cv_use_cmdline"
4959 if test "$no_cache" != 1; then
4960 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4961 fi
4962
4963 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4964 echo "$as_me:$LINENO: result: yes" >&5
4965echo "${ECHO_T}yes" >&6
4966 else
4967 echo "$as_me:$LINENO: result: no" >&5
4968echo "${ECHO_T}no" >&6
4969 fi
4970
4971
4972 enablestring=
4973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4974echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4975 no_cache=0
4976 # Check whether --enable-datetime or --disable-datetime was given.
4977if test "${enable_datetime+set}" = set; then
4978 enableval="$enable_datetime"
4979
4980 if test "$enableval" = yes; then
4981 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4982 else
4983 ac_cv_use_datetime='wxUSE_DATETIME=no'
4984 fi
4985
4986else
4987
4988 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4989 if test "x$LINE" != x ; then
4990 eval "DEFAULT_$LINE"
4991 else
4992 no_cache=1
4993 fi
4994
4995 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4996
4997fi;
4998
4999 eval "$ac_cv_use_datetime"
5000 if test "$no_cache" != 1; then
5001 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5002 fi
5003
5004 if test "$wxUSE_DATETIME" = yes; then
5005 echo "$as_me:$LINENO: result: yes" >&5
5006echo "${ECHO_T}yes" >&6
5007 else
5008 echo "$as_me:$LINENO: result: no" >&5
5009echo "${ECHO_T}no" >&6
5010 fi
5011
5012
36b6448c
VZ
5013 enablestring=
5014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5015echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5016 no_cache=0
5017 # Check whether --enable-debugreport or --disable-debugreport was given.
5018if test "${enable_debugreport+set}" = set; then
5019 enableval="$enable_debugreport"
5020
5021 if test "$enableval" = yes; then
5022 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5023 else
5024 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5025 fi
5026
5027else
5028
5029 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5030 if test "x$LINE" != x ; then
5031 eval "DEFAULT_$LINE"
5032 else
5033 no_cache=1
5034 fi
5035
5036 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5037
5038fi;
5039
5040 eval "$ac_cv_use_debugreport"
5041 if test "$no_cache" != 1; then
5042 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5043 fi
5044
5045 if test "$wxUSE_DEBUGREPORT" = yes; then
5046 echo "$as_me:$LINENO: result: yes" >&5
5047echo "${ECHO_T}yes" >&6
5048 else
5049 echo "$as_me:$LINENO: result: no" >&5
5050echo "${ECHO_T}no" >&6
5051 fi
5052
5053
a848cd7e
SC
5054 enablestring=
5055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5056echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5057 no_cache=0
5058 # Check whether --enable-dialupman or --disable-dialupman was given.
5059if test "${enable_dialupman+set}" = set; then
5060 enableval="$enable_dialupman"
5061
5062 if test "$enableval" = yes; then
5063 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5064 else
5065 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5066 fi
5067
5068else
5069
5070 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5071 if test "x$LINE" != x ; then
5072 eval "DEFAULT_$LINE"
5073 else
5074 no_cache=1
5075 fi
5076
5077 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5078
5079fi;
5080
5081 eval "$ac_cv_use_dialupman"
5082 if test "$no_cache" != 1; then
5083 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5084 fi
5085
5086 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5087 echo "$as_me:$LINENO: result: yes" >&5
5088echo "${ECHO_T}yes" >&6
5089 else
5090 echo "$as_me:$LINENO: result: no" >&5
5091echo "${ECHO_T}no" >&6
5092 fi
5093
5094
5095 enablestring=
5096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5097echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5098 no_cache=0
5099 # Check whether --enable-dynlib or --disable-dynlib was given.
5100if test "${enable_dynlib+set}" = set; then
5101 enableval="$enable_dynlib"
5102
5103 if test "$enableval" = yes; then
5104 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5105 else
5106 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5107 fi
5108
5109else
5110
5111 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5119
5120fi;
5121
5122 eval "$ac_cv_use_dynlib"
5123 if test "$no_cache" != 1; then
5124 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5125 fi
5126
5127 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5128 echo "$as_me:$LINENO: result: yes" >&5
5129echo "${ECHO_T}yes" >&6
5130 else
5131 echo "$as_me:$LINENO: result: no" >&5
5132echo "${ECHO_T}no" >&6
5133 fi
5134
5135
5136 enablestring=
5137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5138echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5139 no_cache=0
5140 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5141if test "${enable_dynamicloader+set}" = set; then
5142 enableval="$enable_dynamicloader"
5143
5144 if test "$enableval" = yes; then
5145 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5146 else
5147 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5148 fi
5149
5150else
5151
5152 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5153 if test "x$LINE" != x ; then
5154 eval "DEFAULT_$LINE"
5155 else
5156 no_cache=1
5157 fi
5158
5159 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5160
5161fi;
5162
5163 eval "$ac_cv_use_dynamicloader"
5164 if test "$no_cache" != 1; then
5165 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5166 fi
5167
5168 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5169 echo "$as_me:$LINENO: result: yes" >&5
5170echo "${ECHO_T}yes" >&6
5171 else
5172 echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174 fi
5175
5176
5177 enablestring=
5178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5179echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5180 no_cache=0
5181 # Check whether --enable-exceptions or --disable-exceptions was given.
5182if test "${enable_exceptions+set}" = set; then
5183 enableval="$enable_exceptions"
5184
5185 if test "$enableval" = yes; then
5186 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5187 else
5188 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5189 fi
5190
5191else
5192
5193 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5194 if test "x$LINE" != x ; then
5195 eval "DEFAULT_$LINE"
5196 else
5197 no_cache=1
5198 fi
5199
5200 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5201
5202fi;
5203
5204 eval "$ac_cv_use_exceptions"
5205 if test "$no_cache" != 1; then
5206 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5207 fi
5208
5209 if test "$wxUSE_EXCEPTIONS" = yes; then
5210 echo "$as_me:$LINENO: result: yes" >&5
5211echo "${ECHO_T}yes" >&6
5212 else
5213 echo "$as_me:$LINENO: result: no" >&5
5214echo "${ECHO_T}no" >&6
5215 fi
5216
5217
5218 enablestring=
5219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5220echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5221 no_cache=0
5222 # Check whether --enable-ffile or --disable-ffile was given.
5223if test "${enable_ffile+set}" = set; then
5224 enableval="$enable_ffile"
5225
5226 if test "$enableval" = yes; then
5227 ac_cv_use_ffile='wxUSE_FFILE=yes'
5228 else
5229 ac_cv_use_ffile='wxUSE_FFILE=no'
5230 fi
5231
5232else
5233
5234 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5242
5243fi;
5244
5245 eval "$ac_cv_use_ffile"
5246 if test "$no_cache" != 1; then
5247 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5248 fi
5249
5250 if test "$wxUSE_FFILE" = yes; then
5251 echo "$as_me:$LINENO: result: yes" >&5
5252echo "${ECHO_T}yes" >&6
5253 else
5254 echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6
5256 fi
5257
5258
5259 enablestring=
5260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5261echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5262 no_cache=0
5263 # Check whether --enable-file or --disable-file was given.
5264if test "${enable_file+set}" = set; then
5265 enableval="$enable_file"
5266
5267 if test "$enableval" = yes; then
5268 ac_cv_use_file='wxUSE_FILE=yes'
5269 else
5270 ac_cv_use_file='wxUSE_FILE=no'
5271 fi
5272
5273else
5274
5275 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5276 if test "x$LINE" != x ; then
5277 eval "DEFAULT_$LINE"
5278 else
5279 no_cache=1
5280 fi
5281
5282 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5283
5284fi;
5285
5286 eval "$ac_cv_use_file"
5287 if test "$no_cache" != 1; then
5288 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5289 fi
5290
5291 if test "$wxUSE_FILE" = yes; then
5292 echo "$as_me:$LINENO: result: yes" >&5
5293echo "${ECHO_T}yes" >&6
5294 else
5295 echo "$as_me:$LINENO: result: no" >&5
5296echo "${ECHO_T}no" >&6
5297 fi
5298
5299
5300 enablestring=
5301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5302echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5303 no_cache=0
5304 # Check whether --enable-filesystem or --disable-filesystem was given.
5305if test "${enable_filesystem+set}" = set; then
5306 enableval="$enable_filesystem"
5307
5308 if test "$enableval" = yes; then
5309 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5310 else
5311 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5312 fi
5313
5314else
5315
5316 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5317 if test "x$LINE" != x ; then
5318 eval "DEFAULT_$LINE"
5319 else
5320 no_cache=1
5321 fi
5322
5323 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5324
5325fi;
5326
5327 eval "$ac_cv_use_filesystem"
5328 if test "$no_cache" != 1; then
5329 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5330 fi
5331
5332 if test "$wxUSE_FILESYSTEM" = yes; then
5333 echo "$as_me:$LINENO: result: yes" >&5
5334echo "${ECHO_T}yes" >&6
5335 else
5336 echo "$as_me:$LINENO: result: no" >&5
5337echo "${ECHO_T}no" >&6
5338 fi
5339
5340
5341 enablestring=
5342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5343echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5344 no_cache=0
5345 # Check whether --enable-fontmap or --disable-fontmap was given.
5346if test "${enable_fontmap+set}" = set; then
5347 enableval="$enable_fontmap"
5348
5349 if test "$enableval" = yes; then
5350 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5351 else
5352 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5353 fi
5354
5355else
5356
5357 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5358 if test "x$LINE" != x ; then
5359 eval "DEFAULT_$LINE"
5360 else
5361 no_cache=1
5362 fi
5363
5364 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5365
5366fi;
5367
5368 eval "$ac_cv_use_fontmap"
5369 if test "$no_cache" != 1; then
5370 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5371 fi
5372
5373 if test "$wxUSE_FONTMAP" = yes; then
5374 echo "$as_me:$LINENO: result: yes" >&5
5375echo "${ECHO_T}yes" >&6
5376 else
5377 echo "$as_me:$LINENO: result: no" >&5
5378echo "${ECHO_T}no" >&6
5379 fi
5380
5381
5382 enablestring=
5383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5384echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5385 no_cache=0
5386 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5387if test "${enable_fs_inet+set}" = set; then
5388 enableval="$enable_fs_inet"
5389
5390 if test "$enableval" = yes; then
5391 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5392 else
5393 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5394 fi
5395
5396else
5397
5398 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5399 if test "x$LINE" != x ; then
5400 eval "DEFAULT_$LINE"
5401 else
5402 no_cache=1
5403 fi
5404
5405 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5406
5407fi;
5408
5409 eval "$ac_cv_use_fs_inet"
5410 if test "$no_cache" != 1; then
5411 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5412 fi
5413
5414 if test "$wxUSE_FS_INET" = yes; then
5415 echo "$as_me:$LINENO: result: yes" >&5
5416echo "${ECHO_T}yes" >&6
5417 else
5418 echo "$as_me:$LINENO: result: no" >&5
5419echo "${ECHO_T}no" >&6
5420 fi
5421
5422
5423 enablestring=
5424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5425echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5426 no_cache=0
5427 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5428if test "${enable_fs_zip+set}" = set; then
5429 enableval="$enable_fs_zip"
5430
5431 if test "$enableval" = yes; then
5432 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5433 else
5434 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5435 fi
5436
5437else
5438
5439 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5440 if test "x$LINE" != x ; then
5441 eval "DEFAULT_$LINE"
5442 else
5443 no_cache=1
5444 fi
5445
5446 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5447
5448fi;
5449
5450 eval "$ac_cv_use_fs_zip"
5451 if test "$no_cache" != 1; then
5452 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5453 fi
5454
5455 if test "$wxUSE_FS_ZIP" = yes; then
5456 echo "$as_me:$LINENO: result: yes" >&5
5457echo "${ECHO_T}yes" >&6
5458 else
5459 echo "$as_me:$LINENO: result: no" >&5
5460echo "${ECHO_T}no" >&6
5461 fi
5462
5463
5464 enablestring=
5465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5466echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5467 no_cache=0
5468 # Check whether --enable-geometry or --disable-geometry was given.
5469if test "${enable_geometry+set}" = set; then
5470 enableval="$enable_geometry"
5471
5472 if test "$enableval" = yes; then
5473 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5474 else
5475 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5476 fi
5477
5478else
5479
5480 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5481 if test "x$LINE" != x ; then
5482 eval "DEFAULT_$LINE"
5483 else
5484 no_cache=1
5485 fi
5486
5487 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5488
5489fi;
5490
5491 eval "$ac_cv_use_geometry"
5492 if test "$no_cache" != 1; then
5493 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5494 fi
5495
5496 if test "$wxUSE_GEOMETRY" = yes; then
5497 echo "$as_me:$LINENO: result: yes" >&5
5498echo "${ECHO_T}yes" >&6
5499 else
5500 echo "$as_me:$LINENO: result: no" >&5
5501echo "${ECHO_T}no" >&6
5502 fi
5503
5504
5505 enablestring=
5506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5507echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5508 no_cache=0
5509 # Check whether --enable-log or --disable-log was given.
5510if test "${enable_log+set}" = set; then
5511 enableval="$enable_log"
5512
5513 if test "$enableval" = yes; then
5514 ac_cv_use_log='wxUSE_LOG=yes'
5515 else
5516 ac_cv_use_log='wxUSE_LOG=no'
5517 fi
5518
5519else
5520
5521 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5522 if test "x$LINE" != x ; then
5523 eval "DEFAULT_$LINE"
5524 else
5525 no_cache=1
5526 fi
5527
5528 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5529
5530fi;
5531
5532 eval "$ac_cv_use_log"
5533 if test "$no_cache" != 1; then
5534 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5535 fi
5536
5537 if test "$wxUSE_LOG" = yes; then
5538 echo "$as_me:$LINENO: result: yes" >&5
5539echo "${ECHO_T}yes" >&6
5540 else
5541 echo "$as_me:$LINENO: result: no" >&5
5542echo "${ECHO_T}no" >&6
5543 fi
5544
5545
5546 enablestring=
5547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5548echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5549 no_cache=0
5550 # Check whether --enable-longlong or --disable-longlong was given.
5551if test "${enable_longlong+set}" = set; then
5552 enableval="$enable_longlong"
5553
5554 if test "$enableval" = yes; then
5555 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5556 else
5557 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5558 fi
5559
5560else
5561
5562 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5563 if test "x$LINE" != x ; then
5564 eval "DEFAULT_$LINE"
5565 else
5566 no_cache=1
5567 fi
5568
5569 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5570
5571fi;
5572
5573 eval "$ac_cv_use_longlong"
5574 if test "$no_cache" != 1; then
5575 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5576 fi
5577
5578 if test "$wxUSE_LONGLONG" = yes; then
5579 echo "$as_me:$LINENO: result: yes" >&5
5580echo "${ECHO_T}yes" >&6
5581 else
5582 echo "$as_me:$LINENO: result: no" >&5
5583echo "${ECHO_T}no" >&6
5584 fi
5585
5586
5587 enablestring=
5588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5589echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5590 no_cache=0
5591 # Check whether --enable-mimetype or --disable-mimetype was given.
5592if test "${enable_mimetype+set}" = set; then
5593 enableval="$enable_mimetype"
5594
5595 if test "$enableval" = yes; then
5596 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5597 else
5598 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5599 fi
5600
5601else
5602
5603 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5604 if test "x$LINE" != x ; then
5605 eval "DEFAULT_$LINE"
5606 else
5607 no_cache=1
5608 fi
5609
5610 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5611
5612fi;
5613
5614 eval "$ac_cv_use_mimetype"
5615 if test "$no_cache" != 1; then
5616 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5617 fi
5618
5619 if test "$wxUSE_MIMETYPE" = yes; then
5620 echo "$as_me:$LINENO: result: yes" >&5
5621echo "${ECHO_T}yes" >&6
5622 else
5623 echo "$as_me:$LINENO: result: no" >&5
5624echo "${ECHO_T}no" >&6
5625 fi
5626
5627
5628 enablestring=
5629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5630echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5631 no_cache=0
5632 # Check whether --enable-mslu or --disable-mslu was given.
5633if test "${enable_mslu+set}" = set; then
5634 enableval="$enable_mslu"
5635
5636 if test "$enableval" = yes; then
5637 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5638 else
5639 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5640 fi
5641
5642else
5643
5644 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5645 if test "x$LINE" != x ; then
5646 eval "DEFAULT_$LINE"
5647 else
5648 no_cache=1
5649 fi
5650
5651 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5652
5653fi;
5654
5655 eval "$ac_cv_use_mslu"
5656 if test "$no_cache" != 1; then
5657 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5658 fi
5659
5660 if test "$wxUSE_UNICODE_MSLU" = yes; then
5661 echo "$as_me:$LINENO: result: yes" >&5
5662echo "${ECHO_T}yes" >&6
5663 else
5664 echo "$as_me:$LINENO: result: no" >&5
5665echo "${ECHO_T}no" >&6
5666 fi
5667
5668
5669 enablestring=
5670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5671echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5672 no_cache=0
5673 # Check whether --enable-snglinst or --disable-snglinst was given.
5674if test "${enable_snglinst+set}" = set; then
5675 enableval="$enable_snglinst"
5676
5677 if test "$enableval" = yes; then
5678 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5679 else
5680 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5681 fi
5682
5683else
5684
5685 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5686 if test "x$LINE" != x ; then
5687 eval "DEFAULT_$LINE"
5688 else
5689 no_cache=1
5690 fi
5691
5692 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5693
5694fi;
5695
5696 eval "$ac_cv_use_snglinst"
5697 if test "$no_cache" != 1; then
5698 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5699 fi
5700
5701 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5702 echo "$as_me:$LINENO: result: yes" >&5
5703echo "${ECHO_T}yes" >&6
5704 else
5705 echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6
5707 fi
5708
5709
5710 enablestring=
07158944
VZ
5711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5712echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5713 no_cache=0
07158944
VZ
5714 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5715if test "${enable_std_iostreams+set}" = set; then
5716 enableval="$enable_std_iostreams"
a848cd7e
SC
5717
5718 if test "$enableval" = yes; then
07158944 5719 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5720 else
07158944 5721 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5722 fi
5723
5724else
5725
07158944 5726 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5727 if test "x$LINE" != x ; then
5728 eval "DEFAULT_$LINE"
5729 else
5730 no_cache=1
5731 fi
5732
07158944 5733 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5734
5735fi;
5736
07158944 5737 eval "$ac_cv_use_std_iostreams"
a848cd7e 5738 if test "$no_cache" != 1; then
07158944 5739 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5740 fi
5741
07158944 5742 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5743 echo "$as_me:$LINENO: result: yes" >&5
5744echo "${ECHO_T}yes" >&6
5745 else
5746 echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6
5748 fi
5749
5750
59746b65
MW
5751 enablestring=
5752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5753echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5754 no_cache=0
5755 # Check whether --enable-std_string or --disable-std_string was given.
5756if test "${enable_std_string+set}" = set; then
5757 enableval="$enable_std_string"
5758
5759 if test "$enableval" = yes; then
5760 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5761 else
5762 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5763 fi
5764
5765else
5766
5767 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5768 if test "x$LINE" != x ; then
5769 eval "DEFAULT_$LINE"
5770 else
5771 no_cache=1
5772 fi
5773
5774 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5775
5776fi;
5777
5778 eval "$ac_cv_use_std_string"
5779 if test "$no_cache" != 1; then
5780 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5781 fi
5782
5783 if test "$wxUSE_STD_STRING" = yes; then
5784 echo "$as_me:$LINENO: result: yes" >&5
5785echo "${ECHO_T}yes" >&6
5786 else
5787 echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6
5789 fi
5790
5791
a848cd7e 5792 enablestring=
07158944
VZ
5793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5794echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5795 no_cache=0
07158944
VZ
5796 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5797if test "${enable_stdpaths+set}" = set; then
5798 enableval="$enable_stdpaths"
a848cd7e
SC
5799
5800 if test "$enableval" = yes; then
07158944 5801 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5802 else
07158944 5803 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5804 fi
5805
5806else
5807
07158944 5808 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5809 if test "x$LINE" != x ; then
5810 eval "DEFAULT_$LINE"
5811 else
5812 no_cache=1
5813 fi
5814
07158944 5815 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5816
5817fi;
5818
07158944 5819 eval "$ac_cv_use_stdpaths"
a848cd7e 5820 if test "$no_cache" != 1; then
07158944 5821 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5822 fi
5823
07158944 5824 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5825 echo "$as_me:$LINENO: result: yes" >&5
5826echo "${ECHO_T}yes" >&6
5827 else
5828 echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6
5830 fi
5831
5832
5833 enablestring=
5834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5835echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5836 no_cache=0
5837 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5838if test "${enable_stopwatch+set}" = set; then
5839 enableval="$enable_stopwatch"
5840
5841 if test "$enableval" = yes; then
5842 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5843 else
5844 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5845 fi
5846
5847else
5848
5849 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5850 if test "x$LINE" != x ; then
5851 eval "DEFAULT_$LINE"
5852 else
5853 no_cache=1
5854 fi
5855
5856 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5857
5858fi;
5859
5860 eval "$ac_cv_use_stopwatch"
5861 if test "$no_cache" != 1; then
5862 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5863 fi
5864
5865 if test "$wxUSE_STOPWATCH" = yes; then
5866 echo "$as_me:$LINENO: result: yes" >&5
5867echo "${ECHO_T}yes" >&6
5868 else
5869 echo "$as_me:$LINENO: result: no" >&5
5870echo "${ECHO_T}no" >&6
5871 fi
5872
5873
07158944
VZ
5874 enablestring=
5875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5876echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5877 no_cache=0
5878 # Check whether --enable-streams or --disable-streams was given.
5879if test "${enable_streams+set}" = set; then
5880 enableval="$enable_streams"
5881
5882 if test "$enableval" = yes; then
5883 ac_cv_use_streams='wxUSE_STREAMS=yes'
5884 else
5885 ac_cv_use_streams='wxUSE_STREAMS=no'
5886 fi
5887
5888else
5889
5890 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5891 if test "x$LINE" != x ; then
5892 eval "DEFAULT_$LINE"
5893 else
5894 no_cache=1
5895 fi
5896
5897 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5898
5899fi;
5900
5901 eval "$ac_cv_use_streams"
5902 if test "$no_cache" != 1; then
5903 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5904 fi
5905
5906 if test "$wxUSE_STREAMS" = yes; then
5907 echo "$as_me:$LINENO: result: yes" >&5
5908echo "${ECHO_T}yes" >&6
5909 else
5910 echo "$as_me:$LINENO: result: no" >&5
5911echo "${ECHO_T}no" >&6
5912 fi
5913
5914
a848cd7e
SC
5915 enablestring=
5916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5917echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5918 no_cache=0
5919 # Check whether --enable-system_options or --disable-system_options was given.
5920if test "${enable_system_options+set}" = set; then
5921 enableval="$enable_system_options"
5922
5923 if test "$enableval" = yes; then
5924 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5925 else
5926 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5927 fi
5928
5929else
5930
5931 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5932 if test "x$LINE" != x ; then
5933 eval "DEFAULT_$LINE"
5934 else
5935 no_cache=1
5936 fi
5937
5938 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5939
5940fi;
5941
5942 eval "$ac_cv_use_system_options"
5943 if test "$no_cache" != 1; then
5944 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5945 fi
5946
5947 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5948 echo "$as_me:$LINENO: result: yes" >&5
5949echo "${ECHO_T}yes" >&6
5950 else
5951 echo "$as_me:$LINENO: result: no" >&5
5952echo "${ECHO_T}no" >&6
5953 fi
5954
5955
5956 enablestring=
5957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5958echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5959 no_cache=0
5960 # Check whether --enable-textbuf or --disable-textbuf was given.
5961if test "${enable_textbuf+set}" = set; then
5962 enableval="$enable_textbuf"
5963
5964 if test "$enableval" = yes; then
5965 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5966 else
5967 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5968 fi
5969
5970else
5971
5972 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5973 if test "x$LINE" != x ; then
5974 eval "DEFAULT_$LINE"
5975 else
5976 no_cache=1
5977 fi
5978
5979 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5980
5981fi;
5982
5983 eval "$ac_cv_use_textbuf"
5984 if test "$no_cache" != 1; then
5985 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5986 fi
5987
5988 if test "$wxUSE_TEXTBUFFER" = yes; then
5989 echo "$as_me:$LINENO: result: yes" >&5
5990echo "${ECHO_T}yes" >&6
5991 else
5992 echo "$as_me:$LINENO: result: no" >&5
5993echo "${ECHO_T}no" >&6
5994 fi
5995
5996
5997 enablestring=
5998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5999echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6000 no_cache=0
6001 # Check whether --enable-textfile or --disable-textfile was given.
6002if test "${enable_textfile+set}" = set; then
6003 enableval="$enable_textfile"
6004
6005 if test "$enableval" = yes; then
6006 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6007 else
6008 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6009 fi
6010
6011else
6012
6013 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6014 if test "x$LINE" != x ; then
6015 eval "DEFAULT_$LINE"
6016 else
6017 no_cache=1
6018 fi
6019
6020 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6021
6022fi;
6023
6024 eval "$ac_cv_use_textfile"
6025 if test "$no_cache" != 1; then
6026 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6027 fi
6028
6029 if test "$wxUSE_TEXTFILE" = yes; then
6030 echo "$as_me:$LINENO: result: yes" >&5
6031echo "${ECHO_T}yes" >&6
6032 else
6033 echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6
6035 fi
6036
6037
6038 enablestring=
6039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6040echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6041 no_cache=0
6042 # Check whether --enable-timer or --disable-timer was given.
6043if test "${enable_timer+set}" = set; then
6044 enableval="$enable_timer"
6045
6046 if test "$enableval" = yes; then
6047 ac_cv_use_timer='wxUSE_TIMER=yes'
6048 else
6049 ac_cv_use_timer='wxUSE_TIMER=no'
6050 fi
6051
6052else
6053
6054 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6055 if test "x$LINE" != x ; then
6056 eval "DEFAULT_$LINE"
6057 else
6058 no_cache=1
6059 fi
6060
6061 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6062
6063fi;
6064
6065 eval "$ac_cv_use_timer"
6066 if test "$no_cache" != 1; then
6067 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6068 fi
6069
6070 if test "$wxUSE_TIMER" = yes; then
6071 echo "$as_me:$LINENO: result: yes" >&5
6072echo "${ECHO_T}yes" >&6
6073 else
6074 echo "$as_me:$LINENO: result: no" >&5
6075echo "${ECHO_T}no" >&6
6076 fi
6077
6078
6079 enablestring=
6080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6081echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6082 no_cache=0
6083 # Check whether --enable-unicode or --disable-unicode was given.
6084if test "${enable_unicode+set}" = set; then
6085 enableval="$enable_unicode"
6086
6087 if test "$enableval" = yes; then
6088 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6089 else
6090 ac_cv_use_unicode='wxUSE_UNICODE=no'
6091 fi
6092
6093else
6094
6095 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6096 if test "x$LINE" != x ; then
6097 eval "DEFAULT_$LINE"
6098 else
6099 no_cache=1
6100 fi
6101
6102 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6103
6104fi;
6105
6106 eval "$ac_cv_use_unicode"
6107 if test "$no_cache" != 1; then
6108 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6109 fi
6110
6111 if test "$wxUSE_UNICODE" = yes; then
6112 echo "$as_me:$LINENO: result: yes" >&5
6113echo "${ECHO_T}yes" >&6
6114 else
6115 echo "$as_me:$LINENO: result: no" >&5
6116echo "${ECHO_T}no" >&6
6117 fi
6118
6119
6120 enablestring=
6121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6122echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6123 no_cache=0
6124 # Check whether --enable-sound or --disable-sound was given.
6125if test "${enable_sound+set}" = set; then
6126 enableval="$enable_sound"
6127
6128 if test "$enableval" = yes; then
6129 ac_cv_use_sound='wxUSE_SOUND=yes'
6130 else
6131 ac_cv_use_sound='wxUSE_SOUND=no'
6132 fi
6133
6134else
6135
6136 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6137 if test "x$LINE" != x ; then
6138 eval "DEFAULT_$LINE"
6139 else
6140 no_cache=1
6141 fi
6142
6143 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6144
6145fi;
6146
6147 eval "$ac_cv_use_sound"
6148 if test "$no_cache" != 1; then
6149 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6150 fi
6151
6152 if test "$wxUSE_SOUND" = yes; then
6153 echo "$as_me:$LINENO: result: yes" >&5
6154echo "${ECHO_T}yes" >&6
6155 else
6156 echo "$as_me:$LINENO: result: no" >&5
6157echo "${ECHO_T}no" >&6
6158 fi
6159
6160
3b57de8b
RL
6161 enablestring=
6162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6163echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6164 no_cache=0
6165 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6166if test "${enable_mediactrl+set}" = set; then
6167 enableval="$enable_mediactrl"
6168
6169 if test "$enableval" = yes; then
6170 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6171 else
6172 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6173 fi
6174
6175else
6176
6177 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6178 if test "x$LINE" != x ; then
6179 eval "DEFAULT_$LINE"
6180 else
6181 no_cache=1
6182 fi
6183
6184 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6185
6186fi;
6187
6188 eval "$ac_cv_use_mediactrl"
6189 if test "$no_cache" != 1; then
6190 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6191 fi
6192
6193 if test "$wxUSE_MEDIACTRL" = yes; then
6194 echo "$as_me:$LINENO: result: yes" >&5
6195echo "${ECHO_T}yes" >&6
6196 else
6197 echo "$as_me:$LINENO: result: no" >&5
6198echo "${ECHO_T}no" >&6
6199 fi
6200
6201
a848cd7e
SC
6202 enablestring=
6203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6204echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6205 no_cache=0
6206 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6207if test "${enable_wxprintfv+set}" = set; then
6208 enableval="$enable_wxprintfv"
6209
6210 if test "$enableval" = yes; then
6211 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6212 else
6213 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6214 fi
6215
6216else
6217
6218 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6219 if test "x$LINE" != x ; then
6220 eval "DEFAULT_$LINE"
6221 else
6222 no_cache=1
6223 fi
6224
6225 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6226
6227fi;
6228
6229 eval "$ac_cv_use_wxprintfv"
6230 if test "$no_cache" != 1; then
6231 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6232 fi
6233
6234 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6235 echo "$as_me:$LINENO: result: yes" >&5
6236echo "${ECHO_T}yes" >&6
6237 else
6238 echo "$as_me:$LINENO: result: no" >&5
6239echo "${ECHO_T}no" >&6
6240 fi
6241
6242
6243 enablestring=
6244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6245echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6246 no_cache=0
6247 # Check whether --enable-zipstream or --disable-zipstream was given.
6248if test "${enable_zipstream+set}" = set; then
6249 enableval="$enable_zipstream"
6250
6251 if test "$enableval" = yes; then
6252 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6253 else
6254 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6255 fi
6256
6257else
6258
6259 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6260 if test "x$LINE" != x ; then
6261 eval "DEFAULT_$LINE"
6262 else
6263 no_cache=1
6264 fi
6265
6266 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6267
6268fi;
6269
6270 eval "$ac_cv_use_zipstream"
6271 if test "$no_cache" != 1; then
6272 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6273 fi
6274
6275 if test "$wxUSE_ZIPSTREAM" = yes; then
6276 echo "$as_me:$LINENO: result: yes" >&5
6277echo "${ECHO_T}yes" >&6
6278 else
6279 echo "$as_me:$LINENO: result: no" >&5
6280echo "${ECHO_T}no" >&6
6281 fi
6282
6283
a848cd7e
SC
6284
6285 enablestring=
6286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6287echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6288 no_cache=0
6289 # Check whether --enable-url or --disable-url was given.
6290if test "${enable_url+set}" = set; then
6291 enableval="$enable_url"
6292
6293 if test "$enableval" = yes; then
6294 ac_cv_use_url='wxUSE_URL=yes'
6295 else
6296 ac_cv_use_url='wxUSE_URL=no'
6297 fi
6298
6299else
6300
6301 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6302 if test "x$LINE" != x ; then
6303 eval "DEFAULT_$LINE"
6304 else
6305 no_cache=1
6306 fi
6307
6308 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6309
6310fi;
6311
6312 eval "$ac_cv_use_url"
6313 if test "$no_cache" != 1; then
6314 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6315 fi
6316
6317 if test "$wxUSE_URL" = yes; then
6318 echo "$as_me:$LINENO: result: yes" >&5
6319echo "${ECHO_T}yes" >&6
6320 else
6321 echo "$as_me:$LINENO: result: no" >&5
6322echo "${ECHO_T}no" >&6
6323 fi
6324
6325
6326 enablestring=
6327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6328echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6329 no_cache=0
6330 # Check whether --enable-protocol or --disable-protocol was given.
6331if test "${enable_protocol+set}" = set; then
6332 enableval="$enable_protocol"
6333
6334 if test "$enableval" = yes; then
6335 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6336 else
6337 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6338 fi
6339
6340else
6341
6342 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6343 if test "x$LINE" != x ; then
6344 eval "DEFAULT_$LINE"
6345 else
6346 no_cache=1
6347 fi
6348
6349 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6350
6351fi;
6352
6353 eval "$ac_cv_use_protocol"
6354 if test "$no_cache" != 1; then
6355 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6356 fi
6357
6358 if test "$wxUSE_PROTOCOL" = yes; then
6359 echo "$as_me:$LINENO: result: yes" >&5
6360echo "${ECHO_T}yes" >&6
6361 else
6362 echo "$as_me:$LINENO: result: no" >&5
6363echo "${ECHO_T}no" >&6
6364 fi
6365
6366
6367 enablestring=
6368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6369echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6370 no_cache=0
6371 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6372if test "${enable_protocol_http+set}" = set; then
6373 enableval="$enable_protocol_http"
6374
6375 if test "$enableval" = yes; then
6376 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6377 else
6378 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6379 fi
6380
6381else
6382
6383 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6384 if test "x$LINE" != x ; then
6385 eval "DEFAULT_$LINE"
6386 else
6387 no_cache=1
6388 fi
6389
6390 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6391
6392fi;
6393
6394 eval "$ac_cv_use_protocol_http"
6395 if test "$no_cache" != 1; then
6396 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6397 fi
6398
6399 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6400 echo "$as_me:$LINENO: result: yes" >&5
6401echo "${ECHO_T}yes" >&6
6402 else
6403 echo "$as_me:$LINENO: result: no" >&5
6404echo "${ECHO_T}no" >&6
6405 fi
6406
6407
6408 enablestring=
6409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6410echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6411 no_cache=0
6412 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6413if test "${enable_protocol_ftp+set}" = set; then
6414 enableval="$enable_protocol_ftp"
6415
6416 if test "$enableval" = yes; then
6417 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6418 else
6419 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6420 fi
6421
6422else
6423
6424 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6425 if test "x$LINE" != x ; then
6426 eval "DEFAULT_$LINE"
6427 else
6428 no_cache=1
6429 fi
6430
6431 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6432
6433fi;
6434
6435 eval "$ac_cv_use_protocol_ftp"
6436 if test "$no_cache" != 1; then
6437 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6438 fi
6439
6440 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6441 echo "$as_me:$LINENO: result: yes" >&5
6442echo "${ECHO_T}yes" >&6
6443 else
6444 echo "$as_me:$LINENO: result: no" >&5
6445echo "${ECHO_T}no" >&6
6446 fi
6447
6448
6449 enablestring=
6450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6451echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6452 no_cache=0
6453 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6454if test "${enable_protocol_file+set}" = set; then
6455 enableval="$enable_protocol_file"
6456
6457 if test "$enableval" = yes; then
6458 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6459 else
6460 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6461 fi
6462
6463else
6464
6465 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6466 if test "x$LINE" != x ; then
6467 eval "DEFAULT_$LINE"
6468 else
6469 no_cache=1
6470 fi
6471
6472 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6473
6474fi;
6475
6476 eval "$ac_cv_use_protocol_file"
6477 if test "$no_cache" != 1; then
6478 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6479 fi
6480
6481 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6482 echo "$as_me:$LINENO: result: yes" >&5
6483echo "${ECHO_T}yes" >&6
6484 else
6485 echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6
6487 fi
6488
6489
6490
6491
6492
6493 enablestring=
6494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6495echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6496 no_cache=0
6497 # Check whether --enable-threads or --disable-threads was given.
6498if test "${enable_threads+set}" = set; then
6499 enableval="$enable_threads"
6500
6501 if test "$enableval" = yes; then
6502 ac_cv_use_threads='wxUSE_THREADS=yes'
6503 else
6504 ac_cv_use_threads='wxUSE_THREADS=no'
6505 fi
6506
6507else
6508
6509 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6510 if test "x$LINE" != x ; then
6511 eval "DEFAULT_$LINE"
6512 else
6513 no_cache=1
6514 fi
6515
6516 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6517
6518fi;
6519
6520 eval "$ac_cv_use_threads"
6521 if test "$no_cache" != 1; then
6522 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6523 fi
6524
6525 if test "$wxUSE_THREADS" = yes; then
6526 echo "$as_me:$LINENO: result: yes" >&5
6527echo "${ECHO_T}yes" >&6
6528 else
6529 echo "$as_me:$LINENO: result: no" >&5
6530echo "${ECHO_T}no" >&6
6531 fi
6532
6533
6534if test "$wxUSE_GUI" = "yes"; then
6535
6536
6537
6538 enablestring=
6539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6540echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6541 no_cache=0
6542 # Check whether --enable-docview or --disable-docview was given.
6543if test "${enable_docview+set}" = set; then
6544 enableval="$enable_docview"
6545
6546 if test "$enableval" = yes; then
6547 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6548 else
6549 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6550 fi
6551
6552else
6553
6554 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6555 if test "x$LINE" != x ; then
6556 eval "DEFAULT_$LINE"
6557 else
6558 no_cache=1
6559 fi
6560
6561 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6562
6563fi;
6564
6565 eval "$ac_cv_use_docview"
6566 if test "$no_cache" != 1; then
6567 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6568 fi
6569
6570 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6571 echo "$as_me:$LINENO: result: yes" >&5
6572echo "${ECHO_T}yes" >&6
6573 else
6574 echo "$as_me:$LINENO: result: no" >&5
6575echo "${ECHO_T}no" >&6
6576 fi
6577
6578
6579 enablestring=
6580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6581echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6582 no_cache=0
6583 # Check whether --enable-help or --disable-help was given.
6584if test "${enable_help+set}" = set; then
6585 enableval="$enable_help"
6586
6587 if test "$enableval" = yes; then
6588 ac_cv_use_help='wxUSE_HELP=yes'
6589 else
6590 ac_cv_use_help='wxUSE_HELP=no'
6591 fi
6592
6593else
6594
6595 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6596 if test "x$LINE" != x ; then
6597 eval "DEFAULT_$LINE"
6598 else
6599 no_cache=1
6600 fi
6601
6602 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6603
6604fi;
6605
6606 eval "$ac_cv_use_help"
6607 if test "$no_cache" != 1; then
6608 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6609 fi
6610
6611 if test "$wxUSE_HELP" = yes; then
6612 echo "$as_me:$LINENO: result: yes" >&5
6613echo "${ECHO_T}yes" >&6
6614 else
6615 echo "$as_me:$LINENO: result: no" >&5
6616echo "${ECHO_T}no" >&6
6617 fi
6618
6619
6620 enablestring=
6621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6622echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6623 no_cache=0
6624 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6625if test "${enable_mshtmlhelp+set}" = set; then
6626 enableval="$enable_mshtmlhelp"
6627
6628 if test "$enableval" = yes; then
6629 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6630 else
6631 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6632 fi
6633
6634else
6635
6636 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6637 if test "x$LINE" != x ; then
6638 eval "DEFAULT_$LINE"
6639 else
6640 no_cache=1
6641 fi
6642
6643 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6644
6645fi;
6646
6647 eval "$ac_cv_use_mshtmlhelp"
6648 if test "$no_cache" != 1; then
6649 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6650 fi
6651
6652 if test "$wxUSE_MS_HTML_HELP" = yes; then
6653 echo "$as_me:$LINENO: result: yes" >&5
6654echo "${ECHO_T}yes" >&6
6655 else
6656 echo "$as_me:$LINENO: result: no" >&5
6657echo "${ECHO_T}no" >&6
6658 fi
6659
6660
6661 enablestring=
6662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6663echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6664 no_cache=0
6665 # Check whether --enable-html or --disable-html was given.
6666if test "${enable_html+set}" = set; then
6667 enableval="$enable_html"
6668
6669 if test "$enableval" = yes; then
6670 ac_cv_use_html='wxUSE_HTML=yes'
6671 else
6672 ac_cv_use_html='wxUSE_HTML=no'
6673 fi
6674
6675else
6676
6677 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6678 if test "x$LINE" != x ; then
6679 eval "DEFAULT_$LINE"
6680 else
6681 no_cache=1
6682 fi
6683
6684 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6685
6686fi;
6687
6688 eval "$ac_cv_use_html"
6689 if test "$no_cache" != 1; then
6690 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6691 fi
6692
6693 if test "$wxUSE_HTML" = yes; then
6694 echo "$as_me:$LINENO: result: yes" >&5
6695echo "${ECHO_T}yes" >&6
6696 else
6697 echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6
6699 fi
6700
6701
6702 enablestring=
6703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6704echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6705 no_cache=0
6706 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6707if test "${enable_htmlhelp+set}" = set; then
6708 enableval="$enable_htmlhelp"
6709
6710 if test "$enableval" = yes; then
6711 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6712 else
6713 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6714 fi
6715
6716else
6717
6718 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6719 if test "x$LINE" != x ; then
6720 eval "DEFAULT_$LINE"
6721 else
6722 no_cache=1
6723 fi
6724
6725 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6726
6727fi;
6728
6729 eval "$ac_cv_use_htmlhelp"
6730 if test "$no_cache" != 1; then
6731 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6732 fi
6733
6734 if test "$wxUSE_WXHTML_HELP" = yes; then
6735 echo "$as_me:$LINENO: result: yes" >&5
6736echo "${ECHO_T}yes" >&6
6737 else
6738 echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6
6740 fi
6741
6742
9a8f0513
VS
6743 enablestring=
6744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6745echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6746 no_cache=0
6747 # Check whether --enable-xrc or --disable-xrc was given.
6748if test "${enable_xrc+set}" = set; then
6749 enableval="$enable_xrc"
6750
6751 if test "$enableval" = yes; then
6752 ac_cv_use_xrc='wxUSE_XRC=yes'
6753 else
6754 ac_cv_use_xrc='wxUSE_XRC=no'
6755 fi
6756
6757else
6758
6759 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6760 if test "x$LINE" != x ; then
6761 eval "DEFAULT_$LINE"
6762 else
6763 no_cache=1
6764 fi
6765
6766 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6767
6768fi;
6769
6770 eval "$ac_cv_use_xrc"
6771 if test "$no_cache" != 1; then
6772 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6773 fi
6774
6775 if test "$wxUSE_XRC" = yes; then
6776 echo "$as_me:$LINENO: result: yes" >&5
6777echo "${ECHO_T}yes" >&6
6778 else
6779 echo "$as_me:$LINENO: result: no" >&5
6780echo "${ECHO_T}no" >&6
6781 fi
6782
6783
a848cd7e
SC
6784 enablestring=
6785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6786echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6787 no_cache=0
6788 # Check whether --enable-constraints or --disable-constraints was given.
6789if test "${enable_constraints+set}" = set; then
6790 enableval="$enable_constraints"
6791
6792 if test "$enableval" = yes; then
6793 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6794 else
6795 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6796 fi
6797
6798else
6799
6800 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6801 if test "x$LINE" != x ; then
6802 eval "DEFAULT_$LINE"
6803 else
6804 no_cache=1
6805 fi
6806
6807 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6808
6809fi;
6810
6811 eval "$ac_cv_use_constraints"
6812 if test "$no_cache" != 1; then
6813 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6814 fi
6815
6816 if test "$wxUSE_CONSTRAINTS" = yes; then
6817 echo "$as_me:$LINENO: result: yes" >&5
6818echo "${ECHO_T}yes" >&6
6819 else
6820 echo "$as_me:$LINENO: result: no" >&5
6821echo "${ECHO_T}no" >&6
6822 fi
6823
6824
6825 enablestring=
6826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6827echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6828 no_cache=0
6829 # Check whether --enable-printarch or --disable-printarch was given.
6830if test "${enable_printarch+set}" = set; then
6831 enableval="$enable_printarch"
6832
6833 if test "$enableval" = yes; then
6834 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6835 else
6836 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6837 fi
6838
6839else
6840
6841 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6842 if test "x$LINE" != x ; then
6843 eval "DEFAULT_$LINE"
6844 else
6845 no_cache=1
6846 fi
6847
6848 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6849
6850fi;
6851
6852 eval "$ac_cv_use_printarch"
6853 if test "$no_cache" != 1; then
6854 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6855 fi
6856
6857 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6858 echo "$as_me:$LINENO: result: yes" >&5
6859echo "${ECHO_T}yes" >&6
6860 else
6861 echo "$as_me:$LINENO: result: no" >&5
6862echo "${ECHO_T}no" >&6
6863 fi
6864
6865
6866 enablestring=
6867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6868echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6869 no_cache=0
6870 # Check whether --enable-mdi or --disable-mdi was given.
6871if test "${enable_mdi+set}" = set; then
6872 enableval="$enable_mdi"
6873
6874 if test "$enableval" = yes; then
8a7b1113 6875 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6876 else
8a7b1113 6877 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6878 fi
6879
6880else
6881
8a7b1113 6882 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6883 if test "x$LINE" != x ; then
6884 eval "DEFAULT_$LINE"
6885 else
6886 no_cache=1
6887 fi
6888
8a7b1113 6889 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6890
6891fi;
6892
6893 eval "$ac_cv_use_mdi"
6894 if test "$no_cache" != 1; then
6895 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6896 fi
6897
8a7b1113
VZ
6898 if test "$wxUSE_MDI" = yes; then
6899 echo "$as_me:$LINENO: result: yes" >&5
6900echo "${ECHO_T}yes" >&6
6901 else
6902 echo "$as_me:$LINENO: result: no" >&5
6903echo "${ECHO_T}no" >&6
6904 fi
6905
6906
6907 enablestring=
6908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6909echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6910 no_cache=0
6911 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6912if test "${enable_mdidoc+set}" = set; then
6913 enableval="$enable_mdidoc"
6914
6915 if test "$enableval" = yes; then
6916 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6917 else
6918 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6919 fi
6920
6921else
6922
6923 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6924 if test "x$LINE" != x ; then
6925 eval "DEFAULT_$LINE"
6926 else
6927 no_cache=1
6928 fi
6929
6930 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6931
6932fi;
6933
6934 eval "$ac_cv_use_mdidoc"
6935 if test "$no_cache" != 1; then
6936 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6937 fi
6938
a848cd7e
SC
6939 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6940 echo "$as_me:$LINENO: result: yes" >&5
6941echo "${ECHO_T}yes" >&6
6942 else
6943 echo "$as_me:$LINENO: result: no" >&5
6944echo "${ECHO_T}no" >&6
6945 fi
6946
6947
6948 enablestring=
6949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6950echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6951 no_cache=0
6952 # Check whether --enable-loggui or --disable-loggui was given.
6953if test "${enable_loggui+set}" = set; then
6954 enableval="$enable_loggui"
6955
6956 if test "$enableval" = yes; then
6957 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6958 else
6959 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6960 fi
6961
6962else
6963
6964 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6965 if test "x$LINE" != x ; then
6966 eval "DEFAULT_$LINE"
6967 else
6968 no_cache=1
6969 fi
6970
6971 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6972
6973fi;
6974
6975 eval "$ac_cv_use_loggui"
6976 if test "$no_cache" != 1; then
6977 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6978 fi
6979
6980 if test "$wxUSE_LOGGUI" = yes; then
6981 echo "$as_me:$LINENO: result: yes" >&5
6982echo "${ECHO_T}yes" >&6
6983 else
6984 echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6
6986 fi
6987
6988
6989 enablestring=
6990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6991echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6992 no_cache=0
6993 # Check whether --enable-logwin or --disable-logwin was given.
6994if test "${enable_logwin+set}" = set; then
6995 enableval="$enable_logwin"
6996
6997 if test "$enableval" = yes; then
6998 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6999 else
7000 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7001 fi
7002
7003else
7004
7005 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7006 if test "x$LINE" != x ; then
7007 eval "DEFAULT_$LINE"
7008 else
7009 no_cache=1
7010 fi
7011
7012 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7013
7014fi;
7015
7016 eval "$ac_cv_use_logwin"
7017 if test "$no_cache" != 1; then
7018 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7019 fi
7020
7021 if test "$wxUSE_LOGWINDOW" = yes; then
7022 echo "$as_me:$LINENO: result: yes" >&5
7023echo "${ECHO_T}yes" >&6
7024 else
7025 echo "$as_me:$LINENO: result: no" >&5
7026echo "${ECHO_T}no" >&6
7027 fi
7028
7029
7030 enablestring=
7031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7032echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7033 no_cache=0
7034 # Check whether --enable-logdialog or --disable-logdialog was given.
7035if test "${enable_logdialog+set}" = set; then
7036 enableval="$enable_logdialog"
7037
7038 if test "$enableval" = yes; then
7039 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7040 else
7041 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7042 fi
7043
7044else
7045
7046 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7047 if test "x$LINE" != x ; then
7048 eval "DEFAULT_$LINE"
7049 else
7050 no_cache=1
7051 fi
7052
7053 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7054
7055fi;
7056
7057 eval "$ac_cv_use_logdialog"
7058 if test "$no_cache" != 1; then
7059 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7060 fi
7061
7062 if test "$wxUSE_LOGDIALOG" = yes; then
7063 echo "$as_me:$LINENO: result: yes" >&5
7064echo "${ECHO_T}yes" >&6
7065 else
7066 echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6
7068 fi
7069
7070
646b6ec1
VS
7071 enablestring=
7072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7073echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7074 no_cache=0
7075 # Check whether --enable-webkit or --disable-webkit was given.
7076if test "${enable_webkit+set}" = set; then
7077 enableval="$enable_webkit"
7078
7079 if test "$enableval" = yes; then
7080 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7081 else
7082 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7083 fi
7084
7085else
7086
7087 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7088 if test "x$LINE" != x ; then
7089 eval "DEFAULT_$LINE"
7090 else
7091 no_cache=1
7092 fi
7093
7094 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7095
7096fi;
7097
7098 eval "$ac_cv_use_webkit"
7099 if test "$no_cache" != 1; then
7100 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7101 fi
7102
7103 if test "$wxUSE_WEBKIT" = yes; then
7104 echo "$as_me:$LINENO: result: yes" >&5
7105echo "${ECHO_T}yes" >&6
7106 else
7107 echo "$as_me:$LINENO: result: no" >&5
7108echo "${ECHO_T}no" >&6
7109 fi
7110
7111
91dea314
MW
7112 enablestring=
7113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7114echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7115 no_cache=0
7116 # Check whether --enable-html or --disable-html was given.
7117if test "${enable_html+set}" = set; then
7118 enableval="$enable_html"
7119
7120 if test "$enableval" = yes; then
7121 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7122 else
7123 ac_cv_use_html='wxUSE_RICHTEXT=no'
7124 fi
7125
7126else
7127
7128 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7129 if test "x$LINE" != x ; then
7130 eval "DEFAULT_$LINE"
7131 else
7132 no_cache=1
7133 fi
7134
7135 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7136
7137fi;
7138
7139 eval "$ac_cv_use_html"
7140 if test "$no_cache" != 1; then
7141 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7142 fi
7143
7144 if test "$wxUSE_RICHTEXT" = yes; then
7145 echo "$as_me:$LINENO: result: yes" >&5
7146echo "${ECHO_T}yes" >&6
7147 else
7148 echo "$as_me:$LINENO: result: no" >&5
7149echo "${ECHO_T}no" >&6
7150 fi
7151
7152
a848cd7e
SC
7153
7154 enablestring=
7155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7156echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7157 no_cache=0
7158 # Check whether --enable-postscript or --disable-postscript was given.
7159if test "${enable_postscript+set}" = set; then
7160 enableval="$enable_postscript"
7161
7162 if test "$enableval" = yes; then
7163 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7164 else
7165 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7166 fi
7167
7168else
7169
7170 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7171 if test "x$LINE" != x ; then
7172 eval "DEFAULT_$LINE"
7173 else
7174 no_cache=1
7175 fi
7176
7177 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7178
7179fi;
7180
7181 eval "$ac_cv_use_postscript"
7182 if test "$no_cache" != 1; then
7183 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7184 fi
7185
7186 if test "$wxUSE_POSTSCRIPT" = yes; then
7187 echo "$as_me:$LINENO: result: yes" >&5
7188echo "${ECHO_T}yes" >&6
7189 else
7190 echo "$as_me:$LINENO: result: no" >&5
7191echo "${ECHO_T}no" >&6
7192 fi
7193
7194
7195
7196
7197
7198 enablestring=
7199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7200echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7201 no_cache=0
7202 # Check whether --enable-prologio or --disable-prologio was given.
7203if test "${enable_prologio+set}" = set; then
7204 enableval="$enable_prologio"
7205
7206 if test "$enableval" = yes; then
7207 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7208 else
7209 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7210 fi
7211
7212else
7213
7214 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7215 if test "x$LINE" != x ; then
7216 eval "DEFAULT_$LINE"
7217 else
7218 no_cache=1
7219 fi
7220
7221 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7222
7223fi;
7224
7225 eval "$ac_cv_use_prologio"
7226 if test "$no_cache" != 1; then
7227 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7228 fi
7229
7230 if test "$wxUSE_PROLOGIO" = yes; then
7231 echo "$as_me:$LINENO: result: yes" >&5
7232echo "${ECHO_T}yes" >&6
7233 else
7234 echo "$as_me:$LINENO: result: no" >&5
7235echo "${ECHO_T}no" >&6
7236 fi
7237
7238
7239 enablestring=
7240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7241echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7242 no_cache=0
7243 # Check whether --enable-resources or --disable-resources was given.
7244if test "${enable_resources+set}" = set; then
7245 enableval="$enable_resources"
7246
7247 if test "$enableval" = yes; then
7248 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7249 else
7250 ac_cv_use_resources='wxUSE_RESOURCES=no'
7251 fi
7252
7253else
7254
7255 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7256 if test "x$LINE" != x ; then
7257 eval "DEFAULT_$LINE"
7258 else
7259 no_cache=1
7260 fi
7261
7262 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7263
7264fi;
7265
7266 eval "$ac_cv_use_resources"
7267 if test "$no_cache" != 1; then
7268 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7269 fi
7270
7271 if test "$wxUSE_RESOURCES" = yes; then
7272 echo "$as_me:$LINENO: result: yes" >&5
7273echo "${ECHO_T}yes" >&6
7274 else
7275 echo "$as_me:$LINENO: result: no" >&5
7276echo "${ECHO_T}no" >&6
7277 fi
7278
7279
7280
7281
7282 enablestring=
7283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7284echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7285 no_cache=0
7286 # Check whether --enable-clipboard or --disable-clipboard was given.
7287if test "${enable_clipboard+set}" = set; then
7288 enableval="$enable_clipboard"
7289
7290 if test "$enableval" = yes; then
7291 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7292 else
7293 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7294 fi
7295
7296else
7297
7298 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7299 if test "x$LINE" != x ; then
7300 eval "DEFAULT_$LINE"
7301 else
7302 no_cache=1
7303 fi
7304
7305 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7306
7307fi;
7308
7309 eval "$ac_cv_use_clipboard"
7310 if test "$no_cache" != 1; then
7311 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7312 fi
7313
7314 if test "$wxUSE_CLIPBOARD" = yes; then
7315 echo "$as_me:$LINENO: result: yes" >&5
7316echo "${ECHO_T}yes" >&6
7317 else
7318 echo "$as_me:$LINENO: result: no" >&5
7319echo "${ECHO_T}no" >&6
7320 fi
7321
7322
7323 enablestring=
7324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7325echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7326 no_cache=0
7327 # Check whether --enable-dnd or --disable-dnd was given.
7328if test "${enable_dnd+set}" = set; then
7329 enableval="$enable_dnd"
7330
7331 if test "$enableval" = yes; then
7332 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7333 else
7334 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7335 fi
7336
7337else
7338
7339 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7340 if test "x$LINE" != x ; then
7341 eval "DEFAULT_$LINE"
7342 else
7343 no_cache=1
7344 fi
7345
7346 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7347
7348fi;
7349
7350 eval "$ac_cv_use_dnd"
7351 if test "$no_cache" != 1; then
7352 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7353 fi
7354
7355 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7356 echo "$as_me:$LINENO: result: yes" >&5
7357echo "${ECHO_T}yes" >&6
7358 else
7359 echo "$as_me:$LINENO: result: no" >&5
7360echo "${ECHO_T}no" >&6
7361 fi
7362
7363
7364 enablestring=
7365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7366echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7367 no_cache=0
7368 # Check whether --enable-metafile or --disable-metafile was given.
7369if test "${enable_metafile+set}" = set; then
7370 enableval="$enable_metafile"
7371
7372 if test "$enableval" = yes; then
7373 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7374 else
7375 ac_cv_use_metafile='wxUSE_METAFILE=no'
7376 fi
7377
7378else
7379
7380 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7381 if test "x$LINE" != x ; then
7382 eval "DEFAULT_$LINE"
7383 else
7384 no_cache=1
7385 fi
7386
7387 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7388
7389fi;
7390
7391 eval "$ac_cv_use_metafile"
7392 if test "$no_cache" != 1; then
7393 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7394 fi
7395
7396 if test "$wxUSE_METAFILE" = yes; then
7397 echo "$as_me:$LINENO: result: yes" >&5
7398echo "${ECHO_T}yes" >&6
7399 else
7400 echo "$as_me:$LINENO: result: no" >&5
7401echo "${ECHO_T}no" >&6
7402 fi
7403
7404
7405
7406
7407
7408 enablestring=
7409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7410echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7411 no_cache=0
7412 # Check whether --enable-controls or --disable-controls was given.
7413if test "${enable_controls+set}" = set; then
7414 enableval="$enable_controls"
7415
7416 if test "$enableval" = yes; then
7417 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7418 else
7419 ac_cv_use_controls='wxUSE_CONTROLS=no'
7420 fi
7421
7422else
7423
7424 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7425 if test "x$LINE" != x ; then
7426 eval "DEFAULT_$LINE"
7427 else
7428 no_cache=1
7429 fi
7430
7431 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7432
7433fi;
7434
7435 eval "$ac_cv_use_controls"
7436 if test "$no_cache" != 1; then
7437 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7438 fi
7439
7440 if test "$wxUSE_CONTROLS" = yes; then
7441 echo "$as_me:$LINENO: result: yes" >&5
7442echo "${ECHO_T}yes" >&6
7443 else
7444 echo "$as_me:$LINENO: result: no" >&5
7445echo "${ECHO_T}no" >&6
7446 fi
7447
7448
7449if test "$wxUSE_CONTROLS" = "yes"; then
7450 DEFAULT_wxUSE_ACCEL=yes
7451 DEFAULT_wxUSE_BMPBUTTON=yes
7452 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7453 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7454 DEFAULT_wxUSE_CARET=yes
7455 DEFAULT_wxUSE_COMBOBOX=yes
7456 DEFAULT_wxUSE_CHECKBOX=yes
7457 DEFAULT_wxUSE_CHECKLISTBOX=yes
7458 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7459 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7460 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7461 DEFAULT_wxUSE_GAUGE=yes
7462 DEFAULT_wxUSE_GRID=yes
20e34ecc 7463 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7464 DEFAULT_wxUSE_IMAGLIST=yes
7465 DEFAULT_wxUSE_LISTBOOK=yes
7466 DEFAULT_wxUSE_LISTBOX=yes
7467 DEFAULT_wxUSE_LISTCTRL=yes
7468 DEFAULT_wxUSE_NOTEBOOK=yes
7469 DEFAULT_wxUSE_RADIOBOX=yes
7470 DEFAULT_wxUSE_RADIOBTN=yes
7471 DEFAULT_wxUSE_SASH=yes
7472 DEFAULT_wxUSE_SCROLLBAR=yes
7473 DEFAULT_wxUSE_SLIDER=yes
7474 DEFAULT_wxUSE_SPINBTN=yes
7475 DEFAULT_wxUSE_SPINCTRL=yes
7476 DEFAULT_wxUSE_SPLITTER=yes
7477 DEFAULT_wxUSE_STATBMP=yes
7478 DEFAULT_wxUSE_STATBOX=yes
7479 DEFAULT_wxUSE_STATLINE=yes
7480 DEFAULT_wxUSE_STATUSBAR=yes
7481 DEFAULT_wxUSE_TAB_DIALOG=yes
7482 DEFAULT_wxUSE_TOGGLEBTN=yes
7483 DEFAULT_wxUSE_TOOLBAR=yes
7484 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7485 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7486 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7487 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7488 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7489 DEFAULT_wxUSE_TREECTRL=yes
7490 DEFAULT_wxUSE_POPUPWIN=yes
7491 DEFAULT_wxUSE_TIPWINDOW=yes
7492elif test "$wxUSE_CONTROLS" = "no"; then
7493 DEFAULT_wxUSE_ACCEL=no
7494 DEFAULT_wxUSE_BMPBUTTON=no
7495 DEFAULT_wxUSE_BUTTON=no
7496 DEFAULT_wxUSE_CALCTRL=no
7497 DEFAULT_wxUSE_CARET=no
7498 DEFAULT_wxUSE_COMBOBOX=no
7499 DEFAULT_wxUSE_CHECKBOX=no
7500 DEFAULT_wxUSE_CHECKLISTBOX=no
7501 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7502 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7503 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7504 DEFAULT_wxUSE_GAUGE=no
7505 DEFAULT_wxUSE_GRID=no
20e34ecc 7506 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7507 DEFAULT_wxUSE_IMAGLIST=no
7508 DEFAULT_wxUSE_LISTBOOK=no
7509 DEFAULT_wxUSE_LISTBOX=no
7510 DEFAULT_wxUSE_LISTCTRL=no
7511 DEFAULT_wxUSE_NOTEBOOK=no
7512 DEFAULT_wxUSE_RADIOBOX=no
7513 DEFAULT_wxUSE_RADIOBTN=no
7514 DEFAULT_wxUSE_SASH=no
7515 DEFAULT_wxUSE_SCROLLBAR=no
7516 DEFAULT_wxUSE_SLIDER=no
7517 DEFAULT_wxUSE_SPINBTN=no
7518 DEFAULT_wxUSE_SPINCTRL=no
7519 DEFAULT_wxUSE_SPLITTER=no
7520 DEFAULT_wxUSE_STATBMP=no
7521 DEFAULT_wxUSE_STATBOX=no
7522 DEFAULT_wxUSE_STATLINE=no
7523 DEFAULT_wxUSE_STATUSBAR=no
7524 DEFAULT_wxUSE_TAB_DIALOG=no
7525 DEFAULT_wxUSE_TOGGLEBTN=no
7526 DEFAULT_wxUSE_TOOLBAR=no
7527 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7528 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7529 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7530 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7531 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7532 DEFAULT_wxUSE_TREECTRL=no
7533 DEFAULT_wxUSE_POPUPWIN=no
7534 DEFAULT_wxUSE_TIPWINDOW=no
7535fi
7536
a848cd7e
SC
7537
7538 enablestring=
7539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7540echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7541 no_cache=0
7542 # Check whether --enable-accel or --disable-accel was given.
7543if test "${enable_accel+set}" = set; then
7544 enableval="$enable_accel"
7545
7546 if test "$enableval" = yes; then
7547 ac_cv_use_accel='wxUSE_ACCEL=yes'
7548 else
7549 ac_cv_use_accel='wxUSE_ACCEL=no'
7550 fi
7551
7552else
7553
7554 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7555 if test "x$LINE" != x ; then
7556 eval "DEFAULT_$LINE"
7557 else
7558 no_cache=1
7559 fi
7560
7561 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7562
7563fi;
7564
7565 eval "$ac_cv_use_accel"
7566 if test "$no_cache" != 1; then
7567 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7568 fi
7569
7570 if test "$wxUSE_ACCEL" = yes; then
7571 echo "$as_me:$LINENO: result: yes" >&5
7572echo "${ECHO_T}yes" >&6
7573 else
7574 echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6
7576 fi
7577
7578
7579 enablestring=
7580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7581echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7582 no_cache=0
7583 # Check whether --enable-button or --disable-button was given.
7584if test "${enable_button+set}" = set; then
7585 enableval="$enable_button"
7586
7587 if test "$enableval" = yes; then
7588 ac_cv_use_button='wxUSE_BUTTON=yes'
7589 else
7590 ac_cv_use_button='wxUSE_BUTTON=no'
7591 fi
7592
7593else
7594
7595 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7596 if test "x$LINE" != x ; then
7597 eval "DEFAULT_$LINE"
7598 else
7599 no_cache=1
7600 fi
7601
7602 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7603
7604fi;
7605
7606 eval "$ac_cv_use_button"
7607 if test "$no_cache" != 1; then
7608 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7609 fi
7610
7611 if test "$wxUSE_BUTTON" = yes; then
7612 echo "$as_me:$LINENO: result: yes" >&5
7613echo "${ECHO_T}yes" >&6
7614 else
7615 echo "$as_me:$LINENO: result: no" >&5
7616echo "${ECHO_T}no" >&6
7617 fi
7618
7619
7620 enablestring=
7621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7622echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7623 no_cache=0
7624 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7625if test "${enable_bmpbutton+set}" = set; then
7626 enableval="$enable_bmpbutton"
7627
7628 if test "$enableval" = yes; then
7629 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7630 else
7631 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7632 fi
7633
7634else
7635
7636 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7637 if test "x$LINE" != x ; then
7638 eval "DEFAULT_$LINE"
7639 else
7640 no_cache=1
7641 fi
7642
7643 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7644
7645fi;
7646
7647 eval "$ac_cv_use_bmpbutton"
7648 if test "$no_cache" != 1; then
7649 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7650 fi
7651
7652 if test "$wxUSE_BMPBUTTON" = yes; then
7653 echo "$as_me:$LINENO: result: yes" >&5
7654echo "${ECHO_T}yes" >&6
7655 else
7656 echo "$as_me:$LINENO: result: no" >&5
7657echo "${ECHO_T}no" >&6
7658 fi
7659
7660
7661 enablestring=
7662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7663echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7664 no_cache=0
7665 # Check whether --enable-calendar or --disable-calendar was given.
7666if test "${enable_calendar+set}" = set; then
7667 enableval="$enable_calendar"
7668
7669 if test "$enableval" = yes; then
7670 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7671 else
7672 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7673 fi
7674
7675else
7676
7677 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7678 if test "x$LINE" != x ; then
7679 eval "DEFAULT_$LINE"
7680 else
7681 no_cache=1
7682 fi
7683
7684 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7685
7686fi;
7687
7688 eval "$ac_cv_use_calendar"
7689 if test "$no_cache" != 1; then
7690 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7691 fi
7692
7693 if test "$wxUSE_CALCTRL" = yes; then
7694 echo "$as_me:$LINENO: result: yes" >&5
7695echo "${ECHO_T}yes" >&6
7696 else
7697 echo "$as_me:$LINENO: result: no" >&5
7698echo "${ECHO_T}no" >&6
7699 fi
7700
7701
7702 enablestring=
7703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7704echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7705 no_cache=0
7706 # Check whether --enable-caret or --disable-caret was given.
7707if test "${enable_caret+set}" = set; then
7708 enableval="$enable_caret"
7709
7710 if test "$enableval" = yes; then
7711 ac_cv_use_caret='wxUSE_CARET=yes'
7712 else
7713 ac_cv_use_caret='wxUSE_CARET=no'
7714 fi
7715
7716else
7717
7718 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7719 if test "x$LINE" != x ; then
7720 eval "DEFAULT_$LINE"
7721 else
7722 no_cache=1
7723 fi
7724
7725 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7726
7727fi;
7728
7729 eval "$ac_cv_use_caret"
7730 if test "$no_cache" != 1; then
7731 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7732 fi
7733
7734 if test "$wxUSE_CARET" = yes; then
7735 echo "$as_me:$LINENO: result: yes" >&5
7736echo "${ECHO_T}yes" >&6
7737 else
7738 echo "$as_me:$LINENO: result: no" >&5
7739echo "${ECHO_T}no" >&6
7740 fi
7741
7742
7743 enablestring=
7744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7745echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7746 no_cache=0
7747 # Check whether --enable-checkbox or --disable-checkbox was given.
7748if test "${enable_checkbox+set}" = set; then
7749 enableval="$enable_checkbox"
7750
7751 if test "$enableval" = yes; then
7752 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7753 else
7754 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7755 fi
7756
7757else
7758
7759 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7760 if test "x$LINE" != x ; then
7761 eval "DEFAULT_$LINE"
7762 else
7763 no_cache=1
7764 fi
7765
7766 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7767
7768fi;
7769
7770 eval "$ac_cv_use_checkbox"
7771 if test "$no_cache" != 1; then
7772 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7773 fi
7774
7775 if test "$wxUSE_CHECKBOX" = yes; then
7776 echo "$as_me:$LINENO: result: yes" >&5
7777echo "${ECHO_T}yes" >&6
7778 else
7779 echo "$as_me:$LINENO: result: no" >&5
7780echo "${ECHO_T}no" >&6
7781 fi
7782
7783
7784 enablestring=
7785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7786echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7787 no_cache=0
7788 # Check whether --enable-checklst or --disable-checklst was given.
7789if test "${enable_checklst+set}" = set; then
7790 enableval="$enable_checklst"
7791
7792 if test "$enableval" = yes; then
7793 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7794 else
7795 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7796 fi
7797
7798else
7799
7800 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7801 if test "x$LINE" != x ; then
7802 eval "DEFAULT_$LINE"
7803 else
7804 no_cache=1
7805 fi
7806
7807 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7808
7809fi;
7810
7811 eval "$ac_cv_use_checklst"
7812 if test "$no_cache" != 1; then
7813 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7814 fi
7815
7816 if test "$wxUSE_CHECKLST" = yes; then
7817 echo "$as_me:$LINENO: result: yes" >&5
7818echo "${ECHO_T}yes" >&6
7819 else
7820 echo "$as_me:$LINENO: result: no" >&5
7821echo "${ECHO_T}no" >&6
7822 fi
7823
7824
7825 enablestring=
7826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7827echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7828 no_cache=0
7829 # Check whether --enable-choice or --disable-choice was given.
7830if test "${enable_choice+set}" = set; then
7831 enableval="$enable_choice"
7832
7833 if test "$enableval" = yes; then
7834 ac_cv_use_choice='wxUSE_CHOICE=yes'
7835 else
7836 ac_cv_use_choice='wxUSE_CHOICE=no'
7837 fi
7838
7839else
7840
7841 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7842 if test "x$LINE" != x ; then
7843 eval "DEFAULT_$LINE"
7844 else
7845 no_cache=1
7846 fi
7847
7848 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7849
7850fi;
7851
7852 eval "$ac_cv_use_choice"
7853 if test "$no_cache" != 1; then
7854 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7855 fi
7856
7857 if test "$wxUSE_CHOICE" = yes; then
7858 echo "$as_me:$LINENO: result: yes" >&5
7859echo "${ECHO_T}yes" >&6
7860 else
7861 echo "$as_me:$LINENO: result: no" >&5
7862echo "${ECHO_T}no" >&6
7863 fi
7864
7865
92bbdbcd
WS
7866 enablestring=
7867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7868echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7869 no_cache=0
7870 # Check whether --enable-choicebook or --disable-choicebook was given.
7871if test "${enable_choicebook+set}" = set; then
7872 enableval="$enable_choicebook"
7873
7874 if test "$enableval" = yes; then
7875 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7876 else
7877 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7878 fi
7879
7880else
7881
7882 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7883 if test "x$LINE" != x ; then
7884 eval "DEFAULT_$LINE"
7885 else
7886 no_cache=1
7887 fi
7888
7889 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7890
7891fi;
7892
7893 eval "$ac_cv_use_choicebook"
7894 if test "$no_cache" != 1; then
7895 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7896 fi
7897
7898 if test "$wxUSE_CHOICEBOOK" = yes; then
7899 echo "$as_me:$LINENO: result: yes" >&5
7900echo "${ECHO_T}yes" >&6
7901 else
7902 echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
7904 fi
7905
7906
a848cd7e
SC
7907 enablestring=
7908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7909echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7910 no_cache=0
7911 # Check whether --enable-combobox or --disable-combobox was given.
7912if test "${enable_combobox+set}" = set; then
7913 enableval="$enable_combobox"
7914
7915 if test "$enableval" = yes; then
7916 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7917 else
7918 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7919 fi
7920
7921else
7922
7923 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7924 if test "x$LINE" != x ; then
7925 eval "DEFAULT_$LINE"
7926 else
7927 no_cache=1
7928 fi
7929
7930 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7931
7932fi;
7933
7934 eval "$ac_cv_use_combobox"
7935 if test "$no_cache" != 1; then
7936 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7937 fi
7938
7939 if test "$wxUSE_COMBOBOX" = yes; then
7940 echo "$as_me:$LINENO: result: yes" >&5
7941echo "${ECHO_T}yes" >&6
7942 else
7943 echo "$as_me:$LINENO: result: no" >&5
7944echo "${ECHO_T}no" >&6
7945 fi
7946
7947
da98e9be
VZ
7948 enablestring=
7949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7950echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7951 no_cache=0
7952 # Check whether --enable-datepick or --disable-datepick was given.
7953if test "${enable_datepick+set}" = set; then
7954 enableval="$enable_datepick"
7955
7956 if test "$enableval" = yes; then
7957 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7958 else
7959 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7960 fi
7961
7962else
7963
7964 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7965 if test "x$LINE" != x ; then
7966 eval "DEFAULT_$LINE"
7967 else
7968 no_cache=1
7969 fi
7970
7971 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7972
7973fi;
7974
7975 eval "$ac_cv_use_datepick"
7976 if test "$no_cache" != 1; then
7977 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7978 fi
7979
7980 if test "$wxUSE_DATEPICKCTRL" = yes; then
7981 echo "$as_me:$LINENO: result: yes" >&5
7982echo "${ECHO_T}yes" >&6
7983 else
7984 echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6
7986 fi
7987
7988
a848cd7e
SC
7989 enablestring=
7990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7991echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7992 no_cache=0
7993 # Check whether --enable-display or --disable-display was given.
7994if test "${enable_display+set}" = set; then
7995 enableval="$enable_display"
7996
7997 if test "$enableval" = yes; then
7998 ac_cv_use_display='wxUSE_DISPLAY=yes'
7999 else
8000 ac_cv_use_display='wxUSE_DISPLAY=no'
8001 fi
8002
8003else
8004
8005 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8006 if test "x$LINE" != x ; then
8007 eval "DEFAULT_$LINE"
8008 else
8009 no_cache=1
8010 fi
8011
8012 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8013
8014fi;
8015
8016 eval "$ac_cv_use_display"
8017 if test "$no_cache" != 1; then
8018 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8019 fi
8020
8021 if test "$wxUSE_DISPLAY" = yes; then
8022 echo "$as_me:$LINENO: result: yes" >&5
8023echo "${ECHO_T}yes" >&6
8024 else
8025 echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6
8027 fi
8028
8029
8030 enablestring=
8031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8032echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8033 no_cache=0
8034 # Check whether --enable-gauge or --disable-gauge was given.
8035if test "${enable_gauge+set}" = set; then
8036 enableval="$enable_gauge"
8037
8038 if test "$enableval" = yes; then
8039 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8040 else
8041 ac_cv_use_gauge='wxUSE_GAUGE=no'
8042 fi
8043
8044else
8045
8046 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8047 if test "x$LINE" != x ; then
8048 eval "DEFAULT_$LINE"
8049 else
8050 no_cache=1
8051 fi
8052
8053 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8054
8055fi;
8056
8057 eval "$ac_cv_use_gauge"
8058 if test "$no_cache" != 1; then
8059 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8060 fi
8061
8062 if test "$wxUSE_GAUGE" = yes; then
8063 echo "$as_me:$LINENO: result: yes" >&5
8064echo "${ECHO_T}yes" >&6
8065 else
8066 echo "$as_me:$LINENO: result: no" >&5
8067echo "${ECHO_T}no" >&6
8068 fi
8069
8070
8071 enablestring=
8072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8073echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8074 no_cache=0
8075 # Check whether --enable-grid or --disable-grid was given.
8076if test "${enable_grid+set}" = set; then
8077 enableval="$enable_grid"
8078
8079 if test "$enableval" = yes; then
8080 ac_cv_use_grid='wxUSE_GRID=yes'
8081 else
8082 ac_cv_use_grid='wxUSE_GRID=no'
8083 fi
8084
8085else
8086
8087 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8088 if test "x$LINE" != x ; then
8089 eval "DEFAULT_$LINE"
8090 else
8091 no_cache=1
8092 fi
8093
8094 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8095
8096fi;
8097
8098 eval "$ac_cv_use_grid"
8099 if test "$no_cache" != 1; then
8100 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8101 fi
8102
8103 if test "$wxUSE_GRID" = yes; then
8104 echo "$as_me:$LINENO: result: yes" >&5
8105echo "${ECHO_T}yes" >&6
8106 else
8107 echo "$as_me:$LINENO: result: no" >&5
8108echo "${ECHO_T}no" >&6
8109 fi
8110
8111
20e34ecc
RR
8112 enablestring=
8113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8114echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8115 no_cache=0
8116 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8117if test "${enable_dataviewctrl+set}" = set; then
8118 enableval="$enable_dataviewctrl"
8119
8120 if test "$enableval" = yes; then
8121 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8122 else
8123 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8124 fi
8125
8126else
8127
8128 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8129 if test "x$LINE" != x ; then
8130 eval "DEFAULT_$LINE"
8131 else
8132 no_cache=1
8133 fi
8134
8135 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8136
8137fi;
8138
8139 eval "$ac_cv_use_dataviewctrl"
8140 if test "$no_cache" != 1; then
8141 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8142 fi
8143
8144 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8145 echo "$as_me:$LINENO: result: yes" >&5
8146echo "${ECHO_T}yes" >&6
8147 else
8148 echo "$as_me:$LINENO: result: no" >&5
8149echo "${ECHO_T}no" >&6
8150 fi
8151
8152
a848cd7e
SC
8153 enablestring=
8154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8155echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8156 no_cache=0
8157 # Check whether --enable-imaglist or --disable-imaglist was given.
8158if test "${enable_imaglist+set}" = set; then
8159 enableval="$enable_imaglist"
8160
8161 if test "$enableval" = yes; then
8162 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8163 else
8164 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8165 fi
8166
8167else
8168
8169 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8170 if test "x$LINE" != x ; then
8171 eval "DEFAULT_$LINE"
8172 else
8173 no_cache=1
8174 fi
8175
8176 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8177
8178fi;
8179
8180 eval "$ac_cv_use_imaglist"
8181 if test "$no_cache" != 1; then
8182 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8183 fi
8184
8185 if test "$wxUSE_IMAGLIST" = yes; then
8186 echo "$as_me:$LINENO: result: yes" >&5
8187echo "${ECHO_T}yes" >&6
8188 else
8189 echo "$as_me:$LINENO: result: no" >&5
8190echo "${ECHO_T}no" >&6
8191 fi
8192
8193
8194 enablestring=
8195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8196echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8197 no_cache=0
8198 # Check whether --enable-listbook or --disable-listbook was given.
8199if test "${enable_listbook+set}" = set; then
8200 enableval="$enable_listbook"
8201
8202 if test "$enableval" = yes; then
8203 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8204 else
8205 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8206 fi
8207
8208else
8209
8210 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8211 if test "x$LINE" != x ; then
8212 eval "DEFAULT_$LINE"
8213 else
8214 no_cache=1
8215 fi
8216
8217 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8218
8219fi;
8220
8221 eval "$ac_cv_use_listbook"
8222 if test "$no_cache" != 1; then
8223 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8224 fi
8225
8226 if test "$wxUSE_LISTBOOK" = yes; then
8227 echo "$as_me:$LINENO: result: yes" >&5
8228echo "${ECHO_T}yes" >&6
8229 else
8230 echo "$as_me:$LINENO: result: no" >&5
8231echo "${ECHO_T}no" >&6
8232 fi
8233
8234
8235 enablestring=
8236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8237echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8238 no_cache=0
8239 # Check whether --enable-listbox or --disable-listbox was given.
8240if test "${enable_listbox+set}" = set; then
8241 enableval="$enable_listbox"
8242
8243 if test "$enableval" = yes; then
8244 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8245 else
8246 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8247 fi
8248
8249else
8250
8251 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8252 if test "x$LINE" != x ; then
8253 eval "DEFAULT_$LINE"
8254 else
8255 no_cache=1
8256 fi
8257
8258 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8259
8260fi;
8261
8262 eval "$ac_cv_use_listbox"
8263 if test "$no_cache" != 1; then
8264 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8265 fi
8266
8267 if test "$wxUSE_LISTBOX" = yes; then
8268 echo "$as_me:$LINENO: result: yes" >&5
8269echo "${ECHO_T}yes" >&6
8270 else
8271 echo "$as_me:$LINENO: result: no" >&5
8272echo "${ECHO_T}no" >&6
8273 fi
8274
8275
8276 enablestring=
8277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8278echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8279 no_cache=0
8280 # Check whether --enable-listctrl or --disable-listctrl was given.
8281if test "${enable_listctrl+set}" = set; then
8282 enableval="$enable_listctrl"
8283
8284 if test "$enableval" = yes; then
8285 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8286 else
8287 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8288 fi
8289
8290else
8291
8292 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8293 if test "x$LINE" != x ; then
8294 eval "DEFAULT_$LINE"
8295 else
8296 no_cache=1
8297 fi
8298
8299 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8300
8301fi;
8302
8303 eval "$ac_cv_use_listctrl"
8304 if test "$no_cache" != 1; then
8305 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8306 fi
8307
8308 if test "$wxUSE_LISTCTRL" = yes; then
8309 echo "$as_me:$LINENO: result: yes" >&5
8310echo "${ECHO_T}yes" >&6
8311 else
8312 echo "$as_me:$LINENO: result: no" >&5
8313echo "${ECHO_T}no" >&6
8314 fi
8315
8316
8317 enablestring=
8318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8319echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8320 no_cache=0
8321 # Check whether --enable-notebook or --disable-notebook was given.
8322if test "${enable_notebook+set}" = set; then
8323 enableval="$enable_notebook"
8324
8325 if test "$enableval" = yes; then
8326 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8327 else
8328 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8329 fi
8330
8331else
8332
8333 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8334 if test "x$LINE" != x ; then
8335 eval "DEFAULT_$LINE"
8336 else
8337 no_cache=1
8338 fi
8339
8340 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8341
8342fi;
8343
8344 eval "$ac_cv_use_notebook"
8345 if test "$no_cache" != 1; then
8346 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8347 fi
8348
8349 if test "$wxUSE_NOTEBOOK" = yes; then
8350 echo "$as_me:$LINENO: result: yes" >&5
8351echo "${ECHO_T}yes" >&6
8352 else
8353 echo "$as_me:$LINENO: result: no" >&5
8354echo "${ECHO_T}no" >&6
8355 fi
8356
8357
8358 enablestring=
8359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8360echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8361 no_cache=0
8362 # Check whether --enable-radiobox or --disable-radiobox was given.
8363if test "${enable_radiobox+set}" = set; then
8364 enableval="$enable_radiobox"
8365
8366 if test "$enableval" = yes; then
8367 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8368 else
8369 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8370 fi
8371
8372else
8373
8374 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8375 if test "x$LINE" != x ; then
8376 eval "DEFAULT_$LINE"
8377 else
8378 no_cache=1
8379 fi
8380
8381 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8382
8383fi;
8384
8385 eval "$ac_cv_use_radiobox"
8386 if test "$no_cache" != 1; then
8387 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8388 fi
8389
8390 if test "$wxUSE_RADIOBOX" = yes; then
8391 echo "$as_me:$LINENO: result: yes" >&5
8392echo "${ECHO_T}yes" >&6
8393 else
8394 echo "$as_me:$LINENO: result: no" >&5
8395echo "${ECHO_T}no" >&6
8396 fi
8397
8398
8399 enablestring=
8400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8401echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8402 no_cache=0
8403 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8404if test "${enable_radiobtn+set}" = set; then
8405 enableval="$enable_radiobtn"
8406
8407 if test "$enableval" = yes; then
8408 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8409 else
8410 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8411 fi
8412
8413else
8414
8415 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8416 if test "x$LINE" != x ; then
8417 eval "DEFAULT_$LINE"
8418 else
8419 no_cache=1
8420 fi
8421
8422 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8423
8424fi;
8425
8426 eval "$ac_cv_use_radiobtn"
8427 if test "$no_cache" != 1; then
8428 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8429 fi
8430
8431 if test "$wxUSE_RADIOBTN" = yes; then
8432 echo "$as_me:$LINENO: result: yes" >&5
8433echo "${ECHO_T}yes" >&6
8434 else
8435 echo "$as_me:$LINENO: result: no" >&5
8436echo "${ECHO_T}no" >&6
8437 fi
8438
8439
8440 enablestring=
8441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8442echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8443 no_cache=0
8444 # Check whether --enable-sash or --disable-sash was given.
8445if test "${enable_sash+set}" = set; then
8446 enableval="$enable_sash"
8447
8448 if test "$enableval" = yes; then
8449 ac_cv_use_sash='wxUSE_SASH=yes'
8450 else
8451 ac_cv_use_sash='wxUSE_SASH=no'
8452 fi
8453
8454else
8455
8456 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8457 if test "x$LINE" != x ; then
8458 eval "DEFAULT_$LINE"
8459 else
8460 no_cache=1
8461 fi
8462
8463 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8464
8465fi;
8466
8467 eval "$ac_cv_use_sash"
8468 if test "$no_cache" != 1; then
8469 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8470 fi
8471
8472 if test "$wxUSE_SASH" = yes; then
8473 echo "$as_me:$LINENO: result: yes" >&5
8474echo "${ECHO_T}yes" >&6
8475 else
8476 echo "$as_me:$LINENO: result: no" >&5
8477echo "${ECHO_T}no" >&6
8478 fi
8479
8480
8481 enablestring=
8482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8483echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8484 no_cache=0
8485 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8486if test "${enable_scrollbar+set}" = set; then
8487 enableval="$enable_scrollbar"
8488
8489 if test "$enableval" = yes; then
8490 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8491 else
8492 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8493 fi
8494
8495else
8496
8497 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8498 if test "x$LINE" != x ; then
8499 eval "DEFAULT_$LINE"
8500 else
8501 no_cache=1
8502 fi
8503
8504 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8505
8506fi;
8507
8508 eval "$ac_cv_use_scrollbar"
8509 if test "$no_cache" != 1; then
8510 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8511 fi
8512
8513 if test "$wxUSE_SCROLLBAR" = yes; then
8514 echo "$as_me:$LINENO: result: yes" >&5
8515echo "${ECHO_T}yes" >&6
8516 else
8517 echo "$as_me:$LINENO: result: no" >&5
8518echo "${ECHO_T}no" >&6
8519 fi
8520
8521
8522 enablestring=
8523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8524echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8525 no_cache=0
8526 # Check whether --enable-slider or --disable-slider was given.
8527if test "${enable_slider+set}" = set; then
8528 enableval="$enable_slider"
8529
8530 if test "$enableval" = yes; then
8531 ac_cv_use_slider='wxUSE_SLIDER=yes'
8532 else
8533 ac_cv_use_slider='wxUSE_SLIDER=no'
8534 fi
8535
8536else
8537
8538 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8539 if test "x$LINE" != x ; then
8540 eval "DEFAULT_$LINE"
8541 else
8542 no_cache=1
8543 fi
8544
8545 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8546
8547fi;
8548
8549 eval "$ac_cv_use_slider"
8550 if test "$no_cache" != 1; then
8551 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8552 fi
8553
8554 if test "$wxUSE_SLIDER" = yes; then
8555 echo "$as_me:$LINENO: result: yes" >&5
8556echo "${ECHO_T}yes" >&6
8557 else
8558 echo "$as_me:$LINENO: result: no" >&5
8559echo "${ECHO_T}no" >&6
8560 fi
8561
8562
8563 enablestring=
8564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8565echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8566 no_cache=0
8567 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8568if test "${enable_spinbtn+set}" = set; then
8569 enableval="$enable_spinbtn"
8570
8571 if test "$enableval" = yes; then
8572 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8573 else
8574 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8575 fi
8576
8577else
8578
8579 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8580 if test "x$LINE" != x ; then
8581 eval "DEFAULT_$LINE"
8582 else
8583 no_cache=1
8584 fi
8585
8586 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8587
8588fi;
8589
8590 eval "$ac_cv_use_spinbtn"
8591 if test "$no_cache" != 1; then
8592 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8593 fi
8594
8595 if test "$wxUSE_SPINBTN" = yes; then
8596 echo "$as_me:$LINENO: result: yes" >&5
8597echo "${ECHO_T}yes" >&6
8598 else
8599 echo "$as_me:$LINENO: result: no" >&5
8600echo "${ECHO_T}no" >&6
8601 fi
8602
8603
8604 enablestring=
8605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8606echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8607 no_cache=0
8608 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8609if test "${enable_spinctrl+set}" = set; then
8610 enableval="$enable_spinctrl"
8611
8612 if test "$enableval" = yes; then
8613 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8614 else
8615 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8616 fi
8617
8618else
8619
8620 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8621 if test "x$LINE" != x ; then
8622 eval "DEFAULT_$LINE"
8623 else
8624 no_cache=1
8625 fi
8626
8627 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8628
8629fi;
8630
8631 eval "$ac_cv_use_spinctrl"
8632 if test "$no_cache" != 1; then
8633 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8634 fi
8635
8636 if test "$wxUSE_SPINCTRL" = yes; then
8637 echo "$as_me:$LINENO: result: yes" >&5
8638echo "${ECHO_T}yes" >&6
8639 else
8640 echo "$as_me:$LINENO: result: no" >&5
8641echo "${ECHO_T}no" >&6
8642 fi
8643
8644
8645 enablestring=
8646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8647echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8648 no_cache=0
8649 # Check whether --enable-splitter or --disable-splitter was given.
8650if test "${enable_splitter+set}" = set; then
8651 enableval="$enable_splitter"
8652
8653 if test "$enableval" = yes; then
8654 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8655 else
8656 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8657 fi
8658
8659else
8660
8661 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8662 if test "x$LINE" != x ; then
8663 eval "DEFAULT_$LINE"
8664 else
8665 no_cache=1
8666 fi
8667
8668 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8669
8670fi;
8671
8672 eval "$ac_cv_use_splitter"
8673 if test "$no_cache" != 1; then
8674 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8675 fi
8676
8677 if test "$wxUSE_SPLITTER" = yes; then
8678 echo "$as_me:$LINENO: result: yes" >&5
8679echo "${ECHO_T}yes" >&6
8680 else
8681 echo "$as_me:$LINENO: result: no" >&5
8682echo "${ECHO_T}no" >&6
8683 fi
8684
8685
8686 enablestring=
8687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8688echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8689 no_cache=0
8690 # Check whether --enable-statbmp or --disable-statbmp was given.
8691if test "${enable_statbmp+set}" = set; then
8692 enableval="$enable_statbmp"
8693
8694 if test "$enableval" = yes; then
8695 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8696 else
8697 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8698 fi
8699
8700else
8701
8702 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8703 if test "x$LINE" != x ; then
8704 eval "DEFAULT_$LINE"
8705 else
8706 no_cache=1
8707 fi
8708
8709 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8710
8711fi;
8712
8713 eval "$ac_cv_use_statbmp"
8714 if test "$no_cache" != 1; then
8715 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8716 fi
8717
8718 if test "$wxUSE_STATBMP" = yes; then
8719 echo "$as_me:$LINENO: result: yes" >&5
8720echo "${ECHO_T}yes" >&6
8721 else
8722 echo "$as_me:$LINENO: result: no" >&5
8723echo "${ECHO_T}no" >&6
8724 fi
8725
8726
8727 enablestring=
8728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8729echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8730 no_cache=0
8731 # Check whether --enable-statbox or --disable-statbox was given.
8732if test "${enable_statbox+set}" = set; then
8733 enableval="$enable_statbox"
8734
8735 if test "$enableval" = yes; then
8736 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8737 else
8738 ac_cv_use_statbox='wxUSE_STATBOX=no'
8739 fi
8740
8741else
8742
8743 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8744 if test "x$LINE" != x ; then
8745 eval "DEFAULT_$LINE"
8746 else
8747 no_cache=1
8748 fi
8749
8750 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8751
8752fi;
8753
8754 eval "$ac_cv_use_statbox"
8755 if test "$no_cache" != 1; then
8756 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8757 fi
8758
8759 if test "$wxUSE_STATBOX" = yes; then
8760 echo "$as_me:$LINENO: result: yes" >&5
8761echo "${ECHO_T}yes" >&6
8762 else
8763 echo "$as_me:$LINENO: result: no" >&5
8764echo "${ECHO_T}no" >&6
8765 fi
8766
8767
8768 enablestring=
8769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8770echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8771 no_cache=0
8772 # Check whether --enable-statline or --disable-statline was given.
8773if test "${enable_statline+set}" = set; then
8774 enableval="$enable_statline"
8775
8776 if test "$enableval" = yes; then
8777 ac_cv_use_statline='wxUSE_STATLINE=yes'
8778 else
8779 ac_cv_use_statline='wxUSE_STATLINE=no'
8780 fi
8781
8782else
8783
8784 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8785 if test "x$LINE" != x ; then
8786 eval "DEFAULT_$LINE"
8787 else
8788 no_cache=1
8789 fi
8790
8791 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8792
8793fi;
8794
8795 eval "$ac_cv_use_statline"
8796 if test "$no_cache" != 1; then
8797 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8798 fi
8799
8800 if test "$wxUSE_STATLINE" = yes; then
8801 echo "$as_me:$LINENO: result: yes" >&5
8802echo "${ECHO_T}yes" >&6
8803 else
8804 echo "$as_me:$LINENO: result: no" >&5
8805echo "${ECHO_T}no" >&6
8806 fi
8807
8808
8809 enablestring=
8810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8811echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8812 no_cache=0
8813 # Check whether --enable-stattext or --disable-stattext was given.
8814if test "${enable_stattext+set}" = set; then
8815 enableval="$enable_stattext"
8816
8817 if test "$enableval" = yes; then
8818 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8819 else
8820 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8821 fi
8822
8823else
8824
8825 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8826 if test "x$LINE" != x ; then
8827 eval "DEFAULT_$LINE"
8828 else
8829 no_cache=1
8830 fi
8831
8832 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8833
8834fi;
8835
8836 eval "$ac_cv_use_stattext"
8837 if test "$no_cache" != 1; then
8838 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8839 fi
8840
8841 if test "$wxUSE_STATTEXT" = yes; then
8842 echo "$as_me:$LINENO: result: yes" >&5
8843echo "${ECHO_T}yes" >&6
8844 else
8845 echo "$as_me:$LINENO: result: no" >&5
8846echo "${ECHO_T}no" >&6
8847 fi
8848
8849
8850 enablestring=
8851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8852echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8853 no_cache=0
8854 # Check whether --enable-statusbar or --disable-statusbar was given.
8855if test "${enable_statusbar+set}" = set; then
8856 enableval="$enable_statusbar"
8857
8858 if test "$enableval" = yes; then
8859 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8860 else
8861 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8862 fi
8863
8864else
8865
8866 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8867 if test "x$LINE" != x ; then
8868 eval "DEFAULT_$LINE"
8869 else
8870 no_cache=1
8871 fi
8872
8873 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8874
8875fi;
8876
8877 eval "$ac_cv_use_statusbar"
8878 if test "$no_cache" != 1; then
8879 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8880 fi
8881
8882 if test "$wxUSE_STATUSBAR" = yes; then
8883 echo "$as_me:$LINENO: result: yes" >&5
8884echo "${ECHO_T}yes" >&6
8885 else
8886 echo "$as_me:$LINENO: result: no" >&5
8887echo "${ECHO_T}no" >&6
8888 fi
8889
8890
8891 enablestring=
8892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8893echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8894 no_cache=0
8895 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8896if test "${enable_tabdialog+set}" = set; then
8897 enableval="$enable_tabdialog"
8898
8899 if test "$enableval" = yes; then
8900 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8901 else
8902 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8903 fi
8904
8905else
8906
8907 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8908 if test "x$LINE" != x ; then
8909 eval "DEFAULT_$LINE"
8910 else
8911 no_cache=1
8912 fi
8913
8914 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8915
8916fi;
8917
8918 eval "$ac_cv_use_tabdialog"
8919 if test "$no_cache" != 1; then
8920 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8921 fi
8922
8923 if test "$wxUSE_TABDIALOG" = yes; then
8924 echo "$as_me:$LINENO: result: yes" >&5
8925echo "${ECHO_T}yes" >&6
8926 else
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
8929 fi
8930
8931
8932 enablestring=
8933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8934echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8935 no_cache=0
8936 # Check whether --enable-textctrl or --disable-textctrl was given.
8937if test "${enable_textctrl+set}" = set; then
8938 enableval="$enable_textctrl"
8939
8940 if test "$enableval" = yes; then
8941 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8942 else
8943 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8944 fi
8945
8946else
8947
8948 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8949 if test "x$LINE" != x ; then
8950 eval "DEFAULT_$LINE"
8951 else
8952 no_cache=1
8953 fi
8954
8955 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8956
8957fi;
8958
8959 eval "$ac_cv_use_textctrl"
8960 if test "$no_cache" != 1; then
8961 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8962 fi
8963
8964 if test "$wxUSE_TEXTCTRL" = yes; then
8965 echo "$as_me:$LINENO: result: yes" >&5
8966echo "${ECHO_T}yes" >&6
8967 else
8968 echo "$as_me:$LINENO: result: no" >&5
8969echo "${ECHO_T}no" >&6
8970 fi
8971
8972
8973 enablestring=
8974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8975echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8976 no_cache=0
8977 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8978if test "${enable_togglebtn+set}" = set; then
8979 enableval="$enable_togglebtn"
8980
8981 if test "$enableval" = yes; then
8982 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8983 else
8984 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8985 fi
8986
8987else
8988
8989 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8990 if test "x$LINE" != x ; then
8991 eval "DEFAULT_$LINE"
8992 else
8993 no_cache=1
8994 fi
8995
8996 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8997
8998fi;
8999
9000 eval "$ac_cv_use_togglebtn"
9001 if test "$no_cache" != 1; then
9002 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9003 fi
9004
9005 if test "$wxUSE_TOGGLEBTN" = yes; then
9006 echo "$as_me:$LINENO: result: yes" >&5
9007echo "${ECHO_T}yes" >&6
9008 else
9009 echo "$as_me:$LINENO: result: no" >&5
9010echo "${ECHO_T}no" >&6
9011 fi
9012
9013
9014 enablestring=
9015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9016echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9017 no_cache=0
9018 # Check whether --enable-toolbar or --disable-toolbar was given.
9019if test "${enable_toolbar+set}" = set; then
9020 enableval="$enable_toolbar"
9021
9022 if test "$enableval" = yes; then
9023 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9024 else
9025 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9026 fi
9027
9028else
9029
9030 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9031 if test "x$LINE" != x ; then
9032 eval "DEFAULT_$LINE"
9033 else
9034 no_cache=1
9035 fi
9036
9037 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9038
9039fi;
9040
9041 eval "$ac_cv_use_toolbar"
9042 if test "$no_cache" != 1; then
9043 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9044 fi
9045
9046 if test "$wxUSE_TOOLBAR" = yes; then
9047 echo "$as_me:$LINENO: result: yes" >&5
9048echo "${ECHO_T}yes" >&6
9049 else
9050 echo "$as_me:$LINENO: result: no" >&5
9051echo "${ECHO_T}no" >&6
9052 fi
9053
9054
9055 enablestring=
9056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9057echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9058 no_cache=0
9059 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9060if test "${enable_tbarnative+set}" = set; then
9061 enableval="$enable_tbarnative"
9062
9063 if test "$enableval" = yes; then
9064 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9065 else
9066 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9067 fi
9068
9069else
9070
9071 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9072 if test "x$LINE" != x ; then
9073 eval "DEFAULT_$LINE"
9074 else
9075 no_cache=1
9076 fi
9077
9078 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9079
9080fi;
9081
9082 eval "$ac_cv_use_tbarnative"
9083 if test "$no_cache" != 1; then
9084 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9085 fi
9086
9087 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9088 echo "$as_me:$LINENO: result: yes" >&5
9089echo "${ECHO_T}yes" >&6
9090 else
9091 echo "$as_me:$LINENO: result: no" >&5
9092echo "${ECHO_T}no" >&6
9093 fi
9094
9095
9096 enablestring=
9097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9098echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9099 no_cache=0
9100 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9101if test "${enable_tbarsmpl+set}" = set; then
9102 enableval="$enable_tbarsmpl"
9103
9104 if test "$enableval" = yes; then
9105 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9106 else
9107 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9108 fi
9109
9110else
9111
9112 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9113 if test "x$LINE" != x ; then
9114 eval "DEFAULT_$LINE"
9115 else
9116 no_cache=1
9117 fi
9118
9119 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9120
9121fi;
9122
9123 eval "$ac_cv_use_tbarsmpl"
9124 if test "$no_cache" != 1; then
9125 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9126 fi
9127
9128 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9129 echo "$as_me:$LINENO: result: yes" >&5
9130echo "${ECHO_T}yes" >&6
9131 else
9132 echo "$as_me:$LINENO: result: no" >&5
9133echo "${ECHO_T}no" >&6
9134 fi
9135
9136
0093c2fc
VZ
9137 enablestring=
9138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9139echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9140 no_cache=0
9141 # Check whether --enable-treebook or --disable-treebook was given.
9142if test "${enable_treebook+set}" = set; then
9143 enableval="$enable_treebook"
9144
9145 if test "$enableval" = yes; then
9146 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9147 else
9148 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9149 fi
9150
9151else
9152
9153 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9154 if test "x$LINE" != x ; then
9155 eval "DEFAULT_$LINE"
9156 else
9157 no_cache=1
9158 fi
9159
9160 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9161
9162fi;
9163
9164 eval "$ac_cv_use_treebook"
9165 if test "$no_cache" != 1; then
9166 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9167 fi
9168
9169 if test "$wxUSE_TREEBOOK" = yes; then
9170 echo "$as_me:$LINENO: result: yes" >&5
9171echo "${ECHO_T}yes" >&6
9172 else
9173 echo "$as_me:$LINENO: result: no" >&5
9174echo "${ECHO_T}no" >&6
9175 fi
9176
9177
5ec3bc43
JS
9178 enablestring=
9179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9180echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9181 no_cache=0
9182 # Check whether --enable-toolbook or --disable-toolbook was given.
9183if test "${enable_toolbook+set}" = set; then
9184 enableval="$enable_toolbook"
9185
9186 if test "$enableval" = yes; then
9187 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9188 else
9189 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9190 fi
9191
9192else
9193
9194 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9195 if test "x$LINE" != x ; then
9196 eval "DEFAULT_$LINE"
9197 else
9198 no_cache=1
9199 fi
9200
9201 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9202
9203fi;
9204
9205 eval "$ac_cv_use_toolbook"
9206 if test "$no_cache" != 1; then
9207 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9208 fi
9209
9210 if test "$wxUSE_TOOLBOOK" = yes; then
9211 echo "$as_me:$LINENO: result: yes" >&5
9212echo "${ECHO_T}yes" >&6
9213 else
9214 echo "$as_me:$LINENO: result: no" >&5
9215echo "${ECHO_T}no" >&6
9216 fi
9217
9218
a848cd7e
SC
9219 enablestring=
9220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9221echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9222 no_cache=0
9223 # Check whether --enable-treectrl or --disable-treectrl was given.
9224if test "${enable_treectrl+set}" = set; then
9225 enableval="$enable_treectrl"
9226
9227 if test "$enableval" = yes; then
9228 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9229 else
9230 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9231 fi
9232
9233else
9234
9235 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9236 if test "x$LINE" != x ; then
9237 eval "DEFAULT_$LINE"
9238 else
9239 no_cache=1
9240 fi
9241
9242 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9243
9244fi;
9245
9246 eval "$ac_cv_use_treectrl"
9247 if test "$no_cache" != 1; then
9248 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9249 fi
9250
9251 if test "$wxUSE_TREECTRL" = yes; then
9252 echo "$as_me:$LINENO: result: yes" >&5
9253echo "${ECHO_T}yes" >&6
9254 else
9255 echo "$as_me:$LINENO: result: no" >&5
9256echo "${ECHO_T}no" >&6
9257 fi
9258
9259
9260 enablestring=
9261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9262echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9263 no_cache=0
9264 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9265if test "${enable_tipwindow+set}" = set; then
9266 enableval="$enable_tipwindow"
9267
9268 if test "$enableval" = yes; then
9269 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9270 else
9271 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9272 fi
9273
9274else
9275
9276 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9277 if test "x$LINE" != x ; then
9278 eval "DEFAULT_$LINE"
9279 else
9280 no_cache=1
9281 fi
9282
9283 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9284
9285fi;
9286
9287 eval "$ac_cv_use_tipwindow"
9288 if test "$no_cache" != 1; then
9289 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9290 fi
9291
9292 if test "$wxUSE_TIPWINDOW" = yes; then
9293 echo "$as_me:$LINENO: result: yes" >&5
9294echo "${ECHO_T}yes" >&6
9295 else
9296 echo "$as_me:$LINENO: result: no" >&5
9297echo "${ECHO_T}no" >&6
9298 fi
9299
9300
9301 enablestring=
9302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9303echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9304 no_cache=0
9305 # Check whether --enable-popupwin or --disable-popupwin was given.
9306if test "${enable_popupwin+set}" = set; then
9307 enableval="$enable_popupwin"
9308
9309 if test "$enableval" = yes; then
9310 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9311 else
9312 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9313 fi
9314
9315else
9316
9317 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9318 if test "x$LINE" != x ; then
9319 eval "DEFAULT_$LINE"
9320 else
9321 no_cache=1
9322 fi
9323
9324 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9325
9326fi;
9327
9328 eval "$ac_cv_use_popupwin"
9329 if test "$no_cache" != 1; then
9330 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9331 fi
9332
9333 if test "$wxUSE_POPUPWIN" = yes; then
9334 echo "$as_me:$LINENO: result: yes" >&5
9335echo "${ECHO_T}yes" >&6
9336 else
9337 echo "$as_me:$LINENO: result: no" >&5
9338echo "${ECHO_T}no" >&6
9339 fi
9340
9341
9342
9343
9344 enablestring=
9345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9346echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9347 no_cache=0
9348 # Check whether --enable-commondlg or --disable-commondlg was given.
9349if test "${enable_commondlg+set}" = set; then
9350 enableval="$enable_commondlg"
9351
9352 if test "$enableval" = yes; then
9353 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9354 else
9355 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9356 fi
9357
9358else
9359
9360 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9361 if test "x$LINE" != x ; then
9362 eval "DEFAULT_$LINE"
9363 else
9364 no_cache=1
9365 fi
9366
9367 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9368
9369fi;
9370
9371 eval "$ac_cv_use_commondlg"
9372 if test "$no_cache" != 1; then
9373 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9374 fi
9375
9376 if test "$wxUSE_COMMONDLGS" = yes; then
9377 echo "$as_me:$LINENO: result: yes" >&5
9378echo "${ECHO_T}yes" >&6
9379 else
9380 echo "$as_me:$LINENO: result: no" >&5
9381echo "${ECHO_T}no" >&6
9382 fi
9383
9384
9385 enablestring=
9386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9387echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9388 no_cache=0
9389 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9390if test "${enable_choicedlg+set}" = set; then
9391 enableval="$enable_choicedlg"
9392
9393 if test "$enableval" = yes; then
9394 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9395 else
9396 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9397 fi
9398
9399else
9400
9401 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9402 if test "x$LINE" != x ; then
9403 eval "DEFAULT_$LINE"
9404 else
9405 no_cache=1
9406 fi
9407
9408 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9409
9410fi;
9411
9412 eval "$ac_cv_use_choicedlg"
9413 if test "$no_cache" != 1; then
9414 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9415 fi
9416
9417 if test "$wxUSE_CHOICEDLG" = yes; then
9418 echo "$as_me:$LINENO: result: yes" >&5
9419echo "${ECHO_T}yes" >&6
9420 else
9421 echo "$as_me:$LINENO: result: no" >&5
9422echo "${ECHO_T}no" >&6
9423 fi
9424
9425
9426 enablestring=
9427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9428echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9429 no_cache=0
9430 # Check whether --enable-coldlg or --disable-coldlg was given.
9431if test "${enable_coldlg+set}" = set; then
9432 enableval="$enable_coldlg"
9433
9434 if test "$enableval" = yes; then
9435 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9436 else
9437 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9438 fi
9439
9440else
9441
9442 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9443 if test "x$LINE" != x ; then
9444 eval "DEFAULT_$LINE"
9445 else
9446 no_cache=1
9447 fi
9448
9449 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9450
9451fi;
9452
9453 eval "$ac_cv_use_coldlg"
9454 if test "$no_cache" != 1; then
9455 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9456 fi
9457
9458 if test "$wxUSE_COLOURDLG" = yes; then
9459 echo "$as_me:$LINENO: result: yes" >&5
9460echo "${ECHO_T}yes" >&6
9461 else
9462 echo "$as_me:$LINENO: result: no" >&5
9463echo "${ECHO_T}no" >&6
9464 fi
9465
9466
9467 enablestring=
9468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9469echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9470 no_cache=0
9471 # Check whether --enable-filedlg or --disable-filedlg was given.
9472if test "${enable_filedlg+set}" = set; then
9473 enableval="$enable_filedlg"
9474
9475 if test "$enableval" = yes; then
9476 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9477 else
9478 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9479 fi
9480
9481else
9482
9483 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9484 if test "x$LINE" != x ; then
9485 eval "DEFAULT_$LINE"
9486 else
9487 no_cache=1
9488 fi
9489
9490 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9491
9492fi;
9493
9494 eval "$ac_cv_use_filedlg"
9495 if test "$no_cache" != 1; then
9496 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9497 fi
9498
9499 if test "$wxUSE_FILEDLG" = yes; then
9500 echo "$as_me:$LINENO: result: yes" >&5
9501echo "${ECHO_T}yes" >&6
9502 else
9503 echo "$as_me:$LINENO: result: no" >&5
9504echo "${ECHO_T}no" >&6
9505 fi
9506
9507
9508 enablestring=
9509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9510echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9511 no_cache=0
9512 # Check whether --enable-finddlg or --disable-finddlg was given.
9513if test "${enable_finddlg+set}" = set; then
9514 enableval="$enable_finddlg"
9515
9516 if test "$enableval" = yes; then
9517 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9518 else
9519 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9520 fi
9521
9522else
9523
9524 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9525 if test "x$LINE" != x ; then
9526 eval "DEFAULT_$LINE"
9527 else
9528 no_cache=1
9529 fi
9530
9531 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9532
9533fi;
9534
9535 eval "$ac_cv_use_finddlg"
9536 if test "$no_cache" != 1; then
9537 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9538 fi
9539
9540 if test "$wxUSE_FINDREPLDLG" = yes; then
9541 echo "$as_me:$LINENO: result: yes" >&5
9542echo "${ECHO_T}yes" >&6
9543 else
9544 echo "$as_me:$LINENO: result: no" >&5
9545echo "${ECHO_T}no" >&6
9546 fi
9547
9548
9549 enablestring=
9550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9551echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9552 no_cache=0
9553 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9554if test "${enable_fontdlg+set}" = set; then
9555 enableval="$enable_fontdlg"
9556
9557 if test "$enableval" = yes; then
9558 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9559 else
9560 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9561 fi
9562
9563else
9564
9565 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9566 if test "x$LINE" != x ; then
9567 eval "DEFAULT_$LINE"
9568 else
9569 no_cache=1
9570 fi
9571
9572 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9573
9574fi;
9575
9576 eval "$ac_cv_use_fontdlg"
9577 if test "$no_cache" != 1; then
9578 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9579 fi
9580
9581 if test "$wxUSE_FONTDLG" = yes; then
9582 echo "$as_me:$LINENO: result: yes" >&5
9583echo "${ECHO_T}yes" >&6
9584 else
9585 echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
9587 fi
9588
9589
9590 enablestring=
9591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9592echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9593 no_cache=0
9594 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9595if test "${enable_dirdlg+set}" = set; then
9596 enableval="$enable_dirdlg"
9597
9598 if test "$enableval" = yes; then
9599 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9600 else
9601 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9602 fi
9603
9604else
9605
9606 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9607 if test "x$LINE" != x ; then
9608 eval "DEFAULT_$LINE"
9609 else
9610 no_cache=1
9611 fi
9612
9613 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9614
9615fi;
9616
9617 eval "$ac_cv_use_dirdlg"
9618 if test "$no_cache" != 1; then
9619 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9620 fi
9621
9622 if test "$wxUSE_DIRDLG" = yes; then
9623 echo "$as_me:$LINENO: result: yes" >&5
9624echo "${ECHO_T}yes" >&6
9625 else
9626 echo "$as_me:$LINENO: result: no" >&5
9627echo "${ECHO_T}no" >&6
9628 fi
9629
9630
9631 enablestring=
9632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9633echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9634 no_cache=0
9635 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9636if test "${enable_msgdlg+set}" = set; then
9637 enableval="$enable_msgdlg"
9638
9639 if test "$enableval" = yes; then
9640 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9641 else
9642 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9643 fi
9644
9645else
9646
9647 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9648 if test "x$LINE" != x ; then
9649 eval "DEFAULT_$LINE"
9650 else
9651 no_cache=1
9652 fi
9653
9654 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9655
9656fi;
9657
9658 eval "$ac_cv_use_msgdlg"
9659 if test "$no_cache" != 1; then
9660 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9661 fi
9662
9663 if test "$wxUSE_MSGDLG" = yes; then
9664 echo "$as_me:$LINENO: result: yes" >&5
9665echo "${ECHO_T}yes" >&6
9666 else
9667 echo "$as_me:$LINENO: result: no" >&5
9668echo "${ECHO_T}no" >&6
9669 fi
9670
9671
9672 enablestring=
9673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9674echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9675 no_cache=0
9676 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9677if test "${enable_numberdlg+set}" = set; then
9678 enableval="$enable_numberdlg"
9679
9680 if test "$enableval" = yes; then
9681 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9682 else
9683 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9684 fi
9685
9686else
9687
9688 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9689 if test "x$LINE" != x ; then
9690 eval "DEFAULT_$LINE"
9691 else
9692 no_cache=1
9693 fi
9694
9695 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9696
9697fi;
9698
9699 eval "$ac_cv_use_numberdlg"
9700 if test "$no_cache" != 1; then
9701 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9702 fi
9703
9704 if test "$wxUSE_NUMBERDLG" = yes; then
9705 echo "$as_me:$LINENO: result: yes" >&5
9706echo "${ECHO_T}yes" >&6
9707 else
9708 echo "$as_me:$LINENO: result: no" >&5
9709echo "${ECHO_T}no" >&6
9710 fi
9711
9712
9713 enablestring=
9714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9715echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9716 no_cache=0
9717 # Check whether --enable-splash or --disable-splash was given.
9718if test "${enable_splash+set}" = set; then
9719 enableval="$enable_splash"
9720
9721 if test "$enableval" = yes; then
9722 ac_cv_use_splash='wxUSE_SPLASH=yes'
9723 else
9724 ac_cv_use_splash='wxUSE_SPLASH=no'
9725 fi
9726
9727else
9728
9729 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9730 if test "x$LINE" != x ; then
9731 eval "DEFAULT_$LINE"
9732 else
9733 no_cache=1
9734 fi
9735
9736 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9737
9738fi;
9739
9740 eval "$ac_cv_use_splash"
9741 if test "$no_cache" != 1; then
9742 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9743 fi
9744
9745 if test "$wxUSE_SPLASH" = yes; then
9746 echo "$as_me:$LINENO: result: yes" >&5
9747echo "${ECHO_T}yes" >&6
9748 else
9749 echo "$as_me:$LINENO: result: no" >&5
9750echo "${ECHO_T}no" >&6
9751 fi
9752
9753
9754 enablestring=
9755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9756echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9757 no_cache=0
9758 # Check whether --enable-textdlg or --disable-textdlg was given.
9759if test "${enable_textdlg+set}" = set; then
9760 enableval="$enable_textdlg"
9761
9762 if test "$enableval" = yes; then
9763 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9764 else
9765 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9766 fi
9767
9768else
9769
9770 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9771 if test "x$LINE" != x ; then
9772 eval "DEFAULT_$LINE"
9773 else
9774 no_cache=1
9775 fi
9776
9777 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9778
9779fi;
9780
9781 eval "$ac_cv_use_textdlg"
9782 if test "$no_cache" != 1; then
9783 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9784 fi
9785
9786 if test "$wxUSE_TEXTDLG" = yes; then
9787 echo "$as_me:$LINENO: result: yes" >&5
9788echo "${ECHO_T}yes" >&6
9789 else
9790 echo "$as_me:$LINENO: result: no" >&5
9791echo "${ECHO_T}no" >&6
9792 fi
9793
9794
9795 enablestring=
9796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9797echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9798 no_cache=0
9799 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9800if test "${enable_tipdlg+set}" = set; then
9801 enableval="$enable_tipdlg"
9802
9803 if test "$enableval" = yes; then
9804 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9805 else
9806 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9807 fi
9808
9809else
9810
9811 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9812 if test "x$LINE" != x ; then
9813 eval "DEFAULT_$LINE"
9814 else
9815 no_cache=1
9816 fi
9817
9818 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9819
9820fi;
9821
9822 eval "$ac_cv_use_tipdlg"
9823 if test "$no_cache" != 1; then
9824 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9825 fi
9826
9827 if test "$wxUSE_STARTUP_TIPS" = yes; then
9828 echo "$as_me:$LINENO: result: yes" >&5
9829echo "${ECHO_T}yes" >&6
9830 else
9831 echo "$as_me:$LINENO: result: no" >&5
9832echo "${ECHO_T}no" >&6
9833 fi
9834
9835
9836 enablestring=
9837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9838echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9839 no_cache=0
9840 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9841if test "${enable_progressdlg+set}" = set; then
9842 enableval="$enable_progressdlg"
9843
9844 if test "$enableval" = yes; then
9845 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9846 else
9847 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9848 fi
9849
9850else
9851
9852 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9853 if test "x$LINE" != x ; then
9854 eval "DEFAULT_$LINE"
9855 else
9856 no_cache=1
9857 fi
9858
9859 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9860
9861fi;
9862
9863 eval "$ac_cv_use_progressdlg"
9864 if test "$no_cache" != 1; then
9865 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9866 fi
9867
9868 if test "$wxUSE_PROGRESSDLG" = yes; then
9869 echo "$as_me:$LINENO: result: yes" >&5
9870echo "${ECHO_T}yes" >&6
9871 else
9872 echo "$as_me:$LINENO: result: no" >&5
9873echo "${ECHO_T}no" >&6
9874 fi
9875
9876
9877 enablestring=
9878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9879echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9880 no_cache=0
9881 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9882if test "${enable_wizarddlg+set}" = set; then
9883 enableval="$enable_wizarddlg"
9884
9885 if test "$enableval" = yes; then
9886 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9887 else
9888 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9889 fi
9890
9891else
9892
9893 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9894 if test "x$LINE" != x ; then
9895 eval "DEFAULT_$LINE"
9896 else
9897 no_cache=1
9898 fi
9899
9900 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9901
9902fi;
9903
9904 eval "$ac_cv_use_wizarddlg"
9905 if test "$no_cache" != 1; then
9906 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9907 fi
9908
9909 if test "$wxUSE_WIZARDDLG" = yes; then
9910 echo "$as_me:$LINENO: result: yes" >&5
9911echo "${ECHO_T}yes" >&6
9912 else
9913 echo "$as_me:$LINENO: result: no" >&5
9914echo "${ECHO_T}no" >&6
9915 fi
9916
9917
9918
9919
9920 enablestring=
9921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9922echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9923 no_cache=0
9924 # Check whether --enable-menus or --disable-menus was given.
9925if test "${enable_menus+set}" = set; then
9926 enableval="$enable_menus"
9927
9928 if test "$enableval" = yes; then
9929 ac_cv_use_menus='wxUSE_MENUS=yes'
9930 else
9931 ac_cv_use_menus='wxUSE_MENUS=no'
9932 fi
9933
9934else
9935
9936 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9937 if test "x$LINE" != x ; then
9938 eval "DEFAULT_$LINE"
9939 else
9940 no_cache=1
9941 fi
9942
9943 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9944
9945fi;
9946
9947 eval "$ac_cv_use_menus"
9948 if test "$no_cache" != 1; then
9949 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9950 fi
9951
9952 if test "$wxUSE_MENUS" = yes; then
9953 echo "$as_me:$LINENO: result: yes" >&5
9954echo "${ECHO_T}yes" >&6
9955 else
9956 echo "$as_me:$LINENO: result: no" >&5
9957echo "${ECHO_T}no" >&6
9958 fi
9959
9960
9961 enablestring=
9962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9963echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9964 no_cache=0
9965 # Check whether --enable-miniframe or --disable-miniframe was given.
9966if test "${enable_miniframe+set}" = set; then
9967 enableval="$enable_miniframe"
9968
9969 if test "$enableval" = yes; then
9970 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9971 else
9972 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9973 fi
9974
9975else
9976
9977 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9978 if test "x$LINE" != x ; then
9979 eval "DEFAULT_$LINE"
9980 else
9981 no_cache=1
9982 fi
9983
9984 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9985
9986fi;
9987
9988 eval "$ac_cv_use_miniframe"
9989 if test "$no_cache" != 1; then
9990 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9991 fi
9992
9993 if test "$wxUSE_MINIFRAME" = yes; then
9994 echo "$as_me:$LINENO: result: yes" >&5
9995echo "${ECHO_T}yes" >&6
9996 else
9997 echo "$as_me:$LINENO: result: no" >&5
9998echo "${ECHO_T}no" >&6
9999 fi
10000
10001
10002 enablestring=
10003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10004echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10005 no_cache=0
10006 # Check whether --enable-tooltips or --disable-tooltips was given.
10007if test "${enable_tooltips+set}" = set; then
10008 enableval="$enable_tooltips"
10009
10010 if test "$enableval" = yes; then
10011 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10012 else
10013 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10014 fi
10015
10016else
10017
10018 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10019 if test "x$LINE" != x ; then
10020 eval "DEFAULT_$LINE"
10021 else
10022 no_cache=1
10023 fi
10024
10025 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10026
10027fi;
10028
10029 eval "$ac_cv_use_tooltips"
10030 if test "$no_cache" != 1; then
10031 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10032 fi
10033
10034 if test "$wxUSE_TOOLTIPS" = yes; then
10035 echo "$as_me:$LINENO: result: yes" >&5
10036echo "${ECHO_T}yes" >&6
10037 else
10038 echo "$as_me:$LINENO: result: no" >&5
10039echo "${ECHO_T}no" >&6
10040 fi
10041
10042
10043 enablestring=
10044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10045echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10046 no_cache=0
10047 # Check whether --enable-splines or --disable-splines was given.
10048if test "${enable_splines+set}" = set; then
10049 enableval="$enable_splines"
10050
10051 if test "$enableval" = yes; then
10052 ac_cv_use_splines='wxUSE_SPLINES=yes'
10053 else
10054 ac_cv_use_splines='wxUSE_SPLINES=no'
10055 fi
10056
10057else
10058
10059 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10060 if test "x$LINE" != x ; then
10061 eval "DEFAULT_$LINE"
10062 else
10063 no_cache=1
10064 fi
10065
10066 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10067
10068fi;
10069
10070 eval "$ac_cv_use_splines"
10071 if test "$no_cache" != 1; then
10072 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10073 fi
10074
10075 if test "$wxUSE_SPLINES" = yes; then
10076 echo "$as_me:$LINENO: result: yes" >&5
10077echo "${ECHO_T}yes" >&6
10078 else
10079 echo "$as_me:$LINENO: result: no" >&5
10080echo "${ECHO_T}no" >&6
10081 fi
10082
10083
fbe2ca43
SN
10084 enablestring=
10085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10086echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10087 no_cache=0
10088 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10089if test "${enable_mousewheel+set}" = set; then
10090 enableval="$enable_mousewheel"
10091
10092 if test "$enableval" = yes; then
10093 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10094 else
10095 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10096 fi
10097
10098else
10099
10100 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10101 if test "x$LINE" != x ; then
10102 eval "DEFAULT_$LINE"
10103 else
10104 no_cache=1
10105 fi
10106
10107 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10108
10109fi;
10110
10111 eval "$ac_cv_use_mousewheel"
10112 if test "$no_cache" != 1; then
10113 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10114 fi
10115
10116 if test "$wxUSE_MOUSEWHEEL" = yes; then
10117 echo "$as_me:$LINENO: result: yes" >&5
10118echo "${ECHO_T}yes" >&6
10119 else
10120 echo "$as_me:$LINENO: result: no" >&5
10121echo "${ECHO_T}no" >&6
10122 fi
10123
10124
a848cd7e
SC
10125 enablestring=
10126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10127echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10128 no_cache=0
10129 # Check whether --enable-validators or --disable-validators was given.
10130if test "${enable_validators+set}" = set; then
10131 enableval="$enable_validators"
10132
10133 if test "$enableval" = yes; then
10134 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10135 else
10136 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10137 fi
10138
10139else
10140
10141 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10142 if test "x$LINE" != x ; then
10143 eval "DEFAULT_$LINE"
10144 else
10145 no_cache=1
10146 fi
10147
10148 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10149
10150fi;
10151
10152 eval "$ac_cv_use_validators"
10153 if test "$no_cache" != 1; then
10154 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10155 fi
10156
10157 if test "$wxUSE_VALIDATORS" = yes; then
10158 echo "$as_me:$LINENO: result: yes" >&5
10159echo "${ECHO_T}yes" >&6
10160 else
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
10163 fi
10164
10165
10166 enablestring=
10167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10168echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10169 no_cache=0
10170 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10171if test "${enable_busyinfo+set}" = set; then
10172 enableval="$enable_busyinfo"
10173
10174 if test "$enableval" = yes; then
10175 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10176 else
10177 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10178 fi
10179
10180else
10181
10182 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10183 if test "x$LINE" != x ; then
10184 eval "DEFAULT_$LINE"
10185 else
10186 no_cache=1
10187 fi
10188
10189 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10190
10191fi;
10192
10193 eval "$ac_cv_use_busyinfo"
10194 if test "$no_cache" != 1; then
10195 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10196 fi
10197
10198 if test "$wxUSE_BUSYINFO" = yes; then
10199 echo "$as_me:$LINENO: result: yes" >&5
10200echo "${ECHO_T}yes" >&6
10201 else
10202 echo "$as_me:$LINENO: result: no" >&5
10203echo "${ECHO_T}no" >&6
10204 fi
10205
10206
10207 enablestring=
10208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10209echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10210 no_cache=0
10211 # Check whether --enable-joystick or --disable-joystick was given.
10212if test "${enable_joystick+set}" = set; then
10213 enableval="$enable_joystick"
10214
10215 if test "$enableval" = yes; then
10216 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10217 else
10218 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10219 fi
10220
10221else
10222
10223 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10224 if test "x$LINE" != x ; then
10225 eval "DEFAULT_$LINE"
10226 else
10227 no_cache=1
10228 fi
10229
10230 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10231
10232fi;
10233
10234 eval "$ac_cv_use_joystick"
10235 if test "$no_cache" != 1; then
10236 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10237 fi
10238
10239 if test "$wxUSE_JOYSTICK" = yes; then
10240 echo "$as_me:$LINENO: result: yes" >&5
10241echo "${ECHO_T}yes" >&6
10242 else
10243 echo "$as_me:$LINENO: result: no" >&5
10244echo "${ECHO_T}no" >&6
10245 fi
10246
10247
10248 enablestring=
10249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10250echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10251 no_cache=0
10252 # Check whether --enable-metafile or --disable-metafile was given.
10253if test "${enable_metafile+set}" = set; then
10254 enableval="$enable_metafile"
10255
10256 if test "$enableval" = yes; then
10257 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10258 else
10259 ac_cv_use_metafile='wxUSE_METAFILE=no'
10260 fi
10261
10262else
10263
10264 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10265 if test "x$LINE" != x ; then
10266 eval "DEFAULT_$LINE"
10267 else
10268 no_cache=1
10269 fi
10270
10271 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10272
10273fi;
10274
10275 eval "$ac_cv_use_metafile"
10276 if test "$no_cache" != 1; then
10277 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10278 fi
10279
10280 if test "$wxUSE_METAFILE" = yes; then
10281 echo "$as_me:$LINENO: result: yes" >&5
10282echo "${ECHO_T}yes" >&6
10283 else
10284 echo "$as_me:$LINENO: result: no" >&5
10285echo "${ECHO_T}no" >&6
10286 fi
10287
10288
10289 enablestring=
10290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10291echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10292 no_cache=0
10293 # Check whether --enable-dragimage or --disable-dragimage was given.
10294if test "${enable_dragimage+set}" = set; then
10295 enableval="$enable_dragimage"
10296
10297 if test "$enableval" = yes; then
10298 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10299 else
10300 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10301 fi
10302
10303else
10304
10305 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10306 if test "x$LINE" != x ; then
10307 eval "DEFAULT_$LINE"
10308 else
10309 no_cache=1
10310 fi
10311
10312 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10313
10314fi;
10315
10316 eval "$ac_cv_use_dragimage"
10317 if test "$no_cache" != 1; then
10318 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10319 fi
10320
10321 if test "$wxUSE_DRAGIMAGE" = yes; then
10322 echo "$as_me:$LINENO: result: yes" >&5
10323echo "${ECHO_T}yes" >&6
10324 else
10325 echo "$as_me:$LINENO: result: no" >&5
10326echo "${ECHO_T}no" >&6
10327 fi
10328
10329
10330 enablestring=
10331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10332echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10333 no_cache=0
10334 # Check whether --enable-accessibility or --disable-accessibility was given.
10335if test "${enable_accessibility+set}" = set; then
10336 enableval="$enable_accessibility"
10337
10338 if test "$enableval" = yes; then
10339 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10340 else
10341 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10342 fi
10343
10344else
10345
10346 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10347 if test "x$LINE" != x ; then
10348 eval "DEFAULT_$LINE"
10349 else
10350 no_cache=1
10351 fi
10352
10353 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10354
10355fi;
10356
10357 eval "$ac_cv_use_accessibility"
10358 if test "$no_cache" != 1; then
10359 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10360 fi
10361
10362 if test "$wxUSE_ACCESSIBILITY" = yes; then
10363 echo "$as_me:$LINENO: result: yes" >&5
10364echo "${ECHO_T}yes" >&6
10365 else
10366 echo "$as_me:$LINENO: result: no" >&5
10367echo "${ECHO_T}no" >&6
10368 fi
10369
10370
38b4a946
VZ
10371if test "$wxUSE_MSW" = "1"; then
10372
10373 enablestring=
10374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10375echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10376 no_cache=0
10377 # Check whether --enable-dccache or --disable-dccache was given.
10378if test "${enable_dccache+set}" = set; then
10379 enableval="$enable_dccache"
10380
10381 if test "$enableval" = yes; then
10382 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10383 else
10384 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10385 fi
10386
10387else
10388
10389 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10390 if test "x$LINE" != x ; then
10391 eval "DEFAULT_$LINE"
10392 else
10393 no_cache=1
10394 fi
10395
10396 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10397
10398fi;
10399
10400 eval "$ac_cv_use_dccache"
10401 if test "$no_cache" != 1; then
10402 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10403 fi
10404
10405 if test "$wxUSE_DC_CACHEING" = yes; then
10406 echo "$as_me:$LINENO: result: yes" >&5
10407echo "${ECHO_T}yes" >&6
10408 else
10409 echo "$as_me:$LINENO: result: no" >&5
10410echo "${ECHO_T}no" >&6
10411 fi
10412
10413fi
10414
a848cd7e
SC
10415
10416
10417 enablestring=
10418 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10419echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10420 no_cache=0
10421 # Check whether --enable-palette or --disable-palette was given.
10422if test "${enable_palette+set}" = set; then
10423 enableval="$enable_palette"
10424
10425 if test "$enableval" = yes; then
10426 ac_cv_use_palette='wxUSE_PALETTE=yes'
10427 else
10428 ac_cv_use_palette='wxUSE_PALETTE=no'
10429 fi
10430
10431else
10432
10433 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10434 if test "x$LINE" != x ; then
10435 eval "DEFAULT_$LINE"
10436 else
10437 no_cache=1
10438 fi
10439
10440 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10441
10442fi;
10443
10444 eval "$ac_cv_use_palette"
10445 if test "$no_cache" != 1; then
10446 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10447 fi
10448
10449 if test "$wxUSE_PALETTE" = yes; then
10450 echo "$as_me:$LINENO: result: yes" >&5
10451echo "${ECHO_T}yes" >&6
10452 else
10453 echo "$as_me:$LINENO: result: no" >&5
10454echo "${ECHO_T}no" >&6
10455 fi
10456
10457
10458 enablestring=
10459 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10460echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10461 no_cache=0
10462 # Check whether --enable-image or --disable-image was given.
10463if test "${enable_image+set}" = set; then
10464 enableval="$enable_image"
10465
10466 if test "$enableval" = yes; then
10467 ac_cv_use_image='wxUSE_IMAGE=yes'
10468 else
10469 ac_cv_use_image='wxUSE_IMAGE=no'
10470 fi
10471
10472else
10473
10474 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10475 if test "x$LINE" != x ; then
10476 eval "DEFAULT_$LINE"
10477 else
10478 no_cache=1
10479 fi
10480
10481 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10482
10483fi;
10484
10485 eval "$ac_cv_use_image"
10486 if test "$no_cache" != 1; then
10487 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10488 fi
10489
10490 if test "$wxUSE_IMAGE" = yes; then
10491 echo "$as_me:$LINENO: result: yes" >&5
10492echo "${ECHO_T}yes" >&6
10493 else
10494 echo "$as_me:$LINENO: result: no" >&5
10495echo "${ECHO_T}no" >&6
10496 fi
10497
10498
10499 enablestring=
10500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10501echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10502 no_cache=0
10503 # Check whether --enable-gif or --disable-gif was given.
10504if test "${enable_gif+set}" = set; then
10505 enableval="$enable_gif"
10506
10507 if test "$enableval" = yes; then
10508 ac_cv_use_gif='wxUSE_GIF=yes'
10509 else
10510 ac_cv_use_gif='wxUSE_GIF=no'
10511 fi
10512
10513else
10514
10515 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10516 if test "x$LINE" != x ; then
10517 eval "DEFAULT_$LINE"
10518 else
10519 no_cache=1
10520 fi
10521
10522 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10523
10524fi;
10525
10526 eval "$ac_cv_use_gif"
10527 if test "$no_cache" != 1; then
10528 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10529 fi
10530
10531 if test "$wxUSE_GIF" = yes; then
10532 echo "$as_me:$LINENO: result: yes" >&5
10533echo "${ECHO_T}yes" >&6
10534 else
10535 echo "$as_me:$LINENO: result: no" >&5
10536echo "${ECHO_T}no" >&6
10537 fi
10538
10539
10540 enablestring=
10541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10542echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10543 no_cache=0
10544 # Check whether --enable-pcx or --disable-pcx was given.
10545if test "${enable_pcx+set}" = set; then
10546 enableval="$enable_pcx"
10547
10548 if test "$enableval" = yes; then
10549 ac_cv_use_pcx='wxUSE_PCX=yes'
10550 else
10551 ac_cv_use_pcx='wxUSE_PCX=no'
10552 fi
10553
10554else
10555
10556 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10557 if test "x$LINE" != x ; then
10558 eval "DEFAULT_$LINE"
10559 else
10560 no_cache=1
10561 fi
10562
10563 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10564
10565fi;
10566
10567 eval "$ac_cv_use_pcx"
10568 if test "$no_cache" != 1; then
10569 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10570 fi
10571
10572 if test "$wxUSE_PCX" = yes; then
10573 echo "$as_me:$LINENO: result: yes" >&5
10574echo "${ECHO_T}yes" >&6
10575 else
10576 echo "$as_me:$LINENO: result: no" >&5
10577echo "${ECHO_T}no" >&6
10578 fi
10579
10580
10581 enablestring=
10582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10583echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10584 no_cache=0
10585 # Check whether --enable-iff or --disable-iff was given.
10586if test "${enable_iff+set}" = set; then
10587 enableval="$enable_iff"
10588
10589 if test "$enableval" = yes; then
10590 ac_cv_use_iff='wxUSE_IFF=yes'
10591 else
10592 ac_cv_use_iff='wxUSE_IFF=no'
10593 fi
10594
10595else
10596
10597 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10598 if test "x$LINE" != x ; then
10599 eval "DEFAULT_$LINE"
10600 else
10601 no_cache=1
10602 fi
10603
10604 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10605
10606fi;
10607
10608 eval "$ac_cv_use_iff"
10609 if test "$no_cache" != 1; then
10610 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10611 fi
10612
10613 if test "$wxUSE_IFF" = yes; then
10614 echo "$as_me:$LINENO: result: yes" >&5
10615echo "${ECHO_T}yes" >&6
10616 else
10617 echo "$as_me:$LINENO: result: no" >&5
10618echo "${ECHO_T}no" >&6
10619 fi
10620
10621
10622 enablestring=
10623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10624echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10625 no_cache=0
10626 # Check whether --enable-pnm or --disable-pnm was given.
10627if test "${enable_pnm+set}" = set; then
10628 enableval="$enable_pnm"
10629
10630 if test "$enableval" = yes; then
10631 ac_cv_use_pnm='wxUSE_PNM=yes'
10632 else
10633 ac_cv_use_pnm='wxUSE_PNM=no'
10634 fi
10635
10636else
10637
10638 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10639 if test "x$LINE" != x ; then
10640 eval "DEFAULT_$LINE"
10641 else
10642 no_cache=1
10643 fi
10644
10645 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10646
10647fi;
10648
10649 eval "$ac_cv_use_pnm"
10650 if test "$no_cache" != 1; then
10651 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10652 fi
10653
10654 if test "$wxUSE_PNM" = yes; then
10655 echo "$as_me:$LINENO: result: yes" >&5
10656echo "${ECHO_T}yes" >&6
10657 else
10658 echo "$as_me:$LINENO: result: no" >&5
10659echo "${ECHO_T}no" >&6
10660 fi
10661
10662
10663 enablestring=
10664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10665echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10666 no_cache=0
10667 # Check whether --enable-xpm or --disable-xpm was given.
10668if test "${enable_xpm+set}" = set; then
10669 enableval="$enable_xpm"
10670
10671 if test "$enableval" = yes; then
10672 ac_cv_use_xpm='wxUSE_XPM=yes'
10673 else
10674 ac_cv_use_xpm='wxUSE_XPM=no'
10675 fi
10676
10677else
10678
10679 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10680 if test "x$LINE" != x ; then
10681 eval "DEFAULT_$LINE"
10682 else
10683 no_cache=1
10684 fi
10685
10686 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10687
10688fi;
10689
10690 eval "$ac_cv_use_xpm"
10691 if test "$no_cache" != 1; then
10692 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10693 fi
10694
10695 if test "$wxUSE_XPM" = yes; then
10696 echo "$as_me:$LINENO: result: yes" >&5
10697echo "${ECHO_T}yes" >&6
10698 else
10699 echo "$as_me:$LINENO: result: no" >&5
10700echo "${ECHO_T}no" >&6
10701 fi
10702
10703
10704 enablestring=
10705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10706echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10707 no_cache=0
10708 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10709if test "${enable_ico_cur+set}" = set; then
10710 enableval="$enable_ico_cur"
10711
10712 if test "$enableval" = yes; then
10713 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10714 else
10715 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10716 fi
10717
10718else
10719
10720 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10721 if test "x$LINE" != x ; then
10722 eval "DEFAULT_$LINE"
10723 else
10724 no_cache=1
10725 fi
10726
10727 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10728
10729fi;
10730
10731 eval "$ac_cv_use_ico_cur"
10732 if test "$no_cache" != 1; then
10733 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10734 fi
10735
10736 if test "$wxUSE_ICO_CUR" = yes; then
10737 echo "$as_me:$LINENO: result: yes" >&5
10738echo "${ECHO_T}yes" >&6
10739 else
10740 echo "$as_me:$LINENO: result: no" >&5
10741echo "${ECHO_T}no" >&6
10742 fi
10743
10744
10745fi
10746
10747
10748
ceec2216
RL
10749# Check whether --with-flavour or --without-flavour was given.
10750if test "${with_flavour+set}" = set; then
10751 withval="$with_flavour"
10752 WX_FLAVOUR="$withval"
10753fi;
10754
10755
10756
a848cd7e
SC
10757 enablestring=
10758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10759echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10760 no_cache=0
10761 # Check whether --enable-official_build or --disable-official_build was given.
10762if test "${enable_official_build+set}" = set; then
10763 enableval="$enable_official_build"
10764
10765 if test "$enableval" = yes; then
10766 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10767 else
10768 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10769 fi
10770
10771else
10772
10773 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10774 if test "x$LINE" != x ; then
10775 eval "DEFAULT_$LINE"
10776 else
10777 no_cache=1
10778 fi
10779
10780 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10781
10782fi;
10783
10784 eval "$ac_cv_use_official_build"
10785 if test "$no_cache" != 1; then
10786 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10787 fi
10788
10789 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10790 echo "$as_me:$LINENO: result: yes" >&5
10791echo "${ECHO_T}yes" >&6
10792 else
10793 echo "$as_me:$LINENO: result: no" >&5
10794echo "${ECHO_T}no" >&6
10795 fi
10796
10797# Check whether --enable-vendor or --disable-vendor was given.
10798if test "${enable_vendor+set}" = set; then
10799 enableval="$enable_vendor"
10800 VENDOR="$enableval"
10801fi;
10802if test "x$VENDOR" = "x"; then
10803 VENDOR="custom"
10804fi
10805
a848cd7e
SC
10806
10807
10808
10809 echo "saving argument cache $wx_arg_cache_file"
10810 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10811
10812
10813
10814echo "$as_me:$LINENO: checking for toolkit" >&5
10815echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10816
10817# In Wine, we need to default to MSW, not GTK or MOTIF
10818if test "$wxUSE_WINE" = "yes"; then
10819 DEFAULT_DEFAULT_wxUSE_GTK=0
10820 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10821 DEFAULT_DEFAULT_wxUSE_MSW=1
10822 wxUSE_SHARED=no
10823fi
10824
f597b41c 10825
a848cd7e
SC
10826if test "$wxUSE_GUI" = "yes"; then
10827
10828 if test "$USE_BEOS" = 1; then
10829 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10830echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10831 { (exit 1); exit 1; }; }
10832 fi
10833
10834 if test "$TOOLKIT_GIVEN" = 1; then
10835 for toolkit in `echo $ALL_TOOLKITS`; do
10836 var=wxUSE_$toolkit
10837 eval "value=\$${var}"
f34ca037
MW
10838 if test "x$value" = "xno"; then
10839 eval "$var=0"
10840 elif test "x$value" != "x"; then
10841 eval "$var=1"
10842 fi
10843
10844 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10845 eval "wx${toolkit}_VERSION=$value"
10846 fi
a848cd7e
SC
10847 done
10848 else
10849 for toolkit in `echo $ALL_TOOLKITS`; do
10850 if test "$has_toolkit_in_cache" != 1; then
10851 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10852 else
10853 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10854
10855 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10856 if test "x$version" != "x"; then
10857 eval "wx${toolkit}_VERSION=$version"
10858 fi
a848cd7e
SC
10859 fi
10860 eval "wxUSE_$toolkit=\$${var}"
10861 done
10862 fi
10863
10864 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10865 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10866 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10867
10868 case "${host}" in
10869 *-pc-os2_emx | *-pc-os2-emx )
10870 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10871 esac
10872
10873 case "$NUM_TOOLKITS" in
10874 1)
10875 ;;
10876 0)
10877 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10878echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10879 { (exit 1); exit 1; }; }
10880 ;;
10881 *)
10882 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10883echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10884 { (exit 1); exit 1; }; }
10885 esac
10886
f34ca037
MW
10887 # to be removed when --disable-gtk2 isn't needed
10888 if test "x$wxUSE_GTK2" = "xyes"; then
10889 wxGTK_VERSION=2
10890 elif test "x$wxUSE_GTK2" = "xno"; then
10891 wxGTK_VERSION=1
10892 fi
10893
a848cd7e
SC
10894 for toolkit in `echo $ALL_TOOLKITS`; do
10895 var=wxUSE_$toolkit
10896 eval "value=\$${var}"
10897 if test "x$value" != x; then
10898 cache_var=CACHE_$toolkit
10899 eval "cache=\$${cache_var}"
10900 if test "$cache" = 1; then
10901 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10902 eval "version=\$wx${toolkit}_VERSION"
10903 if test "x$version" != "x"; then
10904 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10905 fi
a848cd7e
SC
10906 fi
10907 if test "$value" = 1; then
10908 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10909 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10910echo "${ECHO_T}$toolkit_echo" >&6
10911 fi
10912 fi
10913 done
10914else
10915 if test "x$host_alias" != "x"; then
10916 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10917echo "${ECHO_T}base ($host_alias hosted) only" >&6
10918 else
10919 echo "$as_me:$LINENO: result: base only" >&5
10920echo "${ECHO_T}base only" >&6
10921 fi
10922fi
10923
10924wants_win32=0
10925doesnt_want_win32=0
10926case "${host}" in
10927 *-*-cygwin*)
10928 if test "$wxUSE_MSW" = 1 ; then
10929 wants_win32=1
7275146d 10930 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10931 else
10932 doesnt_want_win32=1
10933 fi
10934 ;;
10935 *-*-mingw*)
10936 wants_win32=1
10937 ;;
10938esac
10939
10940if test "$wxUSE_WINE" = "yes"; then
10941 wants_win32=1
10942 CC=winegcc
10943 CXX=wineg++
a848cd7e
SC
10944 LDFLAGS_GUI="-mwindows"
10945fi
10946
10947if test "$wants_win32" = 1 ; then
10948 USE_UNIX=0
10949 USE_WIN32=1
10950 cat >>confdefs.h <<\_ACEOF
10951#define __WIN32__ 1
10952_ACEOF
10953
10954 cat >>confdefs.h <<\_ACEOF
10955#define __WIN95__ 1
10956_ACEOF
10957
10958 cat >>confdefs.h <<\_ACEOF
10959#define __WINDOWS__ 1
10960_ACEOF
10961
10962 cat >>confdefs.h <<\_ACEOF
10963#define __GNUWIN32__ 1
10964_ACEOF
10965
10966 cat >>confdefs.h <<\_ACEOF
10967#define STRICT 1
10968_ACEOF
10969
10970 cat >>confdefs.h <<\_ACEOF
10971#define WINVER 0x0400
10972_ACEOF
10973
10974fi
10975if test "$doesnt_want_win32" = 1 ; then
10976 USE_UNIX=1
10977 USE_WIN32=0
10978fi
10979
10980if test "$USE_UNIX" = 1 ; then
10981 wxUSE_UNIX=yes
10982 cat >>confdefs.h <<\_ACEOF
10983#define __UNIX__ 1
10984_ACEOF
10985
10986fi
10987
10988
10989cat >confcache <<\_ACEOF
10990# This file is a shell script that caches the results of configure
10991# tests run on this system so they can be shared between configure
10992# scripts and configure runs, see configure's option --config-cache.
10993# It is not useful on other systems. If it contains results you don't
10994# want to keep, you may remove or edit it.
10995#
10996# config.status only pays attention to the cache file if you give it
10997# the --recheck option to rerun configure.
10998#
10999# `ac_cv_env_foo' variables (set or unset) will be overridden when
11000# loading this file, other *unset* `ac_cv_foo' will be assigned the
11001# following values.
11002
11003_ACEOF
11004
11005# The following way of writing the cache mishandles newlines in values,
11006# but we know of no workaround that is simple, portable, and efficient.
11007# So, don't put newlines in cache variables' values.
11008# Ultrix sh set writes to stderr and can't be redirected directly,
11009# and sets the high bit in the cache file unless we assign to the vars.
11010{
11011 (set) 2>&1 |
11012 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11013 *ac_space=\ *)
11014 # `set' does not quote correctly, so add quotes (double-quote
11015 # substitution turns \\\\ into \\, and sed turns \\ into \).
11016 sed -n \
ac1cb8d3
VS
11017 "s/'/'\\\\''/g;
11018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11019 ;;
11020 *)
11021 # `set' quotes correctly as required by POSIX, so do not add quotes.
11022 sed -n \
ac1cb8d3 11023 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11024 ;;
11025 esac;
11026} |
11027 sed '
11028 t clear
11029 : clear
11030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11031 t end
11032 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11033 : end' >>confcache
11034if diff $cache_file confcache >/dev/null 2>&1; then :; else
11035 if test -w $cache_file; then
11036 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11037 cat confcache >$cache_file
11038 else
11039 echo "not updating unwritable cache $cache_file"
11040 fi
11041fi
11042rm -f confcache
11043
a848cd7e 11044CFLAGS=${CFLAGS:=}
6dcfc289
DE
11045
11046
3006edc0 11047
6dcfc289 11048 ac_ext=c
a848cd7e
SC
11049ac_cpp='$CPP $CPPFLAGS'
11050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11052ac_compiler_gnu=$ac_cv_c_compiler_gnu
11053if test -n "$ac_tool_prefix"; then
11054 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11055set dummy ${ac_tool_prefix}gcc; ac_word=$2
11056echo "$as_me:$LINENO: checking for $ac_word" >&5
11057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11058if test "${ac_cv_prog_CC+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11060else
11061 if test -n "$CC"; then
11062 ac_cv_prog_CC="$CC" # Let the user override the test.
11063else
11064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065for as_dir in $PATH
11066do
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11071 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11073 break 2
11074 fi
11075done
11076done
11077
11078fi
11079fi
11080CC=$ac_cv_prog_CC
11081if test -n "$CC"; then
11082 echo "$as_me:$LINENO: result: $CC" >&5
11083echo "${ECHO_T}$CC" >&6
11084else
11085 echo "$as_me:$LINENO: result: no" >&5
11086echo "${ECHO_T}no" >&6
11087fi
11088
11089fi
11090if test -z "$ac_cv_prog_CC"; then
11091 ac_ct_CC=$CC
11092 # Extract the first word of "gcc", so it can be a program name with args.
11093set dummy gcc; ac_word=$2
11094echo "$as_me:$LINENO: checking for $ac_word" >&5
11095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11096if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098else
11099 if test -n "$ac_ct_CC"; then
11100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11101else
11102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103for as_dir in $PATH
11104do
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11109 ac_cv_prog_ac_ct_CC="gcc"
11110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 break 2
11112 fi
11113done
11114done
11115
11116fi
11117fi
11118ac_ct_CC=$ac_cv_prog_ac_ct_CC
11119if test -n "$ac_ct_CC"; then
11120 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11121echo "${ECHO_T}$ac_ct_CC" >&6
11122else
11123 echo "$as_me:$LINENO: result: no" >&5
11124echo "${ECHO_T}no" >&6
11125fi
11126
11127 CC=$ac_ct_CC
11128else
11129 CC="$ac_cv_prog_CC"
11130fi
11131
11132if test -z "$CC"; then
11133 if test -n "$ac_tool_prefix"; then
11134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11135set dummy ${ac_tool_prefix}cc; ac_word=$2
11136echo "$as_me:$LINENO: checking for $ac_word" >&5
11137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11138if test "${ac_cv_prog_CC+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11140else
11141 if test -n "$CC"; then
11142 ac_cv_prog_CC="$CC" # Let the user override the test.
11143else
11144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145for as_dir in $PATH
11146do
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_prog_CC="${ac_tool_prefix}cc"
11152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11153 break 2
11154 fi
11155done
11156done
11157
11158fi
11159fi
11160CC=$ac_cv_prog_CC
11161if test -n "$CC"; then
11162 echo "$as_me:$LINENO: result: $CC" >&5
11163echo "${ECHO_T}$CC" >&6
11164else
11165 echo "$as_me:$LINENO: result: no" >&5
11166echo "${ECHO_T}no" >&6
11167fi
11168
11169fi
11170if test -z "$ac_cv_prog_CC"; then
11171 ac_ct_CC=$CC
11172 # Extract the first word of "cc", so it can be a program name with args.
11173set dummy cc; ac_word=$2
11174echo "$as_me:$LINENO: checking for $ac_word" >&5
11175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11176if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178else
11179 if test -n "$ac_ct_CC"; then
11180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11181else
11182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183for as_dir in $PATH
11184do
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189 ac_cv_prog_ac_ct_CC="cc"
11190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 break 2
11192 fi
11193done
11194done
11195
11196fi
11197fi
11198ac_ct_CC=$ac_cv_prog_ac_ct_CC
11199if test -n "$ac_ct_CC"; then
11200 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11201echo "${ECHO_T}$ac_ct_CC" >&6
11202else
11203 echo "$as_me:$LINENO: result: no" >&5
11204echo "${ECHO_T}no" >&6
11205fi
11206
11207 CC=$ac_ct_CC
11208else
11209 CC="$ac_cv_prog_CC"
11210fi
11211
11212fi
11213if test -z "$CC"; then
11214 # Extract the first word of "cc", so it can be a program name with args.
11215set dummy cc; ac_word=$2
11216echo "$as_me:$LINENO: checking for $ac_word" >&5
11217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11218if test "${ac_cv_prog_CC+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220else
11221 if test -n "$CC"; then
11222 ac_cv_prog_CC="$CC" # Let the user override the test.
11223else
11224 ac_prog_rejected=no
11225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226for as_dir in $PATH
11227do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11233 ac_prog_rejected=yes
11234 continue
11235 fi
11236 ac_cv_prog_CC="cc"
11237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11239 fi
11240done
11241done
11242
11243if test $ac_prog_rejected = yes; then
11244 # We found a bogon in the path, so make sure we never use it.
11245 set dummy $ac_cv_prog_CC
11246 shift
11247 if test $# != 0; then
11248 # We chose a different compiler from the bogus one.
11249 # However, it has the same basename, so the bogon will be chosen
11250 # first if we set CC to just the basename; use the full file name.
11251 shift
11252 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11253 fi
11254fi
11255fi
11256fi
11257CC=$ac_cv_prog_CC
11258if test -n "$CC"; then
11259 echo "$as_me:$LINENO: result: $CC" >&5
11260echo "${ECHO_T}$CC" >&6
11261else
11262 echo "$as_me:$LINENO: result: no" >&5
11263echo "${ECHO_T}no" >&6
11264fi
11265
11266fi
11267if test -z "$CC"; then
11268 if test -n "$ac_tool_prefix"; then
11269 for ac_prog in cl
11270 do
11271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11272set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11273echo "$as_me:$LINENO: checking for $ac_word" >&5
11274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11275if test "${ac_cv_prog_CC+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277else
11278 if test -n "$CC"; then
11279 ac_cv_prog_CC="$CC" # Let the user override the test.
11280else
11281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11282for as_dir in $PATH
11283do
11284 IFS=$as_save_IFS
11285 test -z "$as_dir" && as_dir=.
11286 for ac_exec_ext in '' $ac_executable_extensions; do
11287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11288 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11290 break 2
11291 fi
11292done
11293done
11294
11295fi
11296fi
11297CC=$ac_cv_prog_CC
11298if test -n "$CC"; then
11299 echo "$as_me:$LINENO: result: $CC" >&5
11300echo "${ECHO_T}$CC" >&6
11301else
11302 echo "$as_me:$LINENO: result: no" >&5
11303echo "${ECHO_T}no" >&6
11304fi
11305
11306 test -n "$CC" && break
11307 done
11308fi
11309if test -z "$CC"; then
11310 ac_ct_CC=$CC
11311 for ac_prog in cl
11312do
11313 # Extract the first word of "$ac_prog", so it can be a program name with args.
11314set dummy $ac_prog; ac_word=$2
11315echo "$as_me:$LINENO: checking for $ac_word" >&5
11316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319else
11320 if test -n "$ac_ct_CC"; then
11321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11322else
11323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324for as_dir in $PATH
11325do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_prog_ac_ct_CC="$ac_prog"
11331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11333 fi
11334done
11335done
11336
11337fi
11338fi
11339ac_ct_CC=$ac_cv_prog_ac_ct_CC
11340if test -n "$ac_ct_CC"; then
11341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11342echo "${ECHO_T}$ac_ct_CC" >&6
11343else
11344 echo "$as_me:$LINENO: result: no" >&5
11345echo "${ECHO_T}no" >&6
11346fi
11347
11348 test -n "$ac_ct_CC" && break
11349done
11350
11351 CC=$ac_ct_CC
11352fi
11353
11354fi
11355
11356
11357test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11358See \`config.log' for more details." >&5
11359echo "$as_me: error: no acceptable C compiler found in \$PATH
11360See \`config.log' for more details." >&2;}
11361 { (exit 1); exit 1; }; }
11362
11363# Provide some information about the compiler.
11364echo "$as_me:$LINENO:" \
11365 "checking for C compiler version" >&5
11366ac_compiler=`set X $ac_compile; echo $2`
11367{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11368 (eval $ac_compiler --version </dev/null >&5) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }
11372{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11373 (eval $ac_compiler -v </dev/null >&5) 2>&5
11374 ac_status=$?
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }
11377{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11378 (eval $ac_compiler -V </dev/null >&5) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }
11382
11383cat >conftest.$ac_ext <<_ACEOF
11384/* confdefs.h. */
11385_ACEOF
11386cat confdefs.h >>conftest.$ac_ext
11387cat >>conftest.$ac_ext <<_ACEOF
11388/* end confdefs.h. */
11389
11390int
11391main ()
11392{
11393
11394 ;
11395 return 0;
11396}
11397_ACEOF
11398ac_clean_files_save=$ac_clean_files
11399ac_clean_files="$ac_clean_files a.out a.exe b.out"
11400# Try to create an executable without -o first, disregard a.out.
11401# It will help us diagnose broken compilers, and finding out an intuition
11402# of exeext.
ac1cb8d3
VS
11403echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11404echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11405ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11406if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11407 (eval $ac_link_default) 2>&5
11408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; then
11411 # Find the output, starting from the most likely. This scheme is
11412# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11413# resort.
11414
11415# Be careful to initialize this variable, since it used to be cached.
11416# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11417ac_cv_exeext=
11418# b.out is created by i960 compilers.
11419for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11420do
11421 test -f "$ac_file" || continue
11422 case $ac_file in
11423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11424 ;;
a848cd7e 11425 conftest.$ac_ext )
ac1cb8d3
VS
11426 # This is the source file.
11427 ;;
a848cd7e 11428 [ab].out )
ac1cb8d3
VS
11429 # We found the default executable, but exeext='' is most
11430 # certainly right.
11431 break;;
a848cd7e 11432 *.* )
ac1cb8d3
VS
11433 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11434 # FIXME: I believe we export ac_cv_exeext for Libtool,
11435 # but it would be cool to find out if it's true. Does anybody
11436 # maintain Libtool? --akim.
11437 export ac_cv_exeext
11438 break;;
a848cd7e 11439 * )
ac1cb8d3 11440 break;;
a848cd7e
SC
11441 esac
11442done
11443else
11444 echo "$as_me: failed program was:" >&5
11445sed 's/^/| /' conftest.$ac_ext >&5
11446
11447{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11448See \`config.log' for more details." >&5
11449echo "$as_me: error: C compiler cannot create executables
11450See \`config.log' for more details." >&2;}
11451 { (exit 77); exit 77; }; }
11452fi
11453
11454ac_exeext=$ac_cv_exeext
11455echo "$as_me:$LINENO: result: $ac_file" >&5
11456echo "${ECHO_T}$ac_file" >&6
11457
11458# Check the compiler produces executables we can run. If not, either
11459# the compiler is broken, or we cross compile.
11460echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11461echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11462# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11463# If not cross compiling, check that we can run a simple program.
11464if test "$cross_compiling" != yes; then
11465 if { ac_try='./$ac_file'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 cross_compiling=no
11472 else
11473 if test "$cross_compiling" = maybe; then
11474 cross_compiling=yes
11475 else
11476 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11477If you meant to cross compile, use \`--host'.
11478See \`config.log' for more details." >&5
11479echo "$as_me: error: cannot run C compiled programs.
11480If you meant to cross compile, use \`--host'.
11481See \`config.log' for more details." >&2;}
11482 { (exit 1); exit 1; }; }
11483 fi
11484 fi
11485fi
11486echo "$as_me:$LINENO: result: yes" >&5
11487echo "${ECHO_T}yes" >&6
11488
11489rm -f a.out a.exe conftest$ac_cv_exeext b.out
11490ac_clean_files=$ac_clean_files_save
11491# Check the compiler produces executables we can run. If not, either
11492# the compiler is broken, or we cross compile.
11493echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11494echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11495echo "$as_me:$LINENO: result: $cross_compiling" >&5
11496echo "${ECHO_T}$cross_compiling" >&6
11497
11498echo "$as_me:$LINENO: checking for suffix of executables" >&5
11499echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11501 (eval $ac_link) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; then
11505 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11506# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11507# work properly (i.e., refer to `conftest.exe'), while it won't with
11508# `rm'.
11509for ac_file in conftest.exe conftest conftest.*; do
11510 test -f "$ac_file" || continue
11511 case $ac_file in
11512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11513 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11514 export ac_cv_exeext
11515 break;;
a848cd7e
SC
11516 * ) break;;
11517 esac
11518done
11519else
11520 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11521See \`config.log' for more details." >&5
11522echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11523See \`config.log' for more details." >&2;}
11524 { (exit 1); exit 1; }; }
11525fi
11526
11527rm -f conftest$ac_cv_exeext
11528echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11529echo "${ECHO_T}$ac_cv_exeext" >&6
11530
11531rm -f conftest.$ac_ext
11532EXEEXT=$ac_cv_exeext
11533ac_exeext=$EXEEXT
11534echo "$as_me:$LINENO: checking for suffix of object files" >&5
11535echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11536if test "${ac_cv_objext+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538else
11539 cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
11545
11546int
11547main ()
11548{
11549
11550 ;
11551 return 0;
11552}
11553_ACEOF
11554rm -f conftest.o conftest.obj
11555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11556 (eval $ac_compile) 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; then
11560 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11561 case $ac_file in
11562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11563 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11564 break;;
11565 esac
11566done
11567else
11568 echo "$as_me: failed program was:" >&5
11569sed 's/^/| /' conftest.$ac_ext >&5
11570
11571{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11572See \`config.log' for more details." >&5
11573echo "$as_me: error: cannot compute suffix of object files: cannot compile
11574See \`config.log' for more details." >&2;}
11575 { (exit 1); exit 1; }; }
11576fi
11577
11578rm -f conftest.$ac_cv_objext conftest.$ac_ext
11579fi
11580echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11581echo "${ECHO_T}$ac_cv_objext" >&6
11582OBJEXT=$ac_cv_objext
11583ac_objext=$OBJEXT
11584echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11585echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11586if test "${ac_cv_c_compiler_gnu+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588else
11589 cat >conftest.$ac_ext <<_ACEOF
11590/* confdefs.h. */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h. */
11595
11596int
11597main ()
11598{
11599#ifndef __GNUC__
11600 choke me
11601#endif
11602
11603 ;
11604 return 0;
11605}
11606_ACEOF
11607rm -f conftest.$ac_objext
11608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11609 (eval $ac_compile) 2>conftest.er1
a848cd7e 11610 ac_status=$?
ac1cb8d3
VS
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
a848cd7e
SC
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
3565d135
RR
11616 { ac_try='test -z "$ac_c_werror_flag"
11617 || test ! -s conftest.err'
ac1cb8d3
VS
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; } &&
11623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
11629 ac_compiler_gnu=yes
11630else
11631 echo "$as_me: failed program was:" >&5
11632sed 's/^/| /' conftest.$ac_ext >&5
11633
11634ac_compiler_gnu=no
11635fi
ac1cb8d3 11636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11637ac_cv_c_compiler_gnu=$ac_compiler_gnu
11638
11639fi
11640echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11641echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11642GCC=`test $ac_compiler_gnu = yes && echo yes`
11643ac_test_CFLAGS=${CFLAGS+set}
11644ac_save_CFLAGS=$CFLAGS
8aeeb05c 11645CFLAGS="-g"
a848cd7e
SC
11646echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11647echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11648if test "${ac_cv_prog_cc_g+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11650else
11651 cat >conftest.$ac_ext <<_ACEOF
11652/* confdefs.h. */
11653_ACEOF
11654cat confdefs.h >>conftest.$ac_ext
11655cat >>conftest.$ac_ext <<_ACEOF
11656/* end confdefs.h. */
11657
11658int
11659main ()
11660{
11661
11662 ;
11663 return 0;
11664}
11665_ACEOF
11666rm -f conftest.$ac_objext
11667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11668 (eval $ac_compile) 2>conftest.er1
a848cd7e 11669 ac_status=$?
ac1cb8d3
VS
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
a848cd7e
SC
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
3565d135
RR
11675 { ac_try='test -z "$ac_c_werror_flag"
11676 || test ! -s conftest.err'
ac1cb8d3
VS
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_cv_prog_cc_g=yes
11689else
11690 echo "$as_me: failed program was:" >&5
11691sed 's/^/| /' conftest.$ac_ext >&5
11692
11693ac_cv_prog_cc_g=no
11694fi
ac1cb8d3 11695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11696fi
11697echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11698echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11699if test "$ac_test_CFLAGS" = set; then
11700 CFLAGS=$ac_save_CFLAGS
11701elif test $ac_cv_prog_cc_g = yes; then
11702 if test "$GCC" = yes; then
11703 CFLAGS="-g -O2"
11704 else
11705 CFLAGS="-g"
11706 fi
11707else
11708 if test "$GCC" = yes; then
11709 CFLAGS="-O2"
11710 else
11711 CFLAGS=
11712 fi
11713fi
11714echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11715echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11716if test "${ac_cv_prog_cc_stdc+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718else
11719 ac_cv_prog_cc_stdc=no
11720ac_save_CC=$CC
11721cat >conftest.$ac_ext <<_ACEOF
11722/* confdefs.h. */
11723_ACEOF
11724cat confdefs.h >>conftest.$ac_ext
11725cat >>conftest.$ac_ext <<_ACEOF
11726/* end confdefs.h. */
11727#include <stdarg.h>
11728#include <stdio.h>
11729#include <sys/types.h>
11730#include <sys/stat.h>
11731/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11732struct buf { int x; };
11733FILE * (*rcsopen) (struct buf *, struct stat *, int);
11734static char *e (p, i)
11735 char **p;
11736 int i;
11737{
11738 return p[i];
11739}
11740static char *f (char * (*g) (char **, int), char **p, ...)
11741{
11742 char *s;
11743 va_list v;
11744 va_start (v,p);
11745 s = g (p, va_arg (v,int));
11746 va_end (v);
11747 return s;
11748}
ac1cb8d3
VS
11749
11750/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11751 function prototypes and stuff, but not '\xHH' hex character constants.
11752 These don't provoke an error unfortunately, instead are silently treated
11753 as 'x'. The following induces an error, until -std1 is added to get
11754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11755 array size at least. It's necessary to write '\x00'==0 to get something
11756 that's true only with -std1. */
11757int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11758
a848cd7e
SC
11759int test (int i, double x);
11760struct s1 {int (*f) (int a);};
11761struct s2 {int (*f) (double a);};
11762int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11763int argc;
11764char **argv;
11765int
11766main ()
11767{
11768return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11769 ;
11770 return 0;
11771}
11772_ACEOF
11773# Don't try gcc -ansi; that turns off useful extensions and
11774# breaks some systems' header files.
11775# AIX -qlanglvl=ansi
11776# Ultrix and OSF/1 -std1
11777# HP-UX 10.20 and later -Ae
11778# HP-UX older versions -Aa -D_HPUX_SOURCE
11779# SVR4 -Xc -D__EXTENSIONS__
11780for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11781do
11782 CC="$ac_save_CC $ac_arg"
11783 rm -f conftest.$ac_objext
11784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11785 (eval $ac_compile) 2>conftest.er1
a848cd7e 11786 ac_status=$?
ac1cb8d3
VS
11787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
a848cd7e
SC
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
3565d135
RR
11792 { ac_try='test -z "$ac_c_werror_flag"
11793 || test ! -s conftest.err'
ac1cb8d3
VS
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_cv_prog_cc_stdc=$ac_arg
11806break
11807else
11808 echo "$as_me: failed program was:" >&5
11809sed 's/^/| /' conftest.$ac_ext >&5
11810
11811fi
ac1cb8d3 11812rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11813done
11814rm -f conftest.$ac_ext conftest.$ac_objext
11815CC=$ac_save_CC
11816
11817fi
11818
11819case "x$ac_cv_prog_cc_stdc" in
11820 x|xno)
11821 echo "$as_me:$LINENO: result: none needed" >&5
11822echo "${ECHO_T}none needed" >&6 ;;
11823 *)
11824 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11825echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11826 CC="$CC $ac_cv_prog_cc_stdc" ;;
11827esac
11828
11829# Some people use a C++ compiler to compile C. Since we use `exit',
11830# in C++ we need to declare it. In case someone uses the same compiler
11831# for both compiling C and C++ we need to have the C++ compiler decide
11832# the declaration of exit, since it's the most demanding environment.
11833cat >conftest.$ac_ext <<_ACEOF
11834#ifndef __cplusplus
11835 choke me
11836#endif
11837_ACEOF
11838rm -f conftest.$ac_objext
11839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11840 (eval $ac_compile) 2>conftest.er1
a848cd7e 11841 ac_status=$?
ac1cb8d3
VS
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
a848cd7e
SC
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
3565d135
RR
11847 { ac_try='test -z "$ac_c_werror_flag"
11848 || test ! -s conftest.err'
ac1cb8d3
VS
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; } &&
11854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 for ac_declaration in \
ac1cb8d3 11861 '' \
a848cd7e
SC
11862 'extern "C" void std::exit (int) throw (); using std::exit;' \
11863 'extern "C" void std::exit (int); using std::exit;' \
11864 'extern "C" void exit (int) throw ();' \
11865 'extern "C" void exit (int);' \
11866 'void exit (int);'
11867do
11868 cat >conftest.$ac_ext <<_ACEOF
11869/* confdefs.h. */
11870_ACEOF
11871cat confdefs.h >>conftest.$ac_ext
11872cat >>conftest.$ac_ext <<_ACEOF
11873/* end confdefs.h. */
de59c161 11874$ac_declaration
ac1cb8d3 11875#include <stdlib.h>
a848cd7e
SC
11876int
11877main ()
11878{
11879exit (42);
11880 ;
11881 return 0;
11882}
11883_ACEOF
11884rm -f conftest.$ac_objext
11885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11886 (eval $ac_compile) 2>conftest.er1
a848cd7e 11887 ac_status=$?
ac1cb8d3
VS
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
a848cd7e
SC
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
3565d135
RR
11893 { ac_try='test -z "$ac_c_werror_flag"
11894 || test ! -s conftest.err'
ac1cb8d3
VS
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; } &&
11900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
11906 :
11907else
11908 echo "$as_me: failed program was:" >&5
11909sed 's/^/| /' conftest.$ac_ext >&5
11910
11911continue
11912fi
ac1cb8d3 11913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11914 cat >conftest.$ac_ext <<_ACEOF
11915/* confdefs.h. */
11916_ACEOF
11917cat confdefs.h >>conftest.$ac_ext
11918cat >>conftest.$ac_ext <<_ACEOF
11919/* end confdefs.h. */
11920$ac_declaration
11921int
11922main ()
11923{
11924exit (42);
11925 ;
11926 return 0;
11927}
11928_ACEOF
11929rm -f conftest.$ac_objext
11930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11931 (eval $ac_compile) 2>conftest.er1
a848cd7e 11932 ac_status=$?
ac1cb8d3
VS
11933 grep -v '^ *+' conftest.er1 >conftest.err
11934 rm -f conftest.er1
11935 cat conftest.err >&5
a848cd7e
SC
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
3565d135
RR
11938 { ac_try='test -z "$ac_c_werror_flag"
11939 || test ! -s conftest.err'
ac1cb8d3
VS
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; } &&
11945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 break
11952else
11953 echo "$as_me: failed program was:" >&5
11954sed 's/^/| /' conftest.$ac_ext >&5
11955
11956fi
ac1cb8d3 11957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11958done
11959rm -f conftest*
11960if test -n "$ac_declaration"; then
11961 echo '#ifdef __cplusplus' >>confdefs.h
11962 echo $ac_declaration >>confdefs.h
11963 echo '#endif' >>confdefs.h
11964fi
11965
11966else
11967 echo "$as_me: failed program was:" >&5
11968sed 's/^/| /' conftest.$ac_ext >&5
11969
11970fi
ac1cb8d3 11971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11972ac_ext=c
11973ac_cpp='$CPP $CPPFLAGS'
11974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11976ac_compiler_gnu=$ac_cv_c_compiler_gnu
11977
ab0ad5f1
VZ
11978
11979
11980 ac_ext=c
11981ac_cpp='$CPP $CPPFLAGS'
11982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11984ac_compiler_gnu=$ac_cv_c_compiler_gnu
11985
11986 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11987echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11988if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11990else
11991 cat >conftest.$ac_ext <<_ACEOF
11992/* confdefs.h. */
11993_ACEOF
11994cat confdefs.h >>conftest.$ac_ext
11995cat >>conftest.$ac_ext <<_ACEOF
11996/* end confdefs.h. */
11997
11998int
11999main ()
12000{
12001
12002 #ifndef __INTEL_COMPILER
12003 choke me
12004 #endif
12005
12006 ;
12007 return 0;
12008}
12009_ACEOF
12010rm -f conftest.$ac_objext
12011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012 (eval $ac_compile) 2>conftest.er1
12013 ac_status=$?
12014 grep -v '^ *+' conftest.er1 >conftest.err
12015 rm -f conftest.er1
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
3565d135
RR
12019 { ac_try='test -z "$ac_c_werror_flag"
12020 || test ! -s conftest.err'
ab0ad5f1
VZ
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; } &&
12026 { ac_try='test -s conftest.$ac_objext'
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12033else
12034 echo "$as_me: failed program was:" >&5
12035sed 's/^/| /' conftest.$ac_ext >&5
12036
12037bakefile_cv_c_compiler___INTEL_COMPILER=no
12038
12039fi
12040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12041
12042
12043fi
12044echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12045echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12046 ac_ext=c
12047ac_cpp='$CPP $CPPFLAGS'
12048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12050ac_compiler_gnu=$ac_cv_c_compiler_gnu
12051
12052 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12053 :; INTELCC=yes
12054 else
12055 :;
12056 fi
12057
12058
12059 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12060 if test "xCC" = "xC"; then
12061 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12062echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12063if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12065else
12066 cat >conftest.$ac_ext <<_ACEOF
12067/* confdefs.h. */
12068_ACEOF
12069cat confdefs.h >>conftest.$ac_ext
12070cat >>conftest.$ac_ext <<_ACEOF
12071/* end confdefs.h. */
12072
12073int
12074main ()
12075{
12076
12077 ;
12078 return 0;
12079}
12080_ACEOF
12081rm -f conftest.$ac_objext conftest.$ac_ext.o
12082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12083 (eval $ac_compile) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; then
12087 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12088 case $ac_file in
12089 conftest.$ac_ext.o)
0093c2fc 12090 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12091 ;;
12092 *)
12093 ;;
12094 esac
12095done
12096else
12097 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12098See \`config.log' for more details." >&5
12099echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12100See \`config.log' for more details." >&2;}
12101 { (exit 1); exit 1; }; }
12102
12103fi
12104
12105rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12106
12107fi
0093c2fc
VZ
12108echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12109echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12110if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12111 if test "c" = "c"; then
0093c2fc 12112 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12113 fi
12114 if test "c" = "cxx"; then
0093c2fc 12115 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12116 fi
12117fi
12118
0093c2fc 12119 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12120 unset ac_cv_prog_cc_g
12121 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12122ac_save_CFLAGS=$CFLAGS
8aeeb05c 12123CFLAGS="-g"
480ccd21
DE
12124echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12125echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12126if test "${ac_cv_prog_cc_g+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128else
12129 cat >conftest.$ac_ext <<_ACEOF
12130/* confdefs.h. */
12131_ACEOF
12132cat confdefs.h >>conftest.$ac_ext
12133cat >>conftest.$ac_ext <<_ACEOF
12134/* end confdefs.h. */
12135
12136int
12137main ()
12138{
12139
12140 ;
12141 return 0;
12142}
12143_ACEOF
12144rm -f conftest.$ac_objext
12145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12146 (eval $ac_compile) 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
3565d135
RR
12153 { ac_try='test -z "$ac_c_werror_flag"
12154 || test ! -s conftest.err'
480ccd21
DE
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest.$ac_objext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_prog_cc_g=yes
12167else
12168 echo "$as_me: failed program was:" >&5
12169sed 's/^/| /' conftest.$ac_ext >&5
12170
12171ac_cv_prog_cc_g=no
12172fi
12173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12174fi
12175echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12176echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12177if test "$ac_test_CFLAGS" = set; then
12178 CFLAGS=$ac_save_CFLAGS
12179elif test $ac_cv_prog_cc_g = yes; then
12180 if test "$GCC" = yes; then
12181 CFLAGS="-g -O2"
12182 else
12183 CFLAGS="-g"
12184 fi
12185else
12186 if test "$GCC" = yes; then
12187 CFLAGS="-O2"
12188 else
12189 CFLAGS=
12190 fi
12191fi
3006edc0 12192 fi
ab0ad5f1 12193 fi
3006edc0
VZ
12194
12195 case `uname -s` in
12196 AIX*)
12197 ac_ext=c
12198ac_cpp='$CPP $CPPFLAGS'
12199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12201ac_compiler_gnu=$ac_cv_c_compiler_gnu
12202
12203echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12204echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12205if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207else
12208 cat >conftest.$ac_ext <<_ACEOF
12209/* confdefs.h. */
12210_ACEOF
12211cat confdefs.h >>conftest.$ac_ext
12212cat >>conftest.$ac_ext <<_ACEOF
12213/* end confdefs.h. */
12214
12215int
12216main ()
12217{
12218#ifndef __xlC__
12219 choke me
12220#endif
12221
12222 ;
12223 return 0;
12224}
12225_ACEOF
12226rm -f conftest.$ac_objext
12227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12228 (eval $ac_compile) 2>conftest.er1
12229 ac_status=$?
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
3565d135
RR
12235 { ac_try='test -z "$ac_c_werror_flag"
12236 || test ! -s conftest.err'
3006edc0
VZ
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest.$ac_objext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
0093c2fc 12248 bakefile_compiler_xlc=yes
3006edc0
VZ
12249else
12250 echo "$as_me: failed program was:" >&5
12251sed 's/^/| /' conftest.$ac_ext >&5
12252
0093c2fc 12253bakefile_compiler_xlc=no
3006edc0
VZ
12254fi
12255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12256 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12257
12258fi
0093c2fc
VZ
12259echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12260echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12261
0093c2fc 12262XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12263ac_ext=c
12264ac_cpp='$CPP $CPPFLAGS'
12265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12267ac_compiler_gnu=$ac_cv_c_compiler_gnu
12268
12269
12270 ;;
12271
12272 Darwin)
12273 ac_ext=c
95986553
DE
12274ac_cpp='$CPP $CPPFLAGS'
12275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12277ac_compiler_gnu=$ac_cv_c_compiler_gnu
12278
12279echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12280echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12281if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283else
12284 cat >conftest.$ac_ext <<_ACEOF
12285/* confdefs.h. */
12286_ACEOF
12287cat confdefs.h >>conftest.$ac_ext
12288cat >>conftest.$ac_ext <<_ACEOF
12289/* end confdefs.h. */
12290
12291int
12292main ()
12293{
12294#ifndef __MWERKS__
12295 choke me
12296#endif
12297
12298 ;
12299 return 0;
12300}
12301_ACEOF
12302rm -f conftest.$ac_objext
12303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304 (eval $ac_compile) 2>conftest.er1
12305 ac_status=$?
12306 grep -v '^ *+' conftest.er1 >conftest.err
12307 rm -f conftest.er1
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } &&
3565d135
RR
12311 { ac_try='test -z "$ac_c_werror_flag"
12312 || test ! -s conftest.err'
95986553
DE
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; } &&
12318 { ac_try='test -s conftest.$ac_objext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 bakefile_compiler_mwerks=yes
12325else
12326 echo "$as_me: failed program was:" >&5
12327sed 's/^/| /' conftest.$ac_ext >&5
12328
12329bakefile_compiler_mwerks=no
12330fi
12331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12332 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12333
12334fi
12335echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12336echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12337
0e6fa1d9 12338MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12339ac_ext=c
12340ac_cpp='$CPP $CPPFLAGS'
12341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12343ac_compiler_gnu=$ac_cv_c_compiler_gnu
12344
12345
3006edc0 12346 ac_ext=c
9273ffba
DE
12347ac_cpp='$CPP $CPPFLAGS'
12348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350ac_compiler_gnu=$ac_cv_c_compiler_gnu
12351
12352echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12353echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12354if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12356else
12357 cat >conftest.$ac_ext <<_ACEOF
12358/* confdefs.h. */
12359_ACEOF
12360cat confdefs.h >>conftest.$ac_ext
12361cat >>conftest.$ac_ext <<_ACEOF
12362/* end confdefs.h. */
12363
12364int
12365main ()
12366{
12367#ifndef __xlC__
12368 choke me
12369#endif
12370
12371 ;
12372 return 0;
12373}
12374_ACEOF
12375rm -f conftest.$ac_objext
12376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12377 (eval $ac_compile) 2>conftest.er1
12378 ac_status=$?
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
3565d135
RR
12384 { ac_try='test -z "$ac_c_werror_flag"
12385 || test ! -s conftest.err'
9273ffba
DE
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest.$ac_objext'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
0093c2fc 12397 bakefile_compiler_xlc=yes
9273ffba
DE
12398else
12399 echo "$as_me: failed program was:" >&5
12400sed 's/^/| /' conftest.$ac_ext >&5
12401
0093c2fc 12402bakefile_compiler_xlc=no
9273ffba
DE
12403fi
12404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12405 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12406
12407fi
0093c2fc
VZ
12408echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12409echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12410
0093c2fc 12411XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12412ac_ext=c
12413ac_cpp='$CPP $CPPFLAGS'
12414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12416ac_compiler_gnu=$ac_cv_c_compiler_gnu
12417
12418
3006edc0
VZ
12419 ;;
12420
12421 IRIX*)
a848cd7e 12422
6dcfc289 12423
0ad5d837
VZ
12424 ac_ext=c
12425ac_cpp='$CPP $CPPFLAGS'
12426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428ac_compiler_gnu=$ac_cv_c_compiler_gnu
12429
12430 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12431echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12432if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12433 echo $ECHO_N "(cached) $ECHO_C" >&6
12434else
12435 cat >conftest.$ac_ext <<_ACEOF
12436/* confdefs.h. */
12437_ACEOF
12438cat confdefs.h >>conftest.$ac_ext
12439cat >>conftest.$ac_ext <<_ACEOF
12440/* end confdefs.h. */
12441
12442int
12443main ()
12444{
12445
12446 #ifndef _SGI_COMPILER_VERSION
12447 choke me
12448 #endif
12449
12450 ;
12451 return 0;
12452}
12453_ACEOF
12454rm -f conftest.$ac_objext
12455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12456 (eval $ac_compile) 2>conftest.er1
12457 ac_status=$?
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
3565d135
RR
12463 { ac_try='test -z "$ac_c_werror_flag"
12464 || test ! -s conftest.err'
0ad5d837
VZ
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try='test -s conftest.$ac_objext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12477else
12478 echo "$as_me: failed program was:" >&5
12479sed 's/^/| /' conftest.$ac_ext >&5
12480
12481bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12482
12483fi
12484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12485
12486
12487fi
12488echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12489echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12490 ac_ext=c
12491ac_cpp='$CPP $CPPFLAGS'
12492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12494ac_compiler_gnu=$ac_cv_c_compiler_gnu
12495
12496 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12497 :; SGICC=yes
12498 else
12499 :;
12500 fi
12501
12502
3006edc0
VZ
12503 ;;
12504
0093c2fc 12505 HP-UX*)
3006edc0
VZ
12506
12507
12508 ac_ext=c
12509ac_cpp='$CPP $CPPFLAGS'
12510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12512ac_compiler_gnu=$ac_cv_c_compiler_gnu
12513
0093c2fc
VZ
12514 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12515echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12516if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518else
12519 cat >conftest.$ac_ext <<_ACEOF
12520/* confdefs.h. */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h. */
12525
12526int
12527main ()
12528{
12529
0093c2fc 12530 #ifndef __HP_cc
3006edc0
VZ
12531 choke me
12532 #endif
12533
12534 ;
12535 return 0;
12536}
12537_ACEOF
12538rm -f conftest.$ac_objext
12539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12540 (eval $ac_compile) 2>conftest.er1
12541 ac_status=$?
12542 grep -v '^ *+' conftest.er1 >conftest.err
12543 rm -f conftest.er1
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } &&
3565d135
RR
12547 { ac_try='test -z "$ac_c_werror_flag"
12548 || test ! -s conftest.err'
3006edc0
VZ
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } &&
12554 { ac_try='test -s conftest.$ac_objext'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
0093c2fc 12560 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12561else
12562 echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
0093c2fc 12565bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12566
12567fi
12568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12569
12570
12571fi
0093c2fc
VZ
12572echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12573echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12574 ac_ext=c
12575ac_cpp='$CPP $CPPFLAGS'
12576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12578ac_compiler_gnu=$ac_cv_c_compiler_gnu
12579
0093c2fc
VZ
12580 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12581 :; HPCC=yes
a1aa0349
VZ
12582 else
12583 :;
12584 fi
12585
12586
12587 ;;
12588
0093c2fc 12589 OSF1)
a1aa0349
VZ
12590
12591
12592 ac_ext=c
12593ac_cpp='$CPP $CPPFLAGS'
12594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12596ac_compiler_gnu=$ac_cv_c_compiler_gnu
12597
0093c2fc
VZ
12598 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12599echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12600if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602else
12603 cat >conftest.$ac_ext <<_ACEOF
12604/* confdefs.h. */
12605_ACEOF
12606cat confdefs.h >>conftest.$ac_ext
12607cat >>conftest.$ac_ext <<_ACEOF
12608/* end confdefs.h. */
12609
12610int
12611main ()
12612{
12613
0093c2fc 12614 #ifndef __DECC
a1aa0349
VZ
12615 choke me
12616 #endif
12617
12618 ;
12619 return 0;
12620}
12621_ACEOF
12622rm -f conftest.$ac_objext
12623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12624 (eval $ac_compile) 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
3565d135
RR
12631 { ac_try='test -z "$ac_c_werror_flag"
12632 || test ! -s conftest.err'
a1aa0349
VZ
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest.$ac_objext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
0093c2fc 12644 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12645else
12646 echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
0093c2fc 12649bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12650
12651fi
12652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12653
12654
12655fi
0093c2fc
VZ
12656echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12657echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12658 ac_ext=c
12659ac_cpp='$CPP $CPPFLAGS'
12660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12662ac_compiler_gnu=$ac_cv_c_compiler_gnu
12663
0093c2fc
VZ
12664 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12665 :; COMPAQCC=yes
12666 else
12667 :;
12668 fi
12669
12670
12671 ;;
12672
12673 SunOS)
12674
12675
12676 ac_ext=c
12677ac_cpp='$CPP $CPPFLAGS'
12678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12680ac_compiler_gnu=$ac_cv_c_compiler_gnu
12681
12682 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12683echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12684if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686else
12687 cat >conftest.$ac_ext <<_ACEOF
12688/* confdefs.h. */
12689_ACEOF
12690cat confdefs.h >>conftest.$ac_ext
12691cat >>conftest.$ac_ext <<_ACEOF
12692/* end confdefs.h. */
12693
12694int
12695main ()
12696{
12697
12698 #ifndef __SUNPRO_C
12699 choke me
12700 #endif
12701
12702 ;
12703 return 0;
12704}
12705_ACEOF
12706rm -f conftest.$ac_objext
12707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12708 (eval $ac_compile) 2>conftest.er1
12709 ac_status=$?
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
3565d135
RR
12715 { ac_try='test -z "$ac_c_werror_flag"
12716 || test ! -s conftest.err'
0093c2fc
VZ
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest.$ac_objext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 bakefile_cv_c_compiler___SUNPRO_C=yes
12729else
12730 echo "$as_me: failed program was:" >&5
12731sed 's/^/| /' conftest.$ac_ext >&5
12732
12733bakefile_cv_c_compiler___SUNPRO_C=no
12734
12735fi
12736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12737
12738
12739fi
12740echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12741echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12742 ac_ext=c
12743ac_cpp='$CPP $CPPFLAGS'
12744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12746ac_compiler_gnu=$ac_cv_c_compiler_gnu
12747
12748 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12749 :; SUNCC=yes
3006edc0
VZ
12750 else
12751 :;
12752 fi
12753
12754
12755 ;;
12756 esac
ab0ad5f1 12757 fi
a9e5b1f0
MW
12758
12759
3006edc0 12760
a848cd7e
SC
12761ac_ext=c
12762ac_cpp='$CPP $CPPFLAGS'
12763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12765ac_compiler_gnu=$ac_cv_c_compiler_gnu
12766echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12767echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12768# On Suns, sometimes $CPP names a directory.
12769if test -n "$CPP" && test -d "$CPP"; then
12770 CPP=
12771fi
12772if test -z "$CPP"; then
12773 if test "${ac_cv_prog_CPP+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12775else
12776 # Double quotes because CPP needs to be expanded
12777 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12778 do
12779 ac_preproc_ok=false
12780for ac_c_preproc_warn_flag in '' yes
12781do
12782 # Use a header file that comes with gcc, so configuring glibc
12783 # with a fresh cross-compiler works.
12784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12785 # <limits.h> exists even on freestanding compilers.
12786 # On the NeXT, cc -E runs the code through the compiler's parser,
12787 # not just through cpp. "Syntax error" is here to catch this case.
12788 cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
12794#ifdef __STDC__
12795# include <limits.h>
12796#else
12797# include <assert.h>
12798#endif
ac1cb8d3 12799 Syntax error
a848cd7e
SC
12800_ACEOF
12801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } >/dev/null; then
12809 if test -s conftest.err; then
12810 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12812 else
12813 ac_cpp_err=
12814 fi
12815else
12816 ac_cpp_err=yes
12817fi
12818if test -z "$ac_cpp_err"; then
12819 :
12820else
12821 echo "$as_me: failed program was:" >&5
12822sed 's/^/| /' conftest.$ac_ext >&5
12823
12824 # Broken: fails on valid input.
12825continue
12826fi
12827rm -f conftest.err conftest.$ac_ext
12828
12829 # OK, works on sane cases. Now check whether non-existent headers
12830 # can be detected and how.
12831 cat >conftest.$ac_ext <<_ACEOF
12832/* confdefs.h. */
12833_ACEOF
12834cat confdefs.h >>conftest.$ac_ext
12835cat >>conftest.$ac_ext <<_ACEOF
12836/* end confdefs.h. */
12837#include <ac_nonexistent.h>
12838_ACEOF
12839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } >/dev/null; then
12847 if test -s conftest.err; then
12848 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12850 else
12851 ac_cpp_err=
12852 fi
12853else
12854 ac_cpp_err=yes
12855fi
12856if test -z "$ac_cpp_err"; then
12857 # Broken: success on invalid input.
12858continue
12859else
12860 echo "$as_me: failed program was:" >&5
12861sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 # Passes both tests.
12864ac_preproc_ok=:
12865break
12866fi
12867rm -f conftest.err conftest.$ac_ext
12868
12869done
12870# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12871rm -f conftest.err conftest.$ac_ext
12872if $ac_preproc_ok; then
12873 break
12874fi
12875
12876 done
12877 ac_cv_prog_CPP=$CPP
12878
12879fi
12880 CPP=$ac_cv_prog_CPP
12881else
12882 ac_cv_prog_CPP=$CPP
12883fi
12884echo "$as_me:$LINENO: result: $CPP" >&5
12885echo "${ECHO_T}$CPP" >&6
12886ac_preproc_ok=false
12887for ac_c_preproc_warn_flag in '' yes
12888do
12889 # Use a header file that comes with gcc, so configuring glibc
12890 # with a fresh cross-compiler works.
12891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12892 # <limits.h> exists even on freestanding compilers.
12893 # On the NeXT, cc -E runs the code through the compiler's parser,
12894 # not just through cpp. "Syntax error" is here to catch this case.
12895 cat >conftest.$ac_ext <<_ACEOF
12896/* confdefs.h. */
12897_ACEOF
12898cat confdefs.h >>conftest.$ac_ext
12899cat >>conftest.$ac_ext <<_ACEOF
12900/* end confdefs.h. */
12901#ifdef __STDC__
12902# include <limits.h>
12903#else
12904# include <assert.h>
12905#endif
ac1cb8d3 12906 Syntax error
a848cd7e
SC
12907_ACEOF
12908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } >/dev/null; then
12916 if test -s conftest.err; then
12917 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12919 else
12920 ac_cpp_err=
12921 fi
12922else
12923 ac_cpp_err=yes
12924fi
12925if test -z "$ac_cpp_err"; then
12926 :
12927else
12928 echo "$as_me: failed program was:" >&5
12929sed 's/^/| /' conftest.$ac_ext >&5
12930
12931 # Broken: fails on valid input.
12932continue
12933fi
12934rm -f conftest.err conftest.$ac_ext
12935
12936 # OK, works on sane cases. Now check whether non-existent headers
12937 # can be detected and how.
12938 cat >conftest.$ac_ext <<_ACEOF
12939/* confdefs.h. */
12940_ACEOF
12941cat confdefs.h >>conftest.$ac_ext
12942cat >>conftest.$ac_ext <<_ACEOF
12943/* end confdefs.h. */
12944#include <ac_nonexistent.h>
12945_ACEOF
12946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12948 ac_status=$?
12949 grep -v '^ *+' conftest.er1 >conftest.err
12950 rm -f conftest.er1
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } >/dev/null; then
12954 if test -s conftest.err; then
12955 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12957 else
12958 ac_cpp_err=
12959 fi
12960else
12961 ac_cpp_err=yes
12962fi
12963if test -z "$ac_cpp_err"; then
12964 # Broken: success on invalid input.
12965continue
12966else
12967 echo "$as_me: failed program was:" >&5
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
12970 # Passes both tests.
12971ac_preproc_ok=:
12972break
12973fi
12974rm -f conftest.err conftest.$ac_ext
12975
12976done
12977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12978rm -f conftest.err conftest.$ac_ext
12979if $ac_preproc_ok; then
12980 :
12981else
12982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12983See \`config.log' for more details." >&5
12984echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12985See \`config.log' for more details." >&2;}
12986 { (exit 1); exit 1; }; }
12987fi
12988
12989ac_ext=c
12990ac_cpp='$CPP $CPPFLAGS'
12991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12993ac_compiler_gnu=$ac_cv_c_compiler_gnu
12994
12995
12996echo "$as_me:$LINENO: checking for egrep" >&5
12997echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12998if test "${ac_cv_prog_egrep+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13000else
13001 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13002 then ac_cv_prog_egrep='grep -E'
13003 else ac_cv_prog_egrep='egrep'
13004 fi
13005fi
13006echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13007echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13008 EGREP=$ac_cv_prog_egrep
13009
13010
13011if test $ac_cv_c_compiler_gnu = yes; then
13012 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13013echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13014if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13016else
13017 ac_pattern="Autoconf.*'x'"
13018 cat >conftest.$ac_ext <<_ACEOF
13019/* confdefs.h. */
13020_ACEOF
13021cat confdefs.h >>conftest.$ac_ext
13022cat >>conftest.$ac_ext <<_ACEOF
13023/* end confdefs.h. */
13024#include <sgtty.h>
13025Autoconf TIOCGETP
13026_ACEOF
13027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13028 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13029 ac_cv_prog_gcc_traditional=yes
13030else
13031 ac_cv_prog_gcc_traditional=no
13032fi
13033rm -f conftest*
13034
13035
13036 if test $ac_cv_prog_gcc_traditional = no; then
13037 cat >conftest.$ac_ext <<_ACEOF
13038/* confdefs.h. */
13039_ACEOF
13040cat confdefs.h >>conftest.$ac_ext
13041cat >>conftest.$ac_ext <<_ACEOF
13042/* end confdefs.h. */
13043#include <termio.h>
13044Autoconf TCGETA
13045_ACEOF
13046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13047 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13048 ac_cv_prog_gcc_traditional=yes
13049fi
13050rm -f conftest*
13051
13052 fi
13053fi
13054echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13055echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13056 if test $ac_cv_prog_gcc_traditional = yes; then
13057 CC="$CC -traditional"
13058 fi
13059fi
13060
13061
a848cd7e
SC
13062ac_ext=cc
13063ac_cpp='$CXXCPP $CPPFLAGS'
13064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13067
13068
13069CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13070
13071
3006edc0 13072
6dcfc289 13073 ac_ext=cc
a848cd7e
SC
13074ac_cpp='$CXXCPP $CPPFLAGS'
13075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13078if test -n "$ac_tool_prefix"; then
13079 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13080 do
13081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13083echo "$as_me:$LINENO: checking for $ac_word" >&5
13084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13085if test "${ac_cv_prog_CXX+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13087else
13088 if test -n "$CXX"; then
13089 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13090else
13091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092for as_dir in $PATH
13093do
13094 IFS=$as_save_IFS
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
13097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13098 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13100 break 2
13101 fi
13102done
13103done
13104
13105fi
13106fi
13107CXX=$ac_cv_prog_CXX
13108if test -n "$CXX"; then
13109 echo "$as_me:$LINENO: result: $CXX" >&5
13110echo "${ECHO_T}$CXX" >&6
13111else
13112 echo "$as_me:$LINENO: result: no" >&5
13113echo "${ECHO_T}no" >&6
13114fi
13115
13116 test -n "$CXX" && break
13117 done
13118fi
13119if test -z "$CXX"; then
13120 ac_ct_CXX=$CXX
13121 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13122do
13123 # Extract the first word of "$ac_prog", so it can be a program name with args.
13124set dummy $ac_prog; ac_word=$2
13125echo "$as_me:$LINENO: checking for $ac_word" >&5
13126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13127if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13129else
13130 if test -n "$ac_ct_CXX"; then
13131 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13132else
13133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134for as_dir in $PATH
13135do
13136 IFS=$as_save_IFS
13137 test -z "$as_dir" && as_dir=.
13138 for ac_exec_ext in '' $ac_executable_extensions; do
13139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13140 ac_cv_prog_ac_ct_CXX="$ac_prog"
13141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13142 break 2
13143 fi
13144done
13145done
13146
13147fi
13148fi
13149ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13150if test -n "$ac_ct_CXX"; then
13151 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13152echo "${ECHO_T}$ac_ct_CXX" >&6
13153else
13154 echo "$as_me:$LINENO: result: no" >&5
13155echo "${ECHO_T}no" >&6
13156fi
13157
13158 test -n "$ac_ct_CXX" && break
13159done
13160test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13161
13162 CXX=$ac_ct_CXX
13163fi
13164
13165
13166# Provide some information about the compiler.
13167echo "$as_me:$LINENO:" \
13168 "checking for C++ compiler version" >&5
13169ac_compiler=`set X $ac_compile; echo $2`
13170{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13171 (eval $ac_compiler --version </dev/null >&5) 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }
13175{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13176 (eval $ac_compiler -v </dev/null >&5) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }
13180{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13181 (eval $ac_compiler -V </dev/null >&5) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }
13185
13186echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13187echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13188if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13190else
13191 cat >conftest.$ac_ext <<_ACEOF
13192/* confdefs.h. */
13193_ACEOF
13194cat confdefs.h >>conftest.$ac_ext
13195cat >>conftest.$ac_ext <<_ACEOF
13196/* end confdefs.h. */
13197
13198int
13199main ()
13200{
13201#ifndef __GNUC__
13202 choke me
13203#endif
13204
13205 ;
13206 return 0;
13207}
13208_ACEOF
13209rm -f conftest.$ac_objext
13210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13211 (eval $ac_compile) 2>conftest.er1
a848cd7e 13212 ac_status=$?
ac1cb8d3
VS
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
a848cd7e
SC
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
3565d135
RR
13218 { ac_try='test -z "$ac_cxx_werror_flag"
13219 || test ! -s conftest.err'
ac1cb8d3
VS
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; } &&
13225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 ac_compiler_gnu=yes
13232else
13233 echo "$as_me: failed program was:" >&5
13234sed 's/^/| /' conftest.$ac_ext >&5
13235
13236ac_compiler_gnu=no
13237fi
ac1cb8d3 13238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13239ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13240
13241fi
13242echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13243echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13244GXX=`test $ac_compiler_gnu = yes && echo yes`
13245ac_test_CXXFLAGS=${CXXFLAGS+set}
13246ac_save_CXXFLAGS=$CXXFLAGS
13247CXXFLAGS="-g"
13248echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13249echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13250if test "${ac_cv_prog_cxx_g+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252else
13253 cat >conftest.$ac_ext <<_ACEOF
13254/* confdefs.h. */
13255_ACEOF
13256cat confdefs.h >>conftest.$ac_ext
13257cat >>conftest.$ac_ext <<_ACEOF
13258/* end confdefs.h. */
13259
13260int
13261main ()
13262{
13263
13264 ;
13265 return 0;
13266}
13267_ACEOF
13268rm -f conftest.$ac_objext
13269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13270 (eval $ac_compile) 2>conftest.er1
a848cd7e 13271 ac_status=$?
ac1cb8d3
VS
13272 grep -v '^ *+' conftest.er1 >conftest.err
13273 rm -f conftest.er1
13274 cat conftest.err >&5
a848cd7e
SC
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } &&
3565d135
RR
13277 { ac_try='test -z "$ac_cxx_werror_flag"
13278 || test ! -s conftest.err'
ac1cb8d3
VS
13279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280 (eval $ac_try) 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; } &&
13284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; }; then
13290 ac_cv_prog_cxx_g=yes
13291else
13292 echo "$as_me: failed program was:" >&5
13293sed 's/^/| /' conftest.$ac_ext >&5
13294
13295ac_cv_prog_cxx_g=no
13296fi
ac1cb8d3 13297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13298fi
13299echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13300echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13301if test "$ac_test_CXXFLAGS" = set; then
13302 CXXFLAGS=$ac_save_CXXFLAGS
13303elif test $ac_cv_prog_cxx_g = yes; then
13304 if test "$GXX" = yes; then
8aeeb05c 13305 CXXFLAGS="-g -O2"
a848cd7e 13306 else
8aeeb05c 13307 CXXFLAGS="-g"
a848cd7e
SC
13308 fi
13309else
13310 if test "$GXX" = yes; then
13311 CXXFLAGS="-O2"
13312 else
13313 CXXFLAGS=
13314 fi
13315fi
13316for ac_declaration in \
ac1cb8d3 13317 '' \
a848cd7e
SC
13318 'extern "C" void std::exit (int) throw (); using std::exit;' \
13319 'extern "C" void std::exit (int); using std::exit;' \
13320 'extern "C" void exit (int) throw ();' \
13321 'extern "C" void exit (int);' \
13322 'void exit (int);'
13323do
13324 cat >conftest.$ac_ext <<_ACEOF
13325/* confdefs.h. */
13326_ACEOF
13327cat confdefs.h >>conftest.$ac_ext
13328cat >>conftest.$ac_ext <<_ACEOF
13329/* end confdefs.h. */
de59c161 13330$ac_declaration
ac1cb8d3 13331#include <stdlib.h>
a848cd7e
SC
13332int
13333main ()
13334{
13335exit (42);
13336 ;
13337 return 0;
13338}
13339_ACEOF
13340rm -f conftest.$ac_objext
13341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13342 (eval $ac_compile) 2>conftest.er1
a848cd7e 13343 ac_status=$?
ac1cb8d3
VS
13344 grep -v '^ *+' conftest.er1 >conftest.err
13345 rm -f conftest.er1
13346 cat conftest.err >&5
a848cd7e
SC
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
3565d135
RR
13349 { ac_try='test -z "$ac_cxx_werror_flag"
13350 || test ! -s conftest.err'
ac1cb8d3
VS
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; } &&
13356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 :
13363else
13364 echo "$as_me: failed program was:" >&5
13365sed 's/^/| /' conftest.$ac_ext >&5
13366
13367continue
13368fi
ac1cb8d3 13369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13370 cat >conftest.$ac_ext <<_ACEOF
13371/* confdefs.h. */
13372_ACEOF
13373cat confdefs.h >>conftest.$ac_ext
13374cat >>conftest.$ac_ext <<_ACEOF
13375/* end confdefs.h. */
13376$ac_declaration
13377int
13378main ()
13379{
13380exit (42);
13381 ;
13382 return 0;
13383}
13384_ACEOF
13385rm -f conftest.$ac_objext
13386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13387 (eval $ac_compile) 2>conftest.er1
a848cd7e 13388 ac_status=$?
ac1cb8d3
VS
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
a848cd7e
SC
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
3565d135
RR
13394 { ac_try='test -z "$ac_cxx_werror_flag"
13395 || test ! -s conftest.err'
ac1cb8d3
VS
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 break
13408else
13409 echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
13412fi
ac1cb8d3 13413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13414done
13415rm -f conftest*
13416if test -n "$ac_declaration"; then
13417 echo '#ifdef __cplusplus' >>confdefs.h
13418 echo $ac_declaration >>confdefs.h
13419 echo '#endif' >>confdefs.h
13420fi
13421
13422ac_ext=cc
13423ac_cpp='$CXXCPP $CPPFLAGS'
13424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13427
ab0ad5f1
VZ
13428
13429
13430 ac_ext=cc
13431ac_cpp='$CXXCPP $CPPFLAGS'
13432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13435
13436 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13437echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13438if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13440else
13441 cat >conftest.$ac_ext <<_ACEOF
13442/* confdefs.h. */
13443_ACEOF
13444cat confdefs.h >>conftest.$ac_ext
13445cat >>conftest.$ac_ext <<_ACEOF
13446/* end confdefs.h. */
13447
13448int
13449main ()
13450{
13451
13452 #ifndef __INTEL_COMPILER
13453 choke me
13454 #endif
13455
13456 ;
13457 return 0;
13458}
13459_ACEOF
13460rm -f conftest.$ac_objext
13461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13462 (eval $ac_compile) 2>conftest.er1
13463 ac_status=$?
13464 grep -v '^ *+' conftest.er1 >conftest.err
13465 rm -f conftest.er1
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } &&
3565d135
RR
13469 { ac_try='test -z "$ac_cxx_werror_flag"
13470 || test ! -s conftest.err'
ab0ad5f1
VZ
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; } &&
13476 { ac_try='test -s conftest.$ac_objext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13483else
13484 echo "$as_me: failed program was:" >&5
13485sed 's/^/| /' conftest.$ac_ext >&5
13486
13487bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13488
13489fi
13490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13491
13492
13493fi
13494echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13495echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13496 ac_ext=cc
13497ac_cpp='$CXXCPP $CPPFLAGS'
13498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13501
13502 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13503 :; INTELCXX=yes
13504 else
13505 :;
13506 fi
13507
13508
3006edc0
VZ
13509 if test "x$GCXX" != "xyes"; then
13510 if test "xCXX" = "xC"; then
13511 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13512echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13513if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515else
13516 cat >conftest.$ac_ext <<_ACEOF
13517/* confdefs.h. */
13518_ACEOF
13519cat confdefs.h >>conftest.$ac_ext
13520cat >>conftest.$ac_ext <<_ACEOF
13521/* end confdefs.h. */
13522
13523int
13524main ()
13525{
13526
13527 ;
13528 return 0;
13529}
13530_ACEOF
13531rm -f conftest.$ac_objext conftest.$ac_ext.o
13532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13533 (eval $ac_compile) 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; then
13537 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13538 case $ac_file in
13539 conftest.$ac_ext.o)
0093c2fc 13540 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13541 ;;
13542 *)
13543 ;;
13544 esac
13545done
13546else
13547 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13548See \`config.log' for more details." >&5
13549echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13550See \`config.log' for more details." >&2;}
13551 { (exit 1); exit 1; }; }
13552
13553fi
13554
13555rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13556
13557fi
0093c2fc
VZ
13558echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13559echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13560if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13561 if test "cxx" = "c"; then
0093c2fc 13562 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13563 fi
13564 if test "cxx" = "cxx"; then
0093c2fc 13565 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13566 fi
13567fi
13568
0093c2fc 13569 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13570 unset ac_cv_prog_cc_g
13571 ac_test_CFLAGS=${CFLAGS+set}
13572ac_save_CFLAGS=$CFLAGS
8aeeb05c 13573CFLAGS="-g"
3006edc0
VZ
13574echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13575echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13576if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578else
13579 cat >conftest.$ac_ext <<_ACEOF
13580/* confdefs.h. */
13581_ACEOF
13582cat confdefs.h >>conftest.$ac_ext
13583cat >>conftest.$ac_ext <<_ACEOF
13584/* end confdefs.h. */
13585
13586int
13587main ()
13588{
13589
13590 ;
13591 return 0;
13592}
13593_ACEOF
13594rm -f conftest.$ac_objext
13595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13596 (eval $ac_compile) 2>conftest.er1
13597 ac_status=$?
13598 grep -v '^ *+' conftest.er1 >conftest.err
13599 rm -f conftest.er1
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
3565d135
RR
13603 { ac_try='test -z "$ac_cxx_werror_flag"
13604 || test ! -s conftest.err'
480ccd21
DE
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
3006edc0 13616 ac_cv_prog_cc_g=yes
480ccd21
DE
13617else
13618 echo "$as_me: failed program was:" >&5
13619sed 's/^/| /' conftest.$ac_ext >&5
13620
3006edc0 13621ac_cv_prog_cc_g=no
480ccd21
DE
13622fi
13623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13624fi
3006edc0
VZ
13625echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13626echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13627if test "$ac_test_CFLAGS" = set; then
13628 CFLAGS=$ac_save_CFLAGS
13629elif test $ac_cv_prog_cc_g = yes; then
13630 if test "$GCC" = yes; then
13631 CFLAGS="-g -O2"
480ccd21 13632 else
3006edc0 13633 CFLAGS="-g"
480ccd21
DE
13634 fi
13635else
3006edc0
VZ
13636 if test "$GCC" = yes; then
13637 CFLAGS="-O2"
480ccd21 13638 else
3006edc0 13639 CFLAGS=
480ccd21
DE
13640 fi
13641fi
3006edc0 13642 fi
ab0ad5f1 13643 fi
3006edc0
VZ
13644
13645 case `uname -s` in
13646 AIX*)
13647 ac_ext=cc
13648ac_cpp='$CXXCPP $CPPFLAGS'
13649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13652
13653echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13654echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13655if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13657else
13658 cat >conftest.$ac_ext <<_ACEOF
13659/* confdefs.h. */
13660_ACEOF
13661cat confdefs.h >>conftest.$ac_ext
13662cat >>conftest.$ac_ext <<_ACEOF
13663/* end confdefs.h. */
13664
13665int
13666main ()
13667{
13668#ifndef __xlC__
13669 choke me
13670#endif
13671
13672 ;
13673 return 0;
13674}
13675_ACEOF
13676rm -f conftest.$ac_objext
13677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678 (eval $ac_compile) 2>conftest.er1
13679 ac_status=$?
13680 grep -v '^ *+' conftest.er1 >conftest.err
13681 rm -f conftest.er1
13682 cat conftest.err >&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
3565d135
RR
13685 { ac_try='test -z "$ac_cxx_werror_flag"
13686 || test ! -s conftest.err'
3006edc0
VZ
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13689 ac_status=$?
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; } &&
13692 { ac_try='test -s conftest.$ac_objext'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; }; then
0093c2fc 13698 bakefile_compiler_xlc=yes
3006edc0
VZ
13699else
13700 echo "$as_me: failed program was:" >&5
13701sed 's/^/| /' conftest.$ac_ext >&5
13702
0093c2fc 13703bakefile_compiler_xlc=no
3006edc0
VZ
13704fi
13705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13706 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13707
13708fi
0093c2fc
VZ
13709echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13710echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13711
0093c2fc 13712XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13713ac_ext=cc
13714ac_cpp='$CXXCPP $CPPFLAGS'
13715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13718
13719
13720 ;;
13721
13722 Darwin)
13723 ac_ext=cc
95986553
DE
13724ac_cpp='$CXXCPP $CPPFLAGS'
13725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13728
13729echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13730echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13731if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13733else
13734 cat >conftest.$ac_ext <<_ACEOF
13735/* confdefs.h. */
13736_ACEOF
13737cat confdefs.h >>conftest.$ac_ext
13738cat >>conftest.$ac_ext <<_ACEOF
13739/* end confdefs.h. */
13740
13741int
13742main ()
13743{
13744#ifndef __MWERKS__
13745 choke me
13746#endif
13747
13748 ;
13749 return 0;
13750}
13751_ACEOF
13752rm -f conftest.$ac_objext
13753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13754 (eval $ac_compile) 2>conftest.er1
13755 ac_status=$?
13756 grep -v '^ *+' conftest.er1 >conftest.err
13757 rm -f conftest.er1
13758 cat conftest.err >&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } &&
3565d135
RR
13761 { ac_try='test -z "$ac_cxx_werror_flag"
13762 || test ! -s conftest.err'
95986553
DE
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; } &&
13768 { ac_try='test -s conftest.$ac_objext'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 bakefile_compiler_mwerks=yes
13775else
13776 echo "$as_me: failed program was:" >&5
13777sed 's/^/| /' conftest.$ac_ext >&5
13778
13779bakefile_compiler_mwerks=no
13780fi
13781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13782 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13783
13784fi
13785echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13786echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13787
0e6fa1d9 13788MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13789ac_ext=cc
13790ac_cpp='$CXXCPP $CPPFLAGS'
13791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13794
13795
3006edc0 13796 ac_ext=cc
9273ffba
DE
13797ac_cpp='$CXXCPP $CPPFLAGS'
13798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13801
13802echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13803echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13804if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806else
13807 cat >conftest.$ac_ext <<_ACEOF
13808/* confdefs.h. */
13809_ACEOF
13810cat confdefs.h >>conftest.$ac_ext
13811cat >>conftest.$ac_ext <<_ACEOF
13812/* end confdefs.h. */
13813
13814int
13815main ()
13816{
13817#ifndef __xlC__
13818 choke me
13819#endif
13820
13821 ;
13822 return 0;
13823}
13824_ACEOF
13825rm -f conftest.$ac_objext
13826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13827 (eval $ac_compile) 2>conftest.er1
13828 ac_status=$?
13829 grep -v '^ *+' conftest.er1 >conftest.err
13830 rm -f conftest.er1
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
3565d135
RR
13834 { ac_try='test -z "$ac_cxx_werror_flag"
13835 || test ! -s conftest.err'
9273ffba
DE
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; } &&
13841 { ac_try='test -s conftest.$ac_objext'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; }; then
0093c2fc 13847 bakefile_compiler_xlc=yes
9273ffba
DE
13848else
13849 echo "$as_me: failed program was:" >&5
13850sed 's/^/| /' conftest.$ac_ext >&5
13851
0093c2fc 13852bakefile_compiler_xlc=no
9273ffba
DE
13853fi
13854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13855 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13856
13857fi
0093c2fc
VZ
13858echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13859echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13860
0093c2fc 13861XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13862ac_ext=cc
13863ac_cpp='$CXXCPP $CPPFLAGS'
13864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13867
13868
3006edc0
VZ
13869 ;;
13870
13871 IRIX*)
95986553 13872
6dcfc289 13873
0ad5d837
VZ
13874 ac_ext=cc
13875ac_cpp='$CXXCPP $CPPFLAGS'
13876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13879
13880 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13881echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13882if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13884else
13885 cat >conftest.$ac_ext <<_ACEOF
13886/* confdefs.h. */
13887_ACEOF
13888cat confdefs.h >>conftest.$ac_ext
13889cat >>conftest.$ac_ext <<_ACEOF
13890/* end confdefs.h. */
13891
13892int
13893main ()
13894{
13895
13896 #ifndef _SGI_COMPILER_VERSION
13897 choke me
13898 #endif
13899
13900 ;
13901 return 0;
13902}
13903_ACEOF
13904rm -f conftest.$ac_objext
13905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906 (eval $ac_compile) 2>conftest.er1
13907 ac_status=$?
13908 grep -v '^ *+' conftest.er1 >conftest.err
13909 rm -f conftest.er1
13910 cat conftest.err >&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
3565d135
RR
13913 { ac_try='test -z "$ac_cxx_werror_flag"
13914 || test ! -s conftest.err'
0ad5d837
VZ
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } &&
13920 { ac_try='test -s conftest.$ac_objext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13927else
13928 echo "$as_me: failed program was:" >&5
13929sed 's/^/| /' conftest.$ac_ext >&5
13930
13931bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13932
13933fi
13934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13935
13936
13937fi
13938echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13939echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13940 ac_ext=cc
13941ac_cpp='$CXXCPP $CPPFLAGS'
13942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13945
13946 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13947 :; SGICXX=yes
13948 else
13949 :;
13950 fi
13951
13952
3006edc0
VZ
13953 ;;
13954
0093c2fc 13955 HP-UX*)
3006edc0
VZ
13956
13957
13958 ac_ext=cc
13959ac_cpp='$CXXCPP $CPPFLAGS'
13960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13963
0093c2fc
VZ
13964 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13965echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13966if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13968else
13969 cat >conftest.$ac_ext <<_ACEOF
13970/* confdefs.h. */
13971_ACEOF
13972cat confdefs.h >>conftest.$ac_ext
13973cat >>conftest.$ac_ext <<_ACEOF
13974/* end confdefs.h. */
13975
13976int
13977main ()
13978{
13979
0093c2fc 13980 #ifndef __HP_aCC
3006edc0
VZ
13981 choke me
13982 #endif
13983
13984 ;
13985 return 0;
13986}
13987_ACEOF
13988rm -f conftest.$ac_objext
13989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>conftest.er1
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
3565d135
RR
13997 { ac_try='test -z "$ac_cxx_werror_flag"
13998 || test ! -s conftest.err'
3006edc0
VZ
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try='test -s conftest.$ac_objext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
0093c2fc 14010 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14011else
14012 echo "$as_me: failed program was:" >&5
14013sed 's/^/| /' conftest.$ac_ext >&5
14014
0093c2fc 14015bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14016
14017fi
14018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14019
14020
14021fi
0093c2fc
VZ
14022echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14023echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14024 ac_ext=cc
14025ac_cpp='$CXXCPP $CPPFLAGS'
14026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14029
0093c2fc
VZ
14030 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14031 :; HPCXX=yes
a1aa0349
VZ
14032 else
14033 :;
14034 fi
14035
14036
14037 ;;
14038
0093c2fc 14039 OSF1)
a1aa0349
VZ
14040
14041
14042 ac_ext=cc
14043ac_cpp='$CXXCPP $CPPFLAGS'
14044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14047
0093c2fc
VZ
14048 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14049echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14050if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052else
14053 cat >conftest.$ac_ext <<_ACEOF
14054/* confdefs.h. */
14055_ACEOF
14056cat confdefs.h >>conftest.$ac_ext
14057cat >>conftest.$ac_ext <<_ACEOF
14058/* end confdefs.h. */
14059
14060int
14061main ()
14062{
14063
0093c2fc 14064 #ifndef __DECCXX
a1aa0349
VZ
14065 choke me
14066 #endif
14067
14068 ;
14069 return 0;
14070}
14071_ACEOF
14072rm -f conftest.$ac_objext
14073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14074 (eval $ac_compile) 2>conftest.er1
14075 ac_status=$?
14076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
3565d135
RR
14081 { ac_try='test -z "$ac_cxx_werror_flag"
14082 || test ! -s conftest.err'
a1aa0349
VZ
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; } &&
14088 { ac_try='test -s conftest.$ac_objext'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14091 ac_status=$?
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
0093c2fc 14094 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14095else
14096 echo "$as_me: failed program was:" >&5
14097sed 's/^/| /' conftest.$ac_ext >&5
14098
0093c2fc 14099bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14100
14101fi
14102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14103
14104
14105fi
0093c2fc
VZ
14106echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14107echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14108 ac_ext=cc
14109ac_cpp='$CXXCPP $CPPFLAGS'
14110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14113
0093c2fc
VZ
14114 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14115 :; COMPAQCXX=yes
14116 else
14117 :;
14118 fi
14119
14120
14121 ;;
14122
14123 SunOS)
14124
14125
14126 ac_ext=cc
14127ac_cpp='$CXXCPP $CPPFLAGS'
14128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14131
14132 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14133echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14134if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136else
14137 cat >conftest.$ac_ext <<_ACEOF
14138/* confdefs.h. */
14139_ACEOF
14140cat confdefs.h >>conftest.$ac_ext
14141cat >>conftest.$ac_ext <<_ACEOF
14142/* end confdefs.h. */
14143
14144int
14145main ()
14146{
14147
14148 #ifndef __SUNPRO_CC
14149 choke me
14150 #endif
14151
14152 ;
14153 return 0;
14154}
14155_ACEOF
14156rm -f conftest.$ac_objext
14157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158 (eval $ac_compile) 2>conftest.er1
14159 ac_status=$?
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
3565d135
RR
14165 { ac_try='test -z "$ac_cxx_werror_flag"
14166 || test ! -s conftest.err'
0093c2fc
VZ
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest.$ac_objext'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14179else
14180 echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183bakefile_cv_cxx_compiler___SUNPRO_CC=no
14184
14185fi
14186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14187
14188
14189fi
14190echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14191echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14192 ac_ext=cc
14193ac_cpp='$CXXCPP $CPPFLAGS'
14194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14197
14198 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14199 :; SUNCXX=yes
3006edc0
VZ
14200 else
14201 :;
ab0ad5f1 14202 fi
a9e5b1f0
MW
14203
14204
3006edc0
VZ
14205 ;;
14206 esac
14207 fi
14208
14209
14210
a848cd7e
SC
14211ac_ext=c
14212ac_cpp='$CPP $CPPFLAGS'
14213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14215ac_compiler_gnu=$ac_cv_c_compiler_gnu
14216
14217
a848cd7e
SC
14218if test -n "$ac_tool_prefix"; then
14219 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14220set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14221echo "$as_me:$LINENO: checking for $ac_word" >&5
14222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14223if test "${ac_cv_prog_RANLIB+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225else
14226 if test -n "$RANLIB"; then
14227 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14228else
14229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14230for as_dir in $PATH
14231do
14232 IFS=$as_save_IFS
14233 test -z "$as_dir" && as_dir=.
14234 for ac_exec_ext in '' $ac_executable_extensions; do
14235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14236 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14238 break 2
14239 fi
14240done
14241done
14242
14243fi
14244fi
14245RANLIB=$ac_cv_prog_RANLIB
14246if test -n "$RANLIB"; then
14247 echo "$as_me:$LINENO: result: $RANLIB" >&5
14248echo "${ECHO_T}$RANLIB" >&6
14249else
14250 echo "$as_me:$LINENO: result: no" >&5
14251echo "${ECHO_T}no" >&6
14252fi
14253
14254fi
14255if test -z "$ac_cv_prog_RANLIB"; then
14256 ac_ct_RANLIB=$RANLIB
14257 # Extract the first word of "ranlib", so it can be a program name with args.
14258set dummy ranlib; ac_word=$2
14259echo "$as_me:$LINENO: checking for $ac_word" >&5
14260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14261if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263else
14264 if test -n "$ac_ct_RANLIB"; then
14265 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14266else
14267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268for as_dir in $PATH
14269do
14270 IFS=$as_save_IFS
14271 test -z "$as_dir" && as_dir=.
14272 for ac_exec_ext in '' $ac_executable_extensions; do
14273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14274 ac_cv_prog_ac_ct_RANLIB="ranlib"
14275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14276 break 2
14277 fi
14278done
14279done
14280
14281 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14282fi
14283fi
14284ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14285if test -n "$ac_ct_RANLIB"; then
14286 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14287echo "${ECHO_T}$ac_ct_RANLIB" >&6
14288else
14289 echo "$as_me:$LINENO: result: no" >&5
14290echo "${ECHO_T}no" >&6
14291fi
14292
14293 RANLIB=$ac_ct_RANLIB
14294else
14295 RANLIB="$ac_cv_prog_RANLIB"
14296fi
14297
14298
8c80d384
DE
14299if test -n "$ac_tool_prefix"; then
14300 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14301set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14302echo "$as_me:$LINENO: checking for $ac_word" >&5
14303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14304if test "${ac_cv_prog_AR+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14306else
14307 if test -n "$AR"; then
14308 ac_cv_prog_AR="$AR" # Let the user override the test.
14309else
14310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14311for as_dir in $PATH
14312do
14313 IFS=$as_save_IFS
14314 test -z "$as_dir" && as_dir=.
14315 for ac_exec_ext in '' $ac_executable_extensions; do
14316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14317 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14319 break 2
14320 fi
14321done
14322done
14323
14324fi
14325fi
14326AR=$ac_cv_prog_AR
14327if test -n "$AR"; then
14328 echo "$as_me:$LINENO: result: $AR" >&5
14329echo "${ECHO_T}$AR" >&6
14330else
14331 echo "$as_me:$LINENO: result: no" >&5
14332echo "${ECHO_T}no" >&6
14333fi
14334
8c80d384
DE
14335fi
14336if test -z "$ac_cv_prog_AR"; then
14337 ac_ct_AR=$AR
14338 # Extract the first word of "ar", so it can be a program name with args.
14339set dummy ar; ac_word=$2
14340echo "$as_me:$LINENO: checking for $ac_word" >&5
14341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14342if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14344else
14345 if test -n "$ac_ct_AR"; then
14346 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14347else
14348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349for as_dir in $PATH
14350do
14351 IFS=$as_save_IFS
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14355 ac_cv_prog_ac_ct_AR="ar"
14356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14357 break 2
14358 fi
14359done
14360done
14361
14362fi
14363fi
14364ac_ct_AR=$ac_cv_prog_ac_ct_AR
14365if test -n "$ac_ct_AR"; then
14366 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14367echo "${ECHO_T}$ac_ct_AR" >&6
14368else
14369 echo "$as_me:$LINENO: result: no" >&5
14370echo "${ECHO_T}no" >&6
14371fi
14372
14373 AR=$ac_ct_AR
14374else
14375 AR="$ac_cv_prog_AR"
14376fi
14377
a848cd7e 14378if test "x$AR" = "x" ; then
77ffb593
JS
14379 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14380echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14381 { (exit 1); exit 1; }; }
14382fi
14383
14384# Find a good install program. We prefer a C program (faster),
14385# so one script is as good as another. But avoid the broken or
14386# incompatible versions:
14387# SysV /etc/install, /usr/sbin/install
14388# SunOS /usr/etc/install
14389# IRIX /sbin/install
14390# AIX /bin/install
14391# AmigaOS /C/install, which installs bootblocks on floppy discs
14392# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14393# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14394# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14395# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14396# ./install, which can be erroneously created by make from ./install.sh.
14397echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14398echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14399if test -z "$INSTALL"; then
14400if test "${ac_cv_path_install+set}" = set; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14402else
14403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14404for as_dir in $PATH
14405do
14406 IFS=$as_save_IFS
14407 test -z "$as_dir" && as_dir=.
14408 # Account for people who put trailing slashes in PATH elements.
14409case $as_dir/ in
14410 ./ | .// | /cC/* | \
14411 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14412 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14413 /usr/ucb/* ) ;;
14414 *)
14415 # OSF1 and SCO ODT 3.0 have their own names for install.
14416 # Don't use installbsd from OSF since it installs stuff as root
14417 # by default.
14418 for ac_prog in ginstall scoinst install; do
14419 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14420 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14421 if test $ac_prog = install &&
14422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14423 # AIX install. It has an incompatible calling convention.
14424 :
14425 elif test $ac_prog = install &&
14426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14427 # program-specific install script used by HP pwplus--don't use.
14428 :
14429 else
14430 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14431 break 3
14432 fi
14433 fi
a848cd7e
SC
14434 done
14435 done
14436 ;;
14437esac
14438done
14439
14440
14441fi
14442 if test "${ac_cv_path_install+set}" = set; then
14443 INSTALL=$ac_cv_path_install
14444 else
14445 # As a last resort, use the slow shell script. We don't cache a
14446 # path for INSTALL within a source directory, because that will
14447 # break other packages using the cache if that directory is
14448 # removed, or if the path is relative.
14449 INSTALL=$ac_install_sh
14450 fi
14451fi
14452echo "$as_me:$LINENO: result: $INSTALL" >&5
14453echo "${ECHO_T}$INSTALL" >&6
14454
14455# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14456# It thinks the first close brace ends the variable substitution.
14457test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14458
14459test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14460
14461test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14462
14463
14464case ${INSTALL} in
14465 /* ) # Absolute
14466 ;;
14467 ?:* ) # Drive letter, considered as absolute.
14468 ;;
14469 *)
14470 INSTALL=`pwd`/${INSTALL} ;;
14471esac
14472
a848cd7e
SC
14473
14474case "${host}" in
14475
cfda0ea8 14476 *-*-darwin* )
a848cd7e
SC
14477 INSTALL_PROGRAM="cp -fp"
14478 INSTALL_DATA="cp -fp"
14479 ;;
14480 *)
14481 ;;
14482esac
14483
8c80d384
DE
14484if test -n "$ac_tool_prefix"; then
14485 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14486set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14487echo "$as_me:$LINENO: checking for $ac_word" >&5
14488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14489if test "${ac_cv_prog_STRIP+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14491else
14492 if test -n "$STRIP"; then
14493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14494else
14495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14496for as_dir in $PATH
14497do
14498 IFS=$as_save_IFS
14499 test -z "$as_dir" && as_dir=.
14500 for ac_exec_ext in '' $ac_executable_extensions; do
14501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14502 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14504 break 2
14505 fi
14506done
14507done
14508
a848cd7e
SC
14509fi
14510fi
14511STRIP=$ac_cv_prog_STRIP
14512if test -n "$STRIP"; then
14513 echo "$as_me:$LINENO: result: $STRIP" >&5
14514echo "${ECHO_T}$STRIP" >&6
14515else
14516 echo "$as_me:$LINENO: result: no" >&5
14517echo "${ECHO_T}no" >&6
14518fi
14519
8c80d384
DE
14520fi
14521if test -z "$ac_cv_prog_STRIP"; then
14522 ac_ct_STRIP=$STRIP
14523 # Extract the first word of "strip", so it can be a program name with args.
14524set dummy strip; ac_word=$2
14525echo "$as_me:$LINENO: checking for $ac_word" >&5
14526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14527if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14529else
14530 if test -n "$ac_ct_STRIP"; then
14531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14532else
14533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534for as_dir in $PATH
14535do
14536 IFS=$as_save_IFS
14537 test -z "$as_dir" && as_dir=.
14538 for ac_exec_ext in '' $ac_executable_extensions; do
14539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14540 ac_cv_prog_ac_ct_STRIP="strip"
14541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14542 break 2
14543 fi
14544done
14545done
14546
14547 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14548fi
14549fi
14550ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14551if test -n "$ac_ct_STRIP"; then
14552 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14553echo "${ECHO_T}$ac_ct_STRIP" >&6
14554else
14555 echo "$as_me:$LINENO: result: no" >&5
14556echo "${ECHO_T}no" >&6
14557fi
14558
14559 STRIP=$ac_ct_STRIP
14560else
14561 STRIP="$ac_cv_prog_STRIP"
14562fi
14563
14564
14565if test "$wxUSE_WINE" = "yes"; then
14566 if test -n "$ac_tool_prefix"; then
14567 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14568set dummy ${ac_tool_prefix}wrc; ac_word=$2
14569echo "$as_me:$LINENO: checking for $ac_word" >&5
14570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14571if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573else
8ced02f6
DE
14574 if test -n "$WINDRES"; then
14575 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14576else
14577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14578for as_dir in $PATH
14579do
14580 IFS=$as_save_IFS
14581 test -z "$as_dir" && as_dir=.
14582 for ac_exec_ext in '' $ac_executable_extensions; do
14583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14584 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14586 break 2
14587 fi
14588done
14589done
14590
14591fi
14592fi
8ced02f6
DE
14593WINDRES=$ac_cv_prog_WINDRES
14594if test -n "$WINDRES"; then
14595 echo "$as_me:$LINENO: result: $WINDRES" >&5
14596echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14597else
14598 echo "$as_me:$LINENO: result: no" >&5
14599echo "${ECHO_T}no" >&6
14600fi
14601
14602fi
8ced02f6
DE
14603if test -z "$ac_cv_prog_WINDRES"; then
14604 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14605 # Extract the first word of "wrc", so it can be a program name with args.
14606set dummy wrc; ac_word=$2
14607echo "$as_me:$LINENO: checking for $ac_word" >&5
14608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14609if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14611else
8ced02f6
DE
14612 if test -n "$ac_ct_WINDRES"; then
14613 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14614else
14615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616for as_dir in $PATH
14617do
14618 IFS=$as_save_IFS
14619 test -z "$as_dir" && as_dir=.
14620 for ac_exec_ext in '' $ac_executable_extensions; do
14621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14622 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14624 break 2
14625 fi
14626done
14627done
14628
14629fi
14630fi
8ced02f6
DE
14631ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14632if test -n "$ac_ct_WINDRES"; then
14633 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14634echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14635else
14636 echo "$as_me:$LINENO: result: no" >&5
14637echo "${ECHO_T}no" >&6
14638fi
14639
8ced02f6 14640 WINDRES=$ac_ct_WINDRES
8c80d384 14641else
8ced02f6 14642 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14643fi
14644
004ee6da 14645 RESCOMP="$WINDRES"
8c80d384
DE
14646else
14647 case "${host}" in
14648 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14649 if test -n "$ac_tool_prefix"; then
14650 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14651set dummy ${ac_tool_prefix}windres; ac_word=$2
14652echo "$as_me:$LINENO: checking for $ac_word" >&5
14653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14654if test "${ac_cv_prog_WINDRES+set}" = set; then
14655 echo $ECHO_N "(cached) $ECHO_C" >&6
14656else
14657 if test -n "$WINDRES"; then
14658 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14659else
14660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14661for as_dir in $PATH
14662do
14663 IFS=$as_save_IFS
14664 test -z "$as_dir" && as_dir=.
14665 for ac_exec_ext in '' $ac_executable_extensions; do
14666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14667 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14669 break 2
14670 fi
14671done
14672done
14673
14674fi
14675fi
14676WINDRES=$ac_cv_prog_WINDRES
14677if test -n "$WINDRES"; then
14678 echo "$as_me:$LINENO: result: $WINDRES" >&5
14679echo "${ECHO_T}$WINDRES" >&6
14680else
14681 echo "$as_me:$LINENO: result: no" >&5
14682echo "${ECHO_T}no" >&6
14683fi
14684
14685fi
14686if test -z "$ac_cv_prog_WINDRES"; then
14687 ac_ct_WINDRES=$WINDRES
14688 # Extract the first word of "windres", so it can be a program name with args.
14689set dummy windres; ac_word=$2
14690echo "$as_me:$LINENO: checking for $ac_word" >&5
14691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14692if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14694else
14695 if test -n "$ac_ct_WINDRES"; then
14696 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14697else
14698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14699for as_dir in $PATH
14700do
14701 IFS=$as_save_IFS
14702 test -z "$as_dir" && as_dir=.
14703 for ac_exec_ext in '' $ac_executable_extensions; do
14704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14705 ac_cv_prog_ac_ct_WINDRES="windres"
14706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14707 break 2
14708 fi
14709done
14710done
14711
14712fi
14713fi
14714ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14715if test -n "$ac_ct_WINDRES"; then
14716 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14717echo "${ECHO_T}$ac_ct_WINDRES" >&6
14718else
14719 echo "$as_me:$LINENO: result: no" >&5
14720echo "${ECHO_T}no" >&6
14721fi
14722
14723 WINDRES=$ac_ct_WINDRES
14724else
14725 WINDRES="$ac_cv_prog_WINDRES"
14726fi
14727
14728 RESCOMP="$WINDRES"
14729 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14730 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14731set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14732echo "$as_me:$LINENO: checking for $ac_word" >&5
14733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14734if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14736else
14737 if test -n "$DLLTOOL"; then
14738 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14739else
14740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14741for as_dir in $PATH
14742do
14743 IFS=$as_save_IFS
14744 test -z "$as_dir" && as_dir=.
14745 for ac_exec_ext in '' $ac_executable_extensions; do
14746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14747 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14749 break 2
14750 fi
14751done
14752done
14753
14754fi
14755fi
14756DLLTOOL=$ac_cv_prog_DLLTOOL
14757if test -n "$DLLTOOL"; then
14758 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14759echo "${ECHO_T}$DLLTOOL" >&6
14760else
14761 echo "$as_me:$LINENO: result: no" >&5
14762echo "${ECHO_T}no" >&6
14763fi
14764
14765fi
14766if test -z "$ac_cv_prog_DLLTOOL"; then
14767 ac_ct_DLLTOOL=$DLLTOOL
14768 # Extract the first word of "dlltool", so it can be a program name with args.
14769set dummy dlltool; ac_word=$2
14770echo "$as_me:$LINENO: checking for $ac_word" >&5
14771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14772if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774else
14775 if test -n "$ac_ct_DLLTOOL"; then
14776 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14777else
14778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14779for as_dir in $PATH
14780do
14781 IFS=$as_save_IFS
14782 test -z "$as_dir" && as_dir=.
14783 for ac_exec_ext in '' $ac_executable_extensions; do
14784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14785 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14787 break 2
14788 fi
14789done
14790done
14791
14792fi
14793fi
14794ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14795if test -n "$ac_ct_DLLTOOL"; then
14796 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14797echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14798else
14799 echo "$as_me:$LINENO: result: no" >&5
14800echo "${ECHO_T}no" >&6
14801fi
14802
14803 DLLTOOL=$ac_ct_DLLTOOL
14804else
14805 DLLTOOL="$ac_cv_prog_DLLTOOL"
14806fi
14807
14808 ;;
14809 esac
14810fi
a848cd7e
SC
14811
14812echo "$as_me:$LINENO: checking if make is GNU make" >&5
14813echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14814if test "${wx_cv_prog_makeisgnu+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816else
14817
14818 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14819 egrep -s GNU > /dev/null); then
14820 wx_cv_prog_makeisgnu="yes"
14821 else
14822 wx_cv_prog_makeisgnu="no"
14823 fi
14824
14825fi
14826echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14827echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14828
14829if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14830 IF_GNU_MAKE=""
14831else
14832 IF_GNU_MAKE="#"
14833fi
14834
14835
14836
14837if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14838echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14839echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14840if test "${wx_cv_prog_makevpath+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842else
14843
14844cat - << EOF > confMake
14845check : file
14846 cp \$? \$@
14847 cp \$? final_file
14848EOF
14849
14850if test ! -d sub ; then
14851 mkdir sub
14852fi
14853echo dummy > sub/file
14854${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14855RESULT=$?
14856rm -f sub/file check final_file confMake
14857rmdir sub
14858if test "$RESULT" = 0; then
14859 wx_cv_prog_makevpath="yes"
14860else
14861 wx_cv_prog_makevpath="no"
14862fi
14863
14864fi
14865echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14866echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14867
14868if test "x$wx_cv_prog_makevpath" != "xyes"; then
14869{ { echo "$as_me:$LINENO: error:
14870You need a make-utility that is able to use the variable
14871VPATH correctly.
14872If your version of make does not support VPATH correctly,
14873please install GNU-make (possibly as gmake), and start
14874configure with the following command:
14875export MAKE=gmake; ./configure for sh-type shells
14876setenv MAKE gmake; ./configure for csh-type shells
14877Also please do remember to use gmake in this case every time
14878you are trying to compile.
14879" >&5
14880echo "$as_me: error:
14881You need a make-utility that is able to use the variable
14882VPATH correctly.
14883If your version of make does not support VPATH correctly,
14884please install GNU-make (possibly as gmake), and start
14885configure with the following command:
14886export MAKE=gmake; ./configure for sh-type shells
14887setenv MAKE gmake; ./configure for csh-type shells
14888Also please do remember to use gmake in this case every time
14889you are trying to compile.
14890" >&2;}
14891 { (exit 1); exit 1; }; }
14892fi fi
14893echo "$as_me:$LINENO: checking whether ln -s works" >&5
14894echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14895LN_S=$as_ln_s
14896if test "$LN_S" = "ln -s"; then
14897 echo "$as_me:$LINENO: result: yes" >&5
14898echo "${ECHO_T}yes" >&6
14899else
14900 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14901echo "${ECHO_T}no, using $LN_S" >&6
14902fi
14903
14904
bcaab0f9 14905
a848cd7e 14906
2113bc77 14907if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 14908 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
14909fi
14910
4d7ec9f1
DE
14911case "${host}" in
14912 powerpc-*-darwin* )
14913 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14914echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14915 cat >conftest.$ac_ext <<_ACEOF
14916/* confdefs.h. */
14917_ACEOF
14918cat confdefs.h >>conftest.$ac_ext
14919cat >>conftest.$ac_ext <<_ACEOF
14920/* end confdefs.h. */
14921
14922int
14923main ()
14924{
14925#ifndef __POWERPC__
14926 choke me for lack of PowerPC
14927#endif
14928
14929 ;
14930 return 0;
14931}
14932_ACEOF
14933rm -f conftest.$ac_objext
14934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14935 (eval $ac_compile) 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
3565d135
RR
14942 { ac_try='test -z "$ac_c_werror_flag"
14943 || test ! -s conftest.err'
4d7ec9f1
DE
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; } &&
14949 { ac_try='test -s conftest.$ac_objext'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14955 echo "$as_me:$LINENO: result: yes" >&5
14956echo "${ECHO_T}yes" >&6
14957else
14958 echo "$as_me: failed program was:" >&5
14959sed 's/^/| /' conftest.$ac_ext >&5
14960
14961echo "$as_me:$LINENO: result: no" >&5
14962echo "${ECHO_T}no" >&6
14963 cat >>confdefs.h <<\_ACEOF
14964#define __POWERPC__ 1
14965_ACEOF
14966
14967
14968fi
14969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14970 ;;
14971esac
14972
14973case "${host}" in
14974 *-*-darwin* )
4d7ec9f1
DE
14975 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14976echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14977 cat >conftest.$ac_ext <<_ACEOF
14978/* confdefs.h. */
14979_ACEOF
14980cat confdefs.h >>conftest.$ac_ext
14981cat >>conftest.$ac_ext <<_ACEOF
14982/* end confdefs.h. */
14983#include <CoreFoundation/CFBase.h>
14984
14985int
14986main ()
14987{
14988
14989 ;
14990 return 0;
14991}
14992_ACEOF
14993rm -f conftest.$ac_objext
14994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14995 (eval $ac_compile) 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
3565d135
RR
15002 { ac_try='test -z "$ac_c_werror_flag"
15003 || test ! -s conftest.err'
4d7ec9f1
DE
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest.$ac_objext'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 echo "$as_me:$LINENO: result: yes" >&5
15016echo "${ECHO_T}yes" >&6
15017else
15018 echo "$as_me: failed program was:" >&5
15019sed 's/^/| /' conftest.$ac_ext >&5
15020
15021echo "$as_me:$LINENO: result: no" >&5
15022echo "${ECHO_T}no" >&6
15023 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15024echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15025 cat >conftest.$ac_ext <<_ACEOF
15026/* confdefs.h. */
15027_ACEOF
15028cat confdefs.h >>conftest.$ac_ext
15029cat >>conftest.$ac_ext <<_ACEOF
15030/* end confdefs.h. */
15031#define __CF_USE_FRAMEWORK_INCLUDES__
15032#include <CoreFoundation/CFBase.h>
15033
15034int
15035main ()
15036{
15037
15038 ;
15039 return 0;
15040}
15041_ACEOF
15042rm -f conftest.$ac_objext
15043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044 (eval $ac_compile) 2>conftest.er1
15045 ac_status=$?
15046 grep -v '^ *+' conftest.er1 >conftest.err
15047 rm -f conftest.er1
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
3565d135
RR
15051 { ac_try='test -z "$ac_c_werror_flag"
15052 || test ! -s conftest.err'
4d7ec9f1
DE
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; } &&
15058 { ac_try='test -s conftest.$ac_objext'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15064 echo "$as_me:$LINENO: result: yes" >&5
15065echo "${ECHO_T}yes" >&6
c92ad099 15066 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15067else
15068 echo "$as_me: failed program was:" >&5
15069sed 's/^/| /' conftest.$ac_ext >&5
15070
15071{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15072See \`config.log' for more details." >&5
15073echo "$as_me: error: no. CoreFoundation not available.
15074See \`config.log' for more details." >&2;}
15075 { (exit 1); exit 1; }; }
15076
15077fi
15078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15079
15080
15081fi
15082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15083 ;;
15084esac
15085
a848cd7e
SC
15086case "${host}" in
15087 *-pc-os2_emx | *-pc-os2-emx )
15088 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15089 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15090echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15091if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15092 echo $ECHO_N "(cached) $ECHO_C" >&6
15093else
15094 ac_check_lib_save_LIBS=$LIBS
15095LIBS="-lcExt $LIBS"
15096cat >conftest.$ac_ext <<_ACEOF
15097/* confdefs.h. */
15098_ACEOF
15099cat confdefs.h >>conftest.$ac_ext
15100cat >>conftest.$ac_ext <<_ACEOF
15101/* end confdefs.h. */
15102
15103/* Override any gcc2 internal prototype to avoid an error. */
15104#ifdef __cplusplus
15105extern "C"
15106#endif
15107/* We use char because int might match the return type of a gcc2
15108 builtin and then its argument prototype would still apply. */
15109char drand48 ();
15110int
15111main ()
15112{
15113drand48 ();
15114 ;
15115 return 0;
15116}
15117_ACEOF
15118rm -f conftest.$ac_objext conftest$ac_exeext
15119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15120 (eval $ac_link) 2>conftest.er1
a848cd7e 15121 ac_status=$?
ac1cb8d3
VS
15122 grep -v '^ *+' conftest.er1 >conftest.err
15123 rm -f conftest.er1
15124 cat conftest.err >&5
a848cd7e
SC
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } &&
3565d135
RR
15127 { ac_try='test -z "$ac_c_werror_flag"
15128 || test ! -s conftest.err'
ac1cb8d3
VS
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; } &&
15134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 ac_cv_lib_cExt_drand48=yes
15141else
15142 echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145ac_cv_lib_cExt_drand48=no
15146fi
ac1cb8d3
VS
15147rm -f conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15149LIBS=$ac_check_lib_save_LIBS
15150fi
15151echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15152echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15153if test $ac_cv_lib_cExt_drand48 = yes; then
15154 LIBS="$LIBS -lcExt"
15155fi
15156
15157 else
15158 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15159 fi
69120ee4
VZ
15160 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15161echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15162if test "${wx_cv_gccversion+set}" = set; then
15163 echo $ECHO_N "(cached) $ECHO_C" >&6
15164else
15165
391a765e
VS
15166 if test "$cross_compiling" = yes; then
15167 wx_cv_gccversion="EMX2"
15168
15169else
15170 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15171/* confdefs.h. */
15172_ACEOF
15173cat confdefs.h >>conftest.$ac_ext
15174cat >>conftest.$ac_ext <<_ACEOF
15175/* end confdefs.h. */
15176
391a765e 15177 #include <stdio.h>
a848cd7e 15178
391a765e
VS
15179 int main()
15180 {
15181 FILE *f=fopen("conftestval", "w");
15182 if (!f) exit(1);
15183 fprintf(f,
a848cd7e 15184 #if (__GNUC__ < 3)
391a765e
VS
15185 "EMX2"
15186 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15187 "EMX3"
15188 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15189 "Innotek5"
15190 #else
15191 "Innotek6"
a848cd7e 15192 #endif
391a765e
VS
15193 );
15194 exit(0);
15195 }
a848cd7e 15196
a848cd7e 15197_ACEOF
391a765e
VS
15198rm -f conftest$ac_exeext
15199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15200 (eval $ac_link) 2>&5
ac1cb8d3
VS
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15206 ac_status=$?
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; }; then
391a765e 15209 wx_cv_gccversion=`cat conftestval`
a848cd7e 15210else
391a765e
VS
15211 echo "$as_me: program exited with status $ac_status" >&5
15212echo "$as_me: failed program was:" >&5
a848cd7e
SC
15213sed 's/^/| /' conftest.$ac_ext >&5
15214
391a765e
VS
15215( exit $ac_status )
15216wx_cv_gccversion="EMX2"
a848cd7e 15217fi
391a765e 15218rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15219fi
a848cd7e
SC
15220
15221fi
15222echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15223echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 15224 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15225 LIBS="$LIBS -lstdcpp"
15226 LDFLAGS="$LDFLAGS -Zsysv-signals"
15227 else
391a765e 15228 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15229 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15230 LDFLAGS="$LDFLAGS -Zsysv-signals"
15231 else
15232 LIBS="$LIBS -lstdc++"
15233 fi
15234 fi
94acd38e
DE
15235 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15236 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15237echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15238 wxUSE_OMF=yes
2da0c077 15239 enable_omf=yes
a848cd7e
SC
15240 fi
15241 ;;
15242 *)
15243
a848cd7e
SC
15244 ac_ext=cc
15245ac_cpp='$CXXCPP $CPPFLAGS'
15246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15249
15250
95986553 15251 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15252echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15253if test "${ac_cv_string_strcasecmp+set}" = set; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15255else
15256
15257 cat >conftest.$ac_ext <<_ACEOF
15258/* confdefs.h. */
15259_ACEOF
15260cat confdefs.h >>conftest.$ac_ext
15261cat >>conftest.$ac_ext <<_ACEOF
15262/* end confdefs.h. */
15263
15264 #include <string.h>
15265
15266int
15267main ()
15268{
15269
15270 strcasecmp("foo", "bar");
15271
15272 ;
15273 return 0;
15274}
15275_ACEOF
15276rm -f conftest.$ac_objext conftest$ac_exeext
15277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15278 (eval $ac_link) 2>conftest.er1
a848cd7e 15279 ac_status=$?
ac1cb8d3
VS
15280 grep -v '^ *+' conftest.er1 >conftest.err
15281 rm -f conftest.er1
15282 cat conftest.err >&5
a848cd7e
SC
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } &&
3565d135
RR
15285 { ac_try='test -z "$ac_cxx_werror_flag"
15286 || test ! -s conftest.err'
ac1cb8d3
VS
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15289 ac_status=$?
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; } &&
15292 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }; then
15298 ac_cv_string_strcasecmp=yes
15299else
15300 echo "$as_me: failed program was:" >&5
15301sed 's/^/| /' conftest.$ac_ext >&5
15302
15303ac_cv_string_strcasecmp=no
15304
15305fi
ac1cb8d3
VS
15306rm -f conftest.err conftest.$ac_objext \
15307 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15308
15309fi
15310echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15311echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15312
15313 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15314 cat >>confdefs.h <<\_ACEOF
15315#define HAVE_STRCASECMP_IN_STRING_H 1
15316_ACEOF
15317
15318 else
15319 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15320echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15321if test "${ac_cv_strings_strcasecmp+set}" = set; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15323else
15324
15325 cat >conftest.$ac_ext <<_ACEOF
15326/* confdefs.h. */
15327_ACEOF
15328cat confdefs.h >>conftest.$ac_ext
15329cat >>conftest.$ac_ext <<_ACEOF
15330/* end confdefs.h. */
15331
15332 #include <strings.h>
15333
15334int
15335main ()
15336{
15337
15338 strcasecmp("foo", "bar");
15339
15340 ;
15341 return 0;
15342}
15343_ACEOF
15344rm -f conftest.$ac_objext conftest$ac_exeext
15345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15346 (eval $ac_link) 2>conftest.er1
a848cd7e 15347 ac_status=$?
ac1cb8d3
VS
15348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
a848cd7e
SC
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
3565d135
RR
15353 { ac_try='test -z "$ac_cxx_werror_flag"
15354 || test ! -s conftest.err'
ac1cb8d3
VS
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; } &&
15360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 ac_cv_strings_strcasecmp=yes
15367else
15368 echo "$as_me: failed program was:" >&5
15369sed 's/^/| /' conftest.$ac_ext >&5
15370
15371ac_cv_strings_strcasecmp=no
15372
15373fi
ac1cb8d3
VS
15374rm -f conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15376
15377fi
15378echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15379echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15380
0c3c69fc 15381 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15382 cat >>confdefs.h <<\_ACEOF
15383#define HAVE_STRCASECMP_IN_STRINGS_H 1
15384_ACEOF
15385
15386 else
15387 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15388echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15389 { (exit 1); exit 1; }; }
15390 fi
15391 fi
15392
15393 ac_ext=c
15394ac_cpp='$CPP $CPPFLAGS'
15395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15397ac_compiler_gnu=$ac_cv_c_compiler_gnu
15398
15399 ;;
15400esac
15401
15402
15403echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15404echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15405if test "${ac_cv_header_stdc+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407else
15408 cat >conftest.$ac_ext <<_ACEOF
15409/* confdefs.h. */
15410_ACEOF
15411cat confdefs.h >>conftest.$ac_ext
15412cat >>conftest.$ac_ext <<_ACEOF
15413/* end confdefs.h. */
15414#include <stdlib.h>
15415#include <stdarg.h>
15416#include <string.h>
15417#include <float.h>
15418
15419int
15420main ()
15421{
15422
15423 ;
15424 return 0;
15425}
15426_ACEOF
15427rm -f conftest.$ac_objext
15428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15429 (eval $ac_compile) 2>conftest.er1
a848cd7e 15430 ac_status=$?
ac1cb8d3
VS
15431 grep -v '^ *+' conftest.er1 >conftest.err
15432 rm -f conftest.er1
15433 cat conftest.err >&5
a848cd7e
SC
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
3565d135
RR
15436 { ac_try='test -z "$ac_c_werror_flag"
15437 || test ! -s conftest.err'
ac1cb8d3
VS
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; } &&
15443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_cv_header_stdc=yes
15450else
15451 echo "$as_me: failed program was:" >&5
15452sed 's/^/| /' conftest.$ac_ext >&5
15453
15454ac_cv_header_stdc=no
15455fi
ac1cb8d3 15456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15457
15458if test $ac_cv_header_stdc = yes; then
15459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15460 cat >conftest.$ac_ext <<_ACEOF
15461/* confdefs.h. */
15462_ACEOF
15463cat confdefs.h >>conftest.$ac_ext
15464cat >>conftest.$ac_ext <<_ACEOF
15465/* end confdefs.h. */
15466#include <string.h>
15467
15468_ACEOF
15469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15470 $EGREP "memchr" >/dev/null 2>&1; then
15471 :
15472else
15473 ac_cv_header_stdc=no
15474fi
15475rm -f conftest*
15476
15477fi
15478
15479if test $ac_cv_header_stdc = yes; then
15480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15481 cat >conftest.$ac_ext <<_ACEOF
15482/* confdefs.h. */
15483_ACEOF
15484cat confdefs.h >>conftest.$ac_ext
15485cat >>conftest.$ac_ext <<_ACEOF
15486/* end confdefs.h. */
15487#include <stdlib.h>
15488
15489_ACEOF
15490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15491 $EGREP "free" >/dev/null 2>&1; then
15492 :
15493else
15494 ac_cv_header_stdc=no
15495fi
15496rm -f conftest*
15497
15498fi
15499
15500if test $ac_cv_header_stdc = yes; then
15501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15502 if test "$cross_compiling" = yes; then
15503 :
15504else
15505 cat >conftest.$ac_ext <<_ACEOF
15506/* confdefs.h. */
15507_ACEOF
15508cat confdefs.h >>conftest.$ac_ext
15509cat >>conftest.$ac_ext <<_ACEOF
15510/* end confdefs.h. */
15511#include <ctype.h>
15512#if ((' ' & 0x0FF) == 0x020)
15513# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15514# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15515#else
15516# define ISLOWER(c) \
ac1cb8d3
VS
15517 (('a' <= (c) && (c) <= 'i') \
15518 || ('j' <= (c) && (c) <= 'r') \
15519 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15520# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15521#endif
15522
15523#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15524int
15525main ()
15526{
15527 int i;
15528 for (i = 0; i < 256; i++)
15529 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15530 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15531 exit(2);
15532 exit (0);
15533}
15534_ACEOF
15535rm -f conftest$ac_exeext
15536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15537 (eval $ac_link) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 :
15547else
15548 echo "$as_me: program exited with status $ac_status" >&5
15549echo "$as_me: failed program was:" >&5
15550sed 's/^/| /' conftest.$ac_ext >&5
15551
15552( exit $ac_status )
15553ac_cv_header_stdc=no
15554fi
ac1cb8d3 15555rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15556fi
15557fi
15558fi
15559echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15560echo "${ECHO_T}$ac_cv_header_stdc" >&6
15561if test $ac_cv_header_stdc = yes; then
15562
15563cat >>confdefs.h <<\_ACEOF
15564#define STDC_HEADERS 1
15565_ACEOF
15566
15567fi
15568
15569# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15580 inttypes.h stdint.h unistd.h
a848cd7e
SC
15581do
15582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15583echo "$as_me:$LINENO: checking for $ac_header" >&5
15584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15585if eval "test \"\${$as_ac_Header+set}\" = set"; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15587else
15588 cat >conftest.$ac_ext <<_ACEOF
15589/* confdefs.h. */
15590_ACEOF
15591cat confdefs.h >>conftest.$ac_ext
15592cat >>conftest.$ac_ext <<_ACEOF
15593/* end confdefs.h. */
15594$ac_includes_default
15595
15596#include <$ac_header>
15597_ACEOF
15598rm -f conftest.$ac_objext
15599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15600 (eval $ac_compile) 2>conftest.er1
a848cd7e 15601 ac_status=$?
ac1cb8d3
VS
15602 grep -v '^ *+' conftest.er1 >conftest.err
15603 rm -f conftest.er1
15604 cat conftest.err >&5
a848cd7e
SC
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } &&
3565d135
RR
15607 { ac_try='test -z "$ac_c_werror_flag"
15608 || test ! -s conftest.err'
ac1cb8d3
VS
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; } &&
15614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 eval "$as_ac_Header=yes"
15621else
15622 echo "$as_me: failed program was:" >&5
15623sed 's/^/| /' conftest.$ac_ext >&5
15624
15625eval "$as_ac_Header=no"
15626fi
ac1cb8d3 15627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15628fi
15629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15631if test `eval echo '${'$as_ac_Header'}'` = yes; then
15632 cat >>confdefs.h <<_ACEOF
15633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15634_ACEOF
15635
15636fi
15637
15638done
15639
15640
15641
15642for ac_header in stdlib.h
15643do
15644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15645if eval "test \"\${$as_ac_Header+set}\" = set"; then
15646 echo "$as_me:$LINENO: checking for $ac_header" >&5
15647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15648if eval "test \"\${$as_ac_Header+set}\" = set"; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650fi
15651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15653else
15654 # Is the header compilable?
15655echo "$as_me:$LINENO: checking $ac_header usability" >&5
15656echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15657cat >conftest.$ac_ext <<_ACEOF
15658/* confdefs.h. */
15659_ACEOF
15660cat confdefs.h >>conftest.$ac_ext
15661cat >>conftest.$ac_ext <<_ACEOF
15662/* end confdefs.h. */
15663$ac_includes_default
15664#include <$ac_header>
15665_ACEOF
15666rm -f conftest.$ac_objext
15667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15668 (eval $ac_compile) 2>conftest.er1
a848cd7e 15669 ac_status=$?
ac1cb8d3
VS
15670 grep -v '^ *+' conftest.er1 >conftest.err
15671 rm -f conftest.er1
15672 cat conftest.err >&5
a848cd7e
SC
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
3565d135
RR
15675 { ac_try='test -z "$ac_c_werror_flag"
15676 || test ! -s conftest.err'
ac1cb8d3
VS
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; } &&
15682 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 ac_header_compiler=yes
15689else
15690 echo "$as_me: failed program was:" >&5
15691sed 's/^/| /' conftest.$ac_ext >&5
15692
15693ac_header_compiler=no
15694fi
ac1cb8d3 15695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15696echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15697echo "${ECHO_T}$ac_header_compiler" >&6
15698
15699# Is the header present?
15700echo "$as_me:$LINENO: checking $ac_header presence" >&5
15701echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15702cat >conftest.$ac_ext <<_ACEOF
15703/* confdefs.h. */
15704_ACEOF
15705cat confdefs.h >>conftest.$ac_ext
15706cat >>conftest.$ac_ext <<_ACEOF
15707/* end confdefs.h. */
15708#include <$ac_header>
15709_ACEOF
15710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15712 ac_status=$?
15713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } >/dev/null; then
15718 if test -s conftest.err; then
15719 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15721 else
15722 ac_cpp_err=
15723 fi
15724else
15725 ac_cpp_err=yes
15726fi
15727if test -z "$ac_cpp_err"; then
15728 ac_header_preproc=yes
15729else
15730 echo "$as_me: failed program was:" >&5
15731sed 's/^/| /' conftest.$ac_ext >&5
15732
15733 ac_header_preproc=no
15734fi
15735rm -f conftest.err conftest.$ac_ext
15736echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15737echo "${ECHO_T}$ac_header_preproc" >&6
15738
15739# So? What about this header?
ac1cb8d3
VS
15740case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15741 yes:no: )
a848cd7e
SC
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15743echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15745echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15746 ac_header_preproc=yes
a848cd7e 15747 ;;
ac1cb8d3 15748 no:yes:* )
a848cd7e
SC
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15750echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15752echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15754echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15756echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15758echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15760echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15761 (
15762 cat <<\_ASBOX
ac1cb8d3
VS
15763## ----------------------------------------- ##
15764## Report this to wx-dev@lists.wxwidgets.org ##
15765## ----------------------------------------- ##
a848cd7e
SC
15766_ASBOX
15767 ) |
15768 sed "s/^/$as_me: WARNING: /" >&2
15769 ;;
15770esac
15771echo "$as_me:$LINENO: checking for $ac_header" >&5
15772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15773if eval "test \"\${$as_ac_Header+set}\" = set"; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15775else
ac1cb8d3 15776 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15777fi
15778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15779echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15780
15781fi
15782if test `eval echo '${'$as_ac_Header'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15785_ACEOF
15786
15787fi
15788
15789done
15790
15791
15792for ac_header in malloc.h
15793do
15794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15795if eval "test \"\${$as_ac_Header+set}\" = set"; then
15796 echo "$as_me:$LINENO: checking for $ac_header" >&5
15797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15798if eval "test \"\${$as_ac_Header+set}\" = set"; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15800fi
15801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15803else
15804 # Is the header compilable?
15805echo "$as_me:$LINENO: checking $ac_header usability" >&5
15806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15807cat >conftest.$ac_ext <<_ACEOF
15808/* confdefs.h. */
15809_ACEOF
15810cat confdefs.h >>conftest.$ac_ext
15811cat >>conftest.$ac_ext <<_ACEOF
15812/* end confdefs.h. */
15813$ac_includes_default
15814#include <$ac_header>
15815_ACEOF
15816rm -f conftest.$ac_objext
15817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15818 (eval $ac_compile) 2>conftest.er1
a848cd7e 15819 ac_status=$?
ac1cb8d3
VS
15820 grep -v '^ *+' conftest.er1 >conftest.err
15821 rm -f conftest.er1
15822 cat conftest.err >&5
a848cd7e
SC
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
3565d135
RR
15825 { ac_try='test -z "$ac_c_werror_flag"
15826 || test ! -s conftest.err'
ac1cb8d3
VS
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; } &&
15832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 ac_header_compiler=yes
15839else
15840 echo "$as_me: failed program was:" >&5
15841sed 's/^/| /' conftest.$ac_ext >&5
15842
15843ac_header_compiler=no
15844fi
ac1cb8d3 15845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15846echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15847echo "${ECHO_T}$ac_header_compiler" >&6
15848
15849# Is the header present?
15850echo "$as_me:$LINENO: checking $ac_header presence" >&5
15851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15852cat >conftest.$ac_ext <<_ACEOF
15853/* confdefs.h. */
15854_ACEOF
15855cat confdefs.h >>conftest.$ac_ext
15856cat >>conftest.$ac_ext <<_ACEOF
15857/* end confdefs.h. */
15858#include <$ac_header>
15859_ACEOF
15860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15862 ac_status=$?
15863 grep -v '^ *+' conftest.er1 >conftest.err
15864 rm -f conftest.er1
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } >/dev/null; then
15868 if test -s conftest.err; then
15869 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15871 else
15872 ac_cpp_err=
15873 fi
15874else
15875 ac_cpp_err=yes
15876fi
15877if test -z "$ac_cpp_err"; then
15878 ac_header_preproc=yes
15879else
15880 echo "$as_me: failed program was:" >&5
15881sed 's/^/| /' conftest.$ac_ext >&5
15882
15883 ac_header_preproc=no
15884fi
15885rm -f conftest.err conftest.$ac_ext
15886echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15887echo "${ECHO_T}$ac_header_preproc" >&6
15888
15889# So? What about this header?
ac1cb8d3
VS
15890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15891 yes:no: )
a848cd7e
SC
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15893echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15895echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15896 ac_header_preproc=yes
a848cd7e 15897 ;;
ac1cb8d3 15898 no:yes:* )
a848cd7e
SC
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15900echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15902echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15904echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15906echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15910echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15911 (
15912 cat <<\_ASBOX
ac1cb8d3
VS
15913## ----------------------------------------- ##
15914## Report this to wx-dev@lists.wxwidgets.org ##
15915## ----------------------------------------- ##
a848cd7e
SC
15916_ASBOX
15917 ) |
15918 sed "s/^/$as_me: WARNING: /" >&2
15919 ;;
15920esac
15921echo "$as_me:$LINENO: checking for $ac_header" >&5
15922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15923if eval "test \"\${$as_ac_Header+set}\" = set"; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15925else
ac1cb8d3 15926 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15927fi
15928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15930
15931fi
15932if test `eval echo '${'$as_ac_Header'}'` = yes; then
15933 cat >>confdefs.h <<_ACEOF
15934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15935_ACEOF
15936
15937fi
15938
15939done
15940
15941
15942for ac_header in unistd.h
15943do
15944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15945if eval "test \"\${$as_ac_Header+set}\" = set"; then
15946 echo "$as_me:$LINENO: checking for $ac_header" >&5
15947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15948if eval "test \"\${$as_ac_Header+set}\" = set"; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15950fi
15951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15953else
15954 # Is the header compilable?
15955echo "$as_me:$LINENO: checking $ac_header usability" >&5
15956echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15957cat >conftest.$ac_ext <<_ACEOF
15958/* confdefs.h. */
15959_ACEOF
15960cat confdefs.h >>conftest.$ac_ext
15961cat >>conftest.$ac_ext <<_ACEOF
15962/* end confdefs.h. */
15963$ac_includes_default
15964#include <$ac_header>
15965_ACEOF
15966rm -f conftest.$ac_objext
15967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15968 (eval $ac_compile) 2>conftest.er1
a848cd7e 15969 ac_status=$?
ac1cb8d3
VS
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
a848cd7e
SC
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
3565d135
RR
15975 { ac_try='test -z "$ac_c_werror_flag"
15976 || test ! -s conftest.err'
ac1cb8d3
VS
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; } &&
15982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15985 ac_status=$?
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 ac_header_compiler=yes
15989else
15990 echo "$as_me: failed program was:" >&5
15991sed 's/^/| /' conftest.$ac_ext >&5
15992
15993ac_header_compiler=no
15994fi
ac1cb8d3 15995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15996echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15997echo "${ECHO_T}$ac_header_compiler" >&6
15998
15999# Is the header present?
16000echo "$as_me:$LINENO: checking $ac_header presence" >&5
16001echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16002cat >conftest.$ac_ext <<_ACEOF
16003/* confdefs.h. */
16004_ACEOF
16005cat confdefs.h >>conftest.$ac_ext
16006cat >>conftest.$ac_ext <<_ACEOF
16007/* end confdefs.h. */
16008#include <$ac_header>
16009_ACEOF
16010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } >/dev/null; then
16018 if test -s conftest.err; then
16019 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16021 else
16022 ac_cpp_err=
16023 fi
16024else
16025 ac_cpp_err=yes
16026fi
16027if test -z "$ac_cpp_err"; then
16028 ac_header_preproc=yes
16029else
16030 echo "$as_me: failed program was:" >&5
16031sed 's/^/| /' conftest.$ac_ext >&5
16032
16033 ac_header_preproc=no
16034fi
16035rm -f conftest.err conftest.$ac_ext
16036echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16037echo "${ECHO_T}$ac_header_preproc" >&6
16038
16039# So? What about this header?
ac1cb8d3
VS
16040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16041 yes:no: )
a848cd7e
SC
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16046 ac_header_preproc=yes
a848cd7e 16047 ;;
ac1cb8d3 16048 no:yes:* )
a848cd7e
SC
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16052echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16056echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16061 (
16062 cat <<\_ASBOX
ac1cb8d3
VS
16063## ----------------------------------------- ##
16064## Report this to wx-dev@lists.wxwidgets.org ##
16065## ----------------------------------------- ##
a848cd7e
SC
16066_ASBOX
16067 ) |
16068 sed "s/^/$as_me: WARNING: /" >&2
16069 ;;
16070esac
16071echo "$as_me:$LINENO: checking for $ac_header" >&5
16072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16073if eval "test \"\${$as_ac_Header+set}\" = set"; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16075else
ac1cb8d3 16076 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16077fi
16078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16080
16081fi
16082if test `eval echo '${'$as_ac_Header'}'` = yes; then
16083 cat >>confdefs.h <<_ACEOF
16084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16085_ACEOF
16086
16087fi
16088
16089done
16090
16091
16092for ac_header in wchar.h
16093do
16094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16095if eval "test \"\${$as_ac_Header+set}\" = set"; then
16096 echo "$as_me:$LINENO: checking for $ac_header" >&5
16097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16098if eval "test \"\${$as_ac_Header+set}\" = set"; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16100fi
16101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16102echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16103else
16104 # Is the header compilable?
16105echo "$as_me:$LINENO: checking $ac_header usability" >&5
16106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16107cat >conftest.$ac_ext <<_ACEOF
16108/* confdefs.h. */
16109_ACEOF
16110cat confdefs.h >>conftest.$ac_ext
16111cat >>conftest.$ac_ext <<_ACEOF
16112/* end confdefs.h. */
16113$ac_includes_default
16114#include <$ac_header>
16115_ACEOF
16116rm -f conftest.$ac_objext
16117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16118 (eval $ac_compile) 2>conftest.er1
a848cd7e 16119 ac_status=$?
ac1cb8d3
VS
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
a848cd7e
SC
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } &&
3565d135
RR
16125 { ac_try='test -z "$ac_c_werror_flag"
16126 || test ! -s conftest.err'
ac1cb8d3
VS
16127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128 (eval $ac_try) 2>&5
16129 ac_status=$?
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; } &&
16132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; }; then
16138 ac_header_compiler=yes
16139else
16140 echo "$as_me: failed program was:" >&5
16141sed 's/^/| /' conftest.$ac_ext >&5
16142
16143ac_header_compiler=no
16144fi
ac1cb8d3 16145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16147echo "${ECHO_T}$ac_header_compiler" >&6
16148
16149# Is the header present?
16150echo "$as_me:$LINENO: checking $ac_header presence" >&5
16151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16152cat >conftest.$ac_ext <<_ACEOF
16153/* confdefs.h. */
16154_ACEOF
16155cat confdefs.h >>conftest.$ac_ext
16156cat >>conftest.$ac_ext <<_ACEOF
16157/* end confdefs.h. */
16158#include <$ac_header>
16159_ACEOF
16160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16162 ac_status=$?
16163 grep -v '^ *+' conftest.er1 >conftest.err
16164 rm -f conftest.er1
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } >/dev/null; then
16168 if test -s conftest.err; then
16169 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16171 else
16172 ac_cpp_err=
16173 fi
16174else
16175 ac_cpp_err=yes
16176fi
16177if test -z "$ac_cpp_err"; then
16178 ac_header_preproc=yes
16179else
16180 echo "$as_me: failed program was:" >&5
16181sed 's/^/| /' conftest.$ac_ext >&5
16182
16183 ac_header_preproc=no
16184fi
16185rm -f conftest.err conftest.$ac_ext
16186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16187echo "${ECHO_T}$ac_header_preproc" >&6
16188
16189# So? What about this header?
ac1cb8d3
VS
16190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16191 yes:no: )
a848cd7e
SC
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16195echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16196 ac_header_preproc=yes
a848cd7e 16197 ;;
ac1cb8d3 16198 no:yes:* )
a848cd7e
SC
16199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16200echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16202echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16204echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16206echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16210echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16211 (
16212 cat <<\_ASBOX
ac1cb8d3
VS
16213## ----------------------------------------- ##
16214## Report this to wx-dev@lists.wxwidgets.org ##
16215## ----------------------------------------- ##
a848cd7e
SC
16216_ASBOX
16217 ) |
16218 sed "s/^/$as_me: WARNING: /" >&2
16219 ;;
16220esac
16221echo "$as_me:$LINENO: checking for $ac_header" >&5
16222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16223if eval "test \"\${$as_ac_Header+set}\" = set"; then
16224 echo $ECHO_N "(cached) $ECHO_C" >&6
16225else
ac1cb8d3 16226 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16227fi
16228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16230
16231fi
16232if test `eval echo '${'$as_ac_Header'}'` = yes; then
16233 cat >>confdefs.h <<_ACEOF
16234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16235_ACEOF
16236
16237fi
16238
16239done
16240
16241
16242if test "$ac_cv_header_wchar_h" != "yes"; then
16243
16244for ac_header in wcstr.h
16245do
16246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16247if eval "test \"\${$as_ac_Header+set}\" = set"; then
16248 echo "$as_me:$LINENO: checking for $ac_header" >&5
16249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16250if eval "test \"\${$as_ac_Header+set}\" = set"; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16252fi
16253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16255else
16256 # Is the header compilable?
16257echo "$as_me:$LINENO: checking $ac_header usability" >&5
16258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16259cat >conftest.$ac_ext <<_ACEOF
16260/* confdefs.h. */
16261_ACEOF
16262cat confdefs.h >>conftest.$ac_ext
16263cat >>conftest.$ac_ext <<_ACEOF
16264/* end confdefs.h. */
16265$ac_includes_default
16266#include <$ac_header>
16267_ACEOF
16268rm -f conftest.$ac_objext
16269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16270 (eval $ac_compile) 2>conftest.er1
a848cd7e 16271 ac_status=$?
ac1cb8d3
VS
16272 grep -v '^ *+' conftest.er1 >conftest.err
16273 rm -f conftest.er1
16274 cat conftest.err >&5
a848cd7e
SC
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
3565d135
RR
16277 { ac_try='test -z "$ac_c_werror_flag"
16278 || test ! -s conftest.err'
ac1cb8d3
VS
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_header_compiler=yes
16291else
16292 echo "$as_me: failed program was:" >&5
16293sed 's/^/| /' conftest.$ac_ext >&5
16294
16295ac_header_compiler=no
16296fi
ac1cb8d3 16297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16299echo "${ECHO_T}$ac_header_compiler" >&6
16300
16301# Is the header present?
16302echo "$as_me:$LINENO: checking $ac_header presence" >&5
16303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16304cat >conftest.$ac_ext <<_ACEOF
16305/* confdefs.h. */
16306_ACEOF
16307cat confdefs.h >>conftest.$ac_ext
16308cat >>conftest.$ac_ext <<_ACEOF
16309/* end confdefs.h. */
16310#include <$ac_header>
16311_ACEOF
16312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16314 ac_status=$?
16315 grep -v '^ *+' conftest.er1 >conftest.err
16316 rm -f conftest.er1
16317 cat conftest.err >&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } >/dev/null; then
16320 if test -s conftest.err; then
16321 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16323 else
16324 ac_cpp_err=
16325 fi
16326else
16327 ac_cpp_err=yes
16328fi
16329if test -z "$ac_cpp_err"; then
16330 ac_header_preproc=yes
16331else
16332 echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 ac_header_preproc=no
16336fi
16337rm -f conftest.err conftest.$ac_ext
16338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16339echo "${ECHO_T}$ac_header_preproc" >&6
16340
16341# So? What about this header?
ac1cb8d3
VS
16342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16343 yes:no: )
a848cd7e
SC
16344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16348 ac_header_preproc=yes
a848cd7e 16349 ;;
ac1cb8d3 16350 no:yes:* )
a848cd7e
SC
16351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16358echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16363 (
16364 cat <<\_ASBOX
ac1cb8d3
VS
16365## ----------------------------------------- ##
16366## Report this to wx-dev@lists.wxwidgets.org ##
16367## ----------------------------------------- ##
a848cd7e
SC
16368_ASBOX
16369 ) |
16370 sed "s/^/$as_me: WARNING: /" >&2
16371 ;;
16372esac
16373echo "$as_me:$LINENO: checking for $ac_header" >&5
16374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16375if eval "test \"\${$as_ac_Header+set}\" = set"; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16377else
ac1cb8d3 16378 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16379fi
16380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16382
16383fi
16384if test `eval echo '${'$as_ac_Header'}'` = yes; then
16385 cat >>confdefs.h <<_ACEOF
16386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16387_ACEOF
16388
16389fi
16390
16391done
16392
16393fi
16394
16395
16396for ac_header in fnmatch.h
16397do
16398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16399if eval "test \"\${$as_ac_Header+set}\" = set"; then
16400 echo "$as_me:$LINENO: checking for $ac_header" >&5
16401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16402if eval "test \"\${$as_ac_Header+set}\" = set"; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16404fi
16405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16407else
16408 # Is the header compilable?
16409echo "$as_me:$LINENO: checking $ac_header usability" >&5
16410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16411cat >conftest.$ac_ext <<_ACEOF
16412/* confdefs.h. */
16413_ACEOF
16414cat confdefs.h >>conftest.$ac_ext
16415cat >>conftest.$ac_ext <<_ACEOF
16416/* end confdefs.h. */
16417$ac_includes_default
16418#include <$ac_header>
16419_ACEOF
16420rm -f conftest.$ac_objext
16421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16422 (eval $ac_compile) 2>conftest.er1
a848cd7e 16423 ac_status=$?
ac1cb8d3
VS
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
a848cd7e
SC
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } &&
3565d135
RR
16429 { ac_try='test -z "$ac_c_werror_flag"
16430 || test ! -s conftest.err'
ac1cb8d3
VS
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; } &&
16436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16442 ac_header_compiler=yes
16443else
16444 echo "$as_me: failed program was:" >&5
16445sed 's/^/| /' conftest.$ac_ext >&5
16446
16447ac_header_compiler=no
16448fi
ac1cb8d3 16449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16451echo "${ECHO_T}$ac_header_compiler" >&6
16452
16453# Is the header present?
16454echo "$as_me:$LINENO: checking $ac_header presence" >&5
16455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16456cat >conftest.$ac_ext <<_ACEOF
16457/* confdefs.h. */
16458_ACEOF
16459cat confdefs.h >>conftest.$ac_ext
16460cat >>conftest.$ac_ext <<_ACEOF
16461/* end confdefs.h. */
16462#include <$ac_header>
16463_ACEOF
16464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } >/dev/null; then
16472 if test -s conftest.err; then
16473 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16475 else
16476 ac_cpp_err=
16477 fi
16478else
16479 ac_cpp_err=yes
16480fi
16481if test -z "$ac_cpp_err"; then
16482 ac_header_preproc=yes
16483else
16484 echo "$as_me: failed program was:" >&5
16485sed 's/^/| /' conftest.$ac_ext >&5
16486
16487 ac_header_preproc=no
16488fi
16489rm -f conftest.err conftest.$ac_ext
16490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16491echo "${ECHO_T}$ac_header_preproc" >&6
16492
16493# So? What about this header?
ac1cb8d3
VS
16494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16495 yes:no: )
a848cd7e
SC
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16500 ac_header_preproc=yes
a848cd7e 16501 ;;
ac1cb8d3 16502 no:yes:* )
a848cd7e
SC
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16506echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16510echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16515 (
16516 cat <<\_ASBOX
ac1cb8d3
VS
16517## ----------------------------------------- ##
16518## Report this to wx-dev@lists.wxwidgets.org ##
16519## ----------------------------------------- ##
a848cd7e
SC
16520_ASBOX
16521 ) |
16522 sed "s/^/$as_me: WARNING: /" >&2
16523 ;;
16524esac
16525echo "$as_me:$LINENO: checking for $ac_header" >&5
16526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16527if eval "test \"\${$as_ac_Header+set}\" = set"; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16529else
ac1cb8d3 16530 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16531fi
16532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16534
16535fi
16536if test `eval echo '${'$as_ac_Header'}'` = yes; then
16537 cat >>confdefs.h <<_ACEOF
16538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16539_ACEOF
16540
16541fi
16542
16543done
16544
16545
a848cd7e
SC
16546
16547for ac_header in langinfo.h
16548do
16549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16550if eval "test \"\${$as_ac_Header+set}\" = set"; then
16551 echo "$as_me:$LINENO: checking for $ac_header" >&5
16552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16553if eval "test \"\${$as_ac_Header+set}\" = set"; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555fi
16556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16558else
16559 # Is the header compilable?
16560echo "$as_me:$LINENO: checking $ac_header usability" >&5
16561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16562cat >conftest.$ac_ext <<_ACEOF
16563/* confdefs.h. */
16564_ACEOF
16565cat confdefs.h >>conftest.$ac_ext
16566cat >>conftest.$ac_ext <<_ACEOF
16567/* end confdefs.h. */
16568$ac_includes_default
16569#include <$ac_header>
16570_ACEOF
16571rm -f conftest.$ac_objext
16572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16573 (eval $ac_compile) 2>conftest.er1
a848cd7e 16574 ac_status=$?
ac1cb8d3
VS
16575 grep -v '^ *+' conftest.er1 >conftest.err
16576 rm -f conftest.er1
16577 cat conftest.err >&5
a848cd7e
SC
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
3565d135
RR
16580 { ac_try='test -z "$ac_c_werror_flag"
16581 || test ! -s conftest.err'
ac1cb8d3
VS
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 ac_header_compiler=yes
16594else
16595 echo "$as_me: failed program was:" >&5
16596sed 's/^/| /' conftest.$ac_ext >&5
16597
16598ac_header_compiler=no
16599fi
ac1cb8d3 16600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16601echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16602echo "${ECHO_T}$ac_header_compiler" >&6
16603
16604# Is the header present?
16605echo "$as_me:$LINENO: checking $ac_header presence" >&5
16606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16607cat >conftest.$ac_ext <<_ACEOF
16608/* confdefs.h. */
16609_ACEOF
16610cat confdefs.h >>conftest.$ac_ext
16611cat >>conftest.$ac_ext <<_ACEOF
16612/* end confdefs.h. */
16613#include <$ac_header>
16614_ACEOF
16615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16617 ac_status=$?
16618 grep -v '^ *+' conftest.er1 >conftest.err
16619 rm -f conftest.er1
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } >/dev/null; then
16623 if test -s conftest.err; then
16624 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16626 else
16627 ac_cpp_err=
16628 fi
16629else
16630 ac_cpp_err=yes
16631fi
16632if test -z "$ac_cpp_err"; then
16633 ac_header_preproc=yes
16634else
16635 echo "$as_me: failed program was:" >&5
16636sed 's/^/| /' conftest.$ac_ext >&5
16637
16638 ac_header_preproc=no
16639fi
16640rm -f conftest.err conftest.$ac_ext
16641echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16642echo "${ECHO_T}$ac_header_preproc" >&6
16643
16644# So? What about this header?
ac1cb8d3
VS
16645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16646 yes:no: )
a848cd7e
SC
16647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16648echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16650echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16651 ac_header_preproc=yes
a848cd7e 16652 ;;
ac1cb8d3 16653 no:yes:* )
a848cd7e
SC
16654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16655echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16657echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16659echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16661echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16663echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16665echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16666 (
16667 cat <<\_ASBOX
ac1cb8d3
VS
16668## ----------------------------------------- ##
16669## Report this to wx-dev@lists.wxwidgets.org ##
16670## ----------------------------------------- ##
a848cd7e
SC
16671_ASBOX
16672 ) |
16673 sed "s/^/$as_me: WARNING: /" >&2
16674 ;;
16675esac
16676echo "$as_me:$LINENO: checking for $ac_header" >&5
16677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16678if eval "test \"\${$as_ac_Header+set}\" = set"; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16680else
ac1cb8d3 16681 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16682fi
16683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16685
16686fi
16687if test `eval echo '${'$as_ac_Header'}'` = yes; then
16688 cat >>confdefs.h <<_ACEOF
16689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16690_ACEOF
16691
16692fi
16693
16694done
16695
16696
16697case "${host}" in
16698 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16699 if test $ac_cv_header_langinfo_h = "yes" \
16700 -a \( "$wx_cv_gccversion" = "EMX2" \
16701 -o "$wx_cv_gccversion" = "EMX3" \
16702 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16703 LIBS="$LIBS -lintl"
16704 fi
16705 ;;
16706esac
16707
a848cd7e
SC
16708
16709echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16710echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16711if test "${ac_cv_c_const+set}" = set; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16713else
16714 cat >conftest.$ac_ext <<_ACEOF
16715/* confdefs.h. */
16716_ACEOF
16717cat confdefs.h >>conftest.$ac_ext
16718cat >>conftest.$ac_ext <<_ACEOF
16719/* end confdefs.h. */
16720
16721int
16722main ()
16723{
16724/* FIXME: Include the comments suggested by Paul. */
16725#ifndef __cplusplus
16726 /* Ultrix mips cc rejects this. */
16727 typedef int charset[2];
16728 const charset x;
16729 /* SunOS 4.1.1 cc rejects this. */
16730 char const *const *ccp;
16731 char **p;
16732 /* NEC SVR4.0.2 mips cc rejects this. */
16733 struct point {int x, y;};
16734 static struct point const zero = {0,0};
16735 /* AIX XL C 1.02.0.0 rejects this.
16736 It does not let you subtract one const X* pointer from another in
16737 an arm of an if-expression whose if-part is not a constant
16738 expression */
16739 const char *g = "string";
16740 ccp = &g + (g ? g-g : 0);
16741 /* HPUX 7.0 cc rejects these. */
16742 ++ccp;
16743 p = (char**) ccp;
16744 ccp = (char const *const *) p;
16745 { /* SCO 3.2v4 cc rejects this. */
16746 char *t;
16747 char const *s = 0 ? (char *) 0 : (char const *) 0;
16748
16749 *t++ = 0;
16750 }
16751 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16752 int x[] = {25, 17};
16753 const int *foo = &x[0];
16754 ++foo;
16755 }
16756 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16757 typedef const int *iptr;
16758 iptr p = 0;
16759 ++p;
16760 }
16761 { /* AIX XL C 1.02.0.0 rejects this saying
16762 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16763 struct s { int j; const int *ap[3]; };
16764 struct s *b; b->j = 5;
16765 }
16766 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16767 const int foo = 10;
16768 }
16769#endif
16770
16771 ;
16772 return 0;
16773}
16774_ACEOF
16775rm -f conftest.$ac_objext
16776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16777 (eval $ac_compile) 2>conftest.er1
a848cd7e 16778 ac_status=$?
ac1cb8d3
VS
16779 grep -v '^ *+' conftest.er1 >conftest.err
16780 rm -f conftest.er1
16781 cat conftest.err >&5
a848cd7e
SC
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } &&
3565d135
RR
16784 { ac_try='test -z "$ac_c_werror_flag"
16785 || test ! -s conftest.err'
ac1cb8d3
VS
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; } &&
16791 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16797 ac_cv_c_const=yes
16798else
16799 echo "$as_me: failed program was:" >&5
16800sed 's/^/| /' conftest.$ac_ext >&5
16801
16802ac_cv_c_const=no
16803fi
ac1cb8d3 16804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16805fi
16806echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16807echo "${ECHO_T}$ac_cv_c_const" >&6
16808if test $ac_cv_c_const = no; then
16809
16810cat >>confdefs.h <<\_ACEOF
16811#define const
16812_ACEOF
16813
16814fi
16815
16816echo "$as_me:$LINENO: checking for inline" >&5
16817echo $ECHO_N "checking for inline... $ECHO_C" >&6
16818if test "${ac_cv_c_inline+set}" = set; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16820else
16821 ac_cv_c_inline=no
16822for ac_kw in inline __inline__ __inline; do
16823 cat >conftest.$ac_ext <<_ACEOF
16824/* confdefs.h. */
16825_ACEOF
16826cat confdefs.h >>conftest.$ac_ext
16827cat >>conftest.$ac_ext <<_ACEOF
16828/* end confdefs.h. */
16829#ifndef __cplusplus
16830typedef int foo_t;
16831static $ac_kw foo_t static_foo () {return 0; }
16832$ac_kw foo_t foo () {return 0; }
16833#endif
16834
16835_ACEOF
16836rm -f conftest.$ac_objext
16837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16838 (eval $ac_compile) 2>conftest.er1
a848cd7e 16839 ac_status=$?
ac1cb8d3
VS
16840 grep -v '^ *+' conftest.er1 >conftest.err
16841 rm -f conftest.er1
16842 cat conftest.err >&5
a848cd7e
SC
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } &&
3565d135
RR
16845 { ac_try='test -z "$ac_c_werror_flag"
16846 || test ! -s conftest.err'
ac1cb8d3
VS
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_cv_c_inline=$ac_kw; break
16859else
16860 echo "$as_me: failed program was:" >&5
16861sed 's/^/| /' conftest.$ac_ext >&5
16862
16863fi
ac1cb8d3 16864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16865done
16866
16867fi
16868echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16869echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16870
16871
a848cd7e
SC
16872case $ac_cv_c_inline in
16873 inline | yes) ;;
ac1cb8d3
VS
16874 *)
16875 case $ac_cv_c_inline in
16876 no) ac_val=;;
16877 *) ac_val=$ac_cv_c_inline;;
16878 esac
16879 cat >>confdefs.h <<_ACEOF
16880#ifndef __cplusplus
16881#define inline $ac_val
16882#endif
de59c161 16883_ACEOF
ac1cb8d3 16884 ;;
a848cd7e
SC
16885esac
16886
16887
16888echo "$as_me:$LINENO: checking for char" >&5
16889echo $ECHO_N "checking for char... $ECHO_C" >&6
16890if test "${ac_cv_type_char+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892else
16893 cat >conftest.$ac_ext <<_ACEOF
16894/* confdefs.h. */
16895_ACEOF
16896cat confdefs.h >>conftest.$ac_ext
16897cat >>conftest.$ac_ext <<_ACEOF
16898/* end confdefs.h. */
16899$ac_includes_default
16900int
16901main ()
16902{
16903if ((char *) 0)
16904 return 0;
16905if (sizeof (char))
16906 return 0;
16907 ;
16908 return 0;
16909}
16910_ACEOF
16911rm -f conftest.$ac_objext
16912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16913 (eval $ac_compile) 2>conftest.er1
a848cd7e 16914 ac_status=$?
ac1cb8d3
VS
16915 grep -v '^ *+' conftest.er1 >conftest.err
16916 rm -f conftest.er1
16917 cat conftest.err >&5
a848cd7e
SC
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } &&
3565d135
RR
16920 { ac_try='test -z "$ac_c_werror_flag"
16921 || test ! -s conftest.err'
ac1cb8d3
VS
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; } &&
16927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16930 ac_status=$?
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; }; then
16933 ac_cv_type_char=yes
16934else
16935 echo "$as_me: failed program was:" >&5
16936sed 's/^/| /' conftest.$ac_ext >&5
16937
16938ac_cv_type_char=no
16939fi
ac1cb8d3 16940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16941fi
16942echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16943echo "${ECHO_T}$ac_cv_type_char" >&6
16944
16945echo "$as_me:$LINENO: checking size of char" >&5
16946echo $ECHO_N "checking size of char... $ECHO_C" >&6
16947if test "${ac_cv_sizeof_char+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16949else
16950 if test "$ac_cv_type_char" = yes; then
16951 # The cast to unsigned long works around a bug in the HP C Compiler
16952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16954 # This bug is HP SR number 8606223364.
16955 if test "$cross_compiling" = yes; then
16956 # Depending upon the size, compute the lo and hi bounds.
16957cat >conftest.$ac_ext <<_ACEOF
16958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
16963$ac_includes_default
16964int
16965main ()
16966{
16967static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16968test_array [0] = 0
16969
16970 ;
16971 return 0;
16972}
16973_ACEOF
16974rm -f conftest.$ac_objext
16975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16976 (eval $ac_compile) 2>conftest.er1
a848cd7e 16977 ac_status=$?
ac1cb8d3
VS
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
a848cd7e
SC
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
3565d135
RR
16983 { ac_try='test -z "$ac_c_werror_flag"
16984 || test ! -s conftest.err'
ac1cb8d3
VS
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16993 ac_status=$?
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_lo=0 ac_mid=0
16997 while :; do
16998 cat >conftest.$ac_ext <<_ACEOF
16999/* confdefs.h. */
17000_ACEOF
17001cat confdefs.h >>conftest.$ac_ext
17002cat >>conftest.$ac_ext <<_ACEOF
17003/* end confdefs.h. */
17004$ac_includes_default
17005int
17006main ()
17007{
17008static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17009test_array [0] = 0
17010
17011 ;
17012 return 0;
17013}
17014_ACEOF
17015rm -f conftest.$ac_objext
17016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17017 (eval $ac_compile) 2>conftest.er1
a848cd7e 17018 ac_status=$?
ac1cb8d3
VS
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
a848cd7e
SC
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
3565d135
RR
17024 { ac_try='test -z "$ac_c_werror_flag"
17025 || test ! -s conftest.err'
ac1cb8d3
VS
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 ac_hi=$ac_mid; break
17038else
17039 echo "$as_me: failed program was:" >&5
17040sed 's/^/| /' conftest.$ac_ext >&5
17041
17042ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17043 if test $ac_lo -le $ac_mid; then
17044 ac_lo= ac_hi=
17045 break
17046 fi
17047 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17048fi
ac1cb8d3 17049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17050 done
17051else
17052 echo "$as_me: failed program was:" >&5
17053sed 's/^/| /' conftest.$ac_ext >&5
17054
17055cat >conftest.$ac_ext <<_ACEOF
17056/* confdefs.h. */
17057_ACEOF
17058cat confdefs.h >>conftest.$ac_ext
17059cat >>conftest.$ac_ext <<_ACEOF
17060/* end confdefs.h. */
17061$ac_includes_default
17062int
17063main ()
17064{
17065static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17066test_array [0] = 0
17067
17068 ;
17069 return 0;
17070}
17071_ACEOF
17072rm -f conftest.$ac_objext
17073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17074 (eval $ac_compile) 2>conftest.er1
a848cd7e 17075 ac_status=$?
ac1cb8d3
VS
17076 grep -v '^ *+' conftest.er1 >conftest.err
17077 rm -f conftest.er1
17078 cat conftest.err >&5
a848cd7e
SC
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
3565d135
RR
17081 { ac_try='test -z "$ac_c_werror_flag"
17082 || test ! -s conftest.err'
ac1cb8d3
VS
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090 (eval $ac_try) 2>&5
17091 ac_status=$?
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
17094 ac_hi=-1 ac_mid=-1
17095 while :; do
17096 cat >conftest.$ac_ext <<_ACEOF
17097/* confdefs.h. */
17098_ACEOF
17099cat confdefs.h >>conftest.$ac_ext
17100cat >>conftest.$ac_ext <<_ACEOF
17101/* end confdefs.h. */
17102$ac_includes_default
17103int
17104main ()
17105{
17106static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17107test_array [0] = 0
17108
17109 ;
17110 return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext
17114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17115 (eval $ac_compile) 2>conftest.er1
a848cd7e 17116 ac_status=$?
ac1cb8d3
VS
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
a848cd7e
SC
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
3565d135
RR
17122 { ac_try='test -z "$ac_c_werror_flag"
17123 || test ! -s conftest.err'
ac1cb8d3
VS
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 ac_lo=$ac_mid; break
17136else
17137 echo "$as_me: failed program was:" >&5
17138sed 's/^/| /' conftest.$ac_ext >&5
17139
17140ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17141 if test $ac_mid -le $ac_hi; then
17142 ac_lo= ac_hi=
17143 break
17144 fi
17145 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17146fi
ac1cb8d3 17147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17148 done
17149else
17150 echo "$as_me: failed program was:" >&5
17151sed 's/^/| /' conftest.$ac_ext >&5
17152
17153ac_lo= ac_hi=
17154fi
ac1cb8d3 17155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17156fi
ac1cb8d3 17157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17158# Binary search between lo and hi bounds.
17159while test "x$ac_lo" != "x$ac_hi"; do
17160 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17161 cat >conftest.$ac_ext <<_ACEOF
17162/* confdefs.h. */
17163_ACEOF
17164cat confdefs.h >>conftest.$ac_ext
17165cat >>conftest.$ac_ext <<_ACEOF
17166/* end confdefs.h. */
17167$ac_includes_default
17168int
17169main ()
17170{
17171static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17172test_array [0] = 0
17173
17174 ;
17175 return 0;
17176}
17177_ACEOF
17178rm -f conftest.$ac_objext
17179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17180 (eval $ac_compile) 2>conftest.er1
a848cd7e 17181 ac_status=$?
ac1cb8d3
VS
17182 grep -v '^ *+' conftest.er1 >conftest.err
17183 rm -f conftest.er1
17184 cat conftest.err >&5
a848cd7e
SC
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
3565d135
RR
17187 { ac_try='test -z "$ac_c_werror_flag"
17188 || test ! -s conftest.err'
ac1cb8d3
VS
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 ac_hi=$ac_mid
17201else
17202 echo "$as_me: failed program was:" >&5
17203sed 's/^/| /' conftest.$ac_ext >&5
17204
17205ac_lo=`expr '(' $ac_mid ')' + 1`
17206fi
ac1cb8d3 17207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17208done
17209case $ac_lo in
17210?*) ac_cv_sizeof_char=$ac_lo;;
17211'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17212See \`config.log' for more details." >&5
17213echo "$as_me: error: cannot compute sizeof (char), 77
17214See \`config.log' for more details." >&2;}
17215 { (exit 1); exit 1; }; } ;;
17216esac
17217else
17218 if test "$cross_compiling" = yes; then
3565d135
RR
17219 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17220See \`config.log' for more details." >&5
17221echo "$as_me: error: cannot run test program while cross compiling
17222See \`config.log' for more details." >&2;}
a848cd7e
SC
17223 { (exit 1); exit 1; }; }
17224else
17225 cat >conftest.$ac_ext <<_ACEOF
17226/* confdefs.h. */
17227_ACEOF
17228cat confdefs.h >>conftest.$ac_ext
17229cat >>conftest.$ac_ext <<_ACEOF
17230/* end confdefs.h. */
17231$ac_includes_default
17232long longval () { return (long) (sizeof (char)); }
17233unsigned long ulongval () { return (long) (sizeof (char)); }
17234#include <stdio.h>
17235#include <stdlib.h>
17236int
17237main ()
17238{
17239
17240 FILE *f = fopen ("conftest.val", "w");
17241 if (! f)
17242 exit (1);
17243 if (((long) (sizeof (char))) < 0)
17244 {
17245 long i = longval ();
17246 if (i != ((long) (sizeof (char))))
17247 exit (1);
17248 fprintf (f, "%ld\n", i);
17249 }
17250 else
17251 {
17252 unsigned long i = ulongval ();
17253 if (i != ((long) (sizeof (char))))
17254 exit (1);
17255 fprintf (f, "%lu\n", i);
17256 }
17257 exit (ferror (f) || fclose (f) != 0);
17258
17259 ;
17260 return 0;
17261}
17262_ACEOF
17263rm -f conftest$ac_exeext
17264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17265 (eval $ac_link) 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; }; then
17274 ac_cv_sizeof_char=`cat conftest.val`
17275else
17276 echo "$as_me: program exited with status $ac_status" >&5
17277echo "$as_me: failed program was:" >&5
17278sed 's/^/| /' conftest.$ac_ext >&5
17279
17280( exit $ac_status )
17281{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17282See \`config.log' for more details." >&5
17283echo "$as_me: error: cannot compute sizeof (char), 77
17284See \`config.log' for more details." >&2;}
17285 { (exit 1); exit 1; }; }
17286fi
ac1cb8d3 17287rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17288fi
17289fi
17290rm -f conftest.val
17291else
17292 ac_cv_sizeof_char=0
17293fi
17294fi
17295echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17296echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17297cat >>confdefs.h <<_ACEOF
17298#define SIZEOF_CHAR $ac_cv_sizeof_char
17299_ACEOF
17300
17301
17302echo "$as_me:$LINENO: checking for short" >&5
17303echo $ECHO_N "checking for short... $ECHO_C" >&6
17304if test "${ac_cv_type_short+set}" = set; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17306else
17307 cat >conftest.$ac_ext <<_ACEOF
17308/* confdefs.h. */
17309_ACEOF
17310cat confdefs.h >>conftest.$ac_ext
17311cat >>conftest.$ac_ext <<_ACEOF
17312/* end confdefs.h. */
17313$ac_includes_default
17314int
17315main ()
17316{
17317if ((short *) 0)
17318 return 0;
17319if (sizeof (short))
17320 return 0;
17321 ;
17322 return 0;
17323}
17324_ACEOF
17325rm -f conftest.$ac_objext
17326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17327 (eval $ac_compile) 2>conftest.er1
a848cd7e 17328 ac_status=$?
ac1cb8d3
VS
17329 grep -v '^ *+' conftest.er1 >conftest.err
17330 rm -f conftest.er1
17331 cat conftest.err >&5
a848cd7e
SC
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } &&
3565d135
RR
17334 { ac_try='test -z "$ac_c_werror_flag"
17335 || test ! -s conftest.err'
ac1cb8d3
VS
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; } &&
17341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17344 ac_status=$?
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; }; then
17347 ac_cv_type_short=yes
17348else
17349 echo "$as_me: failed program was:" >&5
17350sed 's/^/| /' conftest.$ac_ext >&5
17351
17352ac_cv_type_short=no
17353fi
ac1cb8d3 17354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17355fi
17356echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17357echo "${ECHO_T}$ac_cv_type_short" >&6
17358
17359echo "$as_me:$LINENO: checking size of short" >&5
17360echo $ECHO_N "checking size of short... $ECHO_C" >&6
17361if test "${ac_cv_sizeof_short+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17363else
17364 if test "$ac_cv_type_short" = yes; then
17365 # The cast to unsigned long works around a bug in the HP C Compiler
17366 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17367 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17368 # This bug is HP SR number 8606223364.
17369 if test "$cross_compiling" = yes; then
17370 # Depending upon the size, compute the lo and hi bounds.
17371cat >conftest.$ac_ext <<_ACEOF
17372/* confdefs.h. */
17373_ACEOF
17374cat confdefs.h >>conftest.$ac_ext
17375cat >>conftest.$ac_ext <<_ACEOF
17376/* end confdefs.h. */
17377$ac_includes_default
17378int
17379main ()
17380{
17381static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17382test_array [0] = 0
17383
17384 ;
17385 return 0;
17386}
17387_ACEOF
17388rm -f conftest.$ac_objext
17389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17390 (eval $ac_compile) 2>conftest.er1
a848cd7e 17391 ac_status=$?
ac1cb8d3
VS
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
a848cd7e
SC
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
3565d135
RR
17397 { ac_try='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
ac1cb8d3
VS
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_lo=0 ac_mid=0
17411 while :; do
17412 cat >conftest.$ac_ext <<_ACEOF
17413/* confdefs.h. */
17414_ACEOF
17415cat confdefs.h >>conftest.$ac_ext
17416cat >>conftest.$ac_ext <<_ACEOF
17417/* end confdefs.h. */
17418$ac_includes_default
17419int
17420main ()
17421{
17422static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17423test_array [0] = 0
17424
17425 ;
17426 return 0;
17427}
17428_ACEOF
17429rm -f conftest.$ac_objext
17430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17431 (eval $ac_compile) 2>conftest.er1
a848cd7e 17432 ac_status=$?
ac1cb8d3
VS
17433 grep -v '^ *+' conftest.er1 >conftest.err
17434 rm -f conftest.er1
17435 cat conftest.err >&5
a848cd7e
SC
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
3565d135
RR
17438 { ac_try='test -z "$ac_c_werror_flag"
17439 || test ! -s conftest.err'
ac1cb8d3
VS
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_hi=$ac_mid; break
17452else
17453 echo "$as_me: failed program was:" >&5
17454sed 's/^/| /' conftest.$ac_ext >&5
17455
17456ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17457 if test $ac_lo -le $ac_mid; then
17458 ac_lo= ac_hi=
17459 break
17460 fi
17461 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17462fi
ac1cb8d3 17463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17464 done
17465else
17466 echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
17469cat >conftest.$ac_ext <<_ACEOF
17470/* confdefs.h. */
17471_ACEOF
17472cat confdefs.h >>conftest.$ac_ext
17473cat >>conftest.$ac_ext <<_ACEOF
17474/* end confdefs.h. */
17475$ac_includes_default
17476int
17477main ()
17478{
17479static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17480test_array [0] = 0
17481
17482 ;
17483 return 0;
17484}
17485_ACEOF
17486rm -f conftest.$ac_objext
17487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17488 (eval $ac_compile) 2>conftest.er1
a848cd7e 17489 ac_status=$?
ac1cb8d3
VS
17490 grep -v '^ *+' conftest.er1 >conftest.err
17491 rm -f conftest.er1
17492 cat conftest.err >&5
a848cd7e
SC
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } &&
3565d135
RR
17495 { ac_try='test -z "$ac_c_werror_flag"
17496 || test ! -s conftest.err'
ac1cb8d3
VS
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; } &&
17502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 ac_hi=-1 ac_mid=-1
17509 while :; do
17510 cat >conftest.$ac_ext <<_ACEOF
17511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
17516$ac_includes_default
17517int
17518main ()
17519{
17520static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17521test_array [0] = 0
17522
17523 ;
17524 return 0;
17525}
17526_ACEOF
17527rm -f conftest.$ac_objext
17528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17529 (eval $ac_compile) 2>conftest.er1
a848cd7e 17530 ac_status=$?
ac1cb8d3
VS
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
a848cd7e
SC
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
3565d135
RR
17536 { ac_try='test -z "$ac_c_werror_flag"
17537 || test ! -s conftest.err'
ac1cb8d3
VS
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
17549 ac_lo=$ac_mid; break
17550else
17551 echo "$as_me: failed program was:" >&5
17552sed 's/^/| /' conftest.$ac_ext >&5
17553
17554ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17555 if test $ac_mid -le $ac_hi; then
17556 ac_lo= ac_hi=
17557 break
17558 fi
17559 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17560fi
ac1cb8d3 17561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17562 done
17563else
17564 echo "$as_me: failed program was:" >&5
17565sed 's/^/| /' conftest.$ac_ext >&5
17566
17567ac_lo= ac_hi=
17568fi
ac1cb8d3 17569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17570fi
ac1cb8d3 17571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17572# Binary search between lo and hi bounds.
17573while test "x$ac_lo" != "x$ac_hi"; do
17574 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17575 cat >conftest.$ac_ext <<_ACEOF
17576/* confdefs.h. */
17577_ACEOF
17578cat confdefs.h >>conftest.$ac_ext
17579cat >>conftest.$ac_ext <<_ACEOF
17580/* end confdefs.h. */
17581$ac_includes_default
17582int
17583main ()
17584{
17585static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17586test_array [0] = 0
17587
17588 ;
17589 return 0;
17590}
17591_ACEOF
17592rm -f conftest.$ac_objext
17593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17594 (eval $ac_compile) 2>conftest.er1
a848cd7e 17595 ac_status=$?
ac1cb8d3
VS
17596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
a848cd7e
SC
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
3565d135
RR
17601 { ac_try='test -z "$ac_c_werror_flag"
17602 || test ! -s conftest.err'
ac1cb8d3
VS
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_hi=$ac_mid
17615else
17616 echo "$as_me: failed program was:" >&5
17617sed 's/^/| /' conftest.$ac_ext >&5
17618
17619ac_lo=`expr '(' $ac_mid ')' + 1`
17620fi
ac1cb8d3 17621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17622done
17623case $ac_lo in
17624?*) ac_cv_sizeof_short=$ac_lo;;
17625'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17626See \`config.log' for more details." >&5
17627echo "$as_me: error: cannot compute sizeof (short), 77
17628See \`config.log' for more details." >&2;}
17629 { (exit 1); exit 1; }; } ;;
17630esac
17631else
17632 if test "$cross_compiling" = yes; then
3565d135
RR
17633 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17634See \`config.log' for more details." >&5
17635echo "$as_me: error: cannot run test program while cross compiling
17636See \`config.log' for more details." >&2;}
a848cd7e
SC
17637 { (exit 1); exit 1; }; }
17638else
17639 cat >conftest.$ac_ext <<_ACEOF
17640/* confdefs.h. */
17641_ACEOF
17642cat confdefs.h >>conftest.$ac_ext
17643cat >>conftest.$ac_ext <<_ACEOF
17644/* end confdefs.h. */
17645$ac_includes_default
17646long longval () { return (long) (sizeof (short)); }
17647unsigned long ulongval () { return (long) (sizeof (short)); }
17648#include <stdio.h>
17649#include <stdlib.h>
17650int
17651main ()
17652{
17653
17654 FILE *f = fopen ("conftest.val", "w");
17655 if (! f)
17656 exit (1);
17657 if (((long) (sizeof (short))) < 0)
17658 {
17659 long i = longval ();
17660 if (i != ((long) (sizeof (short))))
17661 exit (1);
17662 fprintf (f, "%ld\n", i);
17663 }
17664 else
17665 {
17666 unsigned long i = ulongval ();
17667 if (i != ((long) (sizeof (short))))
17668 exit (1);
17669 fprintf (f, "%lu\n", i);
17670 }
17671 exit (ferror (f) || fclose (f) != 0);
17672
17673 ;
17674 return 0;
17675}
17676_ACEOF
17677rm -f conftest$ac_exeext
17678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679 (eval $ac_link) 2>&5
17680 ac_status=$?
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
17688 ac_cv_sizeof_short=`cat conftest.val`
17689else
17690 echo "$as_me: program exited with status $ac_status" >&5
17691echo "$as_me: failed program was:" >&5
17692sed 's/^/| /' conftest.$ac_ext >&5
17693
17694( exit $ac_status )
17695{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17696See \`config.log' for more details." >&5
17697echo "$as_me: error: cannot compute sizeof (short), 77
17698See \`config.log' for more details." >&2;}
17699 { (exit 1); exit 1; }; }
17700fi
ac1cb8d3 17701rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17702fi
17703fi
17704rm -f conftest.val
17705else
17706 ac_cv_sizeof_short=0
17707fi
17708fi
17709echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17710echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17711cat >>confdefs.h <<_ACEOF
17712#define SIZEOF_SHORT $ac_cv_sizeof_short
17713_ACEOF
17714
17715
17716echo "$as_me:$LINENO: checking for void *" >&5
17717echo $ECHO_N "checking for void *... $ECHO_C" >&6
17718if test "${ac_cv_type_void_p+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17720else
17721 cat >conftest.$ac_ext <<_ACEOF
17722/* confdefs.h. */
17723_ACEOF
17724cat confdefs.h >>conftest.$ac_ext
17725cat >>conftest.$ac_ext <<_ACEOF
17726/* end confdefs.h. */
17727$ac_includes_default
17728int
17729main ()
17730{
17731if ((void * *) 0)
17732 return 0;
17733if (sizeof (void *))
17734 return 0;
17735 ;
17736 return 0;
17737}
17738_ACEOF
17739rm -f conftest.$ac_objext
17740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17741 (eval $ac_compile) 2>conftest.er1
a848cd7e 17742 ac_status=$?
ac1cb8d3
VS
17743 grep -v '^ *+' conftest.er1 >conftest.err
17744 rm -f conftest.er1
17745 cat conftest.err >&5
a848cd7e
SC
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
3565d135
RR
17748 { ac_try='test -z "$ac_c_werror_flag"
17749 || test ! -s conftest.err'
ac1cb8d3
VS
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 ac_cv_type_void_p=yes
17762else
17763 echo "$as_me: failed program was:" >&5
17764sed 's/^/| /' conftest.$ac_ext >&5
17765
17766ac_cv_type_void_p=no
17767fi
ac1cb8d3 17768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17769fi
17770echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17771echo "${ECHO_T}$ac_cv_type_void_p" >&6
17772
17773echo "$as_me:$LINENO: checking size of void *" >&5
17774echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17775if test "${ac_cv_sizeof_void_p+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17777else
17778 if test "$ac_cv_type_void_p" = yes; then
17779 # The cast to unsigned long works around a bug in the HP C Compiler
17780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17782 # This bug is HP SR number 8606223364.
17783 if test "$cross_compiling" = yes; then
17784 # Depending upon the size, compute the lo and hi bounds.
17785cat >conftest.$ac_ext <<_ACEOF
17786/* confdefs.h. */
17787_ACEOF
17788cat confdefs.h >>conftest.$ac_ext
17789cat >>conftest.$ac_ext <<_ACEOF
17790/* end confdefs.h. */
17791$ac_includes_default
17792int
17793main ()
17794{
17795static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17796test_array [0] = 0
17797
17798 ;
17799 return 0;
17800}
17801_ACEOF
17802rm -f conftest.$ac_objext
17803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17804 (eval $ac_compile) 2>conftest.er1
a848cd7e 17805 ac_status=$?
ac1cb8d3
VS
17806 grep -v '^ *+' conftest.er1 >conftest.err
17807 rm -f conftest.er1
17808 cat conftest.err >&5
a848cd7e
SC
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
3565d135
RR
17811 { ac_try='test -z "$ac_c_werror_flag"
17812 || test ! -s conftest.err'
ac1cb8d3
VS
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_lo=0 ac_mid=0
17825 while :; do
17826 cat >conftest.$ac_ext <<_ACEOF
17827/* confdefs.h. */
17828_ACEOF
17829cat confdefs.h >>conftest.$ac_ext
17830cat >>conftest.$ac_ext <<_ACEOF
17831/* end confdefs.h. */
17832$ac_includes_default
17833int
17834main ()
17835{
17836static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17837test_array [0] = 0
17838
17839 ;
17840 return 0;
17841}
17842_ACEOF
17843rm -f conftest.$ac_objext
17844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17845 (eval $ac_compile) 2>conftest.er1
a848cd7e 17846 ac_status=$?
ac1cb8d3
VS
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
a848cd7e
SC
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
3565d135
RR
17852 { ac_try='test -z "$ac_c_werror_flag"
17853 || test ! -s conftest.err'
ac1cb8d3
VS
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 ac_hi=$ac_mid; break
17866else
17867 echo "$as_me: failed program was:" >&5
17868sed 's/^/| /' conftest.$ac_ext >&5
17869
17870ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17871 if test $ac_lo -le $ac_mid; then
17872 ac_lo= ac_hi=
17873 break
17874 fi
17875 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17876fi
ac1cb8d3 17877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17878 done
17879else
17880 echo "$as_me: failed program was:" >&5
17881sed 's/^/| /' conftest.$ac_ext >&5
17882
17883cat >conftest.$ac_ext <<_ACEOF
17884/* confdefs.h. */
17885_ACEOF
17886cat confdefs.h >>conftest.$ac_ext
17887cat >>conftest.$ac_ext <<_ACEOF
17888/* end confdefs.h. */
17889$ac_includes_default
17890int
17891main ()
17892{
17893static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17894test_array [0] = 0
17895
17896 ;
17897 return 0;
17898}
17899_ACEOF
17900rm -f conftest.$ac_objext
17901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17902 (eval $ac_compile) 2>conftest.er1
a848cd7e 17903 ac_status=$?
ac1cb8d3
VS
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
a848cd7e
SC
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
3565d135
RR
17909 { ac_try='test -z "$ac_c_werror_flag"
17910 || test ! -s conftest.err'
ac1cb8d3
VS
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 ac_hi=-1 ac_mid=-1
17923 while :; do
17924 cat >conftest.$ac_ext <<_ACEOF
17925/* confdefs.h. */
17926_ACEOF
17927cat confdefs.h >>conftest.$ac_ext
17928cat >>conftest.$ac_ext <<_ACEOF
17929/* end confdefs.h. */
17930$ac_includes_default
17931int
17932main ()
17933{
17934static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17935test_array [0] = 0
17936
17937 ;
17938 return 0;
17939}
17940_ACEOF
17941rm -f conftest.$ac_objext
17942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17943 (eval $ac_compile) 2>conftest.er1
a848cd7e 17944 ac_status=$?
ac1cb8d3
VS
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
a848cd7e
SC
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
3565d135
RR
17950 { ac_try='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
ac1cb8d3
VS
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_lo=$ac_mid; break
17964else
17965 echo "$as_me: failed program was:" >&5
17966sed 's/^/| /' conftest.$ac_ext >&5
17967
17968ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17969 if test $ac_mid -le $ac_hi; then
17970 ac_lo= ac_hi=
17971 break
17972 fi
17973 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17974fi
ac1cb8d3 17975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17976 done
17977else
17978 echo "$as_me: failed program was:" >&5
17979sed 's/^/| /' conftest.$ac_ext >&5
17980
17981ac_lo= ac_hi=
17982fi
ac1cb8d3 17983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17984fi
ac1cb8d3 17985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17986# Binary search between lo and hi bounds.
17987while test "x$ac_lo" != "x$ac_hi"; do
17988 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17989 cat >conftest.$ac_ext <<_ACEOF
17990/* confdefs.h. */
17991_ACEOF
17992cat confdefs.h >>conftest.$ac_ext
17993cat >>conftest.$ac_ext <<_ACEOF
17994/* end confdefs.h. */
17995$ac_includes_default
17996int
17997main ()
17998{
17999static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18000test_array [0] = 0
18001
18002 ;
18003 return 0;
18004}
18005_ACEOF
18006rm -f conftest.$ac_objext
18007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18008 (eval $ac_compile) 2>conftest.er1
a848cd7e 18009 ac_status=$?
ac1cb8d3
VS
18010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
a848cd7e
SC
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
3565d135
RR
18015 { ac_try='test -z "$ac_c_werror_flag"
18016 || test ! -s conftest.err'
ac1cb8d3
VS
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; } &&
18022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; }; then
18028 ac_hi=$ac_mid
18029else
18030 echo "$as_me: failed program was:" >&5
18031sed 's/^/| /' conftest.$ac_ext >&5
18032
18033ac_lo=`expr '(' $ac_mid ')' + 1`
18034fi
ac1cb8d3 18035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18036done
18037case $ac_lo in
18038?*) ac_cv_sizeof_void_p=$ac_lo;;
18039'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18040See \`config.log' for more details." >&5
18041echo "$as_me: error: cannot compute sizeof (void *), 77
18042See \`config.log' for more details." >&2;}
18043 { (exit 1); exit 1; }; } ;;
18044esac
18045else
18046 if test "$cross_compiling" = yes; then
3565d135
RR
18047 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18048See \`config.log' for more details." >&5
18049echo "$as_me: error: cannot run test program while cross compiling
18050See \`config.log' for more details." >&2;}
a848cd7e
SC
18051 { (exit 1); exit 1; }; }
18052else
18053 cat >conftest.$ac_ext <<_ACEOF
18054/* confdefs.h. */
18055_ACEOF
18056cat confdefs.h >>conftest.$ac_ext
18057cat >>conftest.$ac_ext <<_ACEOF
18058/* end confdefs.h. */
18059$ac_includes_default
18060long longval () { return (long) (sizeof (void *)); }
18061unsigned long ulongval () { return (long) (sizeof (void *)); }
18062#include <stdio.h>
18063#include <stdlib.h>
18064int
18065main ()
18066{
18067
18068 FILE *f = fopen ("conftest.val", "w");
18069 if (! f)
18070 exit (1);
18071 if (((long) (sizeof (void *))) < 0)
18072 {
18073 long i = longval ();
18074 if (i != ((long) (sizeof (void *))))
18075 exit (1);
18076 fprintf (f, "%ld\n", i);
18077 }
18078 else
18079 {
18080 unsigned long i = ulongval ();
18081 if (i != ((long) (sizeof (void *))))
18082 exit (1);
18083 fprintf (f, "%lu\n", i);
18084 }
18085 exit (ferror (f) || fclose (f) != 0);
18086
18087 ;
18088 return 0;
18089}
18090_ACEOF
18091rm -f conftest$ac_exeext
18092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18093 (eval $ac_link) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_cv_sizeof_void_p=`cat conftest.val`
18103else
18104 echo "$as_me: program exited with status $ac_status" >&5
18105echo "$as_me: failed program was:" >&5
18106sed 's/^/| /' conftest.$ac_ext >&5
18107
18108( exit $ac_status )
18109{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18110See \`config.log' for more details." >&5
18111echo "$as_me: error: cannot compute sizeof (void *), 77
18112See \`config.log' for more details." >&2;}
18113 { (exit 1); exit 1; }; }
18114fi
ac1cb8d3 18115rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18116fi
18117fi
18118rm -f conftest.val
18119else
18120 ac_cv_sizeof_void_p=0
18121fi
18122fi
18123echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18124echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18125cat >>confdefs.h <<_ACEOF
18126#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18127_ACEOF
18128
18129
18130echo "$as_me:$LINENO: checking for int" >&5
18131echo $ECHO_N "checking for int... $ECHO_C" >&6
18132if test "${ac_cv_type_int+set}" = set; then
18133 echo $ECHO_N "(cached) $ECHO_C" >&6
18134else
18135 cat >conftest.$ac_ext <<_ACEOF
18136/* confdefs.h. */
18137_ACEOF
18138cat confdefs.h >>conftest.$ac_ext
18139cat >>conftest.$ac_ext <<_ACEOF
18140/* end confdefs.h. */
18141$ac_includes_default
18142int
18143main ()
18144{
18145if ((int *) 0)
18146 return 0;
18147if (sizeof (int))
18148 return 0;
18149 ;
18150 return 0;
18151}
18152_ACEOF
18153rm -f conftest.$ac_objext
18154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18155 (eval $ac_compile) 2>conftest.er1
a848cd7e 18156 ac_status=$?
ac1cb8d3
VS
18157 grep -v '^ *+' conftest.er1 >conftest.err
18158 rm -f conftest.er1
18159 cat conftest.err >&5
a848cd7e
SC
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
3565d135
RR
18162 { ac_try='test -z "$ac_c_werror_flag"
18163 || test ! -s conftest.err'
ac1cb8d3
VS
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_cv_type_int=yes
18176else
18177 echo "$as_me: failed program was:" >&5
18178sed 's/^/| /' conftest.$ac_ext >&5
18179
18180ac_cv_type_int=no
18181fi
ac1cb8d3 18182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18183fi
18184echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18185echo "${ECHO_T}$ac_cv_type_int" >&6
18186
18187echo "$as_me:$LINENO: checking size of int" >&5
18188echo $ECHO_N "checking size of int... $ECHO_C" >&6
18189if test "${ac_cv_sizeof_int+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18191else
18192 if test "$ac_cv_type_int" = yes; then
18193 # The cast to unsigned long works around a bug in the HP C Compiler
18194 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18195 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18196 # This bug is HP SR number 8606223364.
18197 if test "$cross_compiling" = yes; then
18198 # Depending upon the size, compute the lo and hi bounds.
18199cat >conftest.$ac_ext <<_ACEOF
18200/* confdefs.h. */
18201_ACEOF
18202cat confdefs.h >>conftest.$ac_ext
18203cat >>conftest.$ac_ext <<_ACEOF
18204/* end confdefs.h. */
18205$ac_includes_default
18206int
18207main ()
18208{
18209static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18210test_array [0] = 0
18211
18212 ;
18213 return 0;
18214}
18215_ACEOF
18216rm -f conftest.$ac_objext
18217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18218 (eval $ac_compile) 2>conftest.er1
a848cd7e 18219 ac_status=$?
ac1cb8d3
VS
18220 grep -v '^ *+' conftest.er1 >conftest.err
18221 rm -f conftest.er1
18222 cat conftest.err >&5
a848cd7e
SC
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } &&
3565d135
RR
18225 { ac_try='test -z "$ac_c_werror_flag"
18226 || test ! -s conftest.err'
ac1cb8d3
VS
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; } &&
18232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; }; then
18238 ac_lo=0 ac_mid=0
18239 while :; do
18240 cat >conftest.$ac_ext <<_ACEOF
18241/* confdefs.h. */
18242_ACEOF
18243cat confdefs.h >>conftest.$ac_ext
18244cat >>conftest.$ac_ext <<_ACEOF
18245/* end confdefs.h. */
18246$ac_includes_default
18247int
18248main ()
18249{
18250static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18251test_array [0] = 0
18252
18253 ;
18254 return 0;
18255}
18256_ACEOF
18257rm -f conftest.$ac_objext
18258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18259 (eval $ac_compile) 2>conftest.er1
a848cd7e 18260 ac_status=$?
ac1cb8d3
VS
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
a848cd7e
SC
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
3565d135
RR
18266 { ac_try='test -z "$ac_c_werror_flag"
18267 || test ! -s conftest.err'
ac1cb8d3
VS
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18279 ac_hi=$ac_mid; break
18280else
18281 echo "$as_me: failed program was:" >&5
18282sed 's/^/| /' conftest.$ac_ext >&5
18283
18284ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18285 if test $ac_lo -le $ac_mid; then
18286 ac_lo= ac_hi=
18287 break
18288 fi
18289 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18290fi
ac1cb8d3 18291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18292 done
18293else
18294 echo "$as_me: failed program was:" >&5
18295sed 's/^/| /' conftest.$ac_ext >&5
18296
18297cat >conftest.$ac_ext <<_ACEOF
18298/* confdefs.h. */
18299_ACEOF
18300cat confdefs.h >>conftest.$ac_ext
18301cat >>conftest.$ac_ext <<_ACEOF
18302/* end confdefs.h. */
18303$ac_includes_default
18304int
18305main ()
18306{
18307static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18308test_array [0] = 0
18309
18310 ;
18311 return 0;
18312}
18313_ACEOF
18314rm -f conftest.$ac_objext
18315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18316 (eval $ac_compile) 2>conftest.er1
a848cd7e 18317 ac_status=$?
ac1cb8d3
VS
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
a848cd7e
SC
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
3565d135
RR
18323 { ac_try='test -z "$ac_c_werror_flag"
18324 || test ! -s conftest.err'
ac1cb8d3
VS
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; } &&
18330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 ac_hi=-1 ac_mid=-1
18337 while :; do
18338 cat >conftest.$ac_ext <<_ACEOF
18339/* confdefs.h. */
18340_ACEOF
18341cat confdefs.h >>conftest.$ac_ext
18342cat >>conftest.$ac_ext <<_ACEOF
18343/* end confdefs.h. */
18344$ac_includes_default
18345int
18346main ()
18347{
18348static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18349test_array [0] = 0
18350
18351 ;
18352 return 0;
18353}
18354_ACEOF
18355rm -f conftest.$ac_objext
18356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18357 (eval $ac_compile) 2>conftest.er1
a848cd7e 18358 ac_status=$?
ac1cb8d3
VS
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
a848cd7e
SC
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
3565d135
RR
18364 { ac_try='test -z "$ac_c_werror_flag"
18365 || test ! -s conftest.err'
ac1cb8d3
VS
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_lo=$ac_mid; break
18378else
18379 echo "$as_me: failed program was:" >&5
18380sed 's/^/| /' conftest.$ac_ext >&5
18381
18382ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18383 if test $ac_mid -le $ac_hi; then
18384 ac_lo= ac_hi=
18385 break
18386 fi
18387 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18388fi
ac1cb8d3 18389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18390 done
18391else
18392 echo "$as_me: failed program was:" >&5
18393sed 's/^/| /' conftest.$ac_ext >&5
18394
18395ac_lo= ac_hi=
18396fi
ac1cb8d3 18397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18398fi
ac1cb8d3 18399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18400# Binary search between lo and hi bounds.
18401while test "x$ac_lo" != "x$ac_hi"; do
18402 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18403 cat >conftest.$ac_ext <<_ACEOF
18404/* confdefs.h. */
18405_ACEOF
18406cat confdefs.h >>conftest.$ac_ext
18407cat >>conftest.$ac_ext <<_ACEOF
18408/* end confdefs.h. */
18409$ac_includes_default
18410int
18411main ()
18412{
18413static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18414test_array [0] = 0
18415
18416 ;
18417 return 0;
18418}
18419_ACEOF
18420rm -f conftest.$ac_objext
18421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18422 (eval $ac_compile) 2>conftest.er1
a848cd7e 18423 ac_status=$?
ac1cb8d3
VS
18424 grep -v '^ *+' conftest.er1 >conftest.err
18425 rm -f conftest.er1
18426 cat conftest.err >&5
a848cd7e
SC
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
3565d135
RR
18429 { ac_try='test -z "$ac_c_werror_flag"
18430 || test ! -s conftest.err'
ac1cb8d3
VS
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; } &&
18436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_hi=$ac_mid
18443else
18444 echo "$as_me: failed program was:" >&5
18445sed 's/^/| /' conftest.$ac_ext >&5
18446
18447ac_lo=`expr '(' $ac_mid ')' + 1`
18448fi
ac1cb8d3 18449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18450done
18451case $ac_lo in
18452?*) ac_cv_sizeof_int=$ac_lo;;
18453'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18454See \`config.log' for more details." >&5
18455echo "$as_me: error: cannot compute sizeof (int), 77
18456See \`config.log' for more details." >&2;}
18457 { (exit 1); exit 1; }; } ;;
18458esac
18459else
18460 if test "$cross_compiling" = yes; then
3565d135
RR
18461 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18462See \`config.log' for more details." >&5
18463echo "$as_me: error: cannot run test program while cross compiling
18464See \`config.log' for more details." >&2;}
a848cd7e
SC
18465 { (exit 1); exit 1; }; }
18466else
18467 cat >conftest.$ac_ext <<_ACEOF
18468/* confdefs.h. */
18469_ACEOF
18470cat confdefs.h >>conftest.$ac_ext
18471cat >>conftest.$ac_ext <<_ACEOF
18472/* end confdefs.h. */
18473$ac_includes_default
18474long longval () { return (long) (sizeof (int)); }
18475unsigned long ulongval () { return (long) (sizeof (int)); }
18476#include <stdio.h>
18477#include <stdlib.h>
18478int
18479main ()
18480{
18481
18482 FILE *f = fopen ("conftest.val", "w");
18483 if (! f)
18484 exit (1);
18485 if (((long) (sizeof (int))) < 0)
18486 {
18487 long i = longval ();
18488 if (i != ((long) (sizeof (int))))
18489 exit (1);
18490 fprintf (f, "%ld\n", i);
18491 }
18492 else
18493 {
18494 unsigned long i = ulongval ();
18495 if (i != ((long) (sizeof (int))))
18496 exit (1);
18497 fprintf (f, "%lu\n", i);
18498 }
18499 exit (ferror (f) || fclose (f) != 0);
18500
18501 ;
18502 return 0;
18503}
18504_ACEOF
18505rm -f conftest$ac_exeext
18506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18507 (eval $ac_link) 2>&5
18508 ac_status=$?
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_cv_sizeof_int=`cat conftest.val`
18517else
18518 echo "$as_me: program exited with status $ac_status" >&5
18519echo "$as_me: failed program was:" >&5
18520sed 's/^/| /' conftest.$ac_ext >&5
18521
18522( exit $ac_status )
18523{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18524See \`config.log' for more details." >&5
18525echo "$as_me: error: cannot compute sizeof (int), 77
18526See \`config.log' for more details." >&2;}
18527 { (exit 1); exit 1; }; }
18528fi
ac1cb8d3 18529rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18530fi
18531fi
18532rm -f conftest.val
18533else
18534 ac_cv_sizeof_int=0
18535fi
18536fi
18537echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18538echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18539cat >>confdefs.h <<_ACEOF
18540#define SIZEOF_INT $ac_cv_sizeof_int
18541_ACEOF
18542
18543
18544echo "$as_me:$LINENO: checking for long" >&5
18545echo $ECHO_N "checking for long... $ECHO_C" >&6
18546if test "${ac_cv_type_long+set}" = set; then
18547 echo $ECHO_N "(cached) $ECHO_C" >&6
18548else
18549 cat >conftest.$ac_ext <<_ACEOF
18550/* confdefs.h. */
18551_ACEOF
18552cat confdefs.h >>conftest.$ac_ext
18553cat >>conftest.$ac_ext <<_ACEOF
18554/* end confdefs.h. */
18555$ac_includes_default
18556int
18557main ()
18558{
18559if ((long *) 0)
18560 return 0;
18561if (sizeof (long))
18562 return 0;
18563 ;
18564 return 0;
18565}
18566_ACEOF
18567rm -f conftest.$ac_objext
18568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18569 (eval $ac_compile) 2>conftest.er1
a848cd7e 18570 ac_status=$?
ac1cb8d3
VS
18571 grep -v '^ *+' conftest.er1 >conftest.err
18572 rm -f conftest.er1
18573 cat conftest.err >&5
a848cd7e
SC
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
3565d135
RR
18576 { ac_try='test -z "$ac_c_werror_flag"
18577 || test ! -s conftest.err'
ac1cb8d3
VS
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; } &&
18583 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585 (eval $ac_try) 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 ac_cv_type_long=yes
18590else
18591 echo "$as_me: failed program was:" >&5
18592sed 's/^/| /' conftest.$ac_ext >&5
18593
18594ac_cv_type_long=no
18595fi
ac1cb8d3 18596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18597fi
18598echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18599echo "${ECHO_T}$ac_cv_type_long" >&6
18600
18601echo "$as_me:$LINENO: checking size of long" >&5
18602echo $ECHO_N "checking size of long... $ECHO_C" >&6
18603if test "${ac_cv_sizeof_long+set}" = set; then
18604 echo $ECHO_N "(cached) $ECHO_C" >&6
18605else
18606 if test "$ac_cv_type_long" = yes; then
18607 # The cast to unsigned long works around a bug in the HP C Compiler
18608 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18609 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18610 # This bug is HP SR number 8606223364.
18611 if test "$cross_compiling" = yes; then
18612 # Depending upon the size, compute the lo and hi bounds.
18613cat >conftest.$ac_ext <<_ACEOF
18614/* confdefs.h. */
18615_ACEOF
18616cat confdefs.h >>conftest.$ac_ext
18617cat >>conftest.$ac_ext <<_ACEOF
18618/* end confdefs.h. */
18619$ac_includes_default
18620int
18621main ()
18622{
18623static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18624test_array [0] = 0
18625
18626 ;
18627 return 0;
18628}
18629_ACEOF
18630rm -f conftest.$ac_objext
18631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18632 (eval $ac_compile) 2>conftest.er1
a848cd7e 18633 ac_status=$?
ac1cb8d3
VS
18634 grep -v '^ *+' conftest.er1 >conftest.err
18635 rm -f conftest.er1
18636 cat conftest.err >&5
a848cd7e
SC
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
3565d135
RR
18639 { ac_try='test -z "$ac_c_werror_flag"
18640 || test ! -s conftest.err'
ac1cb8d3
VS
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } &&
18646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18649 ac_status=$?
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; }; then
18652 ac_lo=0 ac_mid=0
18653 while :; do
18654 cat >conftest.$ac_ext <<_ACEOF
18655/* confdefs.h. */
18656_ACEOF
18657cat confdefs.h >>conftest.$ac_ext
18658cat >>conftest.$ac_ext <<_ACEOF
18659/* end confdefs.h. */
18660$ac_includes_default
18661int
18662main ()
18663{
18664static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18665test_array [0] = 0
18666
18667 ;
18668 return 0;
18669}
18670_ACEOF
18671rm -f conftest.$ac_objext
18672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18673 (eval $ac_compile) 2>conftest.er1
a848cd7e 18674 ac_status=$?
ac1cb8d3
VS
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
a848cd7e
SC
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
3565d135
RR
18680 { ac_try='test -z "$ac_c_werror_flag"
18681 || test ! -s conftest.err'
ac1cb8d3
VS
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18693 ac_hi=$ac_mid; break
18694else
18695 echo "$as_me: failed program was:" >&5
18696sed 's/^/| /' conftest.$ac_ext >&5
18697
18698ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18699 if test $ac_lo -le $ac_mid; then
18700 ac_lo= ac_hi=
18701 break
18702 fi
18703 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18704fi
ac1cb8d3 18705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18706 done
18707else
18708 echo "$as_me: failed program was:" >&5
18709sed 's/^/| /' conftest.$ac_ext >&5
18710
18711cat >conftest.$ac_ext <<_ACEOF
18712/* confdefs.h. */
18713_ACEOF
18714cat confdefs.h >>conftest.$ac_ext
18715cat >>conftest.$ac_ext <<_ACEOF
18716/* end confdefs.h. */
18717$ac_includes_default
18718int
18719main ()
18720{
18721static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18722test_array [0] = 0
18723
18724 ;
18725 return 0;
18726}
18727_ACEOF
18728rm -f conftest.$ac_objext
18729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18730 (eval $ac_compile) 2>conftest.er1
a848cd7e 18731 ac_status=$?
ac1cb8d3
VS
18732 grep -v '^ *+' conftest.er1 >conftest.err
18733 rm -f conftest.er1
18734 cat conftest.err >&5
a848cd7e
SC
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } &&
3565d135
RR
18737 { ac_try='test -z "$ac_c_werror_flag"
18738 || test ! -s conftest.err'
ac1cb8d3
VS
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; } &&
18744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18746 (eval $ac_try) 2>&5
18747 ac_status=$?
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; }; then
18750 ac_hi=-1 ac_mid=-1
18751 while :; do
18752 cat >conftest.$ac_ext <<_ACEOF
18753/* confdefs.h. */
18754_ACEOF
18755cat confdefs.h >>conftest.$ac_ext
18756cat >>conftest.$ac_ext <<_ACEOF
18757/* end confdefs.h. */
18758$ac_includes_default
18759int
18760main ()
18761{
18762static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18763test_array [0] = 0
18764
18765 ;
18766 return 0;
18767}
18768_ACEOF
18769rm -f conftest.$ac_objext
18770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18771 (eval $ac_compile) 2>conftest.er1
a848cd7e 18772 ac_status=$?
ac1cb8d3
VS
18773 grep -v '^ *+' conftest.er1 >conftest.err
18774 rm -f conftest.er1
18775 cat conftest.err >&5
a848cd7e
SC
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
3565d135
RR
18778 { ac_try='test -z "$ac_c_werror_flag"
18779 || test ! -s conftest.err'
ac1cb8d3
VS
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; } &&
18785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; }; then
18791 ac_lo=$ac_mid; break
18792else
18793 echo "$as_me: failed program was:" >&5
18794sed 's/^/| /' conftest.$ac_ext >&5
18795
18796ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18797 if test $ac_mid -le $ac_hi; then
18798 ac_lo= ac_hi=
18799 break
18800 fi
18801 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18802fi
ac1cb8d3 18803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18804 done
18805else
18806 echo "$as_me: failed program was:" >&5
18807sed 's/^/| /' conftest.$ac_ext >&5
18808
18809ac_lo= ac_hi=
18810fi
ac1cb8d3 18811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18812fi
ac1cb8d3 18813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18814# Binary search between lo and hi bounds.
18815while test "x$ac_lo" != "x$ac_hi"; do
18816 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18817 cat >conftest.$ac_ext <<_ACEOF
18818/* confdefs.h. */
18819_ACEOF
18820cat confdefs.h >>conftest.$ac_ext
18821cat >>conftest.$ac_ext <<_ACEOF
18822/* end confdefs.h. */
18823$ac_includes_default
18824int
18825main ()
18826{
18827static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18828test_array [0] = 0
18829
18830 ;
18831 return 0;
18832}
18833_ACEOF
18834rm -f conftest.$ac_objext
18835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18836 (eval $ac_compile) 2>conftest.er1
a848cd7e 18837 ac_status=$?
ac1cb8d3
VS
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
a848cd7e
SC
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
3565d135
RR
18843 { ac_try='test -z "$ac_c_werror_flag"
18844 || test ! -s conftest.err'
ac1cb8d3
VS
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_hi=$ac_mid
18857else
18858 echo "$as_me: failed program was:" >&5
18859sed 's/^/| /' conftest.$ac_ext >&5
18860
18861ac_lo=`expr '(' $ac_mid ')' + 1`
18862fi
ac1cb8d3 18863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18864done
18865case $ac_lo in
18866?*) ac_cv_sizeof_long=$ac_lo;;
18867'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18868See \`config.log' for more details." >&5
18869echo "$as_me: error: cannot compute sizeof (long), 77
18870See \`config.log' for more details." >&2;}
18871 { (exit 1); exit 1; }; } ;;
18872esac
18873else
18874 if test "$cross_compiling" = yes; then
3565d135
RR
18875 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18876See \`config.log' for more details." >&5
18877echo "$as_me: error: cannot run test program while cross compiling
18878See \`config.log' for more details." >&2;}
a848cd7e
SC
18879 { (exit 1); exit 1; }; }
18880else
18881 cat >conftest.$ac_ext <<_ACEOF
18882/* confdefs.h. */
18883_ACEOF
18884cat confdefs.h >>conftest.$ac_ext
18885cat >>conftest.$ac_ext <<_ACEOF
18886/* end confdefs.h. */
18887$ac_includes_default
18888long longval () { return (long) (sizeof (long)); }
18889unsigned long ulongval () { return (long) (sizeof (long)); }
18890#include <stdio.h>
18891#include <stdlib.h>
18892int
18893main ()
18894{
18895
18896 FILE *f = fopen ("conftest.val", "w");
18897 if (! f)
18898 exit (1);
18899 if (((long) (sizeof (long))) < 0)
18900 {
18901 long i = longval ();
18902 if (i != ((long) (sizeof (long))))
18903 exit (1);
18904 fprintf (f, "%ld\n", i);
18905 }
18906 else
18907 {
18908 unsigned long i = ulongval ();
18909 if (i != ((long) (sizeof (long))))
18910 exit (1);
18911 fprintf (f, "%lu\n", i);
18912 }
18913 exit (ferror (f) || fclose (f) != 0);
18914
18915 ;
18916 return 0;
18917}
18918_ACEOF
18919rm -f conftest$ac_exeext
18920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18921 (eval $ac_link) 2>&5
18922 ac_status=$?
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 ac_cv_sizeof_long=`cat conftest.val`
18931else
18932 echo "$as_me: program exited with status $ac_status" >&5
18933echo "$as_me: failed program was:" >&5
18934sed 's/^/| /' conftest.$ac_ext >&5
18935
18936( exit $ac_status )
18937{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18938See \`config.log' for more details." >&5
18939echo "$as_me: error: cannot compute sizeof (long), 77
18940See \`config.log' for more details." >&2;}
18941 { (exit 1); exit 1; }; }
18942fi
ac1cb8d3 18943rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18944fi
18945fi
18946rm -f conftest.val
18947else
18948 ac_cv_sizeof_long=0
18949fi
18950fi
18951echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18952echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18953cat >>confdefs.h <<_ACEOF
18954#define SIZEOF_LONG $ac_cv_sizeof_long
18955_ACEOF
18956
18957
18958echo "$as_me:$LINENO: checking for size_t" >&5
18959echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18960if test "${ac_cv_type_size_t+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962else
18963 cat >conftest.$ac_ext <<_ACEOF
18964/* confdefs.h. */
18965_ACEOF
18966cat confdefs.h >>conftest.$ac_ext
18967cat >>conftest.$ac_ext <<_ACEOF
18968/* end confdefs.h. */
18969$ac_includes_default
18970int
18971main ()
18972{
18973if ((size_t *) 0)
18974 return 0;
18975if (sizeof (size_t))
18976 return 0;
18977 ;
18978 return 0;
18979}
18980_ACEOF
18981rm -f conftest.$ac_objext
18982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18983 (eval $ac_compile) 2>conftest.er1
a848cd7e 18984 ac_status=$?
ac1cb8d3
VS
18985 grep -v '^ *+' conftest.er1 >conftest.err
18986 rm -f conftest.er1
18987 cat conftest.err >&5
a848cd7e
SC
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
3565d135
RR
18990 { ac_try='test -z "$ac_c_werror_flag"
18991 || test ! -s conftest.err'
ac1cb8d3
VS
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; } &&
18997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; }; then
19003 ac_cv_type_size_t=yes
19004else
19005 echo "$as_me: failed program was:" >&5
19006sed 's/^/| /' conftest.$ac_ext >&5
19007
19008ac_cv_type_size_t=no
19009fi
ac1cb8d3 19010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19011fi
19012echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19013echo "${ECHO_T}$ac_cv_type_size_t" >&6
19014
19015echo "$as_me:$LINENO: checking size of size_t" >&5
19016echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19017if test "${ac_cv_sizeof_size_t+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19019else
19020 if test "$ac_cv_type_size_t" = yes; then
19021 # The cast to unsigned long works around a bug in the HP C Compiler
19022 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19023 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19024 # This bug is HP SR number 8606223364.
19025 if test "$cross_compiling" = yes; then
19026 # Depending upon the size, compute the lo and hi bounds.
19027cat >conftest.$ac_ext <<_ACEOF
19028/* confdefs.h. */
19029_ACEOF
19030cat confdefs.h >>conftest.$ac_ext
19031cat >>conftest.$ac_ext <<_ACEOF
19032/* end confdefs.h. */
19033$ac_includes_default
19034int
19035main ()
19036{
19037static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19038test_array [0] = 0
19039
19040 ;
19041 return 0;
19042}
19043_ACEOF
19044rm -f conftest.$ac_objext
19045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19046 (eval $ac_compile) 2>conftest.er1
a848cd7e 19047 ac_status=$?
ac1cb8d3
VS
19048 grep -v '^ *+' conftest.er1 >conftest.err
19049 rm -f conftest.er1
19050 cat conftest.err >&5
a848cd7e
SC
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); } &&
3565d135
RR
19053 { ac_try='test -z "$ac_c_werror_flag"
19054 || test ! -s conftest.err'
ac1cb8d3
VS
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; } &&
19060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062 (eval $ac_try) 2>&5
19063 ac_status=$?
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; }; then
19066 ac_lo=0 ac_mid=0
19067 while :; do
19068 cat >conftest.$ac_ext <<_ACEOF
19069/* confdefs.h. */
19070_ACEOF
19071cat confdefs.h >>conftest.$ac_ext
19072cat >>conftest.$ac_ext <<_ACEOF
19073/* end confdefs.h. */
19074$ac_includes_default
19075int
19076main ()
19077{
19078static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19079test_array [0] = 0
19080
19081 ;
19082 return 0;
19083}
19084_ACEOF
19085rm -f conftest.$ac_objext
19086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19087 (eval $ac_compile) 2>conftest.er1
a848cd7e 19088 ac_status=$?
ac1cb8d3
VS
19089 grep -v '^ *+' conftest.er1 >conftest.err
19090 rm -f conftest.er1
19091 cat conftest.err >&5
a848cd7e
SC
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } &&
3565d135
RR
19094 { ac_try='test -z "$ac_c_werror_flag"
19095 || test ! -s conftest.err'
ac1cb8d3
VS
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; } &&
19101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; }; then
19107 ac_hi=$ac_mid; break
19108else
19109 echo "$as_me: failed program was:" >&5
19110sed 's/^/| /' conftest.$ac_ext >&5
19111
19112ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19113 if test $ac_lo -le $ac_mid; then
19114 ac_lo= ac_hi=
19115 break
19116 fi
19117 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19118fi
ac1cb8d3 19119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19120 done
19121else
19122 echo "$as_me: failed program was:" >&5
19123sed 's/^/| /' conftest.$ac_ext >&5
19124
19125cat >conftest.$ac_ext <<_ACEOF
19126/* confdefs.h. */
19127_ACEOF
19128cat confdefs.h >>conftest.$ac_ext
19129cat >>conftest.$ac_ext <<_ACEOF
19130/* end confdefs.h. */
19131$ac_includes_default
19132int
19133main ()
19134{
19135static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19136test_array [0] = 0
19137
19138 ;
19139 return 0;
19140}
19141_ACEOF
19142rm -f conftest.$ac_objext
19143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19144 (eval $ac_compile) 2>conftest.er1
a848cd7e 19145 ac_status=$?
ac1cb8d3
VS
19146 grep -v '^ *+' conftest.er1 >conftest.err
19147 rm -f conftest.er1
19148 cat conftest.err >&5
a848cd7e
SC
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } &&
3565d135
RR
19151 { ac_try='test -z "$ac_c_werror_flag"
19152 || test ! -s conftest.err'
ac1cb8d3
VS
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; } &&
19158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19164 ac_hi=-1 ac_mid=-1
19165 while :; do
19166 cat >conftest.$ac_ext <<_ACEOF
19167/* confdefs.h. */
19168_ACEOF
19169cat confdefs.h >>conftest.$ac_ext
19170cat >>conftest.$ac_ext <<_ACEOF
19171/* end confdefs.h. */
19172$ac_includes_default
19173int
19174main ()
19175{
19176static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19177test_array [0] = 0
19178
19179 ;
19180 return 0;
19181}
19182_ACEOF
19183rm -f conftest.$ac_objext
19184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19185 (eval $ac_compile) 2>conftest.er1
a848cd7e 19186 ac_status=$?
ac1cb8d3
VS
19187 grep -v '^ *+' conftest.er1 >conftest.err
19188 rm -f conftest.er1
19189 cat conftest.err >&5
a848cd7e
SC
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } &&
3565d135
RR
19192 { ac_try='test -z "$ac_c_werror_flag"
19193 || test ! -s conftest.err'
ac1cb8d3
VS
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 ac_lo=$ac_mid; break
19206else
19207 echo "$as_me: failed program was:" >&5
19208sed 's/^/| /' conftest.$ac_ext >&5
19209
19210ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19211 if test $ac_mid -le $ac_hi; then
19212 ac_lo= ac_hi=
19213 break
19214 fi
19215 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19216fi
ac1cb8d3 19217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19218 done
19219else
19220 echo "$as_me: failed program was:" >&5
19221sed 's/^/| /' conftest.$ac_ext >&5
19222
19223ac_lo= ac_hi=
19224fi
ac1cb8d3 19225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19226fi
ac1cb8d3 19227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19228# Binary search between lo and hi bounds.
19229while test "x$ac_lo" != "x$ac_hi"; do
19230 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19231 cat >conftest.$ac_ext <<_ACEOF
19232/* confdefs.h. */
19233_ACEOF
19234cat confdefs.h >>conftest.$ac_ext
19235cat >>conftest.$ac_ext <<_ACEOF
19236/* end confdefs.h. */
19237$ac_includes_default
19238int
19239main ()
19240{
19241static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19242test_array [0] = 0
19243
19244 ;
19245 return 0;
19246}
19247_ACEOF
19248rm -f conftest.$ac_objext
19249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19250 (eval $ac_compile) 2>conftest.er1
a848cd7e 19251 ac_status=$?
ac1cb8d3
VS
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
a848cd7e
SC
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } &&
3565d135
RR
19257 { ac_try='test -z "$ac_c_werror_flag"
19258 || test ! -s conftest.err'
ac1cb8d3
VS
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; } &&
19264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270 ac_hi=$ac_mid
19271else
19272 echo "$as_me: failed program was:" >&5
19273sed 's/^/| /' conftest.$ac_ext >&5
19274
19275ac_lo=`expr '(' $ac_mid ')' + 1`
19276fi
ac1cb8d3 19277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19278done
19279case $ac_lo in
19280?*) ac_cv_sizeof_size_t=$ac_lo;;
19281'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19282See \`config.log' for more details." >&5
19283echo "$as_me: error: cannot compute sizeof (size_t), 77
19284See \`config.log' for more details." >&2;}
19285 { (exit 1); exit 1; }; } ;;
19286esac
19287else
19288 if test "$cross_compiling" = yes; then
3565d135
RR
19289 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19290See \`config.log' for more details." >&5
19291echo "$as_me: error: cannot run test program while cross compiling
19292See \`config.log' for more details." >&2;}
a848cd7e
SC
19293 { (exit 1); exit 1; }; }
19294else
19295 cat >conftest.$ac_ext <<_ACEOF
19296/* confdefs.h. */
19297_ACEOF
19298cat confdefs.h >>conftest.$ac_ext
19299cat >>conftest.$ac_ext <<_ACEOF
19300/* end confdefs.h. */
19301$ac_includes_default
19302long longval () { return (long) (sizeof (size_t)); }
19303unsigned long ulongval () { return (long) (sizeof (size_t)); }
19304#include <stdio.h>
19305#include <stdlib.h>
19306int
19307main ()
19308{
19309
19310 FILE *f = fopen ("conftest.val", "w");
19311 if (! f)
19312 exit (1);
19313 if (((long) (sizeof (size_t))) < 0)
19314 {
19315 long i = longval ();
19316 if (i != ((long) (sizeof (size_t))))
19317 exit (1);
19318 fprintf (f, "%ld\n", i);
19319 }
19320 else
19321 {
19322 unsigned long i = ulongval ();
19323 if (i != ((long) (sizeof (size_t))))
19324 exit (1);
19325 fprintf (f, "%lu\n", i);
19326 }
19327 exit (ferror (f) || fclose (f) != 0);
19328
19329 ;
19330 return 0;
19331}
19332_ACEOF
19333rm -f conftest$ac_exeext
19334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19335 (eval $ac_link) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_sizeof_size_t=`cat conftest.val`
19345else
19346 echo "$as_me: program exited with status $ac_status" >&5
19347echo "$as_me: failed program was:" >&5
19348sed 's/^/| /' conftest.$ac_ext >&5
19349
19350( exit $ac_status )
19351{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19352See \`config.log' for more details." >&5
19353echo "$as_me: error: cannot compute sizeof (size_t), 77
19354See \`config.log' for more details." >&2;}
19355 { (exit 1); exit 1; }; }
19356fi
ac1cb8d3 19357rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19358fi
19359fi
19360rm -f conftest.val
19361else
19362 ac_cv_sizeof_size_t=0
19363fi
19364fi
19365echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19366echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19367cat >>confdefs.h <<_ACEOF
19368#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19369_ACEOF
19370
19371
19372
19373case "${host}" in
19374 arm-*-linux* )
19375 echo "$as_me:$LINENO: checking for long long" >&5
19376echo $ECHO_N "checking for long long... $ECHO_C" >&6
19377if test "${ac_cv_type_long_long+set}" = set; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
19379else
19380 cat >conftest.$ac_ext <<_ACEOF
19381/* confdefs.h. */
19382_ACEOF
19383cat confdefs.h >>conftest.$ac_ext
19384cat >>conftest.$ac_ext <<_ACEOF
19385/* end confdefs.h. */
19386$ac_includes_default
19387int
19388main ()
19389{
19390if ((long long *) 0)
19391 return 0;
19392if (sizeof (long long))
19393 return 0;
19394 ;
19395 return 0;
19396}
19397_ACEOF
19398rm -f conftest.$ac_objext
19399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19400 (eval $ac_compile) 2>conftest.er1
a848cd7e 19401 ac_status=$?
ac1cb8d3
VS
19402 grep -v '^ *+' conftest.er1 >conftest.err
19403 rm -f conftest.er1
19404 cat conftest.err >&5
a848cd7e
SC
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } &&
3565d135
RR
19407 { ac_try='test -z "$ac_c_werror_flag"
19408 || test ! -s conftest.err'
ac1cb8d3
VS
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; } &&
19414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19420 ac_cv_type_long_long=yes
19421else
19422 echo "$as_me: failed program was:" >&5
19423sed 's/^/| /' conftest.$ac_ext >&5
19424
19425ac_cv_type_long_long=no
19426fi
ac1cb8d3 19427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19428fi
19429echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19430echo "${ECHO_T}$ac_cv_type_long_long" >&6
19431
19432echo "$as_me:$LINENO: checking size of long long" >&5
19433echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19434if test "${ac_cv_sizeof_long_long+set}" = set; then
19435 echo $ECHO_N "(cached) $ECHO_C" >&6
19436else
19437 if test "$ac_cv_type_long_long" = yes; then
19438 # The cast to unsigned long works around a bug in the HP C Compiler
19439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19441 # This bug is HP SR number 8606223364.
19442 if test "$cross_compiling" = yes; then
19443 # Depending upon the size, compute the lo and hi bounds.
19444cat >conftest.$ac_ext <<_ACEOF
19445/* confdefs.h. */
19446_ACEOF
19447cat confdefs.h >>conftest.$ac_ext
19448cat >>conftest.$ac_ext <<_ACEOF
19449/* end confdefs.h. */
19450$ac_includes_default
19451int
19452main ()
19453{
19454static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19455test_array [0] = 0
19456
19457 ;
19458 return 0;
19459}
19460_ACEOF
19461rm -f conftest.$ac_objext
19462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19463 (eval $ac_compile) 2>conftest.er1
a848cd7e 19464 ac_status=$?
ac1cb8d3
VS
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
a848cd7e
SC
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
3565d135
RR
19470 { ac_try='test -z "$ac_c_werror_flag"
19471 || test ! -s conftest.err'
ac1cb8d3
VS
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19474 ac_status=$?
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; } &&
19477 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479 (eval $ac_try) 2>&5
19480 ac_status=$?
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; }; then
19483 ac_lo=0 ac_mid=0
19484 while :; do
19485 cat >conftest.$ac_ext <<_ACEOF
19486/* confdefs.h. */
19487_ACEOF
19488cat confdefs.h >>conftest.$ac_ext
19489cat >>conftest.$ac_ext <<_ACEOF
19490/* end confdefs.h. */
19491$ac_includes_default
19492int
19493main ()
19494{
19495static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19496test_array [0] = 0
19497
19498 ;
19499 return 0;
19500}
19501_ACEOF
19502rm -f conftest.$ac_objext
19503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19504 (eval $ac_compile) 2>conftest.er1
a848cd7e 19505 ac_status=$?
ac1cb8d3
VS
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
a848cd7e
SC
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
3565d135
RR
19511 { ac_try='test -z "$ac_c_werror_flag"
19512 || test ! -s conftest.err'
ac1cb8d3
VS
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_hi=$ac_mid; break
19525else
19526 echo "$as_me: failed program was:" >&5
19527sed 's/^/| /' conftest.$ac_ext >&5
19528
19529ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19530 if test $ac_lo -le $ac_mid; then
19531 ac_lo= ac_hi=
19532 break
19533 fi
19534 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19535fi
ac1cb8d3 19536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19537 done
19538else
19539 echo "$as_me: failed program was:" >&5
19540sed 's/^/| /' conftest.$ac_ext >&5
19541
19542cat >conftest.$ac_ext <<_ACEOF
19543/* confdefs.h. */
19544_ACEOF
19545cat confdefs.h >>conftest.$ac_ext
19546cat >>conftest.$ac_ext <<_ACEOF
19547/* end confdefs.h. */
19548$ac_includes_default
19549int
19550main ()
19551{
19552static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19553test_array [0] = 0
19554
19555 ;
19556 return 0;
19557}
19558_ACEOF
19559rm -f conftest.$ac_objext
19560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19561 (eval $ac_compile) 2>conftest.er1
a848cd7e 19562 ac_status=$?
ac1cb8d3
VS
19563 grep -v '^ *+' conftest.er1 >conftest.err
19564 rm -f conftest.er1
19565 cat conftest.err >&5
a848cd7e
SC
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
3565d135
RR
19568 { ac_try='test -z "$ac_c_werror_flag"
19569 || test ! -s conftest.err'
ac1cb8d3
VS
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; } &&
19575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
19581 ac_hi=-1 ac_mid=-1
19582 while :; do
19583 cat >conftest.$ac_ext <<_ACEOF
19584/* confdefs.h. */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h. */
19589$ac_includes_default
19590int
19591main ()
19592{
19593static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19594test_array [0] = 0
19595
19596 ;
19597 return 0;
19598}
19599_ACEOF
19600rm -f conftest.$ac_objext
19601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19602 (eval $ac_compile) 2>conftest.er1
a848cd7e 19603 ac_status=$?
ac1cb8d3
VS
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
a848cd7e
SC
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } &&
3565d135
RR
19609 { ac_try='test -z "$ac_c_werror_flag"
19610 || test ! -s conftest.err'
ac1cb8d3
VS
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; } &&
19616 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; }; then
19622 ac_lo=$ac_mid; break
19623else
19624 echo "$as_me: failed program was:" >&5
19625sed 's/^/| /' conftest.$ac_ext >&5
19626
19627ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19628 if test $ac_mid -le $ac_hi; then
19629 ac_lo= ac_hi=
19630 break
19631 fi
19632 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19633fi
ac1cb8d3 19634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19635 done
19636else
19637 echo "$as_me: failed program was:" >&5
19638sed 's/^/| /' conftest.$ac_ext >&5
19639
19640ac_lo= ac_hi=
19641fi
ac1cb8d3 19642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19643fi
ac1cb8d3 19644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19645# Binary search between lo and hi bounds.
19646while test "x$ac_lo" != "x$ac_hi"; do
19647 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19648 cat >conftest.$ac_ext <<_ACEOF
19649/* confdefs.h. */
19650_ACEOF
19651cat confdefs.h >>conftest.$ac_ext
19652cat >>conftest.$ac_ext <<_ACEOF
19653/* end confdefs.h. */
19654$ac_includes_default
19655int
19656main ()
19657{
19658static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19659test_array [0] = 0
19660
19661 ;
19662 return 0;
19663}
19664_ACEOF
19665rm -f conftest.$ac_objext
19666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19667 (eval $ac_compile) 2>conftest.er1
a848cd7e 19668 ac_status=$?
ac1cb8d3
VS
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
a848cd7e
SC
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
3565d135
RR
19674 { ac_try='test -z "$ac_c_werror_flag"
19675 || test ! -s conftest.err'
ac1cb8d3
VS
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; }; then
19687 ac_hi=$ac_mid
19688else
19689 echo "$as_me: failed program was:" >&5
19690sed 's/^/| /' conftest.$ac_ext >&5
19691
19692ac_lo=`expr '(' $ac_mid ')' + 1`
19693fi
ac1cb8d3 19694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19695done
19696case $ac_lo in
19697?*) ac_cv_sizeof_long_long=$ac_lo;;
19698'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19699See \`config.log' for more details." >&5
19700echo "$as_me: error: cannot compute sizeof (long long), 77
19701See \`config.log' for more details." >&2;}
19702 { (exit 1); exit 1; }; } ;;
19703esac
19704else
19705 if test "$cross_compiling" = yes; then
3565d135
RR
19706 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19707See \`config.log' for more details." >&5
19708echo "$as_me: error: cannot run test program while cross compiling
19709See \`config.log' for more details." >&2;}
a848cd7e
SC
19710 { (exit 1); exit 1; }; }
19711else
19712 cat >conftest.$ac_ext <<_ACEOF
19713/* confdefs.h. */
19714_ACEOF
19715cat confdefs.h >>conftest.$ac_ext
19716cat >>conftest.$ac_ext <<_ACEOF
19717/* end confdefs.h. */
19718$ac_includes_default
19719long longval () { return (long) (sizeof (long long)); }
19720unsigned long ulongval () { return (long) (sizeof (long long)); }
19721#include <stdio.h>
19722#include <stdlib.h>
19723int
19724main ()
19725{
19726
19727 FILE *f = fopen ("conftest.val", "w");
19728 if (! f)
19729 exit (1);
19730 if (((long) (sizeof (long long))) < 0)
19731 {
19732 long i = longval ();
19733 if (i != ((long) (sizeof (long long))))
19734 exit (1);
19735 fprintf (f, "%ld\n", i);
19736 }
19737 else
19738 {
19739 unsigned long i = ulongval ();
19740 if (i != ((long) (sizeof (long long))))
19741 exit (1);
19742 fprintf (f, "%lu\n", i);
19743 }
19744 exit (ferror (f) || fclose (f) != 0);
19745
19746 ;
19747 return 0;
19748}
19749_ACEOF
19750rm -f conftest$ac_exeext
19751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19752 (eval $ac_link) 2>&5
19753 ac_status=$?
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; }; then
19761 ac_cv_sizeof_long_long=`cat conftest.val`
19762else
19763 echo "$as_me: program exited with status $ac_status" >&5
19764echo "$as_me: failed program was:" >&5
19765sed 's/^/| /' conftest.$ac_ext >&5
19766
19767( exit $ac_status )
19768{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19769See \`config.log' for more details." >&5
19770echo "$as_me: error: cannot compute sizeof (long long), 77
19771See \`config.log' for more details." >&2;}
19772 { (exit 1); exit 1; }; }
19773fi
ac1cb8d3 19774rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19775fi
19776fi
19777rm -f conftest.val
19778else
19779 ac_cv_sizeof_long_long=0
19780fi
19781fi
19782echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19783echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19784cat >>confdefs.h <<_ACEOF
19785#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19786_ACEOF
19787
19788
19789 ;;
19790 *-hp-hpux* )
19791 echo "$as_me:$LINENO: checking for long long" >&5
19792echo $ECHO_N "checking for long long... $ECHO_C" >&6
19793if test "${ac_cv_type_long_long+set}" = set; then
19794 echo $ECHO_N "(cached) $ECHO_C" >&6
19795else
19796 cat >conftest.$ac_ext <<_ACEOF
19797/* confdefs.h. */
19798_ACEOF
19799cat confdefs.h >>conftest.$ac_ext
19800cat >>conftest.$ac_ext <<_ACEOF
19801/* end confdefs.h. */
19802$ac_includes_default
19803int
19804main ()
19805{
19806if ((long long *) 0)
19807 return 0;
19808if (sizeof (long long))
19809 return 0;
19810 ;
19811 return 0;
19812}
19813_ACEOF
19814rm -f conftest.$ac_objext
19815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19816 (eval $ac_compile) 2>conftest.er1
a848cd7e 19817 ac_status=$?
ac1cb8d3
VS
19818 grep -v '^ *+' conftest.er1 >conftest.err
19819 rm -f conftest.er1
19820 cat conftest.err >&5
a848cd7e
SC
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } &&
3565d135
RR
19823 { ac_try='test -z "$ac_c_werror_flag"
19824 || test ! -s conftest.err'
ac1cb8d3
VS
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; } &&
19830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836 ac_cv_type_long_long=yes
19837else
19838 echo "$as_me: failed program was:" >&5
19839sed 's/^/| /' conftest.$ac_ext >&5
19840
19841ac_cv_type_long_long=no
19842fi
ac1cb8d3 19843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19844fi
19845echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19846echo "${ECHO_T}$ac_cv_type_long_long" >&6
19847
19848echo "$as_me:$LINENO: checking size of long long" >&5
19849echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19850if test "${ac_cv_sizeof_long_long+set}" = set; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19852else
19853 if test "$ac_cv_type_long_long" = yes; then
19854 # The cast to unsigned long works around a bug in the HP C Compiler
19855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19857 # This bug is HP SR number 8606223364.
19858 if test "$cross_compiling" = yes; then
19859 # Depending upon the size, compute the lo and hi bounds.
19860cat >conftest.$ac_ext <<_ACEOF
19861/* confdefs.h. */
19862_ACEOF
19863cat confdefs.h >>conftest.$ac_ext
19864cat >>conftest.$ac_ext <<_ACEOF
19865/* end confdefs.h. */
19866$ac_includes_default
19867int
19868main ()
19869{
19870static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19871test_array [0] = 0
19872
19873 ;
19874 return 0;
19875}
19876_ACEOF
19877rm -f conftest.$ac_objext
19878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19879 (eval $ac_compile) 2>conftest.er1
a848cd7e 19880 ac_status=$?
ac1cb8d3
VS
19881 grep -v '^ *+' conftest.er1 >conftest.err
19882 rm -f conftest.er1
19883 cat conftest.err >&5
a848cd7e
SC
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
3565d135
RR
19886 { ac_try='test -z "$ac_c_werror_flag"
19887 || test ! -s conftest.err'
ac1cb8d3
VS
19888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; } &&
19893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; }; then
19899 ac_lo=0 ac_mid=0
19900 while :; do
19901 cat >conftest.$ac_ext <<_ACEOF
19902/* confdefs.h. */
19903_ACEOF
19904cat confdefs.h >>conftest.$ac_ext
19905cat >>conftest.$ac_ext <<_ACEOF
19906/* end confdefs.h. */
19907$ac_includes_default
19908int
19909main ()
19910{
19911static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19912test_array [0] = 0
19913
19914 ;
19915 return 0;
19916}
19917_ACEOF
19918rm -f conftest.$ac_objext
19919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19920 (eval $ac_compile) 2>conftest.er1
a848cd7e 19921 ac_status=$?
ac1cb8d3
VS
19922 grep -v '^ *+' conftest.er1 >conftest.err
19923 rm -f conftest.er1
19924 cat conftest.err >&5
a848cd7e
SC
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } &&
3565d135
RR
19927 { ac_try='test -z "$ac_c_werror_flag"
19928 || test ! -s conftest.err'
ac1cb8d3
VS
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; } &&
19934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
19940 ac_hi=$ac_mid; break
19941else
19942 echo "$as_me: failed program was:" >&5
19943sed 's/^/| /' conftest.$ac_ext >&5
19944
19945ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19946 if test $ac_lo -le $ac_mid; then
19947 ac_lo= ac_hi=
19948 break
19949 fi
19950 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19951fi
ac1cb8d3 19952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19953 done
19954else
19955 echo "$as_me: failed program was:" >&5
19956sed 's/^/| /' conftest.$ac_ext >&5
19957
19958cat >conftest.$ac_ext <<_ACEOF
19959/* confdefs.h. */
19960_ACEOF
19961cat confdefs.h >>conftest.$ac_ext
19962cat >>conftest.$ac_ext <<_ACEOF
19963/* end confdefs.h. */
19964$ac_includes_default
19965int
19966main ()
19967{
19968static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19969test_array [0] = 0
19970
19971 ;
19972 return 0;
19973}
19974_ACEOF
19975rm -f conftest.$ac_objext
19976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19977 (eval $ac_compile) 2>conftest.er1
a848cd7e 19978 ac_status=$?
ac1cb8d3
VS
19979 grep -v '^ *+' conftest.er1 >conftest.err
19980 rm -f conftest.er1
19981 cat conftest.err >&5
a848cd7e
SC
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } &&
3565d135
RR
19984 { ac_try='test -z "$ac_c_werror_flag"
19985 || test ! -s conftest.err'
ac1cb8d3
VS
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; } &&
19991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993 (eval $ac_try) 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; }; then
19997 ac_hi=-1 ac_mid=-1
19998 while :; do
19999 cat >conftest.$ac_ext <<_ACEOF
20000/* confdefs.h. */
20001_ACEOF
20002cat confdefs.h >>conftest.$ac_ext
20003cat >>conftest.$ac_ext <<_ACEOF
20004/* end confdefs.h. */
20005$ac_includes_default
20006int
20007main ()
20008{
20009static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20010test_array [0] = 0
20011
20012 ;
20013 return 0;
20014}
20015_ACEOF
20016rm -f conftest.$ac_objext
20017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20018 (eval $ac_compile) 2>conftest.er1
a848cd7e 20019 ac_status=$?
ac1cb8d3
VS
20020 grep -v '^ *+' conftest.er1 >conftest.err
20021 rm -f conftest.er1
20022 cat conftest.err >&5
a848cd7e
SC
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } &&
3565d135
RR
20025 { ac_try='test -z "$ac_c_werror_flag"
20026 || test ! -s conftest.err'
ac1cb8d3
VS
20027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20028 (eval $ac_try) 2>&5
20029 ac_status=$?
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; } &&
20032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034 (eval $ac_try) 2>&5
20035 ac_status=$?
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; }; then
20038 ac_lo=$ac_mid; break
20039else
20040 echo "$as_me: failed program was:" >&5
20041sed 's/^/| /' conftest.$ac_ext >&5
20042
20043ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20044 if test $ac_mid -le $ac_hi; then
20045 ac_lo= ac_hi=
20046 break
20047 fi
20048 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20049fi
ac1cb8d3 20050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20051 done
20052else
20053 echo "$as_me: failed program was:" >&5
20054sed 's/^/| /' conftest.$ac_ext >&5
20055
20056ac_lo= ac_hi=
20057fi
ac1cb8d3 20058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20059fi
ac1cb8d3 20060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20061# Binary search between lo and hi bounds.
20062while test "x$ac_lo" != "x$ac_hi"; do
20063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20064 cat >conftest.$ac_ext <<_ACEOF
20065/* confdefs.h. */
20066_ACEOF
20067cat confdefs.h >>conftest.$ac_ext
20068cat >>conftest.$ac_ext <<_ACEOF
20069/* end confdefs.h. */
20070$ac_includes_default
20071int
20072main ()
20073{
20074static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20075test_array [0] = 0
20076
20077 ;
20078 return 0;
20079}
20080_ACEOF
20081rm -f conftest.$ac_objext
20082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20083 (eval $ac_compile) 2>conftest.er1
a848cd7e 20084 ac_status=$?
ac1cb8d3
VS
20085 grep -v '^ *+' conftest.er1 >conftest.err
20086 rm -f conftest.er1
20087 cat conftest.err >&5
a848cd7e
SC
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
3565d135
RR
20090 { ac_try='test -z "$ac_c_werror_flag"
20091 || test ! -s conftest.err'
ac1cb8d3
VS
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20094 ac_status=$?
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; } &&
20097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; }; then
20103 ac_hi=$ac_mid
20104else
20105 echo "$as_me: failed program was:" >&5
20106sed 's/^/| /' conftest.$ac_ext >&5
20107
20108ac_lo=`expr '(' $ac_mid ')' + 1`
20109fi
ac1cb8d3 20110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20111done
20112case $ac_lo in
20113?*) ac_cv_sizeof_long_long=$ac_lo;;
20114'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20115See \`config.log' for more details." >&5
20116echo "$as_me: error: cannot compute sizeof (long long), 77
20117See \`config.log' for more details." >&2;}
20118 { (exit 1); exit 1; }; } ;;
20119esac
20120else
20121 if test "$cross_compiling" = yes; then
3565d135
RR
20122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20123See \`config.log' for more details." >&5
20124echo "$as_me: error: cannot run test program while cross compiling
20125See \`config.log' for more details." >&2;}
a848cd7e
SC
20126 { (exit 1); exit 1; }; }
20127else
20128 cat >conftest.$ac_ext <<_ACEOF
20129/* confdefs.h. */
20130_ACEOF
20131cat confdefs.h >>conftest.$ac_ext
20132cat >>conftest.$ac_ext <<_ACEOF
20133/* end confdefs.h. */
20134$ac_includes_default
20135long longval () { return (long) (sizeof (long long)); }
20136unsigned long ulongval () { return (long) (sizeof (long long)); }
20137#include <stdio.h>
20138#include <stdlib.h>
20139int
20140main ()
20141{
20142
20143 FILE *f = fopen ("conftest.val", "w");
20144 if (! f)
20145 exit (1);
20146 if (((long) (sizeof (long long))) < 0)
20147 {
20148 long i = longval ();
20149 if (i != ((long) (sizeof (long long))))
20150 exit (1);
20151 fprintf (f, "%ld\n", i);
20152 }
20153 else
20154 {
20155 unsigned long i = ulongval ();
20156 if (i != ((long) (sizeof (long long))))
20157 exit (1);
20158 fprintf (f, "%lu\n", i);
20159 }
20160 exit (ferror (f) || fclose (f) != 0);
20161
20162 ;
20163 return 0;
20164}
20165_ACEOF
20166rm -f conftest$ac_exeext
20167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20168 (eval $ac_link) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173 (eval $ac_try) 2>&5
20174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; }; then
20177 ac_cv_sizeof_long_long=`cat conftest.val`
20178else
20179 echo "$as_me: program exited with status $ac_status" >&5
20180echo "$as_me: failed program was:" >&5
20181sed 's/^/| /' conftest.$ac_ext >&5
20182
20183( exit $ac_status )
20184{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20185See \`config.log' for more details." >&5
20186echo "$as_me: error: cannot compute sizeof (long long), 77
20187See \`config.log' for more details." >&2;}
20188 { (exit 1); exit 1; }; }
20189fi
ac1cb8d3 20190rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20191fi
20192fi
20193rm -f conftest.val
20194else
20195 ac_cv_sizeof_long_long=0
20196fi
20197fi
20198echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20199echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20200cat >>confdefs.h <<_ACEOF
20201#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20202_ACEOF
20203
20204
20205 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20206 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20207 fi
20208 ;;
20209 * )
20210 echo "$as_me:$LINENO: checking for long long" >&5
20211echo $ECHO_N "checking for long long... $ECHO_C" >&6
20212if test "${ac_cv_type_long_long+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214else
20215 cat >conftest.$ac_ext <<_ACEOF
20216/* confdefs.h. */
20217_ACEOF
20218cat confdefs.h >>conftest.$ac_ext
20219cat >>conftest.$ac_ext <<_ACEOF
20220/* end confdefs.h. */
20221$ac_includes_default
20222int
20223main ()
20224{
20225if ((long long *) 0)
20226 return 0;
20227if (sizeof (long long))
20228 return 0;
20229 ;
20230 return 0;
20231}
20232_ACEOF
20233rm -f conftest.$ac_objext
20234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20235 (eval $ac_compile) 2>conftest.er1
a848cd7e 20236 ac_status=$?
ac1cb8d3
VS
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
a848cd7e
SC
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
3565d135
RR
20242 { ac_try='test -z "$ac_c_werror_flag"
20243 || test ! -s conftest.err'
ac1cb8d3
VS
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 ac_cv_type_long_long=yes
20256else
20257 echo "$as_me: failed program was:" >&5
20258sed 's/^/| /' conftest.$ac_ext >&5
20259
20260ac_cv_type_long_long=no
20261fi
ac1cb8d3 20262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20263fi
20264echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20265echo "${ECHO_T}$ac_cv_type_long_long" >&6
20266
20267echo "$as_me:$LINENO: checking size of long long" >&5
20268echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20269if test "${ac_cv_sizeof_long_long+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20271else
20272 if test "$ac_cv_type_long_long" = yes; then
20273 # The cast to unsigned long works around a bug in the HP C Compiler
20274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20276 # This bug is HP SR number 8606223364.
20277 if test "$cross_compiling" = yes; then
20278 # Depending upon the size, compute the lo and hi bounds.
20279cat >conftest.$ac_ext <<_ACEOF
20280/* confdefs.h. */
20281_ACEOF
20282cat confdefs.h >>conftest.$ac_ext
20283cat >>conftest.$ac_ext <<_ACEOF
20284/* end confdefs.h. */
20285$ac_includes_default
20286int
20287main ()
20288{
20289static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20290test_array [0] = 0
20291
20292 ;
20293 return 0;
20294}
20295_ACEOF
20296rm -f conftest.$ac_objext
20297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20298 (eval $ac_compile) 2>conftest.er1
a848cd7e 20299 ac_status=$?
ac1cb8d3
VS
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
a848cd7e
SC
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
3565d135
RR
20305 { ac_try='test -z "$ac_c_werror_flag"
20306 || test ! -s conftest.err'
ac1cb8d3
VS
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; } &&
20312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314 (eval $ac_try) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; }; then
20318 ac_lo=0 ac_mid=0
20319 while :; do
20320 cat >conftest.$ac_ext <<_ACEOF
20321/* confdefs.h. */
20322_ACEOF
20323cat confdefs.h >>conftest.$ac_ext
20324cat >>conftest.$ac_ext <<_ACEOF
20325/* end confdefs.h. */
20326$ac_includes_default
20327int
20328main ()
20329{
20330static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20331test_array [0] = 0
20332
20333 ;
20334 return 0;
20335}
20336_ACEOF
20337rm -f conftest.$ac_objext
20338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20339 (eval $ac_compile) 2>conftest.er1
a848cd7e 20340 ac_status=$?
ac1cb8d3
VS
20341 grep -v '^ *+' conftest.er1 >conftest.err
20342 rm -f conftest.er1
20343 cat conftest.err >&5
a848cd7e
SC
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } &&
3565d135
RR
20346 { ac_try='test -z "$ac_c_werror_flag"
20347 || test ! -s conftest.err'
ac1cb8d3
VS
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20350 ac_status=$?
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; } &&
20353 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20356 ac_status=$?
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 ac_hi=$ac_mid; break
20360else
20361 echo "$as_me: failed program was:" >&5
20362sed 's/^/| /' conftest.$ac_ext >&5
20363
20364ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20365 if test $ac_lo -le $ac_mid; then
20366 ac_lo= ac_hi=
20367 break
20368 fi
20369 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20370fi
ac1cb8d3 20371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20372 done
20373else
20374 echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
20377cat >conftest.$ac_ext <<_ACEOF
20378/* confdefs.h. */
20379_ACEOF
20380cat confdefs.h >>conftest.$ac_ext
20381cat >>conftest.$ac_ext <<_ACEOF
20382/* end confdefs.h. */
20383$ac_includes_default
20384int
20385main ()
20386{
20387static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20388test_array [0] = 0
20389
20390 ;
20391 return 0;
20392}
20393_ACEOF
20394rm -f conftest.$ac_objext
20395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20396 (eval $ac_compile) 2>conftest.er1
a848cd7e 20397 ac_status=$?
ac1cb8d3
VS
20398 grep -v '^ *+' conftest.er1 >conftest.err
20399 rm -f conftest.er1
20400 cat conftest.err >&5
a848cd7e
SC
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } &&
3565d135
RR
20403 { ac_try='test -z "$ac_c_werror_flag"
20404 || test ! -s conftest.err'
ac1cb8d3
VS
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; } &&
20410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 ac_hi=-1 ac_mid=-1
20417 while :; do
20418 cat >conftest.$ac_ext <<_ACEOF
20419/* confdefs.h. */
20420_ACEOF
20421cat confdefs.h >>conftest.$ac_ext
20422cat >>conftest.$ac_ext <<_ACEOF
20423/* end confdefs.h. */
20424$ac_includes_default
20425int
20426main ()
20427{
20428static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20429test_array [0] = 0
20430
20431 ;
20432 return 0;
20433}
20434_ACEOF
20435rm -f conftest.$ac_objext
20436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20437 (eval $ac_compile) 2>conftest.er1
a848cd7e 20438 ac_status=$?
ac1cb8d3
VS
20439 grep -v '^ *+' conftest.er1 >conftest.err
20440 rm -f conftest.er1
20441 cat conftest.err >&5
a848cd7e
SC
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } &&
3565d135
RR
20444 { ac_try='test -z "$ac_c_werror_flag"
20445 || test ! -s conftest.err'
ac1cb8d3
VS
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } &&
20451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; }; then
20457 ac_lo=$ac_mid; break
20458else
20459 echo "$as_me: failed program was:" >&5
20460sed 's/^/| /' conftest.$ac_ext >&5
20461
20462ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20463 if test $ac_mid -le $ac_hi; then
20464 ac_lo= ac_hi=
20465 break
20466 fi
20467 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20468fi
ac1cb8d3 20469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20470 done
20471else
20472 echo "$as_me: failed program was:" >&5
20473sed 's/^/| /' conftest.$ac_ext >&5
20474
20475ac_lo= ac_hi=
20476fi
ac1cb8d3 20477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20478fi
ac1cb8d3 20479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20480# Binary search between lo and hi bounds.
20481while test "x$ac_lo" != "x$ac_hi"; do
20482 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20483 cat >conftest.$ac_ext <<_ACEOF
20484/* confdefs.h. */
20485_ACEOF
20486cat confdefs.h >>conftest.$ac_ext
20487cat >>conftest.$ac_ext <<_ACEOF
20488/* end confdefs.h. */
20489$ac_includes_default
20490int
20491main ()
20492{
20493static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20494test_array [0] = 0
20495
20496 ;
20497 return 0;
20498}
20499_ACEOF
20500rm -f conftest.$ac_objext
20501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20502 (eval $ac_compile) 2>conftest.er1
a848cd7e 20503 ac_status=$?
ac1cb8d3
VS
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
a848cd7e
SC
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
3565d135
RR
20509 { ac_try='test -z "$ac_c_werror_flag"
20510 || test ! -s conftest.err'
ac1cb8d3
VS
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; } &&
20516 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 ac_hi=$ac_mid
20523else
20524 echo "$as_me: failed program was:" >&5
20525sed 's/^/| /' conftest.$ac_ext >&5
20526
20527ac_lo=`expr '(' $ac_mid ')' + 1`
20528fi
ac1cb8d3 20529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20530done
20531case $ac_lo in
20532?*) ac_cv_sizeof_long_long=$ac_lo;;
20533'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20534See \`config.log' for more details." >&5
20535echo "$as_me: error: cannot compute sizeof (long long), 77
20536See \`config.log' for more details." >&2;}
20537 { (exit 1); exit 1; }; } ;;
20538esac
20539else
20540 if test "$cross_compiling" = yes; then
3565d135
RR
20541 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20542See \`config.log' for more details." >&5
20543echo "$as_me: error: cannot run test program while cross compiling
20544See \`config.log' for more details." >&2;}
a848cd7e
SC
20545 { (exit 1); exit 1; }; }
20546else
20547 cat >conftest.$ac_ext <<_ACEOF
20548/* confdefs.h. */
20549_ACEOF
20550cat confdefs.h >>conftest.$ac_ext
20551cat >>conftest.$ac_ext <<_ACEOF
20552/* end confdefs.h. */
20553$ac_includes_default
20554long longval () { return (long) (sizeof (long long)); }
20555unsigned long ulongval () { return (long) (sizeof (long long)); }
20556#include <stdio.h>
20557#include <stdlib.h>
20558int
20559main ()
20560{
20561
20562 FILE *f = fopen ("conftest.val", "w");
20563 if (! f)
20564 exit (1);
20565 if (((long) (sizeof (long long))) < 0)
20566 {
20567 long i = longval ();
20568 if (i != ((long) (sizeof (long long))))
20569 exit (1);
20570 fprintf (f, "%ld\n", i);
20571 }
20572 else
20573 {
20574 unsigned long i = ulongval ();
20575 if (i != ((long) (sizeof (long long))))
20576 exit (1);
20577 fprintf (f, "%lu\n", i);
20578 }
20579 exit (ferror (f) || fclose (f) != 0);
20580
20581 ;
20582 return 0;
20583}
20584_ACEOF
20585rm -f conftest$ac_exeext
20586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20587 (eval $ac_link) 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20593 ac_status=$?
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; }; then
20596 ac_cv_sizeof_long_long=`cat conftest.val`
20597else
20598 echo "$as_me: program exited with status $ac_status" >&5
20599echo "$as_me: failed program was:" >&5
20600sed 's/^/| /' conftest.$ac_ext >&5
20601
20602( exit $ac_status )
20603{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20604See \`config.log' for more details." >&5
20605echo "$as_me: error: cannot compute sizeof (long long), 77
20606See \`config.log' for more details." >&2;}
20607 { (exit 1); exit 1; }; }
20608fi
ac1cb8d3 20609rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20610fi
20611fi
20612rm -f conftest.val
20613else
20614 ac_cv_sizeof_long_long=0
20615fi
20616fi
20617echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20618echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20619cat >>confdefs.h <<_ACEOF
20620#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20621_ACEOF
20622
20623
20624esac
20625
238ecede
MW
20626echo "$as_me:$LINENO: checking for wchar_t" >&5
20627echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20628if test "${ac_cv_type_wchar_t+set}" = set; then
20629 echo $ECHO_N "(cached) $ECHO_C" >&6
20630else
20631 cat >conftest.$ac_ext <<_ACEOF
20632/* confdefs.h. */
20633_ACEOF
20634cat confdefs.h >>conftest.$ac_ext
20635cat >>conftest.$ac_ext <<_ACEOF
20636/* end confdefs.h. */
20637
83d8eb47
MW
20638 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20639 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20640 # error "fake wchar_t"
20641 #endif
20642 #ifdef HAVE_WCHAR_H
20643 # ifdef __CYGWIN__
20644 # include <stddef.h>
20645 # endif
20646 # include <wchar.h>
20647 #endif
20648 #ifdef HAVE_STDLIB_H
20649 # include <stdlib.h>
20650 #endif
20651 #include <stdio.h>
20652
20653
20654
20655int
20656main ()
20657{
20658if ((wchar_t *) 0)
20659 return 0;
20660if (sizeof (wchar_t))
20661 return 0;
20662 ;
20663 return 0;
20664}
20665_ACEOF
20666rm -f conftest.$ac_objext
20667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20668 (eval $ac_compile) 2>conftest.er1
20669 ac_status=$?
20670 grep -v '^ *+' conftest.er1 >conftest.err
20671 rm -f conftest.er1
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } &&
3565d135
RR
20675 { ac_try='test -z "$ac_c_werror_flag"
20676 || test ! -s conftest.err'
238ecede
MW
20677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678 (eval $ac_try) 2>&5
20679 ac_status=$?
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; } &&
20682 { ac_try='test -s conftest.$ac_objext'
20683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20684 (eval $ac_try) 2>&5
20685 ac_status=$?
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); }; }; then
20688 ac_cv_type_wchar_t=yes
20689else
20690 echo "$as_me: failed program was:" >&5
20691sed 's/^/| /' conftest.$ac_ext >&5
20692
20693ac_cv_type_wchar_t=no
20694fi
20695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20696fi
20697echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20698echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20699
a848cd7e
SC
20700echo "$as_me:$LINENO: checking size of wchar_t" >&5
20701echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20702if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20704else
238ecede
MW
20705 if test "$ac_cv_type_wchar_t" = yes; then
20706 # The cast to unsigned long works around a bug in the HP C Compiler
20707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20709 # This bug is HP SR number 8606223364.
20710 if test "$cross_compiling" = yes; then
20711 # Depending upon the size, compute the lo and hi bounds.
20712cat >conftest.$ac_ext <<_ACEOF
20713/* confdefs.h. */
20714_ACEOF
20715cat confdefs.h >>conftest.$ac_ext
20716cat >>conftest.$ac_ext <<_ACEOF
20717/* end confdefs.h. */
20718
83d8eb47
MW
20719 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20720 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20721 # error "fake wchar_t"
20722 #endif
20723 #ifdef HAVE_WCHAR_H
20724 # ifdef __CYGWIN__
20725 # include <stddef.h>
20726 # endif
20727 # include <wchar.h>
20728 #endif
20729 #ifdef HAVE_STDLIB_H
20730 # include <stdlib.h>
20731 #endif
20732 #include <stdio.h>
20733
20734
20735
20736int
20737main ()
20738{
20739static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20740test_array [0] = 0
20741
20742 ;
20743 return 0;
20744}
20745_ACEOF
20746rm -f conftest.$ac_objext
20747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20748 (eval $ac_compile) 2>conftest.er1
20749 ac_status=$?
20750 grep -v '^ *+' conftest.er1 >conftest.err
20751 rm -f conftest.er1
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } &&
3565d135
RR
20755 { ac_try='test -z "$ac_c_werror_flag"
20756 || test ! -s conftest.err'
238ecede
MW
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20759 ac_status=$?
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest.$ac_objext'
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
20768 ac_lo=0 ac_mid=0
20769 while :; do
20770 cat >conftest.$ac_ext <<_ACEOF
20771/* confdefs.h. */
20772_ACEOF
20773cat confdefs.h >>conftest.$ac_ext
20774cat >>conftest.$ac_ext <<_ACEOF
20775/* end confdefs.h. */
20776
83d8eb47
MW
20777 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20778 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20779 # error "fake wchar_t"
20780 #endif
20781 #ifdef HAVE_WCHAR_H
20782 # ifdef __CYGWIN__
20783 # include <stddef.h>
20784 # endif
20785 # include <wchar.h>
20786 #endif
20787 #ifdef HAVE_STDLIB_H
20788 # include <stdlib.h>
20789 #endif
20790 #include <stdio.h>
20791
20792
20793
20794int
20795main ()
20796{
20797static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20798test_array [0] = 0
20799
20800 ;
20801 return 0;
20802}
20803_ACEOF
20804rm -f conftest.$ac_objext
20805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20806 (eval $ac_compile) 2>conftest.er1
20807 ac_status=$?
20808 grep -v '^ *+' conftest.er1 >conftest.err
20809 rm -f conftest.er1
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } &&
3565d135
RR
20813 { ac_try='test -z "$ac_c_werror_flag"
20814 || test ! -s conftest.err'
238ecede
MW
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try='test -s conftest.$ac_objext'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 ac_hi=$ac_mid; break
20827else
20828 echo "$as_me: failed program was:" >&5
20829sed 's/^/| /' conftest.$ac_ext >&5
20830
20831ac_lo=`expr $ac_mid + 1`
20832 if test $ac_lo -le $ac_mid; then
20833 ac_lo= ac_hi=
20834 break
20835 fi
20836 ac_mid=`expr 2 '*' $ac_mid + 1`
20837fi
20838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20839 done
20840else
20841 echo "$as_me: failed program was:" >&5
20842sed 's/^/| /' conftest.$ac_ext >&5
20843
20844cat >conftest.$ac_ext <<_ACEOF
20845/* confdefs.h. */
20846_ACEOF
20847cat confdefs.h >>conftest.$ac_ext
20848cat >>conftest.$ac_ext <<_ACEOF
20849/* end confdefs.h. */
20850
83d8eb47
MW
20851 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20852 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20853 # error "fake wchar_t"
20854 #endif
20855 #ifdef HAVE_WCHAR_H
20856 # ifdef __CYGWIN__
20857 # include <stddef.h>
20858 # endif
20859 # include <wchar.h>
20860 #endif
20861 #ifdef HAVE_STDLIB_H
20862 # include <stdlib.h>
20863 #endif
20864 #include <stdio.h>
20865
20866
20867
20868int
20869main ()
20870{
20871static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20872test_array [0] = 0
20873
20874 ;
20875 return 0;
20876}
20877_ACEOF
20878rm -f conftest.$ac_objext
20879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20880 (eval $ac_compile) 2>conftest.er1
20881 ac_status=$?
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
3565d135
RR
20887 { ac_try='test -z "$ac_c_werror_flag"
20888 || test ! -s conftest.err'
238ecede
MW
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20897 ac_status=$?
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 ac_hi=-1 ac_mid=-1
20901 while :; do
20902 cat >conftest.$ac_ext <<_ACEOF
20903/* confdefs.h. */
20904_ACEOF
20905cat confdefs.h >>conftest.$ac_ext
20906cat >>conftest.$ac_ext <<_ACEOF
20907/* end confdefs.h. */
20908
83d8eb47
MW
20909 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20910 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20911 # error "fake wchar_t"
20912 #endif
20913 #ifdef HAVE_WCHAR_H
20914 # ifdef __CYGWIN__
20915 # include <stddef.h>
20916 # endif
20917 # include <wchar.h>
20918 #endif
20919 #ifdef HAVE_STDLIB_H
20920 # include <stdlib.h>
20921 #endif
20922 #include <stdio.h>
20923
20924
20925
20926int
20927main ()
20928{
20929static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20930test_array [0] = 0
20931
20932 ;
20933 return 0;
20934}
20935_ACEOF
20936rm -f conftest.$ac_objext
20937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20938 (eval $ac_compile) 2>conftest.er1
20939 ac_status=$?
20940 grep -v '^ *+' conftest.er1 >conftest.err
20941 rm -f conftest.er1
20942 cat conftest.err >&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } &&
3565d135
RR
20945 { ac_try='test -z "$ac_c_werror_flag"
20946 || test ! -s conftest.err'
238ecede
MW
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; } &&
20952 { ac_try='test -s conftest.$ac_objext'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 ac_lo=$ac_mid; break
20959else
20960 echo "$as_me: failed program was:" >&5
20961sed 's/^/| /' conftest.$ac_ext >&5
20962
20963ac_hi=`expr '(' $ac_mid ')' - 1`
20964 if test $ac_mid -le $ac_hi; then
20965 ac_lo= ac_hi=
20966 break
20967 fi
20968 ac_mid=`expr 2 '*' $ac_mid`
20969fi
20970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20971 done
20972else
20973 echo "$as_me: failed program was:" >&5
20974sed 's/^/| /' conftest.$ac_ext >&5
20975
20976ac_lo= ac_hi=
20977fi
20978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20979fi
20980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20981# Binary search between lo and hi bounds.
20982while test "x$ac_lo" != "x$ac_hi"; do
20983 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20984 cat >conftest.$ac_ext <<_ACEOF
20985/* confdefs.h. */
20986_ACEOF
20987cat confdefs.h >>conftest.$ac_ext
20988cat >>conftest.$ac_ext <<_ACEOF
20989/* end confdefs.h. */
20990
83d8eb47
MW
20991 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20992 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20993 # error "fake wchar_t"
20994 #endif
20995 #ifdef HAVE_WCHAR_H
20996 # ifdef __CYGWIN__
20997 # include <stddef.h>
20998 # endif
20999 # include <wchar.h>
21000 #endif
21001 #ifdef HAVE_STDLIB_H
21002 # include <stdlib.h>
21003 #endif
21004 #include <stdio.h>
a848cd7e 21005
a848cd7e 21006
a848cd7e 21007
238ecede
MW
21008int
21009main ()
21010{
21011static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21012test_array [0] = 0
a848cd7e 21013
238ecede
MW
21014 ;
21015 return 0;
21016}
21017_ACEOF
21018rm -f conftest.$ac_objext
21019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21020 (eval $ac_compile) 2>conftest.er1
21021 ac_status=$?
21022 grep -v '^ *+' conftest.er1 >conftest.err
21023 rm -f conftest.er1
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } &&
3565d135
RR
21027 { ac_try='test -z "$ac_c_werror_flag"
21028 || test ! -s conftest.err'
238ecede
MW
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; } &&
21034 { ac_try='test -s conftest.$ac_objext'
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21037 ac_status=$?
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; }; then
21040 ac_hi=$ac_mid
21041else
21042 echo "$as_me: failed program was:" >&5
21043sed 's/^/| /' conftest.$ac_ext >&5
21044
21045ac_lo=`expr '(' $ac_mid ')' + 1`
21046fi
21047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21048done
21049case $ac_lo in
21050?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21051'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21052See \`config.log' for more details." >&5
21053echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21054See \`config.log' for more details." >&2;}
21055 { (exit 1); exit 1; }; } ;;
21056esac
21057else
21058 if test "$cross_compiling" = yes; then
3565d135
RR
21059 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21060See \`config.log' for more details." >&5
21061echo "$as_me: error: cannot run test program while cross compiling
21062See \`config.log' for more details." >&2;}
238ecede 21063 { (exit 1); exit 1; }; }
a848cd7e
SC
21064else
21065 cat >conftest.$ac_ext <<_ACEOF
21066/* confdefs.h. */
21067_ACEOF
21068cat confdefs.h >>conftest.$ac_ext
21069cat >>conftest.$ac_ext <<_ACEOF
21070/* end confdefs.h. */
21071
83d8eb47
MW
21072 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21073 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21074 # error "fake wchar_t"
21075 #endif
21076 #ifdef HAVE_WCHAR_H
21077 # ifdef __CYGWIN__
21078 # include <stddef.h>
21079 # endif
21080 # include <wchar.h>
21081 #endif
21082 #ifdef HAVE_STDLIB_H
21083 # include <stdlib.h>
21084 #endif
21085 #include <stdio.h>
21086
21087
21088
21089long longval () { return (long) (sizeof (wchar_t)); }
21090unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21091#include <stdio.h>
21092#include <stdlib.h>
21093int
21094main ()
21095{
a848cd7e 21096
238ecede
MW
21097 FILE *f = fopen ("conftest.val", "w");
21098 if (! f)
21099 exit (1);
21100 if (((long) (sizeof (wchar_t))) < 0)
21101 {
21102 long i = longval ();
21103 if (i != ((long) (sizeof (wchar_t))))
21104 exit (1);
21105 fprintf (f, "%ld\n", i);
21106 }
21107 else
21108 {
21109 unsigned long i = ulongval ();
21110 if (i != ((long) (sizeof (wchar_t))))
21111 exit (1);
21112 fprintf (f, "%lu\n", i);
21113 }
21114 exit (ferror (f) || fclose (f) != 0);
21115
21116 ;
21117 return 0;
21118}
a848cd7e
SC
21119_ACEOF
21120rm -f conftest$ac_exeext
21121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21122 (eval $ac_link) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; }; then
238ecede 21131 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21132else
21133 echo "$as_me: program exited with status $ac_status" >&5
21134echo "$as_me: failed program was:" >&5
21135sed 's/^/| /' conftest.$ac_ext >&5
21136
21137( exit $ac_status )
238ecede
MW
21138{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21139See \`config.log' for more details." >&5
21140echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21141See \`config.log' for more details." >&2;}
21142 { (exit 1); exit 1; }; }
a848cd7e 21143fi
ac1cb8d3 21144rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21145fi
a848cd7e 21146fi
238ecede
MW
21147rm -f conftest.val
21148else
21149 ac_cv_sizeof_wchar_t=0
21150fi
21151fi
21152echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21153echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21154cat >>confdefs.h <<_ACEOF
238ecede 21155#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21156_ACEOF
21157
21158
47a7e797
MW
21159if test "$ac_cv_sizeof_wchar_t" != "0"; then
21160 wxUSE_WCHAR_T=yes
21161else
21162 wxUSE_WCHAR_T=no
21163fi
238ecede 21164
ba3d13e1
VZ
21165echo "$as_me:$LINENO: checking for va_copy" >&5
21166echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21167if test "${wx_cv_func_va_copy+set}" = set; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21169else
21170
21171 cat >conftest.$ac_ext <<_ACEOF
21172
21173 #include <stdarg.h>
21174 void foo(char *f, ...)
21175 {
21176 va_list ap1, ap2;
21177 va_start(ap1, f);
21178 va_copy(ap2, ap1);
21179 va_end(ap2);
21180 va_end(ap1);
21181 }
5886b072
VZ
21182 int main()
21183 {
b902e639
VZ
21184 foo("hi", 17);
21185 return 0;
5886b072 21186 }
ba3d13e1
VZ
21187_ACEOF
21188rm -f conftest.$ac_objext conftest$ac_exeext
21189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21190 (eval $ac_link) 2>conftest.er1
21191 ac_status=$?
21192 grep -v '^ *+' conftest.er1 >conftest.err
21193 rm -f conftest.er1
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } &&
3565d135
RR
21197 { ac_try='test -z "$ac_c_werror_flag"
21198 || test ! -s conftest.err'
ba3d13e1
VZ
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21201 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; } &&
21204 { ac_try='test -s conftest$ac_exeext'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21207 ac_status=$?
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210 wx_cv_func_va_copy=yes
21211else
21212 echo "$as_me: failed program was:" >&5
21213sed 's/^/| /' conftest.$ac_ext >&5
21214
21215wx_cv_func_va_copy=no
21216
21217fi
21218rm -f conftest.err conftest.$ac_objext \
21219 conftest$ac_exeext conftest.$ac_ext
21220
21221
21222fi
21223echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21224echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21225
21226if test $wx_cv_func_va_copy = "yes"; then
21227 cat >>confdefs.h <<\_ACEOF
21228#define HAVE_VA_COPY 1
21229_ACEOF
21230
21231else
21232 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21233echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21234if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21235 echo $ECHO_N "(cached) $ECHO_C" >&6
21236else
21237
21238 if test "$cross_compiling" = yes; then
21239 wx_cv_type_va_list_lvalue=yes
21240
21241else
21242 cat >conftest.$ac_ext <<_ACEOF
21243
21244 #include <stdarg.h>
21245 int foo(char *f, ...)
21246 {
21247 va_list ap1, ap2;
21248 va_start(ap1, f);
21249 ap2 = ap1;
21250 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21251 return 1;
21252 va_end(ap2);
21253 va_end(ap1);
21254 return 0;
21255 }
21256 int main()
21257 {
21258 return foo("hi", 17);
21259 }
21260_ACEOF
21261rm -f conftest$ac_exeext
21262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21263 (eval $ac_link) 2>&5
21264 ac_status=$?
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; }; then
21272 wx_cv_type_va_list_lvalue=yes
21273else
21274 echo "$as_me: program exited with status $ac_status" >&5
21275echo "$as_me: failed program was:" >&5
21276sed 's/^/| /' conftest.$ac_ext >&5
21277
21278( exit $ac_status )
21279wx_cv_type_va_list_lvalue=no
21280fi
21281rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21282fi
21283
21284
21285fi
21286echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21287echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21288
21289 if test $wx_cv_type_va_list_lvalue != "yes"; then
21290 cat >>confdefs.h <<\_ACEOF
21291#define VA_LIST_IS_ARRAY 1
21292_ACEOF
21293
21294 fi
21295fi
21296
a848cd7e
SC
21297# Check whether --enable-largefile or --disable-largefile was given.
21298if test "${enable_largefile+set}" = set; then
21299 enableval="$enable_largefile"
21300
21301fi;
21302if test "$enable_largefile" != no; then
21303 wx_largefile=no
21304
21305 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21306echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21307if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21308 echo $ECHO_N "(cached) $ECHO_C" >&6
21309else
21310
21311 cat >conftest.$ac_ext <<_ACEOF
21312/* confdefs.h. */
21313_ACEOF
21314cat confdefs.h >>conftest.$ac_ext
21315cat >>conftest.$ac_ext <<_ACEOF
21316/* end confdefs.h. */
21317#define _FILE_OFFSET_BITS 64
21318 #include <sys/types.h>
21319int
21320main ()
21321{
21322typedef struct {
21323 unsigned int field: sizeof(off_t) == 8;
21324} wxlf;
21325
21326 ;
21327 return 0;
21328}
21329_ACEOF
21330rm -f conftest.$ac_objext
21331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21332 (eval $ac_compile) 2>conftest.er1
a848cd7e 21333 ac_status=$?
ac1cb8d3
VS
21334 grep -v '^ *+' conftest.er1 >conftest.err
21335 rm -f conftest.er1
21336 cat conftest.err >&5
a848cd7e
SC
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } &&
3565d135
RR
21339 { ac_try='test -z "$ac_c_werror_flag"
21340 || test ! -s conftest.err'
ac1cb8d3
VS
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; } &&
21346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21349 ac_status=$?
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; }; then
21352 ac_cv_sys_file_offset_bits=64
21353else
21354 echo "$as_me: failed program was:" >&5
21355sed 's/^/| /' conftest.$ac_ext >&5
21356
21357ac_cv_sys_file_offset_bits=no
21358fi
ac1cb8d3 21359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21360
21361
21362fi
21363echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21364echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21365
21366 if test "$ac_cv_sys_file_offset_bits" != no; then
21367 wx_largefile=yes
21368 cat >>confdefs.h <<_ACEOF
21369#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21370_ACEOF
21371
21372 fi
21373
21374 if test "x$wx_largefile" != "xyes"; then
21375
21376 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21377echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21378if test "${ac_cv_sys_large_files+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21380else
21381
21382 cat >conftest.$ac_ext <<_ACEOF
21383/* confdefs.h. */
21384_ACEOF
21385cat confdefs.h >>conftest.$ac_ext
21386cat >>conftest.$ac_ext <<_ACEOF
21387/* end confdefs.h. */
21388#define _LARGE_FILES 1
21389 #include <sys/types.h>
21390int
21391main ()
21392{
21393typedef struct {
21394 unsigned int field: sizeof(off_t) == 8;
21395} wxlf;
21396
21397 ;
21398 return 0;
21399}
21400_ACEOF
21401rm -f conftest.$ac_objext
21402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21403 (eval $ac_compile) 2>conftest.er1
a848cd7e 21404 ac_status=$?
ac1cb8d3
VS
21405 grep -v '^ *+' conftest.er1 >conftest.err
21406 rm -f conftest.er1
21407 cat conftest.err >&5
a848cd7e
SC
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } &&
3565d135
RR
21410 { ac_try='test -z "$ac_c_werror_flag"
21411 || test ! -s conftest.err'
ac1cb8d3
VS
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21414 ac_status=$?
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; } &&
21417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_cv_sys_large_files=1
21424else
21425 echo "$as_me: failed program was:" >&5
21426sed 's/^/| /' conftest.$ac_ext >&5
21427
21428ac_cv_sys_large_files=no
21429fi
ac1cb8d3 21430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21431
21432
21433fi
21434echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21435echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21436
21437 if test "$ac_cv_sys_large_files" != no; then
21438 wx_largefile=yes
21439 cat >>confdefs.h <<_ACEOF
21440#define _LARGE_FILES $ac_cv_sys_large_files
21441_ACEOF
21442
21443 fi
21444
21445 fi
21446
21447 echo "$as_me:$LINENO: checking if large file support is available" >&5
21448echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21449 if test "x$wx_largefile" = "xyes"; then
21450 cat >>confdefs.h <<\_ACEOF
21451#define HAVE_LARGEFILE_SUPPORT 1
21452_ACEOF
21453
21454 fi
21455 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21456echo "${ECHO_T}$wx_largefile" >&6
21457fi
21458
5b674b9d
DE
21459
21460if test "x$wx_largefile" = "xyes"; then
21461 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21462 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21463
21464 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21465 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21466echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21467if test "${wx_cv_STDC_EXT_required+set}" = set; then
21468 echo $ECHO_N "(cached) $ECHO_C" >&6
21469else
21470
00421666
MW
21471 ac_ext=cc
21472ac_cpp='$CXXCPP $CPPFLAGS'
21473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21476
21477 cat >conftest.$ac_ext <<_ACEOF
21478/* confdefs.h. */
21479_ACEOF
21480cat confdefs.h >>conftest.$ac_ext
21481cat >>conftest.$ac_ext <<_ACEOF
21482/* end confdefs.h. */
21483
21484int
21485main ()
21486{
21487
21488 #ifndef __STDC_EXT__
21489 choke me
21490 #endif
21491
21492 ;
21493 return 0;
21494}
21495_ACEOF
21496rm -f conftest.$ac_objext
21497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21498 (eval $ac_compile) 2>conftest.er1
21499 ac_status=$?
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
3565d135
RR
21505 { ac_try='test -z "$ac_cxx_werror_flag"
21506 || test ! -s conftest.err'
00421666
MW
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; } &&
21512 { ac_try='test -s conftest.$ac_objext'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; }; then
21518 wx_cv_STDC_EXT_required=no
21519else
21520 echo "$as_me: failed program was:" >&5
21521sed 's/^/| /' conftest.$ac_ext >&5
21522
21523wx_cv_STDC_EXT_required=yes
21524
21525fi
21526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21527 ac_ext=c
21528ac_cpp='$CPP $CPPFLAGS'
21529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21531ac_compiler_gnu=$ac_cv_c_compiler_gnu
21532
21533
21534
21535fi
21536echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21537echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21538 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21539 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21540 fi
21541 fi
5b674b9d 21542 else
5ff751d6 21543 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21544 fi
21545 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21546echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21547if test "${ac_cv_sys_largefile_source+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21549else
21550 while :; do
21551 ac_cv_sys_largefile_source=no
21552 cat >conftest.$ac_ext <<_ACEOF
21553/* confdefs.h. */
21554_ACEOF
21555cat confdefs.h >>conftest.$ac_ext
21556cat >>conftest.$ac_ext <<_ACEOF
21557/* end confdefs.h. */
21558#include <stdio.h>
21559int
21560main ()
21561{
21562return !fseeko;
21563 ;
21564 return 0;
21565}
21566_ACEOF
21567rm -f conftest.$ac_objext
21568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21569 (eval $ac_compile) 2>conftest.er1
21570 ac_status=$?
21571 grep -v '^ *+' conftest.er1 >conftest.err
21572 rm -f conftest.er1
21573 cat conftest.err >&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } &&
3565d135
RR
21576 { ac_try='test -z "$ac_c_werror_flag"
21577 || test ! -s conftest.err'
5294a27e
VZ
21578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579 (eval $ac_try) 2>&5
21580 ac_status=$?
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); }; } &&
21583 { ac_try='test -s conftest.$ac_objext'
21584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585 (eval $ac_try) 2>&5
21586 ac_status=$?
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; }; then
21589 break
21590else
21591 echo "$as_me: failed program was:" >&5
21592sed 's/^/| /' conftest.$ac_ext >&5
21593
21594fi
21595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21596 cat >conftest.$ac_ext <<_ACEOF
21597/* confdefs.h. */
21598_ACEOF
21599cat confdefs.h >>conftest.$ac_ext
21600cat >>conftest.$ac_ext <<_ACEOF
21601/* end confdefs.h. */
21602#define _LARGEFILE_SOURCE 1
21603#include <stdio.h>
21604int
21605main ()
21606{
21607return !fseeko;
21608 ;
21609 return 0;
21610}
21611_ACEOF
21612rm -f conftest.$ac_objext
21613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21614 (eval $ac_compile) 2>conftest.er1
21615 ac_status=$?
21616 grep -v '^ *+' conftest.er1 >conftest.err
21617 rm -f conftest.er1
21618 cat conftest.err >&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } &&
3565d135
RR
21621 { ac_try='test -z "$ac_c_werror_flag"
21622 || test ! -s conftest.err'
5294a27e
VZ
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; } &&
21628 { ac_try='test -s conftest.$ac_objext'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21631 ac_status=$?
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; }; then
21634 ac_cv_sys_largefile_source=1; break
21635else
21636 echo "$as_me: failed program was:" >&5
21637sed 's/^/| /' conftest.$ac_ext >&5
21638
21639fi
21640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21641 break
21642done
21643fi
21644echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21645echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21646if test "$ac_cv_sys_largefile_source" != no; then
21647
21648cat >>confdefs.h <<_ACEOF
21649#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21650_ACEOF
21651
21652fi
21653rm -f conftest*
21654
21655# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21656# in glibc 2.1.3, but that breaks too many other things.
21657# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21658echo "$as_me:$LINENO: checking for fseeko" >&5
21659echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21660if test "${ac_cv_func_fseeko+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21662else
21663 cat >conftest.$ac_ext <<_ACEOF
21664/* confdefs.h. */
21665_ACEOF
21666cat confdefs.h >>conftest.$ac_ext
21667cat >>conftest.$ac_ext <<_ACEOF
21668/* end confdefs.h. */
21669#include <stdio.h>
21670int
21671main ()
21672{
21673return fseeko && fseeko (stdin, 0, 0);
21674 ;
21675 return 0;
21676}
21677_ACEOF
21678rm -f conftest.$ac_objext conftest$ac_exeext
21679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21680 (eval $ac_link) 2>conftest.er1
21681 ac_status=$?
21682 grep -v '^ *+' conftest.er1 >conftest.err
21683 rm -f conftest.er1
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } &&
3565d135
RR
21687 { ac_try='test -z "$ac_c_werror_flag"
21688 || test ! -s conftest.err'
5294a27e
VZ
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; } &&
21694 { ac_try='test -s conftest$ac_exeext'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; }; then
21700 ac_cv_func_fseeko=yes
21701else
21702 echo "$as_me: failed program was:" >&5
21703sed 's/^/| /' conftest.$ac_ext >&5
21704
21705ac_cv_func_fseeko=no
21706fi
21707rm -f conftest.err conftest.$ac_objext \
21708 conftest$ac_exeext conftest.$ac_ext
21709fi
21710echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21711echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21712if test $ac_cv_func_fseeko = yes; then
21713
21714cat >>confdefs.h <<\_ACEOF
21715#define HAVE_FSEEKO 1
21716_ACEOF
21717
21718fi
21719
5b674b9d 21720 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21721 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21722 fi
a848cd7e
SC
21723fi
21724
21725echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21726echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21727if test "${ac_cv_c_bigendian+set}" = set; then
21728 echo $ECHO_N "(cached) $ECHO_C" >&6
21729else
21730 ac_cv_c_bigendian=unknown
21731# See if sys/param.h defines the BYTE_ORDER macro.
21732cat >conftest.$ac_ext <<_ACEOF
21733/* confdefs.h. */
21734_ACEOF
21735cat confdefs.h >>conftest.$ac_ext
21736cat >>conftest.$ac_ext <<_ACEOF
21737/* end confdefs.h. */
21738#include <sys/types.h>
21739#include <sys/param.h>
21740int
21741main ()
21742{
21743
21744#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21745 bogus endian macros
21746#endif
21747 ;
21748 return 0;
21749}
21750_ACEOF
21751rm -f conftest.$ac_objext
21752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21753 (eval $ac_compile) 2>conftest.er1
a848cd7e 21754 ac_status=$?
ac1cb8d3
VS
21755 grep -v '^ *+' conftest.er1 >conftest.err
21756 rm -f conftest.er1
21757 cat conftest.err >&5
a848cd7e
SC
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } &&
3565d135
RR
21760 { ac_try='test -z "$ac_c_werror_flag"
21761 || test ! -s conftest.err'
ac1cb8d3
VS
21762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21764 ac_status=$?
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; } &&
21767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21770 ac_status=$?
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; }; then
21773 # It does; now see whether it defined to BIG_ENDIAN or not.
21774cat >conftest.$ac_ext <<_ACEOF
21775/* confdefs.h. */
21776_ACEOF
21777cat confdefs.h >>conftest.$ac_ext
21778cat >>conftest.$ac_ext <<_ACEOF
21779/* end confdefs.h. */
21780#include <sys/types.h>
21781#include <sys/param.h>
21782int
21783main ()
21784{
21785
21786#if BYTE_ORDER != BIG_ENDIAN
21787 not big endian
21788#endif
21789 ;
21790 return 0;
21791}
21792_ACEOF
21793rm -f conftest.$ac_objext
21794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21795 (eval $ac_compile) 2>conftest.er1
a848cd7e 21796 ac_status=$?
ac1cb8d3
VS
21797 grep -v '^ *+' conftest.er1 >conftest.err
21798 rm -f conftest.er1
21799 cat conftest.err >&5
a848cd7e
SC
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } &&
3565d135
RR
21802 { ac_try='test -z "$ac_c_werror_flag"
21803 || test ! -s conftest.err'
ac1cb8d3
VS
21804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805 (eval $ac_try) 2>&5
21806 ac_status=$?
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); }; } &&
21809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21812 ac_status=$?
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; }; then
21815 ac_cv_c_bigendian=yes
21816else
21817 echo "$as_me: failed program was:" >&5
21818sed 's/^/| /' conftest.$ac_ext >&5
21819
21820ac_cv_c_bigendian=no
21821fi
ac1cb8d3 21822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21823else
21824 echo "$as_me: failed program was:" >&5
21825sed 's/^/| /' conftest.$ac_ext >&5
21826
21827fi
ac1cb8d3 21828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21829if test $ac_cv_c_bigendian = unknown; then
21830if test "$cross_compiling" = yes; then
21831 ac_cv_c_bigendian=unknown
21832else
21833 cat >conftest.$ac_ext <<_ACEOF
21834/* confdefs.h. */
21835_ACEOF
21836cat confdefs.h >>conftest.$ac_ext
21837cat >>conftest.$ac_ext <<_ACEOF
21838/* end confdefs.h. */
21839main () {
21840 /* Are we little or big endian? From Harbison&Steele. */
21841 union
21842 {
21843 long l;
21844 char c[sizeof (long)];
21845 } u;
21846 u.l = 1;
21847 exit (u.c[sizeof (long) - 1] == 1);
21848}
21849_ACEOF
21850rm -f conftest$ac_exeext
21851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21852 (eval $ac_link) 2>&5
21853 ac_status=$?
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857 (eval $ac_try) 2>&5
21858 ac_status=$?
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); }; }; then
21861 ac_cv_c_bigendian=no
21862else
21863 echo "$as_me: program exited with status $ac_status" >&5
21864echo "$as_me: failed program was:" >&5
21865sed 's/^/| /' conftest.$ac_ext >&5
21866
21867( exit $ac_status )
21868ac_cv_c_bigendian=yes
21869fi
ac1cb8d3 21870rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21871fi
21872fi
21873fi
21874echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21875echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21876if test $ac_cv_c_bigendian = unknown; then
21877 { 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
21878echo "$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;}
21879fi
21880if test $ac_cv_c_bigendian = yes; then
21881 cat >>confdefs.h <<\_ACEOF
21882#define WORDS_BIGENDIAN 1
21883_ACEOF
21884
21885fi
21886
21887
21888ac_ext=cc
21889ac_cpp='$CXXCPP $CPPFLAGS'
21890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21893echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21894echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21895if test -z "$CXXCPP"; then
21896 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21898else
21899 # Double quotes because CXXCPP needs to be expanded
21900 for CXXCPP in "$CXX -E" "/lib/cpp"
21901 do
21902 ac_preproc_ok=false
21903for ac_cxx_preproc_warn_flag in '' yes
21904do
21905 # Use a header file that comes with gcc, so configuring glibc
21906 # with a fresh cross-compiler works.
21907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21908 # <limits.h> exists even on freestanding compilers.
21909 # On the NeXT, cc -E runs the code through the compiler's parser,
21910 # not just through cpp. "Syntax error" is here to catch this case.
21911 cat >conftest.$ac_ext <<_ACEOF
21912/* confdefs.h. */
21913_ACEOF
21914cat confdefs.h >>conftest.$ac_ext
21915cat >>conftest.$ac_ext <<_ACEOF
21916/* end confdefs.h. */
21917#ifdef __STDC__
21918# include <limits.h>
21919#else
21920# include <assert.h>
21921#endif
ac1cb8d3 21922 Syntax error
a848cd7e
SC
21923_ACEOF
21924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21926 ac_status=$?
21927 grep -v '^ *+' conftest.er1 >conftest.err
21928 rm -f conftest.er1
21929 cat conftest.err >&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } >/dev/null; then
21932 if test -s conftest.err; then
21933 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21934 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21935 else
21936 ac_cpp_err=
21937 fi
21938else
21939 ac_cpp_err=yes
21940fi
21941if test -z "$ac_cpp_err"; then
21942 :
21943else
21944 echo "$as_me: failed program was:" >&5
21945sed 's/^/| /' conftest.$ac_ext >&5
21946
21947 # Broken: fails on valid input.
21948continue
21949fi
21950rm -f conftest.err conftest.$ac_ext
21951
21952 # OK, works on sane cases. Now check whether non-existent headers
21953 # can be detected and how.
21954 cat >conftest.$ac_ext <<_ACEOF
21955/* confdefs.h. */
21956_ACEOF
21957cat confdefs.h >>conftest.$ac_ext
21958cat >>conftest.$ac_ext <<_ACEOF
21959/* end confdefs.h. */
21960#include <ac_nonexistent.h>
21961_ACEOF
21962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21964 ac_status=$?
21965 grep -v '^ *+' conftest.er1 >conftest.err
21966 rm -f conftest.er1
21967 cat conftest.err >&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } >/dev/null; then
21970 if test -s conftest.err; then
21971 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21972 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21973 else
21974 ac_cpp_err=
21975 fi
21976else
21977 ac_cpp_err=yes
21978fi
21979if test -z "$ac_cpp_err"; then
21980 # Broken: success on invalid input.
21981continue
21982else
21983 echo "$as_me: failed program was:" >&5
21984sed 's/^/| /' conftest.$ac_ext >&5
21985
21986 # Passes both tests.
21987ac_preproc_ok=:
21988break
21989fi
21990rm -f conftest.err conftest.$ac_ext
21991
21992done
21993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21994rm -f conftest.err conftest.$ac_ext
21995if $ac_preproc_ok; then
21996 break
21997fi
21998
21999 done
22000 ac_cv_prog_CXXCPP=$CXXCPP
22001
22002fi
22003 CXXCPP=$ac_cv_prog_CXXCPP
22004else
22005 ac_cv_prog_CXXCPP=$CXXCPP
22006fi
22007echo "$as_me:$LINENO: result: $CXXCPP" >&5
22008echo "${ECHO_T}$CXXCPP" >&6
22009ac_preproc_ok=false
22010for ac_cxx_preproc_warn_flag in '' yes
22011do
22012 # Use a header file that comes with gcc, so configuring glibc
22013 # with a fresh cross-compiler works.
22014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22015 # <limits.h> exists even on freestanding compilers.
22016 # On the NeXT, cc -E runs the code through the compiler's parser,
22017 # not just through cpp. "Syntax error" is here to catch this case.
22018 cat >conftest.$ac_ext <<_ACEOF
22019/* confdefs.h. */
22020_ACEOF
22021cat confdefs.h >>conftest.$ac_ext
22022cat >>conftest.$ac_ext <<_ACEOF
22023/* end confdefs.h. */
22024#ifdef __STDC__
22025# include <limits.h>
22026#else
22027# include <assert.h>
22028#endif
ac1cb8d3 22029 Syntax error
a848cd7e
SC
22030_ACEOF
22031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22033 ac_status=$?
22034 grep -v '^ *+' conftest.er1 >conftest.err
22035 rm -f conftest.er1
22036 cat conftest.err >&5
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } >/dev/null; then
22039 if test -s conftest.err; then
22040 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22042 else
22043 ac_cpp_err=
22044 fi
22045else
22046 ac_cpp_err=yes
22047fi
22048if test -z "$ac_cpp_err"; then
22049 :
22050else
22051 echo "$as_me: failed program was:" >&5
22052sed 's/^/| /' conftest.$ac_ext >&5
22053
22054 # Broken: fails on valid input.
22055continue
22056fi
22057rm -f conftest.err conftest.$ac_ext
22058
22059 # OK, works on sane cases. Now check whether non-existent headers
22060 # can be detected and how.
22061 cat >conftest.$ac_ext <<_ACEOF
22062/* confdefs.h. */
22063_ACEOF
22064cat confdefs.h >>conftest.$ac_ext
22065cat >>conftest.$ac_ext <<_ACEOF
22066/* end confdefs.h. */
22067#include <ac_nonexistent.h>
22068_ACEOF
22069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22071 ac_status=$?
22072 grep -v '^ *+' conftest.er1 >conftest.err
22073 rm -f conftest.er1
22074 cat conftest.err >&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); } >/dev/null; then
22077 if test -s conftest.err; then
22078 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22079 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22080 else
22081 ac_cpp_err=
22082 fi
22083else
22084 ac_cpp_err=yes
22085fi
22086if test -z "$ac_cpp_err"; then
22087 # Broken: success on invalid input.
22088continue
22089else
22090 echo "$as_me: failed program was:" >&5
22091sed 's/^/| /' conftest.$ac_ext >&5
22092
22093 # Passes both tests.
22094ac_preproc_ok=:
22095break
22096fi
22097rm -f conftest.err conftest.$ac_ext
22098
22099done
22100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22101rm -f conftest.err conftest.$ac_ext
22102if $ac_preproc_ok; then
22103 :
22104else
22105 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22106See \`config.log' for more details." >&5
22107echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22108See \`config.log' for more details." >&2;}
22109 { (exit 1); exit 1; }; }
22110fi
22111
22112ac_ext=cc
22113ac_cpp='$CXXCPP $CPPFLAGS'
22114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22117
22118
22119
22120
22121
22122 ac_ext=cc
22123ac_cpp='$CXXCPP $CPPFLAGS'
22124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22127
22128
22129
22130for ac_header in iostream
22131do
22132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22133if eval "test \"\${$as_ac_Header+set}\" = set"; then
22134 echo "$as_me:$LINENO: checking for $ac_header" >&5
22135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22136if eval "test \"\${$as_ac_Header+set}\" = set"; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22138fi
22139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22141else
22142 # Is the header compilable?
22143echo "$as_me:$LINENO: checking $ac_header usability" >&5
22144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22145cat >conftest.$ac_ext <<_ACEOF
22146/* confdefs.h. */
22147_ACEOF
22148cat confdefs.h >>conftest.$ac_ext
22149cat >>conftest.$ac_ext <<_ACEOF
22150/* end confdefs.h. */
22151$ac_includes_default
22152#include <$ac_header>
22153_ACEOF
22154rm -f conftest.$ac_objext
22155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22156 (eval $ac_compile) 2>conftest.er1
a848cd7e 22157 ac_status=$?
ac1cb8d3
VS
22158 grep -v '^ *+' conftest.er1 >conftest.err
22159 rm -f conftest.er1
22160 cat conftest.err >&5
a848cd7e
SC
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } &&
3565d135
RR
22163 { ac_try='test -z "$ac_cxx_werror_flag"
22164 || test ! -s conftest.err'
ac1cb8d3
VS
22165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22166 (eval $ac_try) 2>&5
22167 ac_status=$?
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); }; } &&
22170 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22172 (eval $ac_try) 2>&5
22173 ac_status=$?
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); }; }; then
22176 ac_header_compiler=yes
22177else
22178 echo "$as_me: failed program was:" >&5
22179sed 's/^/| /' conftest.$ac_ext >&5
22180
22181ac_header_compiler=no
22182fi
ac1cb8d3 22183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22184echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22185echo "${ECHO_T}$ac_header_compiler" >&6
22186
22187# Is the header present?
22188echo "$as_me:$LINENO: checking $ac_header presence" >&5
22189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22190cat >conftest.$ac_ext <<_ACEOF
22191/* confdefs.h. */
22192_ACEOF
22193cat confdefs.h >>conftest.$ac_ext
22194cat >>conftest.$ac_ext <<_ACEOF
22195/* end confdefs.h. */
22196#include <$ac_header>
22197_ACEOF
22198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22200 ac_status=$?
22201 grep -v '^ *+' conftest.er1 >conftest.err
22202 rm -f conftest.er1
22203 cat conftest.err >&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } >/dev/null; then
22206 if test -s conftest.err; then
22207 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22208 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22209 else
22210 ac_cpp_err=
22211 fi
22212else
22213 ac_cpp_err=yes
22214fi
22215if test -z "$ac_cpp_err"; then
22216 ac_header_preproc=yes
22217else
22218 echo "$as_me: failed program was:" >&5
22219sed 's/^/| /' conftest.$ac_ext >&5
22220
22221 ac_header_preproc=no
22222fi
22223rm -f conftest.err conftest.$ac_ext
22224echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22225echo "${ECHO_T}$ac_header_preproc" >&6
22226
22227# So? What about this header?
ac1cb8d3
VS
22228case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22229 yes:no: )
a848cd7e
SC
22230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22231echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22233echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22234 ac_header_preproc=yes
a848cd7e 22235 ;;
ac1cb8d3 22236 no:yes:* )
a848cd7e
SC
22237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22238echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22240echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22242echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22244echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22246echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22248echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22249 (
22250 cat <<\_ASBOX
ac1cb8d3
VS
22251## ----------------------------------------- ##
22252## Report this to wx-dev@lists.wxwidgets.org ##
22253## ----------------------------------------- ##
a848cd7e
SC
22254_ASBOX
22255 ) |
22256 sed "s/^/$as_me: WARNING: /" >&2
22257 ;;
22258esac
22259echo "$as_me:$LINENO: checking for $ac_header" >&5
22260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22261if eval "test \"\${$as_ac_Header+set}\" = set"; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22263else
ac1cb8d3 22264 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22265fi
22266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22268
22269fi
22270if test `eval echo '${'$as_ac_Header'}'` = yes; then
22271 cat >>confdefs.h <<_ACEOF
22272#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22273_ACEOF
22274
22275fi
22276
22277done
22278
22279
22280 if test "$ac_cv_header_iostream" = "yes" ; then
22281 :
22282 else
22283 cat >>confdefs.h <<\_ACEOF
22284#define wxUSE_IOSTREAMH 1
22285_ACEOF
22286
22287 fi
22288
22289 ac_ext=c
22290ac_cpp='$CPP $CPPFLAGS'
22291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22293ac_compiler_gnu=$ac_cv_c_compiler_gnu
22294
22295
22296
22297
22298 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22299echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22300if test "${wx_cv_cpp_bool+set}" = set; then
22301 echo $ECHO_N "(cached) $ECHO_C" >&6
22302else
22303
22304
22305
22306 ac_ext=cc
22307ac_cpp='$CXXCPP $CPPFLAGS'
22308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22311
22312
22313 cat >conftest.$ac_ext <<_ACEOF
22314/* confdefs.h. */
22315_ACEOF
22316cat confdefs.h >>conftest.$ac_ext
22317cat >>conftest.$ac_ext <<_ACEOF
22318/* end confdefs.h. */
22319
22320
22321int
22322main ()
22323{
22324
22325 bool b = true;
22326
22327 return 0;
22328
22329 ;
22330 return 0;
22331}
22332_ACEOF
22333rm -f conftest.$ac_objext
22334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22335 (eval $ac_compile) 2>conftest.er1
a848cd7e 22336 ac_status=$?
ac1cb8d3
VS
22337 grep -v '^ *+' conftest.er1 >conftest.err
22338 rm -f conftest.er1
22339 cat conftest.err >&5
a848cd7e
SC
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); } &&
3565d135
RR
22342 { ac_try='test -z "$ac_cxx_werror_flag"
22343 || test ! -s conftest.err'
ac1cb8d3
VS
22344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345 (eval $ac_try) 2>&5
22346 ac_status=$?
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); }; } &&
22349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22351 (eval $ac_try) 2>&5
22352 ac_status=$?
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); }; }; then
22355
22356 wx_cv_cpp_bool=yes
22357
22358else
22359 echo "$as_me: failed program was:" >&5
22360sed 's/^/| /' conftest.$ac_ext >&5
22361
22362
22363 wx_cv_cpp_bool=no
22364
22365
22366fi
ac1cb8d3 22367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22368
22369 ac_ext=c
22370ac_cpp='$CPP $CPPFLAGS'
22371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22373ac_compiler_gnu=$ac_cv_c_compiler_gnu
22374
22375
22376fi
22377echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22378echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22379
22380 if test "$wx_cv_cpp_bool" = "yes"; then
22381 cat >>confdefs.h <<\_ACEOF
22382#define HAVE_BOOL 1
22383_ACEOF
22384
22385 fi
22386
22387
22388
22389 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22390echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22391if test "${wx_cv_explicit+set}" = set; then
22392 echo $ECHO_N "(cached) $ECHO_C" >&6
22393else
22394
22395
22396
22397 ac_ext=cc
22398ac_cpp='$CXXCPP $CPPFLAGS'
22399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22402
22403
22404 cat >conftest.$ac_ext <<_ACEOF
22405/* confdefs.h. */
22406_ACEOF
22407cat confdefs.h >>conftest.$ac_ext
22408cat >>conftest.$ac_ext <<_ACEOF
22409/* end confdefs.h. */
22410
22411 class Foo { public: explicit Foo(int) {} };
22412
22413int
22414main ()
22415{
22416
22417 return 0;
22418
22419 ;
22420 return 0;
22421}
22422_ACEOF
22423rm -f conftest.$ac_objext
22424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22425 (eval $ac_compile) 2>conftest.er1
a848cd7e 22426 ac_status=$?
ac1cb8d3
VS
22427 grep -v '^ *+' conftest.er1 >conftest.err
22428 rm -f conftest.er1
22429 cat conftest.err >&5
a848cd7e
SC
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } &&
3565d135
RR
22432 { ac_try='test -z "$ac_cxx_werror_flag"
22433 || test ! -s conftest.err'
ac1cb8d3
VS
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; } &&
22439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; }; then
22445
22446 cat >conftest.$ac_ext <<_ACEOF
22447/* confdefs.h. */
22448_ACEOF
22449cat confdefs.h >>conftest.$ac_ext
22450cat >>conftest.$ac_ext <<_ACEOF
22451/* end confdefs.h. */
22452
22453 class Foo { public: explicit Foo(int) {} };
22454 static void TakeFoo(const Foo& foo) { }
22455
22456int
22457main ()
22458{
22459
22460 TakeFoo(17);
22461 return 0;
22462
22463 ;
22464 return 0;
22465}
22466_ACEOF
22467rm -f conftest.$ac_objext
22468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22469 (eval $ac_compile) 2>conftest.er1
a848cd7e 22470 ac_status=$?
ac1cb8d3
VS
22471 grep -v '^ *+' conftest.er1 >conftest.err
22472 rm -f conftest.er1
22473 cat conftest.err >&5
a848cd7e
SC
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); } &&
3565d135
RR
22476 { ac_try='test -z "$ac_cxx_werror_flag"
22477 || test ! -s conftest.err'
ac1cb8d3
VS
22478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22480 ac_status=$?
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; } &&
22483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22485 (eval $ac_try) 2>&5
22486 ac_status=$?
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; }; then
22489 wx_cv_explicit=no
22490else
22491 echo "$as_me: failed program was:" >&5
22492sed 's/^/| /' conftest.$ac_ext >&5
22493
22494wx_cv_explicit=yes
22495
22496fi
ac1cb8d3 22497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22498
22499else
22500 echo "$as_me: failed program was:" >&5
22501sed 's/^/| /' conftest.$ac_ext >&5
22502
22503wx_cv_explicit=no
22504
22505fi
ac1cb8d3 22506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22507
22508 ac_ext=c
22509ac_cpp='$CPP $CPPFLAGS'
22510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22512ac_compiler_gnu=$ac_cv_c_compiler_gnu
22513
22514
22515fi
22516echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22517echo "${ECHO_T}$wx_cv_explicit" >&6
22518
22519 if test "$wx_cv_explicit" = "yes"; then
22520 cat >>confdefs.h <<\_ACEOF
22521#define HAVE_EXPLICIT 1
22522_ACEOF
22523
22524 fi
22525
22526
22527echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22528echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22529if test "${ac_cv_cxx_const_cast+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22531else
22532
22533
22534 ac_ext=cc
22535ac_cpp='$CXXCPP $CPPFLAGS'
22536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22539
22540 cat >conftest.$ac_ext <<_ACEOF
22541/* confdefs.h. */
22542_ACEOF
22543cat confdefs.h >>conftest.$ac_ext
22544cat >>conftest.$ac_ext <<_ACEOF
22545/* end confdefs.h. */
22546
22547int
22548main ()
22549{
22550int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22551 ;
22552 return 0;
22553}
22554_ACEOF
22555rm -f conftest.$ac_objext
22556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22557 (eval $ac_compile) 2>conftest.er1
a848cd7e 22558 ac_status=$?
ac1cb8d3
VS
22559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
a848cd7e
SC
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } &&
3565d135
RR
22564 { ac_try='test -z "$ac_cxx_werror_flag"
22565 || test ! -s conftest.err'
ac1cb8d3
VS
22566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22567 (eval $ac_try) 2>&5
22568 ac_status=$?
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); }; } &&
22571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573 (eval $ac_try) 2>&5
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); }; }; then
22577 ac_cv_cxx_const_cast=yes
22578else
22579 echo "$as_me: failed program was:" >&5
22580sed 's/^/| /' conftest.$ac_ext >&5
22581
22582ac_cv_cxx_const_cast=no
22583fi
ac1cb8d3 22584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22585 ac_ext=c
22586ac_cpp='$CPP $CPPFLAGS'
22587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22589ac_compiler_gnu=$ac_cv_c_compiler_gnu
22590
22591
22592fi
22593echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22594echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22595if test "$ac_cv_cxx_const_cast" = yes; then
22596
22597cat >>confdefs.h <<\_ACEOF
22598#define HAVE_CONST_CAST
22599_ACEOF
22600
22601fi
22602
7714864e
RL
22603echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22604echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22605if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22606 echo $ECHO_N "(cached) $ECHO_C" >&6
22607else
22608
22609
22610 ac_ext=cc
22611ac_cpp='$CXXCPP $CPPFLAGS'
22612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22615
22616 cat >conftest.$ac_ext <<_ACEOF
22617/* confdefs.h. */
22618_ACEOF
22619cat confdefs.h >>conftest.$ac_ext
22620cat >>conftest.$ac_ext <<_ACEOF
22621/* end confdefs.h. */
22622#include <typeinfo>
22623class Base { public : Base () {} virtual void f () = 0;};
22624class Derived : public Base { public : Derived () {} virtual void f () {} };
22625class Unrelated { public : Unrelated () {} };
22626int g (Unrelated&) { return 0; }
22627int
22628main ()
22629{
22630
22631Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22632 ;
22633 return 0;
22634}
22635_ACEOF
22636rm -f conftest.$ac_objext
22637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22638 (eval $ac_compile) 2>conftest.er1
22639 ac_status=$?
22640 grep -v '^ *+' conftest.er1 >conftest.err
22641 rm -f conftest.er1
22642 cat conftest.err >&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); } &&
3565d135
RR
22645 { ac_try='test -z "$ac_cxx_werror_flag"
22646 || test ! -s conftest.err'
7714864e
RL
22647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648 (eval $ac_try) 2>&5
22649 ac_status=$?
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); }; } &&
22652 { ac_try='test -s conftest.$ac_objext'
22653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22654 (eval $ac_try) 2>&5
22655 ac_status=$?
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); }; }; then
22658 ac_cv_cxx_reinterpret_cast=yes
22659else
22660 echo "$as_me: failed program was:" >&5
22661sed 's/^/| /' conftest.$ac_ext >&5
22662
22663ac_cv_cxx_reinterpret_cast=no
22664fi
22665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22666 ac_ext=c
22667ac_cpp='$CPP $CPPFLAGS'
22668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22670ac_compiler_gnu=$ac_cv_c_compiler_gnu
22671
22672
22673fi
22674echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22675echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22676if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22677
22678cat >>confdefs.h <<\_ACEOF
22679#define HAVE_REINTERPRET_CAST
22680_ACEOF
22681
22682fi
22683
a848cd7e
SC
22684echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22685echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22686if test "${ac_cv_cxx_static_cast+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22688else
22689
22690
22691 ac_ext=cc
22692ac_cpp='$CXXCPP $CPPFLAGS'
22693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22696
22697 cat >conftest.$ac_ext <<_ACEOF
22698/* confdefs.h. */
22699_ACEOF
22700cat confdefs.h >>conftest.$ac_ext
22701cat >>conftest.$ac_ext <<_ACEOF
22702/* end confdefs.h. */
22703#include <typeinfo>
22704class Base { public : Base () {} virtual void f () = 0; };
22705class Derived : public Base { public : Derived () {} virtual void f () {} };
22706int g (Derived&) { return 0; }
22707int
22708main ()
22709{
22710
22711Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22712 ;
22713 return 0;
22714}
22715_ACEOF
22716rm -f conftest.$ac_objext
22717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22718 (eval $ac_compile) 2>conftest.er1
a848cd7e 22719 ac_status=$?
ac1cb8d3
VS
22720 grep -v '^ *+' conftest.er1 >conftest.err
22721 rm -f conftest.er1
22722 cat conftest.err >&5
a848cd7e
SC
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } &&
3565d135
RR
22725 { ac_try='test -z "$ac_cxx_werror_flag"
22726 || test ! -s conftest.err'
ac1cb8d3
VS
22727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728 (eval $ac_try) 2>&5
22729 ac_status=$?
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); }; } &&
22732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22735 ac_status=$?
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; }; then
22738 ac_cv_cxx_static_cast=yes
22739else
22740 echo "$as_me: failed program was:" >&5
22741sed 's/^/| /' conftest.$ac_ext >&5
22742
22743ac_cv_cxx_static_cast=no
22744fi
ac1cb8d3 22745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22746 ac_ext=c
22747ac_cpp='$CPP $CPPFLAGS'
22748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22750ac_compiler_gnu=$ac_cv_c_compiler_gnu
22751
22752
22753fi
22754echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22755echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22756if test "$ac_cv_cxx_static_cast" = yes; then
22757
22758cat >>confdefs.h <<\_ACEOF
22759#define HAVE_STATIC_CAST
22760_ACEOF
22761
22762fi
22763
22764
3c28b7cb 22765if test "x$SUNCXX" = xyes; then
c92ad099 22766 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22767fi
22768
9122d155 22769if test "x$SUNCC" = xyes; then
c92ad099 22770 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22771fi
22772
0ad5d837 22773if test "x$SGICC" = "xyes"; then
c92ad099 22774 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22775fi
22776if test "x$SGICXX" = "xyes"; then
c92ad099 22777 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22778fi
22779
2eef8513 22780if test "x$HPCC" = "xyes"; then
c92ad099 22781 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22782fi
22783if test "x$HPCXX" = "xyes"; then
c92ad099 22784 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22785fi
22786
22787if test "x$COMPAQCXX" = "xyes"; then
22788 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22789fi
22790
f56c22b4 22791if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22792 ac_ext=cc
22793ac_cpp='$CXXCPP $CPPFLAGS'
22794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22797
22798
f56c22b4
MW
22799 if test "$wxUSE_UNICODE" = "yes"; then
22800 std_string="std::wstring"
22801 char_type="wchar_t"
22802 else
22803 std_string="std::string"
22804 char_type="char"
22805 fi
22806
22807 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22808echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22809 cat >conftest.$ac_ext <<_ACEOF
22810/* confdefs.h. */
22811_ACEOF
22812cat confdefs.h >>conftest.$ac_ext
22813cat >>conftest.$ac_ext <<_ACEOF
22814/* end confdefs.h. */
22815#include <string>
a848cd7e
SC
22816int
22817main ()
22818{
f56c22b4 22819$std_string foo;
a848cd7e
SC
22820 ;
22821 return 0;
22822}
22823_ACEOF
22824rm -f conftest.$ac_objext
22825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22826 (eval $ac_compile) 2>conftest.er1
a848cd7e 22827 ac_status=$?
ac1cb8d3
VS
22828 grep -v '^ *+' conftest.er1 >conftest.err
22829 rm -f conftest.er1
22830 cat conftest.err >&5
a848cd7e
SC
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } &&
3565d135
RR
22833 { ac_try='test -z "$ac_cxx_werror_flag"
22834 || test ! -s conftest.err'
ac1cb8d3
VS
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22837 ac_status=$?
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; } &&
22840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842 (eval $ac_try) 2>&5
22843 ac_status=$?
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; }; then
22846 echo "$as_me:$LINENO: result: yes" >&5
22847echo "${ECHO_T}yes" >&6
0a08f02a
MB
22848 cat >>confdefs.h <<\_ACEOF
22849#define HAVE_STD_WSTRING 1
22850_ACEOF
22851
a848cd7e
SC
22852else
22853 echo "$as_me: failed program was:" >&5
22854sed 's/^/| /' conftest.$ac_ext >&5
22855
22856echo "$as_me:$LINENO: result: no" >&5
22857echo "${ECHO_T}no" >&6
f56c22b4
MW
22858 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22859echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22860 cat >conftest.$ac_ext <<_ACEOF
22861/* confdefs.h. */
22862_ACEOF
22863cat confdefs.h >>conftest.$ac_ext
22864cat >>conftest.$ac_ext <<_ACEOF
22865/* end confdefs.h. */
22866
22867 #ifdef HAVE_WCHAR_H
22868 # ifdef __CYGWIN__
22869 # include <stddef.h>
22870 # endif
22871 # include <wchar.h>
22872 #endif
22873 #ifdef HAVE_STDLIB_H
22874 # include <stdlib.h>
22875 #endif
22876 #include <stdio.h>
22877 #include <string>
22878
22879int
22880main ()
22881{
f56c22b4
MW
22882std::basic_string<$char_type> foo;
22883 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22884 ;
22885 return 0;
22886}
22887_ACEOF
22888rm -f conftest.$ac_objext
22889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22890 (eval $ac_compile) 2>conftest.er1
22891 ac_status=$?
22892 grep -v '^ *+' conftest.er1 >conftest.err
22893 rm -f conftest.er1
22894 cat conftest.err >&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } &&
3565d135
RR
22897 { ac_try='test -z "$ac_cxx_werror_flag"
22898 || test ! -s conftest.err'
0a08f02a
MB
22899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900 (eval $ac_try) 2>&5
22901 ac_status=$?
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }; } &&
22904 { ac_try='test -s conftest.$ac_objext'
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; }; then
22910 echo "$as_me:$LINENO: result: yes" >&5
22911echo "${ECHO_T}yes" >&6
22912else
22913 echo "$as_me: failed program was:" >&5
22914sed 's/^/| /' conftest.$ac_ext >&5
22915
22916echo "$as_me:$LINENO: result: no" >&5
22917echo "${ECHO_T}no" >&6
f56c22b4 22918 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22919 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22920echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22921 { (exit 1); exit 1; }; }
22922 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22923 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22924echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22925 { (exit 1); exit 1; }; }
f56c22b4
MW
22926 else
22927 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22928echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22929 wxUSE_STD_STRING=no
22930 fi
22931
0a08f02a 22932
a848cd7e 22933fi
ac1cb8d3 22934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22935
0a08f02a
MB
22936fi
22937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22938
22939 ac_ext=c
22940ac_cpp='$CPP $CPPFLAGS'
22941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22943ac_compiler_gnu=$ac_cv_c_compiler_gnu
22944
22945fi
22946
22947if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22948 ac_ext=cc
22949ac_cpp='$CXXCPP $CPPFLAGS'
22950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22953
22954
22955 echo "$as_me:$LINENO: checking for std::istream" >&5
22956echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22957if test "${ac_cv_type_std__istream+set}" = set; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22959else
22960 cat >conftest.$ac_ext <<_ACEOF
22961/* confdefs.h. */
22962_ACEOF
22963cat confdefs.h >>conftest.$ac_ext
22964cat >>conftest.$ac_ext <<_ACEOF
22965/* end confdefs.h. */
22966#include <iostream>
22967
22968int
22969main ()
22970{
22971if ((std::istream *) 0)
22972 return 0;
22973if (sizeof (std::istream))
22974 return 0;
22975 ;
22976 return 0;
22977}
22978_ACEOF
22979rm -f conftest.$ac_objext
22980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22981 (eval $ac_compile) 2>conftest.er1
22982 ac_status=$?
22983 grep -v '^ *+' conftest.er1 >conftest.err
22984 rm -f conftest.er1
22985 cat conftest.err >&5
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); } &&
3565d135
RR
22988 { ac_try='test -z "$ac_cxx_werror_flag"
22989 || test ! -s conftest.err'
f56c22b4
MW
22990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22991 (eval $ac_try) 2>&5
22992 ac_status=$?
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); }; } &&
22995 { ac_try='test -s conftest.$ac_objext'
22996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997 (eval $ac_try) 2>&5
22998 ac_status=$?
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; }; then
23001 ac_cv_type_std__istream=yes
23002else
23003 echo "$as_me: failed program was:" >&5
23004sed 's/^/| /' conftest.$ac_ext >&5
23005
23006ac_cv_type_std__istream=no
23007fi
23008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23009fi
23010echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23011echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23012if test $ac_cv_type_std__istream = yes; then
23013
23014cat >>confdefs.h <<_ACEOF
23015#define HAVE_STD__ISTREAM 1
23016_ACEOF
23017
23018
23019else
23020 wxUSE_STD_IOSTREAM=no
23021fi
23022echo "$as_me:$LINENO: checking for std::ostream" >&5
23023echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23024if test "${ac_cv_type_std__ostream+set}" = set; then
23025 echo $ECHO_N "(cached) $ECHO_C" >&6
23026else
23027 cat >conftest.$ac_ext <<_ACEOF
23028/* confdefs.h. */
23029_ACEOF
23030cat confdefs.h >>conftest.$ac_ext
23031cat >>conftest.$ac_ext <<_ACEOF
23032/* end confdefs.h. */
23033#include <iostream>
23034
23035int
23036main ()
23037{
23038if ((std::ostream *) 0)
23039 return 0;
23040if (sizeof (std::ostream))
23041 return 0;
23042 ;
23043 return 0;
23044}
23045_ACEOF
23046rm -f conftest.$ac_objext
23047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23048 (eval $ac_compile) 2>conftest.er1
23049 ac_status=$?
23050 grep -v '^ *+' conftest.er1 >conftest.err
23051 rm -f conftest.er1
23052 cat conftest.err >&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } &&
3565d135
RR
23055 { ac_try='test -z "$ac_cxx_werror_flag"
23056 || test ! -s conftest.err'
f56c22b4
MW
23057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23058 (eval $ac_try) 2>&5
23059 ac_status=$?
23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061 (exit $ac_status); }; } &&
23062 { ac_try='test -s conftest.$ac_objext'
23063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064 (eval $ac_try) 2>&5
23065 ac_status=$?
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); }; }; then
23068 ac_cv_type_std__ostream=yes
23069else
23070 echo "$as_me: failed program was:" >&5
23071sed 's/^/| /' conftest.$ac_ext >&5
23072
23073ac_cv_type_std__ostream=no
23074fi
23075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23076fi
23077echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23078echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23079if test $ac_cv_type_std__ostream = yes; then
23080
23081cat >>confdefs.h <<_ACEOF
23082#define HAVE_STD__OSTREAM 1
23083_ACEOF
23084
23085
23086else
23087 wxUSE_STD_IOSTREAM=no
23088fi
23089
23090
23091 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23092 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23093 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23094echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23095 { (exit 1); exit 1; }; }
23096 else
23097 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23098echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23099 fi
f56c22b4
MW
23100 fi
23101
23102 ac_ext=c
23103ac_cpp='$CPP $CPPFLAGS'
23104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
23106ac_compiler_gnu=$ac_cv_c_compiler_gnu
23107
23108fi
23109
23110if test "$wxUSE_STL" = "yes"; then
23111 ac_ext=cc
23112ac_cpp='$CXXCPP $CPPFLAGS'
23113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23116
23117
23118 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23119echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23120 cat >conftest.$ac_ext <<_ACEOF
23121/* confdefs.h. */
23122_ACEOF
23123cat confdefs.h >>conftest.$ac_ext
23124cat >>conftest.$ac_ext <<_ACEOF
23125/* end confdefs.h. */
23126#include <string>
0a08f02a
MB
23127 #include <functional>
23128 #include <algorithm>
23129 #include <vector>
23130 #include <list>
a848cd7e
SC
23131int
23132main ()
23133{
0a08f02a
MB
23134std::vector<int> moo;
23135 std::list<int> foo;
23136 std::vector<int>::iterator it =
23137 std::find_if(moo.begin(), moo.end(),
23138 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23139 ;
23140 return 0;
23141}
23142_ACEOF
23143rm -f conftest.$ac_objext
23144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23145 (eval $ac_compile) 2>conftest.er1
a848cd7e 23146 ac_status=$?
ac1cb8d3
VS
23147 grep -v '^ *+' conftest.er1 >conftest.err
23148 rm -f conftest.er1
23149 cat conftest.err >&5
a848cd7e
SC
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } &&
3565d135
RR
23152 { ac_try='test -z "$ac_cxx_werror_flag"
23153 || test ! -s conftest.err'
ac1cb8d3
VS
23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23156 ac_status=$?
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; } &&
23159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; }; then
23165 echo "$as_me:$LINENO: result: yes" >&5
23166echo "${ECHO_T}yes" >&6
a848cd7e
SC
23167else
23168 echo "$as_me: failed program was:" >&5
23169sed 's/^/| /' conftest.$ac_ext >&5
23170
23171echo "$as_me:$LINENO: result: no" >&5
23172echo "${ECHO_T}no" >&6
0a08f02a
MB
23173 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23174echo "$as_me: error: Basic STL functionality missing" >&2;}
23175 { (exit 1); exit 1; }; }
a848cd7e 23176fi
ac1cb8d3 23177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23178
23179 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23180echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23181 cat >conftest.$ac_ext <<_ACEOF
23182/* confdefs.h. */
23183_ACEOF
23184cat confdefs.h >>conftest.$ac_ext
23185cat >>conftest.$ac_ext <<_ACEOF
23186/* end confdefs.h. */
23187#include <string>
23188int
23189main ()
23190{
23191std::string foo, bar;
23192 foo.compare(bar);
23193 foo.compare(1, 1, bar);
23194 foo.compare(1, 1, bar, 1, 1);
23195 foo.compare("");
23196 foo.compare(1, 1, "");
23197 foo.compare(1, 1, "", 2);
23198 ;
23199 return 0;
23200}
23201_ACEOF
23202rm -f conftest.$ac_objext
23203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23204 (eval $ac_compile) 2>conftest.er1
a848cd7e 23205 ac_status=$?
ac1cb8d3
VS
23206 grep -v '^ *+' conftest.er1 >conftest.err
23207 rm -f conftest.er1
23208 cat conftest.err >&5
a848cd7e
SC
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } &&
3565d135
RR
23211 { ac_try='test -z "$ac_cxx_werror_flag"
23212 || test ! -s conftest.err'
ac1cb8d3
VS
23213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23214 (eval $ac_try) 2>&5
23215 ac_status=$?
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); }; } &&
23218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23221 ac_status=$?
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; }; then
23224 echo "$as_me:$LINENO: result: yes" >&5
23225echo "${ECHO_T}yes" >&6
23226 cat >>confdefs.h <<\_ACEOF
23227#define HAVE_STD_STRING_COMPARE 1
23228_ACEOF
23229
23230else
23231 echo "$as_me: failed program was:" >&5
23232sed 's/^/| /' conftest.$ac_ext >&5
23233
23234echo "$as_me:$LINENO: result: no" >&5
23235echo "${ECHO_T}no" >&6
23236fi
ac1cb8d3 23237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23238
23239 if test "${ac_cv_header_hash_map+set}" = set; then
23240 echo "$as_me:$LINENO: checking for hash_map" >&5
23241echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23242if test "${ac_cv_header_hash_map+set}" = set; then
23243 echo $ECHO_N "(cached) $ECHO_C" >&6
23244fi
23245echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23246echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23247else
23248 # Is the header compilable?
23249echo "$as_me:$LINENO: checking hash_map usability" >&5
23250echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23251cat >conftest.$ac_ext <<_ACEOF
23252/* confdefs.h. */
23253_ACEOF
23254cat confdefs.h >>conftest.$ac_ext
23255cat >>conftest.$ac_ext <<_ACEOF
23256/* end confdefs.h. */
23257$ac_includes_default
23258#include <hash_map>
23259_ACEOF
23260rm -f conftest.$ac_objext
23261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23262 (eval $ac_compile) 2>conftest.er1
bdcade0a 23263 ac_status=$?
ac1cb8d3
VS
23264 grep -v '^ *+' conftest.er1 >conftest.err
23265 rm -f conftest.er1
23266 cat conftest.err >&5
bdcade0a
MB
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } &&
3565d135
RR
23269 { ac_try='test -z "$ac_cxx_werror_flag"
23270 || test ! -s conftest.err'
ac1cb8d3
VS
23271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272 (eval $ac_try) 2>&5
23273 ac_status=$?
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); }; } &&
23276 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278 (eval $ac_try) 2>&5
23279 ac_status=$?
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); }; }; then
23282 ac_header_compiler=yes
23283else
23284 echo "$as_me: failed program was:" >&5
23285sed 's/^/| /' conftest.$ac_ext >&5
23286
23287ac_header_compiler=no
23288fi
ac1cb8d3 23289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23290echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23291echo "${ECHO_T}$ac_header_compiler" >&6
23292
23293# Is the header present?
23294echo "$as_me:$LINENO: checking hash_map presence" >&5
23295echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23296cat >conftest.$ac_ext <<_ACEOF
23297/* confdefs.h. */
23298_ACEOF
23299cat confdefs.h >>conftest.$ac_ext
23300cat >>conftest.$ac_ext <<_ACEOF
23301/* end confdefs.h. */
23302#include <hash_map>
23303_ACEOF
23304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23306 ac_status=$?
23307 grep -v '^ *+' conftest.er1 >conftest.err
23308 rm -f conftest.er1
23309 cat conftest.err >&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); } >/dev/null; then
23312 if test -s conftest.err; then
23313 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23314 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23315 else
23316 ac_cpp_err=
23317 fi
23318else
23319 ac_cpp_err=yes
23320fi
23321if test -z "$ac_cpp_err"; then
23322 ac_header_preproc=yes
23323else
23324 echo "$as_me: failed program was:" >&5
23325sed 's/^/| /' conftest.$ac_ext >&5
23326
23327 ac_header_preproc=no
23328fi
23329rm -f conftest.err conftest.$ac_ext
23330echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23331echo "${ECHO_T}$ac_header_preproc" >&6
23332
23333# So? What about this header?
ac1cb8d3
VS
23334case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23335 yes:no: )
bdcade0a
MB
23336 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23337echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23338 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23339echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23340 ac_header_preproc=yes
bdcade0a 23341 ;;
ac1cb8d3 23342 no:yes:* )
bdcade0a
MB
23343 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23344echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23345 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23346echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23347 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23348echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23349 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23350echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23351 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23352echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23353 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23354echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23355 (
23356 cat <<\_ASBOX
ac1cb8d3
VS
23357## ----------------------------------------- ##
23358## Report this to wx-dev@lists.wxwidgets.org ##
23359## ----------------------------------------- ##
bdcade0a
MB
23360_ASBOX
23361 ) |
23362 sed "s/^/$as_me: WARNING: /" >&2
23363 ;;
23364esac
23365echo "$as_me:$LINENO: checking for hash_map" >&5
23366echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23367if test "${ac_cv_header_hash_map+set}" = set; then
23368 echo $ECHO_N "(cached) $ECHO_C" >&6
23369else
23370 ac_cv_header_hash_map=$ac_header_preproc
23371fi
23372echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23373echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23374
23375fi
23376if test $ac_cv_header_hash_map = yes; then
23377 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23378echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23379 cat >conftest.$ac_ext <<_ACEOF
23380/* confdefs.h. */
23381_ACEOF
23382cat confdefs.h >>conftest.$ac_ext
23383cat >>conftest.$ac_ext <<_ACEOF
23384/* end confdefs.h. */
23385#include <hash_map>
23386 #include <hash_set>
23387int
23388main ()
23389{
23390std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23391 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23392 ;
23393 return 0;
23394}
23395_ACEOF
23396rm -f conftest.$ac_objext
23397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23398 (eval $ac_compile) 2>conftest.er1
bdcade0a 23399 ac_status=$?
ac1cb8d3
VS
23400 grep -v '^ *+' conftest.er1 >conftest.err
23401 rm -f conftest.er1
23402 cat conftest.err >&5
bdcade0a
MB
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); } &&
3565d135
RR
23405 { ac_try='test -z "$ac_cxx_werror_flag"
23406 || test ! -s conftest.err'
ac1cb8d3
VS
23407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408 (eval $ac_try) 2>&5
23409 ac_status=$?
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); }; } &&
23412 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414 (eval $ac_try) 2>&5
23415 ac_status=$?
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); }; }; then
23418 echo "$as_me:$LINENO: result: yes" >&5
23419echo "${ECHO_T}yes" >&6
23420 cat >>confdefs.h <<\_ACEOF
23421#define HAVE_HASH_MAP 1
23422_ACEOF
23423
23424 cat >>confdefs.h <<\_ACEOF
23425#define HAVE_STD_HASH_MAP 1
23426_ACEOF
23427
23428else
23429 echo "$as_me: failed program was:" >&5
23430sed 's/^/| /' conftest.$ac_ext >&5
23431
23432echo "$as_me:$LINENO: result: no" >&5
23433echo "${ECHO_T}no" >&6
23434fi
ac1cb8d3 23435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23436
23437fi
23438
23439
23440
23441 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23442 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23443echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23444if test "${ac_cv_header_ext_hash_map+set}" = set; then
23445 echo $ECHO_N "(cached) $ECHO_C" >&6
23446fi
23447echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23448echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23449else
23450 # Is the header compilable?
23451echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23452echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23453cat >conftest.$ac_ext <<_ACEOF
23454/* confdefs.h. */
23455_ACEOF
23456cat confdefs.h >>conftest.$ac_ext
23457cat >>conftest.$ac_ext <<_ACEOF
23458/* end confdefs.h. */
23459$ac_includes_default
23460#include <ext/hash_map>
23461_ACEOF
23462rm -f conftest.$ac_objext
23463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23464 (eval $ac_compile) 2>conftest.er1
bdcade0a 23465 ac_status=$?
ac1cb8d3
VS
23466 grep -v '^ *+' conftest.er1 >conftest.err
23467 rm -f conftest.er1
23468 cat conftest.err >&5
bdcade0a
MB
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); } &&
3565d135
RR
23471 { ac_try='test -z "$ac_cxx_werror_flag"
23472 || test ! -s conftest.err'
ac1cb8d3
VS
23473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23474 (eval $ac_try) 2>&5
23475 ac_status=$?
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); }; } &&
23478 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23480 (eval $ac_try) 2>&5
23481 ac_status=$?
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); }; }; then
23484 ac_header_compiler=yes
23485else
23486 echo "$as_me: failed program was:" >&5
23487sed 's/^/| /' conftest.$ac_ext >&5
23488
23489ac_header_compiler=no
23490fi
ac1cb8d3 23491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23492echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23493echo "${ECHO_T}$ac_header_compiler" >&6
23494
23495# Is the header present?
23496echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23497echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23498cat >conftest.$ac_ext <<_ACEOF
23499/* confdefs.h. */
23500_ACEOF
23501cat confdefs.h >>conftest.$ac_ext
23502cat >>conftest.$ac_ext <<_ACEOF
23503/* end confdefs.h. */
23504#include <ext/hash_map>
23505_ACEOF
23506if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23508 ac_status=$?
23509 grep -v '^ *+' conftest.er1 >conftest.err
23510 rm -f conftest.er1
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } >/dev/null; then
23514 if test -s conftest.err; then
23515 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23516 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23517 else
23518 ac_cpp_err=
23519 fi
23520else
23521 ac_cpp_err=yes
23522fi
23523if test -z "$ac_cpp_err"; then
23524 ac_header_preproc=yes
23525else
23526 echo "$as_me: failed program was:" >&5
23527sed 's/^/| /' conftest.$ac_ext >&5
23528
23529 ac_header_preproc=no
23530fi
23531rm -f conftest.err conftest.$ac_ext
23532echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23533echo "${ECHO_T}$ac_header_preproc" >&6
23534
23535# So? What about this header?
ac1cb8d3
VS
23536case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23537 yes:no: )
bdcade0a
MB
23538 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23539echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23540 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23541echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23542 ac_header_preproc=yes
bdcade0a 23543 ;;
ac1cb8d3 23544 no:yes:* )
bdcade0a
MB
23545 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23546echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23547 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23548echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23549 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23550echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23551 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23552echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23553 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23554echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23555 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23556echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23557 (
23558 cat <<\_ASBOX
ac1cb8d3
VS
23559## ----------------------------------------- ##
23560## Report this to wx-dev@lists.wxwidgets.org ##
23561## ----------------------------------------- ##
bdcade0a
MB
23562_ASBOX
23563 ) |
23564 sed "s/^/$as_me: WARNING: /" >&2
23565 ;;
23566esac
23567echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23568echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23569if test "${ac_cv_header_ext_hash_map+set}" = set; then
23570 echo $ECHO_N "(cached) $ECHO_C" >&6
23571else
23572 ac_cv_header_ext_hash_map=$ac_header_preproc
23573fi
23574echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23575echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23576
23577fi
23578if test $ac_cv_header_ext_hash_map = yes; then
23579 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23580echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23581 cat >conftest.$ac_ext <<_ACEOF
23582/* confdefs.h. */
23583_ACEOF
23584cat confdefs.h >>conftest.$ac_ext
23585cat >>conftest.$ac_ext <<_ACEOF
23586/* end confdefs.h. */
23587#include <ext/hash_map>
23588 #include <ext/hash_set>
23589int
23590main ()
23591{
23592__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23593 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23594 ;
23595 return 0;
23596}
23597_ACEOF
23598rm -f conftest.$ac_objext
23599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23600 (eval $ac_compile) 2>conftest.er1
bdcade0a 23601 ac_status=$?
ac1cb8d3
VS
23602 grep -v '^ *+' conftest.er1 >conftest.err
23603 rm -f conftest.er1
23604 cat conftest.err >&5
bdcade0a
MB
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } &&
3565d135
RR
23607 { ac_try='test -z "$ac_cxx_werror_flag"
23608 || test ! -s conftest.err'
ac1cb8d3
VS
23609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610 (eval $ac_try) 2>&5
23611 ac_status=$?
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); }; } &&
23614 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); }; }; then
23620 echo "$as_me:$LINENO: result: yes" >&5
23621echo "${ECHO_T}yes" >&6
23622 cat >>confdefs.h <<\_ACEOF
23623#define HAVE_EXT_HASH_MAP 1
23624_ACEOF
23625
23626 cat >>confdefs.h <<\_ACEOF
23627#define HAVE_GNU_CXX_HASH_MAP 1
23628_ACEOF
23629
23630else
23631 echo "$as_me: failed program was:" >&5
23632sed 's/^/| /' conftest.$ac_ext >&5
23633
23634echo "$as_me:$LINENO: result: no" >&5
23635echo "${ECHO_T}no" >&6
23636fi
ac1cb8d3 23637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23638
23639fi
23640
23641
a848cd7e
SC
23642
23643 ac_ext=c
23644ac_cpp='$CPP $CPPFLAGS'
23645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23647ac_compiler_gnu=$ac_cv_c_compiler_gnu
23648
23649fi
23650
23651
23652SEARCH_INCLUDE="\
23653 /usr/local/include \
23654 \
23655 /usr/Motif-2.1/include \
23656 /usr/Motif-1.2/include \
23657 /usr/include/Motif1.2 \
a848cd7e
SC
23658 \
23659 /usr/dt/include \
23660 /usr/openwin/include \
23661 \
23662 /usr/include/Xm \
23663 \
23664 /usr/X11R6/include \
23665 /usr/X11R6.4/include \
23666 /usr/X11R5/include \
23667 /usr/X11R4/include \
23668 \
23669 /usr/include/X11R6 \
23670 /usr/include/X11R5 \
23671 /usr/include/X11R4 \
23672 \
23673 /usr/local/X11R6/include \
23674 /usr/local/X11R5/include \
23675 /usr/local/X11R4/include \
23676 \
23677 /usr/local/include/X11R6 \
23678 /usr/local/include/X11R5 \
23679 /usr/local/include/X11R4 \
23680 \
23681 /usr/X11/include \
23682 /usr/include/X11 \
23683 /usr/local/X11/include \
23684 /usr/local/include/X11 \
23685 \
a848cd7e 23686 /usr/XFree86/include/X11 \
e051b34e
MW
23687 /usr/pkg/include \
23688 \
a848cd7e
SC
23689 /usr/openwin/share/include"
23690
6f9cf1e6 23691echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23692echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23693
23694case "${host}" in
23695 *-*-irix6* )
23696 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23697 echo $ECHO_N "(cached) $ECHO_C" >&6
23698else
23699
c687b303
VZ
23700 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23701 for e in a so sl dylib dll.a; do
23702 libc="$d/libc.$e"
23703 if test -f $libc; then
23704 save_LIBS="$LIBS"
23705 LIBS="$libc"
23706 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23707int main() { return 0; }
23708_ACEOF
23709rm -f conftest.$ac_objext conftest$ac_exeext
23710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23711 (eval $ac_link) 2>conftest.er1
23712 ac_status=$?
23713 grep -v '^ *+' conftest.er1 >conftest.err
23714 rm -f conftest.er1
23715 cat conftest.err >&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); } &&
3565d135
RR
23718 { ac_try='test -z "$ac_c_werror_flag"
23719 || test ! -s conftest.err'
0ad5d837
VZ
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; } &&
23725 { ac_try='test -s conftest$ac_exeext'
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23728 ac_status=$?
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; }; then
23731 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23732else
23733 echo "$as_me: failed program was:" >&5
23734sed 's/^/| /' conftest.$ac_ext >&5
23735
23736fi
23737rm -f conftest.err conftest.$ac_objext \
23738 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23739 LIBS="$save_LIBS"
23740 if test "x$wx_cv_std_libpath" != "x"; then
23741 break 2
23742 fi
23743 fi
23744 done
23745 done
23746 if test "x$wx_cv_std_libpath" = "x"; then
23747 wx_cv_std_libpath="lib"
0ad5d837 23748 fi
0ad5d837
VZ
23749
23750
23751fi
6f9cf1e6
MW
23752
23753 ;;
23754
23755 *-*-solaris2* )
23756 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23757 wx_cv_std_libpath="lib/64"
23758 else
23759 wx_cv_std_libpath="lib"
23760 fi
23761 ;;
23762
23763 *-*-linux* )
23764 if test "$ac_cv_sizeof_void_p" = 8 -a \
23765 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23766 wx_cv_std_libpath="lib64"
23767 else
23768 wx_cv_std_libpath="lib"
23769 fi
c687b303
VZ
23770 ;;
23771
23772 *)
23773 wx_cv_std_libpath="lib";
23774 ;;
23775esac
0ad5d837 23776
6f9cf1e6
MW
23777echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23778echo "${ECHO_T}$wx_cv_std_libpath" >&6
23779
23780SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23781
3eca31dc
MW
23782if test "$build" != "$host" -a "$GCC" = yes; then
23783 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23784 cross_root=`dirname $cross_root`
23785 cross_root=`dirname $cross_root`
23786
23787 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23788 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23789 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23790
23791 if test -z "$PKG_CONFIG_PATH"; then
23792 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23793 export PKG_CONFIG_PATH
23794 fi
23795
23796 if test -z "$x_includes" -o "$x_includes" = NONE; then
23797
23798ac_find_includes=
23799for ac_dir in $SEARCH_INCLUDE /usr/include;
23800 do
23801 if test -f "$ac_dir/X11/Intrinsic.h"; then
23802 ac_find_includes=$ac_dir
23803 break
23804 fi
23805 done
23806
23807 x_includes=$ac_find_includes
23808 fi
23809 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23810
0ad5d837
VZ
23811 ac_find_libraries=
23812 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23813 do
23814 for ac_extension in a so sl dylib dll.a; do
23815 if test -f "$ac_dir/libXt.$ac_extension"; then
23816 ac_find_libraries=$ac_dir
23817 break 2
23818 fi
23819 done
23820 done
23821
23822 x_libraries=$ac_find_libraries
23823 fi
23824 fi
23825fi
23826
a848cd7e
SC
23827
23828cat >confcache <<\_ACEOF
23829# This file is a shell script that caches the results of configure
23830# tests run on this system so they can be shared between configure
23831# scripts and configure runs, see configure's option --config-cache.
23832# It is not useful on other systems. If it contains results you don't
23833# want to keep, you may remove or edit it.
23834#
23835# config.status only pays attention to the cache file if you give it
23836# the --recheck option to rerun configure.
23837#
23838# `ac_cv_env_foo' variables (set or unset) will be overridden when
23839# loading this file, other *unset* `ac_cv_foo' will be assigned the
23840# following values.
23841
23842_ACEOF
23843
23844# The following way of writing the cache mishandles newlines in values,
23845# but we know of no workaround that is simple, portable, and efficient.
23846# So, don't put newlines in cache variables' values.
23847# Ultrix sh set writes to stderr and can't be redirected directly,
23848# and sets the high bit in the cache file unless we assign to the vars.
23849{
23850 (set) 2>&1 |
23851 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23852 *ac_space=\ *)
23853 # `set' does not quote correctly, so add quotes (double-quote
23854 # substitution turns \\\\ into \\, and sed turns \\ into \).
23855 sed -n \
ac1cb8d3
VS
23856 "s/'/'\\\\''/g;
23857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23858 ;;
23859 *)
23860 # `set' quotes correctly as required by POSIX, so do not add quotes.
23861 sed -n \
ac1cb8d3 23862 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23863 ;;
23864 esac;
23865} |
23866 sed '
23867 t clear
23868 : clear
23869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23870 t end
23871 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23872 : end' >>confcache
23873if diff $cache_file confcache >/dev/null 2>&1; then :; else
23874 if test -w $cache_file; then
23875 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23876 cat confcache >$cache_file
23877 else
23878 echo "not updating unwritable cache $cache_file"
23879 fi
23880fi
23881rm -f confcache
23882
23883if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23884 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23885echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23886if test "${wx_cv_lib_glibc21+set}" = set; then
23887 echo $ECHO_N "(cached) $ECHO_C" >&6
23888else
23889
23890 cat >conftest.$ac_ext <<_ACEOF
23891/* confdefs.h. */
23892_ACEOF
23893cat confdefs.h >>conftest.$ac_ext
23894cat >>conftest.$ac_ext <<_ACEOF
23895/* end confdefs.h. */
23896#include <features.h>
23897int
23898main ()
23899{
23900
23901 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23902 not glibc 2.1
a848cd7e
SC
23903 #endif
23904
23905 ;
23906 return 0;
23907}
23908_ACEOF
23909rm -f conftest.$ac_objext
23910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23911 (eval $ac_compile) 2>conftest.er1
a848cd7e 23912 ac_status=$?
ac1cb8d3
VS
23913 grep -v '^ *+' conftest.er1 >conftest.err
23914 rm -f conftest.er1
23915 cat conftest.err >&5
a848cd7e
SC
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); } &&
3565d135
RR
23918 { ac_try='test -z "$ac_c_werror_flag"
23919 || test ! -s conftest.err'
ac1cb8d3
VS
23920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921 (eval $ac_try) 2>&5
23922 ac_status=$?
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); }; } &&
23925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927 (eval $ac_try) 2>&5
23928 ac_status=$?
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; }; then
23931
23932 wx_cv_lib_glibc21=yes
23933
23934else
23935 echo "$as_me: failed program was:" >&5
23936sed 's/^/| /' conftest.$ac_ext >&5
23937
23938
23939 wx_cv_lib_glibc21=no
23940
23941
23942fi
ac1cb8d3 23943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23944
23945fi
23946echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23947echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23948 if test "$wx_cv_lib_glibc21" = "yes"; then
23949 cat >>confdefs.h <<\_ACEOF
23950#define wxHAVE_GLIBC2 1
23951_ACEOF
23952
23953 fi
23954fi
23955
23956if test "x$wx_cv_lib_glibc21" = "xyes"; then
23957 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23958 cat >>confdefs.h <<\_ACEOF
23959#define _GNU_SOURCE 1
23960_ACEOF
23961
23962 fi
23963fi
23964
23965
23966
23967if test "$wxUSE_REGEX" != "no"; then
23968 cat >>confdefs.h <<\_ACEOF
23969#define wxUSE_REGEX 1
23970_ACEOF
23971
23972
23973 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23974 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23975echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23976 wxUSE_REGEX=builtin
23977 fi
23978
23979 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23980 if test "${ac_cv_header_regex_h+set}" = set; then
23981 echo "$as_me:$LINENO: checking for regex.h" >&5
23982echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23983if test "${ac_cv_header_regex_h+set}" = set; then
23984 echo $ECHO_N "(cached) $ECHO_C" >&6
23985fi
23986echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23987echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23988else
23989 # Is the header compilable?
23990echo "$as_me:$LINENO: checking regex.h usability" >&5
23991echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23992cat >conftest.$ac_ext <<_ACEOF
23993/* confdefs.h. */
23994_ACEOF
23995cat confdefs.h >>conftest.$ac_ext
23996cat >>conftest.$ac_ext <<_ACEOF
23997/* end confdefs.h. */
23998$ac_includes_default
23999#include <regex.h>
24000_ACEOF
24001rm -f conftest.$ac_objext
24002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24003 (eval $ac_compile) 2>conftest.er1
a848cd7e 24004 ac_status=$?
ac1cb8d3
VS
24005 grep -v '^ *+' conftest.er1 >conftest.err
24006 rm -f conftest.er1
24007 cat conftest.err >&5
a848cd7e
SC
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); } &&
3565d135
RR
24010 { ac_try='test -z "$ac_c_werror_flag"
24011 || test ! -s conftest.err'
ac1cb8d3
VS
24012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24013 (eval $ac_try) 2>&5
24014 ac_status=$?
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); }; } &&
24017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24020 ac_status=$?
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; }; then
24023 ac_header_compiler=yes
24024else
24025 echo "$as_me: failed program was:" >&5
24026sed 's/^/| /' conftest.$ac_ext >&5
24027
24028ac_header_compiler=no
24029fi
ac1cb8d3 24030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24032echo "${ECHO_T}$ac_header_compiler" >&6
24033
24034# Is the header present?
24035echo "$as_me:$LINENO: checking regex.h presence" >&5
24036echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24037cat >conftest.$ac_ext <<_ACEOF
24038/* confdefs.h. */
24039_ACEOF
24040cat confdefs.h >>conftest.$ac_ext
24041cat >>conftest.$ac_ext <<_ACEOF
24042/* end confdefs.h. */
24043#include <regex.h>
24044_ACEOF
24045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24047 ac_status=$?
24048 grep -v '^ *+' conftest.er1 >conftest.err
24049 rm -f conftest.er1
24050 cat conftest.err >&5
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } >/dev/null; then
24053 if test -s conftest.err; then
24054 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24056 else
24057 ac_cpp_err=
24058 fi
24059else
24060 ac_cpp_err=yes
24061fi
24062if test -z "$ac_cpp_err"; then
24063 ac_header_preproc=yes
24064else
24065 echo "$as_me: failed program was:" >&5
24066sed 's/^/| /' conftest.$ac_ext >&5
24067
24068 ac_header_preproc=no
24069fi
24070rm -f conftest.err conftest.$ac_ext
24071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24072echo "${ECHO_T}$ac_header_preproc" >&6
24073
24074# So? What about this header?
ac1cb8d3
VS
24075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24076 yes:no: )
a848cd7e
SC
24077 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24078echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24079 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24080echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24081 ac_header_preproc=yes
a848cd7e 24082 ;;
ac1cb8d3 24083 no:yes:* )
a848cd7e
SC
24084 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24085echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24086 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24087echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24088 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24089echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24090 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24091echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24092 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24093echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24094 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24095echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24096 (
24097 cat <<\_ASBOX
ac1cb8d3
VS
24098## ----------------------------------------- ##
24099## Report this to wx-dev@lists.wxwidgets.org ##
24100## ----------------------------------------- ##
a848cd7e
SC
24101_ASBOX
24102 ) |
24103 sed "s/^/$as_me: WARNING: /" >&2
24104 ;;
24105esac
24106echo "$as_me:$LINENO: checking for regex.h" >&5
24107echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24108if test "${ac_cv_header_regex_h+set}" = set; then
24109 echo $ECHO_N "(cached) $ECHO_C" >&6
24110else
24111 ac_cv_header_regex_h=$ac_header_preproc
24112fi
24113echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24114echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24115
24116fi
24117if test $ac_cv_header_regex_h = yes; then
24118
ab0f0edd
MW
24119
24120for ac_func in regcomp re_search
a848cd7e
SC
24121do
24122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24123echo "$as_me:$LINENO: checking for $ac_func" >&5
24124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24125if eval "test \"\${$as_ac_var+set}\" = set"; then
24126 echo $ECHO_N "(cached) $ECHO_C" >&6
24127else
24128 cat >conftest.$ac_ext <<_ACEOF
24129/* confdefs.h. */
24130_ACEOF
24131cat confdefs.h >>conftest.$ac_ext
24132cat >>conftest.$ac_ext <<_ACEOF
24133/* end confdefs.h. */
ac1cb8d3
VS
24134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24136#define $ac_func innocuous_$ac_func
24137
a848cd7e
SC
24138/* System header to define __stub macros and hopefully few prototypes,
24139 which can conflict with char $ac_func (); below.
24140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24141 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24142
a848cd7e
SC
24143#ifdef __STDC__
24144# include <limits.h>
24145#else
24146# include <assert.h>
24147#endif
ac1cb8d3
VS
24148
24149#undef $ac_func
24150
a848cd7e
SC
24151/* Override any gcc2 internal prototype to avoid an error. */
24152#ifdef __cplusplus
24153extern "C"
24154{
24155#endif
24156/* We use char because int might match the return type of a gcc2
24157 builtin and then its argument prototype would still apply. */
24158char $ac_func ();
24159/* The GNU C library defines this for functions which it implements
24160 to always fail with ENOSYS. Some functions are actually named
24161 something starting with __ and the normal name is an alias. */
24162#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24163choke me
24164#else
24165char (*f) () = $ac_func;
24166#endif
24167#ifdef __cplusplus
24168}
24169#endif
24170
24171int
24172main ()
24173{
24174return f != $ac_func;
24175 ;
24176 return 0;
24177}
24178_ACEOF
24179rm -f conftest.$ac_objext conftest$ac_exeext
24180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24181 (eval $ac_link) 2>conftest.er1
a848cd7e 24182 ac_status=$?
ac1cb8d3
VS
24183 grep -v '^ *+' conftest.er1 >conftest.err
24184 rm -f conftest.er1
24185 cat conftest.err >&5
a848cd7e
SC
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); } &&
3565d135
RR
24188 { ac_try='test -z "$ac_c_werror_flag"
24189 || test ! -s conftest.err'
ac1cb8d3
VS
24190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191 (eval $ac_try) 2>&5
24192 ac_status=$?
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); }; } &&
24195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197 (eval $ac_try) 2>&5
24198 ac_status=$?
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; }; then
24201 eval "$as_ac_var=yes"
24202else
24203 echo "$as_me: failed program was:" >&5
24204sed 's/^/| /' conftest.$ac_ext >&5
24205
24206eval "$as_ac_var=no"
24207fi
ac1cb8d3
VS
24208rm -f conftest.err conftest.$ac_objext \
24209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24210fi
24211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24213if test `eval echo '${'$as_ac_var'}'` = yes; then
24214 cat >>confdefs.h <<_ACEOF
24215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24216_ACEOF
24217
24218fi
24219done
24220
24221fi
24222
24223
24224
24225 if test "x$ac_cv_func_regcomp" != "xyes"; then
24226 if test "$wxUSE_REGEX" = "sys" ; then
24227 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24228echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24229 { (exit 1); exit 1; }; }
24230 else
24231 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24232echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24233 wxUSE_REGEX=builtin
24234 fi
24235 else
24236 wxUSE_REGEX=sys
24237 cat >>confdefs.h <<\_ACEOF
24238#define WX_NO_REGEX_ADVANCED 1
24239_ACEOF
24240
24241 fi
24242 fi
24243fi
24244
24245
24246ZLIB_LINK=
24247if test "$wxUSE_ZLIB" != "no" ; then
24248 cat >>confdefs.h <<\_ACEOF
24249#define wxUSE_ZLIB 1
24250_ACEOF
24251
24252
24253 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24254 if test "$USE_DARWIN" = 1; then
24255 system_zlib_h_ok="yes"
24256 else
24257 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24258echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24259if test "${ac_cv_header_zlib_h+set}" = set; then
24260 echo $ECHO_N "(cached) $ECHO_C" >&6
24261else
24262 if test "$cross_compiling" = yes; then
24263 unset ac_cv_header_zlib_h
24264
24265else
24266 cat >conftest.$ac_ext <<_ACEOF
24267/* confdefs.h. */
24268_ACEOF
24269cat confdefs.h >>conftest.$ac_ext
24270cat >>conftest.$ac_ext <<_ACEOF
24271/* end confdefs.h. */
24272
24273 #include <zlib.h>
24274 #include <stdio.h>
24275
24276 int main()
24277 {
24278 FILE *f=fopen("conftestval", "w");
24279 if (!f) exit(1);
24280 fprintf(f, "%s",
24281 ZLIB_VERSION[0] == '1' &&
24282 (ZLIB_VERSION[2] > '1' ||
24283 (ZLIB_VERSION[2] == '1' &&
24284 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24285 exit(0);
24286 }
24287
24288_ACEOF
24289rm -f conftest$ac_exeext
24290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24291 (eval $ac_link) 2>&5
24292 ac_status=$?
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24296 (eval $ac_try) 2>&5
24297 ac_status=$?
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); }; }; then
24300 ac_cv_header_zlib_h=`cat conftestval`
24301else
24302 echo "$as_me: program exited with status $ac_status" >&5
24303echo "$as_me: failed program was:" >&5
24304sed 's/^/| /' conftest.$ac_ext >&5
24305
24306( exit $ac_status )
24307ac_cv_header_zlib_h=no
24308fi
ac1cb8d3 24309rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24310fi
24311
24312fi
24313echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24314echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24315 if test "${ac_cv_header_zlib_h+set}" = set; then
24316 echo "$as_me:$LINENO: checking for zlib.h" >&5
24317echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24318if test "${ac_cv_header_zlib_h+set}" = set; then
24319 echo $ECHO_N "(cached) $ECHO_C" >&6
24320fi
24321echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24322echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24323else
24324 # Is the header compilable?
24325echo "$as_me:$LINENO: checking zlib.h usability" >&5
24326echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24327cat >conftest.$ac_ext <<_ACEOF
24328/* confdefs.h. */
24329_ACEOF
24330cat confdefs.h >>conftest.$ac_ext
24331cat >>conftest.$ac_ext <<_ACEOF
24332/* end confdefs.h. */
24333$ac_includes_default
24334#include <zlib.h>
24335_ACEOF
24336rm -f conftest.$ac_objext
24337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24338 (eval $ac_compile) 2>conftest.er1
a848cd7e 24339 ac_status=$?
ac1cb8d3
VS
24340 grep -v '^ *+' conftest.er1 >conftest.err
24341 rm -f conftest.er1
24342 cat conftest.err >&5
a848cd7e
SC
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); } &&
3565d135
RR
24345 { ac_try='test -z "$ac_c_werror_flag"
24346 || test ! -s conftest.err'
ac1cb8d3
VS
24347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24348 (eval $ac_try) 2>&5
24349 ac_status=$?
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); }; } &&
24352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24355 ac_status=$?
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; }; then
24358 ac_header_compiler=yes
24359else
24360 echo "$as_me: failed program was:" >&5
24361sed 's/^/| /' conftest.$ac_ext >&5
24362
24363ac_header_compiler=no
24364fi
ac1cb8d3 24365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24366echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24367echo "${ECHO_T}$ac_header_compiler" >&6
24368
24369# Is the header present?
24370echo "$as_me:$LINENO: checking zlib.h presence" >&5
24371echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24372cat >conftest.$ac_ext <<_ACEOF
24373/* confdefs.h. */
24374_ACEOF
24375cat confdefs.h >>conftest.$ac_ext
24376cat >>conftest.$ac_ext <<_ACEOF
24377/* end confdefs.h. */
24378#include <zlib.h>
24379_ACEOF
24380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24382 ac_status=$?
24383 grep -v '^ *+' conftest.er1 >conftest.err
24384 rm -f conftest.er1
24385 cat conftest.err >&5
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); } >/dev/null; then
24388 if test -s conftest.err; then
24389 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24391 else
24392 ac_cpp_err=
24393 fi
24394else
24395 ac_cpp_err=yes
24396fi
24397if test -z "$ac_cpp_err"; then
24398 ac_header_preproc=yes
24399else
24400 echo "$as_me: failed program was:" >&5
24401sed 's/^/| /' conftest.$ac_ext >&5
24402
24403 ac_header_preproc=no
24404fi
24405rm -f conftest.err conftest.$ac_ext
24406echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24407echo "${ECHO_T}$ac_header_preproc" >&6
24408
24409# So? What about this header?
ac1cb8d3
VS
24410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24411 yes:no: )
a848cd7e
SC
24412 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24413echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24414 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24415echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24416 ac_header_preproc=yes
a848cd7e 24417 ;;
ac1cb8d3 24418 no:yes:* )
a848cd7e
SC
24419 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24420echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24421 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24422echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24423 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24424echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24425 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24426echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24427 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24428echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24429 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24430echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24431 (
24432 cat <<\_ASBOX
ac1cb8d3
VS
24433## ----------------------------------------- ##
24434## Report this to wx-dev@lists.wxwidgets.org ##
24435## ----------------------------------------- ##
a848cd7e
SC
24436_ASBOX
24437 ) |
24438 sed "s/^/$as_me: WARNING: /" >&2
24439 ;;
24440esac
24441echo "$as_me:$LINENO: checking for zlib.h" >&5
24442echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24443if test "${ac_cv_header_zlib_h+set}" = set; then
24444 echo $ECHO_N "(cached) $ECHO_C" >&6
24445else
24446 ac_cv_header_zlib_h=$ac_header_preproc
24447fi
24448echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24449echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24450
24451fi
24452
24453
24454
24455 system_zlib_h_ok=$ac_cv_header_zlib_h
24456 fi
24457
24458 if test "$system_zlib_h_ok" = "yes"; then
24459 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24460echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24461if test "${ac_cv_lib_z_deflate+set}" = set; then
24462 echo $ECHO_N "(cached) $ECHO_C" >&6
24463else
24464 ac_check_lib_save_LIBS=$LIBS
24465LIBS="-lz $LIBS"
24466cat >conftest.$ac_ext <<_ACEOF
24467/* confdefs.h. */
24468_ACEOF
24469cat confdefs.h >>conftest.$ac_ext
24470cat >>conftest.$ac_ext <<_ACEOF
24471/* end confdefs.h. */
24472
24473/* Override any gcc2 internal prototype to avoid an error. */
24474#ifdef __cplusplus
24475extern "C"
24476#endif
24477/* We use char because int might match the return type of a gcc2
24478 builtin and then its argument prototype would still apply. */
24479char deflate ();
24480int
24481main ()
24482{
24483deflate ();
24484 ;
24485 return 0;
24486}
24487_ACEOF
24488rm -f conftest.$ac_objext conftest$ac_exeext
24489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24490 (eval $ac_link) 2>conftest.er1
a848cd7e 24491 ac_status=$?
ac1cb8d3
VS
24492 grep -v '^ *+' conftest.er1 >conftest.err
24493 rm -f conftest.er1
24494 cat conftest.err >&5
a848cd7e
SC
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); } &&
3565d135
RR
24497 { ac_try='test -z "$ac_c_werror_flag"
24498 || test ! -s conftest.err'
ac1cb8d3
VS
24499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24500 (eval $ac_try) 2>&5
24501 ac_status=$?
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); }; } &&
24504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24506 (eval $ac_try) 2>&5
24507 ac_status=$?
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); }; }; then
24510 ac_cv_lib_z_deflate=yes
24511else
24512 echo "$as_me: failed program was:" >&5
24513sed 's/^/| /' conftest.$ac_ext >&5
24514
24515ac_cv_lib_z_deflate=no
24516fi
ac1cb8d3
VS
24517rm -f conftest.err conftest.$ac_objext \
24518 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24519LIBS=$ac_check_lib_save_LIBS
24520fi
24521echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24522echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24523if test $ac_cv_lib_z_deflate = yes; then
24524 ZLIB_LINK=" -lz"
24525fi
24526
24527 fi
24528
24529 if test "x$ZLIB_LINK" = "x" ; then
24530 if test "$wxUSE_ZLIB" = "sys" ; then
24531 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24532echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24533 { (exit 1); exit 1; }; }
24534 else
24535 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24536echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24537 wxUSE_ZLIB=builtin
24538 fi
24539 else
24540 wxUSE_ZLIB=sys
24541 fi
24542 fi
24543fi
24544
24545
24546PNG_LINK=
24547if test "$wxUSE_LIBPNG" != "no" ; then
24548 cat >>confdefs.h <<\_ACEOF
24549#define wxUSE_LIBPNG 1
24550_ACEOF
24551
24552
24553 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24554 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24555echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24556 wxUSE_LIBPNG=sys
24557 fi
24558
24559 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24560 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24561echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24562 wxUSE_LIBPNG=builtin
24563 fi
24564
24565 if test "$wxUSE_MGL" != 1 ; then
24566 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24567 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24568echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24569if test "${ac_cv_header_png_h+set}" = set; then
24570 echo $ECHO_N "(cached) $ECHO_C" >&6
24571else
24572 if test "$cross_compiling" = yes; then
24573 unset ac_cv_header_png_h
24574
24575else
24576 cat >conftest.$ac_ext <<_ACEOF
24577/* confdefs.h. */
24578_ACEOF
24579cat confdefs.h >>conftest.$ac_ext
24580cat >>conftest.$ac_ext <<_ACEOF
24581/* end confdefs.h. */
24582
24583 #include <png.h>
24584 #include <stdio.h>
24585
24586 int main()
24587 {
24588 FILE *f=fopen("conftestval", "w");
24589 if (!f) exit(1);
24590 fprintf(f, "%s",
24591 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24592 exit(0);
24593 }
24594
24595_ACEOF
24596rm -f conftest$ac_exeext
24597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24598 (eval $ac_link) 2>&5
24599 ac_status=$?
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24603 (eval $ac_try) 2>&5
24604 ac_status=$?
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; }; then
24607 ac_cv_header_png_h=`cat conftestval`
24608else
24609 echo "$as_me: program exited with status $ac_status" >&5
24610echo "$as_me: failed program was:" >&5
24611sed 's/^/| /' conftest.$ac_ext >&5
24612
24613( exit $ac_status )
24614ac_cv_header_png_h=no
24615fi
ac1cb8d3 24616rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24617fi
24618
24619fi
24620echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24621echo "${ECHO_T}$ac_cv_header_png_h" >&6
24622 if test "${ac_cv_header_png_h+set}" = set; then
24623 echo "$as_me:$LINENO: checking for png.h" >&5
24624echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24625if test "${ac_cv_header_png_h+set}" = set; then
24626 echo $ECHO_N "(cached) $ECHO_C" >&6
24627fi
24628echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24629echo "${ECHO_T}$ac_cv_header_png_h" >&6
24630else
24631 # Is the header compilable?
24632echo "$as_me:$LINENO: checking png.h usability" >&5
24633echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24634cat >conftest.$ac_ext <<_ACEOF
24635/* confdefs.h. */
24636_ACEOF
24637cat confdefs.h >>conftest.$ac_ext
24638cat >>conftest.$ac_ext <<_ACEOF
24639/* end confdefs.h. */
24640$ac_includes_default
24641#include <png.h>
24642_ACEOF
24643rm -f conftest.$ac_objext
24644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24645 (eval $ac_compile) 2>conftest.er1
a848cd7e 24646 ac_status=$?
ac1cb8d3
VS
24647 grep -v '^ *+' conftest.er1 >conftest.err
24648 rm -f conftest.er1
24649 cat conftest.err >&5
a848cd7e
SC
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); } &&
3565d135
RR
24652 { ac_try='test -z "$ac_c_werror_flag"
24653 || test ! -s conftest.err'
ac1cb8d3
VS
24654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); }; } &&
24659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24661 (eval $ac_try) 2>&5
24662 ac_status=$?
24663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); }; }; then
24665 ac_header_compiler=yes
24666else
24667 echo "$as_me: failed program was:" >&5
24668sed 's/^/| /' conftest.$ac_ext >&5
24669
24670ac_header_compiler=no
24671fi
ac1cb8d3 24672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24673echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24674echo "${ECHO_T}$ac_header_compiler" >&6
24675
24676# Is the header present?
24677echo "$as_me:$LINENO: checking png.h presence" >&5
24678echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24679cat >conftest.$ac_ext <<_ACEOF
24680/* confdefs.h. */
24681_ACEOF
24682cat confdefs.h >>conftest.$ac_ext
24683cat >>conftest.$ac_ext <<_ACEOF
24684/* end confdefs.h. */
24685#include <png.h>
24686_ACEOF
24687if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24689 ac_status=$?
24690 grep -v '^ *+' conftest.er1 >conftest.err
24691 rm -f conftest.er1
24692 cat conftest.err >&5
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); } >/dev/null; then
24695 if test -s conftest.err; then
24696 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24698 else
24699 ac_cpp_err=
24700 fi
24701else
24702 ac_cpp_err=yes
24703fi
24704if test -z "$ac_cpp_err"; then
24705 ac_header_preproc=yes
24706else
24707 echo "$as_me: failed program was:" >&5
24708sed 's/^/| /' conftest.$ac_ext >&5
24709
24710 ac_header_preproc=no
24711fi
24712rm -f conftest.err conftest.$ac_ext
24713echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24714echo "${ECHO_T}$ac_header_preproc" >&6
24715
24716# So? What about this header?
ac1cb8d3
VS
24717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24718 yes:no: )
a848cd7e
SC
24719 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24720echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24721 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24722echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24723 ac_header_preproc=yes
a848cd7e 24724 ;;
ac1cb8d3 24725 no:yes:* )
a848cd7e
SC
24726 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24727echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24728 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24729echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24730 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24731echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24732 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24733echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24734 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24735echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24736 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24737echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24738 (
24739 cat <<\_ASBOX
ac1cb8d3
VS
24740## ----------------------------------------- ##
24741## Report this to wx-dev@lists.wxwidgets.org ##
24742## ----------------------------------------- ##
a848cd7e
SC
24743_ASBOX
24744 ) |
24745 sed "s/^/$as_me: WARNING: /" >&2
24746 ;;
24747esac
24748echo "$as_me:$LINENO: checking for png.h" >&5
24749echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24750if test "${ac_cv_header_png_h+set}" = set; then
24751 echo $ECHO_N "(cached) $ECHO_C" >&6
24752else
24753 ac_cv_header_png_h=$ac_header_preproc
24754fi
24755echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24756echo "${ECHO_T}$ac_cv_header_png_h" >&6
24757
24758fi
24759
24760
24761
24762 if test "$ac_cv_header_png_h" = "yes"; then
24763 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24764echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24765if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24767else
24768 ac_check_lib_save_LIBS=$LIBS
24769LIBS="-lpng -lz -lm $LIBS"
24770cat >conftest.$ac_ext <<_ACEOF
24771/* confdefs.h. */
24772_ACEOF
24773cat confdefs.h >>conftest.$ac_ext
24774cat >>conftest.$ac_ext <<_ACEOF
24775/* end confdefs.h. */
24776
24777/* Override any gcc2 internal prototype to avoid an error. */
24778#ifdef __cplusplus
24779extern "C"
24780#endif
24781/* We use char because int might match the return type of a gcc2
24782 builtin and then its argument prototype would still apply. */
24783char png_check_sig ();
24784int
24785main ()
24786{
24787png_check_sig ();
24788 ;
24789 return 0;
24790}
24791_ACEOF
24792rm -f conftest.$ac_objext conftest$ac_exeext
24793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24794 (eval $ac_link) 2>conftest.er1
a848cd7e 24795 ac_status=$?
ac1cb8d3
VS
24796 grep -v '^ *+' conftest.er1 >conftest.err
24797 rm -f conftest.er1
24798 cat conftest.err >&5
a848cd7e
SC
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); } &&
3565d135
RR
24801 { ac_try='test -z "$ac_c_werror_flag"
24802 || test ! -s conftest.err'
ac1cb8d3
VS
24803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24804 (eval $ac_try) 2>&5
24805 ac_status=$?
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); }; } &&
24808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24810 (eval $ac_try) 2>&5
24811 ac_status=$?
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); }; }; then
24814 ac_cv_lib_png_png_check_sig=yes
24815else
24816 echo "$as_me: failed program was:" >&5
24817sed 's/^/| /' conftest.$ac_ext >&5
24818
24819ac_cv_lib_png_png_check_sig=no
24820fi
ac1cb8d3
VS
24821rm -f conftest.err conftest.$ac_objext \
24822 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24823LIBS=$ac_check_lib_save_LIBS
24824fi
24825echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24826echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24827if test $ac_cv_lib_png_png_check_sig = yes; then
24828 PNG_LINK=" -lpng -lz"
24829fi
24830
24831 fi
24832
24833 if test "x$PNG_LINK" = "x" ; then
24834 if test "$wxUSE_LIBPNG" = "sys" ; then
24835 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24836echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24837 { (exit 1); exit 1; }; }
24838 else
24839 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24840echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24841 wxUSE_LIBPNG=builtin
24842 fi
24843 else
24844 wxUSE_LIBPNG=sys
24845 fi
24846 fi
24847 fi
24848
24849 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24850fi
24851
24852
24853JPEG_LINK=
24854if test "$wxUSE_LIBJPEG" != "no" ; then
24855 cat >>confdefs.h <<\_ACEOF
24856#define wxUSE_LIBJPEG 1
24857_ACEOF
24858
24859
24860 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24861 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24862echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24863 wxUSE_LIBJPEG=sys
24864 fi
24865
24866 if test "$wxUSE_MGL" != 1 ; then
24867 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24868 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24869echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24870 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24871 echo $ECHO_N "(cached) $ECHO_C" >&6
24872else
24873 cat >conftest.$ac_ext <<_ACEOF
24874/* confdefs.h. */
24875_ACEOF
24876cat confdefs.h >>conftest.$ac_ext
24877cat >>conftest.$ac_ext <<_ACEOF
24878/* end confdefs.h. */
24879
24880 #undef HAVE_STDLIB_H
24881 #include <stdio.h>
24882 #include <jpeglib.h>
24883
24884int
24885main ()
24886{
24887
24888
24889 ;
24890 return 0;
24891}
24892_ACEOF
24893rm -f conftest.$ac_objext
24894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24895 (eval $ac_compile) 2>conftest.er1
a848cd7e 24896 ac_status=$?
ac1cb8d3
VS
24897 grep -v '^ *+' conftest.er1 >conftest.err
24898 rm -f conftest.er1
24899 cat conftest.err >&5
a848cd7e
SC
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } &&
3565d135
RR
24902 { ac_try='test -z "$ac_c_werror_flag"
24903 || test ! -s conftest.err'
ac1cb8d3
VS
24904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905 (eval $ac_try) 2>&5
24906 ac_status=$?
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); }; } &&
24909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911 (eval $ac_try) 2>&5
24912 ac_status=$?
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; }; then
24915 ac_cv_header_jpeglib_h=yes
24916else
24917 echo "$as_me: failed program was:" >&5
24918sed 's/^/| /' conftest.$ac_ext >&5
24919
24920ac_cv_header_jpeglib_h=no
24921
24922fi
ac1cb8d3 24923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24924
24925fi
24926
24927 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24928echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24929
24930 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24931 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24932echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24933if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24934 echo $ECHO_N "(cached) $ECHO_C" >&6
24935else
24936 ac_check_lib_save_LIBS=$LIBS
24937LIBS="-ljpeg $LIBS"
24938cat >conftest.$ac_ext <<_ACEOF
24939/* confdefs.h. */
24940_ACEOF
24941cat confdefs.h >>conftest.$ac_ext
24942cat >>conftest.$ac_ext <<_ACEOF
24943/* end confdefs.h. */
24944
24945/* Override any gcc2 internal prototype to avoid an error. */
24946#ifdef __cplusplus
24947extern "C"
24948#endif
24949/* We use char because int might match the return type of a gcc2
24950 builtin and then its argument prototype would still apply. */
24951char jpeg_read_header ();
24952int
24953main ()
24954{
24955jpeg_read_header ();
24956 ;
24957 return 0;
24958}
24959_ACEOF
24960rm -f conftest.$ac_objext conftest$ac_exeext
24961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24962 (eval $ac_link) 2>conftest.er1
a848cd7e 24963 ac_status=$?
ac1cb8d3
VS
24964 grep -v '^ *+' conftest.er1 >conftest.err
24965 rm -f conftest.er1
24966 cat conftest.err >&5
a848cd7e
SC
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); } &&
3565d135
RR
24969 { ac_try='test -z "$ac_c_werror_flag"
24970 || test ! -s conftest.err'
ac1cb8d3
VS
24971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24972 (eval $ac_try) 2>&5
24973 ac_status=$?
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); }; } &&
24976 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24978 (eval $ac_try) 2>&5
24979 ac_status=$?
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); }; }; then
24982 ac_cv_lib_jpeg_jpeg_read_header=yes
24983else
24984 echo "$as_me: failed program was:" >&5
24985sed 's/^/| /' conftest.$ac_ext >&5
24986
24987ac_cv_lib_jpeg_jpeg_read_header=no
24988fi
ac1cb8d3
VS
24989rm -f conftest.err conftest.$ac_objext \
24990 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24991LIBS=$ac_check_lib_save_LIBS
24992fi
24993echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24994echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24995if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24996 JPEG_LINK=" -ljpeg"
24997fi
24998
24999 fi
25000
25001 if test "x$JPEG_LINK" = "x" ; then
25002 if test "$wxUSE_LIBJPEG" = "sys" ; then
25003 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25004echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25005 { (exit 1); exit 1; }; }
25006 else
25007 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25008echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25009 wxUSE_LIBJPEG=builtin
25010 fi
25011 else
25012 wxUSE_LIBJPEG=sys
25013 fi
25014 fi
25015 fi
25016fi
25017
25018
25019TIFF_LINK=
25020TIFF_PREREQ_LINKS=-lm
25021if test "$wxUSE_LIBTIFF" != "no" ; then
25022 cat >>confdefs.h <<\_ACEOF
25023#define wxUSE_LIBTIFF 1
25024_ACEOF
25025
25026
25027 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25028 if test "$wxUSE_LIBJPEG" = "sys"; then
25029 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25030 fi
25031 if test "$wxUSE_ZLIB" = "sys"; then
25032 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25033 fi
25034 if test "${ac_cv_header_tiffio_h+set}" = set; then
25035 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25036echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25037if test "${ac_cv_header_tiffio_h+set}" = set; then
25038 echo $ECHO_N "(cached) $ECHO_C" >&6
25039fi
25040echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25041echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25042else
25043 # Is the header compilable?
25044echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25045echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25046cat >conftest.$ac_ext <<_ACEOF
25047/* confdefs.h. */
25048_ACEOF
25049cat confdefs.h >>conftest.$ac_ext
25050cat >>conftest.$ac_ext <<_ACEOF
25051/* end confdefs.h. */
25052$ac_includes_default
25053#include <tiffio.h>
25054_ACEOF
25055rm -f conftest.$ac_objext
25056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25057 (eval $ac_compile) 2>conftest.er1
a848cd7e 25058 ac_status=$?
ac1cb8d3
VS
25059 grep -v '^ *+' conftest.er1 >conftest.err
25060 rm -f conftest.er1
25061 cat conftest.err >&5
a848cd7e
SC
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); } &&
3565d135
RR
25064 { ac_try='test -z "$ac_c_werror_flag"
25065 || test ! -s conftest.err'
ac1cb8d3
VS
25066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067 (eval $ac_try) 2>&5
25068 ac_status=$?
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); }; } &&
25071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073 (eval $ac_try) 2>&5
25074 ac_status=$?
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); }; }; then
25077 ac_header_compiler=yes
25078else
25079 echo "$as_me: failed program was:" >&5
25080sed 's/^/| /' conftest.$ac_ext >&5
25081
25082ac_header_compiler=no
25083fi
ac1cb8d3 25084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25085echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25086echo "${ECHO_T}$ac_header_compiler" >&6
25087
25088# Is the header present?
25089echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25090echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25091cat >conftest.$ac_ext <<_ACEOF
25092/* confdefs.h. */
25093_ACEOF
25094cat confdefs.h >>conftest.$ac_ext
25095cat >>conftest.$ac_ext <<_ACEOF
25096/* end confdefs.h. */
25097#include <tiffio.h>
25098_ACEOF
25099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25101 ac_status=$?
25102 grep -v '^ *+' conftest.er1 >conftest.err
25103 rm -f conftest.er1
25104 cat conftest.err >&5
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); } >/dev/null; then
25107 if test -s conftest.err; then
25108 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25110 else
25111 ac_cpp_err=
25112 fi
25113else
25114 ac_cpp_err=yes
25115fi
25116if test -z "$ac_cpp_err"; then
25117 ac_header_preproc=yes
25118else
25119 echo "$as_me: failed program was:" >&5
25120sed 's/^/| /' conftest.$ac_ext >&5
25121
25122 ac_header_preproc=no
25123fi
25124rm -f conftest.err conftest.$ac_ext
25125echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25126echo "${ECHO_T}$ac_header_preproc" >&6
25127
25128# So? What about this header?
ac1cb8d3
VS
25129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25130 yes:no: )
a848cd7e
SC
25131 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25132echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25133 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25134echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25135 ac_header_preproc=yes
a848cd7e 25136 ;;
ac1cb8d3 25137 no:yes:* )
a848cd7e
SC
25138 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25139echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25140 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25141echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25142 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25143echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25144 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25145echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25146 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25147echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25148 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25149echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25150 (
25151 cat <<\_ASBOX
ac1cb8d3
VS
25152## ----------------------------------------- ##
25153## Report this to wx-dev@lists.wxwidgets.org ##
25154## ----------------------------------------- ##
a848cd7e
SC
25155_ASBOX
25156 ) |
25157 sed "s/^/$as_me: WARNING: /" >&2
25158 ;;
25159esac
25160echo "$as_me:$LINENO: checking for tiffio.h" >&5
25161echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25162if test "${ac_cv_header_tiffio_h+set}" = set; then
25163 echo $ECHO_N "(cached) $ECHO_C" >&6
25164else
25165 ac_cv_header_tiffio_h=$ac_header_preproc
25166fi
25167echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25168echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25169
25170fi
25171if test $ac_cv_header_tiffio_h = yes; then
25172
25173 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25174echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25175if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25176 echo $ECHO_N "(cached) $ECHO_C" >&6
25177else
25178 ac_check_lib_save_LIBS=$LIBS
25179LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25180cat >conftest.$ac_ext <<_ACEOF
25181/* confdefs.h. */
25182_ACEOF
25183cat confdefs.h >>conftest.$ac_ext
25184cat >>conftest.$ac_ext <<_ACEOF
25185/* end confdefs.h. */
25186
25187/* Override any gcc2 internal prototype to avoid an error. */
25188#ifdef __cplusplus
25189extern "C"
25190#endif
25191/* We use char because int might match the return type of a gcc2
25192 builtin and then its argument prototype would still apply. */
25193char TIFFError ();
25194int
25195main ()
25196{
25197TIFFError ();
25198 ;
25199 return 0;
25200}
25201_ACEOF
25202rm -f conftest.$ac_objext conftest$ac_exeext
25203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25204 (eval $ac_link) 2>conftest.er1
a848cd7e 25205 ac_status=$?
ac1cb8d3
VS
25206 grep -v '^ *+' conftest.er1 >conftest.err
25207 rm -f conftest.er1
25208 cat conftest.err >&5
a848cd7e
SC
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } &&
3565d135
RR
25211 { ac_try='test -z "$ac_c_werror_flag"
25212 || test ! -s conftest.err'
ac1cb8d3
VS
25213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25214 (eval $ac_try) 2>&5
25215 ac_status=$?
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); }; } &&
25218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25220 (eval $ac_try) 2>&5
25221 ac_status=$?
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); }; }; then
25224 ac_cv_lib_tiff_TIFFError=yes
25225else
25226 echo "$as_me: failed program was:" >&5
25227sed 's/^/| /' conftest.$ac_ext >&5
25228
25229ac_cv_lib_tiff_TIFFError=no
25230fi
ac1cb8d3
VS
25231rm -f conftest.err conftest.$ac_objext \
25232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25233LIBS=$ac_check_lib_save_LIBS
25234fi
25235echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25236echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25237if test $ac_cv_lib_tiff_TIFFError = yes; then
25238 TIFF_LINK=" -ltiff"
25239fi
25240
25241
25242
25243fi
25244
25245
25246
25247 if test "x$TIFF_LINK" = "x" ; then
25248 if test "$wxUSE_LIBTIFF" = "sys" ; then
25249 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25250echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25251 { (exit 1); exit 1; }; }
25252 else
25253 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25254echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25255 wxUSE_LIBTIFF=builtin
25256 fi
25257 else
25258 wxUSE_LIBTIFF=sys
25259 fi
25260 fi
25261fi
25262
25263
47a7e797
MW
25264if test "$wxUSE_WCHAR_T" != "yes"; then
25265 if test "$wxUSE_EXPAT" != "no"; then
25266 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25267echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25268 wxUSE_EXPAT=no
25269 fi
25270 if test "$wxUSE_XML" != "no"; then
25271 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25272echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25273 wxUSE_XML=no
25274 fi
25275fi
25276
a848cd7e
SC
25277if test "$wxUSE_EXPAT" != "no"; then
25278 wxUSE_XML=yes
25279 cat >>confdefs.h <<\_ACEOF
25280#define wxUSE_EXPAT 1
25281_ACEOF
25282
25283 cat >>confdefs.h <<\_ACEOF
25284#define wxUSE_XML 1
25285_ACEOF
25286
25287
25288 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25289 if test "${ac_cv_header_expat_h+set}" = set; then
25290 echo "$as_me:$LINENO: checking for expat.h" >&5
25291echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25292if test "${ac_cv_header_expat_h+set}" = set; then
25293 echo $ECHO_N "(cached) $ECHO_C" >&6
25294fi
25295echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25296echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25297else
25298 # Is the header compilable?
25299echo "$as_me:$LINENO: checking expat.h usability" >&5
25300echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25301cat >conftest.$ac_ext <<_ACEOF
25302/* confdefs.h. */
25303_ACEOF
25304cat confdefs.h >>conftest.$ac_ext
25305cat >>conftest.$ac_ext <<_ACEOF
25306/* end confdefs.h. */
25307$ac_includes_default
25308#include <expat.h>
25309_ACEOF
25310rm -f conftest.$ac_objext
25311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25312 (eval $ac_compile) 2>conftest.er1
a848cd7e 25313 ac_status=$?
ac1cb8d3
VS
25314 grep -v '^ *+' conftest.er1 >conftest.err
25315 rm -f conftest.er1
25316 cat conftest.err >&5
a848cd7e
SC
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); } &&
3565d135
RR
25319 { ac_try='test -z "$ac_c_werror_flag"
25320 || test ! -s conftest.err'
ac1cb8d3
VS
25321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25322 (eval $ac_try) 2>&5
25323 ac_status=$?
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); }; } &&
25326 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25328 (eval $ac_try) 2>&5
25329 ac_status=$?
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); }; }; then
25332 ac_header_compiler=yes
25333else
25334 echo "$as_me: failed program was:" >&5
25335sed 's/^/| /' conftest.$ac_ext >&5
25336
25337ac_header_compiler=no
25338fi
ac1cb8d3 25339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25341echo "${ECHO_T}$ac_header_compiler" >&6
25342
25343# Is the header present?
25344echo "$as_me:$LINENO: checking expat.h presence" >&5
25345echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25346cat >conftest.$ac_ext <<_ACEOF
25347/* confdefs.h. */
25348_ACEOF
25349cat confdefs.h >>conftest.$ac_ext
25350cat >>conftest.$ac_ext <<_ACEOF
25351/* end confdefs.h. */
25352#include <expat.h>
25353_ACEOF
25354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25356 ac_status=$?
25357 grep -v '^ *+' conftest.er1 >conftest.err
25358 rm -f conftest.er1
25359 cat conftest.err >&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); } >/dev/null; then
25362 if test -s conftest.err; then
25363 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25365 else
25366 ac_cpp_err=
25367 fi
25368else
25369 ac_cpp_err=yes
25370fi
25371if test -z "$ac_cpp_err"; then
25372 ac_header_preproc=yes
25373else
25374 echo "$as_me: failed program was:" >&5
25375sed 's/^/| /' conftest.$ac_ext >&5
25376
25377 ac_header_preproc=no
25378fi
25379rm -f conftest.err conftest.$ac_ext
25380echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25381echo "${ECHO_T}$ac_header_preproc" >&6
25382
25383# So? What about this header?
ac1cb8d3
VS
25384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25385 yes:no: )
a848cd7e
SC
25386 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25387echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25388 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25389echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25390 ac_header_preproc=yes
a848cd7e 25391 ;;
ac1cb8d3 25392 no:yes:* )
a848cd7e
SC
25393 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25394echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25395 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25396echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25397 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25398echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25399 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25400echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25401 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25402echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25403 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25404echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25405 (
25406 cat <<\_ASBOX
ac1cb8d3
VS
25407## ----------------------------------------- ##
25408## Report this to wx-dev@lists.wxwidgets.org ##
25409## ----------------------------------------- ##
a848cd7e
SC
25410_ASBOX
25411 ) |
25412 sed "s/^/$as_me: WARNING: /" >&2
25413 ;;
25414esac
25415echo "$as_me:$LINENO: checking for expat.h" >&5
25416echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25417if test "${ac_cv_header_expat_h+set}" = set; then
25418 echo $ECHO_N "(cached) $ECHO_C" >&6
25419else
25420 ac_cv_header_expat_h=$ac_header_preproc
25421fi
25422echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25423echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25424
25425fi
25426if test $ac_cv_header_expat_h = yes; then
25427 found_expat_h=1
25428fi
25429
25430
25431 if test "x$found_expat_h" = "x1"; then
25432 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25433echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25434if test "${wx_cv_expat_is_not_broken+set}" = set; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
25436else
25437
a848cd7e
SC
25438 ac_ext=cc
25439ac_cpp='$CXXCPP $CPPFLAGS'
25440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25443
25444 cat >conftest.$ac_ext <<_ACEOF
25445/* confdefs.h. */
25446_ACEOF
25447cat confdefs.h >>conftest.$ac_ext
25448cat >>conftest.$ac_ext <<_ACEOF
25449/* end confdefs.h. */
25450#include <expat.h>
25451int
25452main ()
25453{
25454
25455 ;
25456 return 0;
25457}
25458_ACEOF
25459rm -f conftest.$ac_objext
25460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25461 (eval $ac_compile) 2>conftest.er1
a848cd7e 25462 ac_status=$?
ac1cb8d3
VS
25463 grep -v '^ *+' conftest.er1 >conftest.err
25464 rm -f conftest.er1
25465 cat conftest.err >&5
a848cd7e
SC
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); } &&
3565d135
RR
25468 { ac_try='test -z "$ac_cxx_werror_flag"
25469 || test ! -s conftest.err'
ac1cb8d3
VS
25470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25471 (eval $ac_try) 2>&5
25472 ac_status=$?
25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474 (exit $ac_status); }; } &&
25475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25477 (eval $ac_try) 2>&5
25478 ac_status=$?
25479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); }; }; then
25481 wx_cv_expat_is_not_broken=yes
25482else
25483 echo "$as_me: failed program was:" >&5
25484sed 's/^/| /' conftest.$ac_ext >&5
25485
25486wx_cv_expat_is_not_broken=no
25487
25488fi
ac1cb8d3 25489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25490 ac_ext=c
25491ac_cpp='$CPP $CPPFLAGS'
25492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25494ac_compiler_gnu=$ac_cv_c_compiler_gnu
25495
25496
25497
25498fi
25499echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25500echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25501 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25502 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25503echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25504if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25505 echo $ECHO_N "(cached) $ECHO_C" >&6
25506else
25507 ac_check_lib_save_LIBS=$LIBS
25508LIBS="-lexpat $LIBS"
25509cat >conftest.$ac_ext <<_ACEOF
25510/* confdefs.h. */
25511_ACEOF
25512cat confdefs.h >>conftest.$ac_ext
25513cat >>conftest.$ac_ext <<_ACEOF
25514/* end confdefs.h. */
25515
25516/* Override any gcc2 internal prototype to avoid an error. */
25517#ifdef __cplusplus
25518extern "C"
25519#endif
25520/* We use char because int might match the return type of a gcc2
25521 builtin and then its argument prototype would still apply. */
25522char XML_ParserCreate ();
25523int
25524main ()
25525{
25526XML_ParserCreate ();
25527 ;
25528 return 0;
25529}
25530_ACEOF
25531rm -f conftest.$ac_objext conftest$ac_exeext
25532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25533 (eval $ac_link) 2>conftest.er1
a848cd7e 25534 ac_status=$?
ac1cb8d3
VS
25535 grep -v '^ *+' conftest.er1 >conftest.err
25536 rm -f conftest.er1
25537 cat conftest.err >&5
a848cd7e
SC
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); } &&
3565d135
RR
25540 { ac_try='test -z "$ac_c_werror_flag"
25541 || test ! -s conftest.err'
ac1cb8d3
VS
25542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25543 (eval $ac_try) 2>&5
25544 ac_status=$?
25545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546 (exit $ac_status); }; } &&
25547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25549 (eval $ac_try) 2>&5
25550 ac_status=$?
25551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552 (exit $ac_status); }; }; then
25553 ac_cv_lib_expat_XML_ParserCreate=yes
25554else
25555 echo "$as_me: failed program was:" >&5
25556sed 's/^/| /' conftest.$ac_ext >&5
25557
25558ac_cv_lib_expat_XML_ParserCreate=no
25559fi
ac1cb8d3
VS
25560rm -f conftest.err conftest.$ac_objext \
25561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25562LIBS=$ac_check_lib_save_LIBS
25563fi
25564echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25565echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25566if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25567 EXPAT_LINK=" -lexpat"
25568fi
25569
25570 fi
25571 fi
25572 if test "x$EXPAT_LINK" = "x" ; then
25573 if test "$wxUSE_EXPAT" = "sys" ; then
25574 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25575echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25576 { (exit 1); exit 1; }; }
25577 else
25578 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25579echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25580 wxUSE_EXPAT=builtin
25581 fi
25582 else
25583 wxUSE_EXPAT=sys
25584 fi
25585 fi
25586 if test "$wxUSE_EXPAT" = "builtin" ; then
25587
25588
25589subdirs="$subdirs src/expat"
25590
25591 fi
25592fi
25593
25594
25595
25596if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25597 if test "${ac_cv_header_mspack_h+set}" = set; then
25598 echo "$as_me:$LINENO: checking for mspack.h" >&5
25599echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25600if test "${ac_cv_header_mspack_h+set}" = set; then
25601 echo $ECHO_N "(cached) $ECHO_C" >&6
25602fi
25603echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25604echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25605else
25606 # Is the header compilable?
25607echo "$as_me:$LINENO: checking mspack.h usability" >&5
25608echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25609cat >conftest.$ac_ext <<_ACEOF
25610/* confdefs.h. */
25611_ACEOF
25612cat confdefs.h >>conftest.$ac_ext
25613cat >>conftest.$ac_ext <<_ACEOF
25614/* end confdefs.h. */
25615$ac_includes_default
25616#include <mspack.h>
25617_ACEOF
25618rm -f conftest.$ac_objext
25619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25620 (eval $ac_compile) 2>conftest.er1
a848cd7e 25621 ac_status=$?
ac1cb8d3
VS
25622 grep -v '^ *+' conftest.er1 >conftest.err
25623 rm -f conftest.er1
25624 cat conftest.err >&5
a848cd7e
SC
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } &&
3565d135
RR
25627 { ac_try='test -z "$ac_c_werror_flag"
25628 || test ! -s conftest.err'
ac1cb8d3
VS
25629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25630 (eval $ac_try) 2>&5
25631 ac_status=$?
25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); }; } &&
25634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636 (eval $ac_try) 2>&5
25637 ac_status=$?
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); }; }; then
25640 ac_header_compiler=yes
25641else
25642 echo "$as_me: failed program was:" >&5
25643sed 's/^/| /' conftest.$ac_ext >&5
25644
25645ac_header_compiler=no
25646fi
ac1cb8d3 25647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25649echo "${ECHO_T}$ac_header_compiler" >&6
25650
25651# Is the header present?
25652echo "$as_me:$LINENO: checking mspack.h presence" >&5
25653echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25654cat >conftest.$ac_ext <<_ACEOF
25655/* confdefs.h. */
25656_ACEOF
25657cat confdefs.h >>conftest.$ac_ext
25658cat >>conftest.$ac_ext <<_ACEOF
25659/* end confdefs.h. */
25660#include <mspack.h>
25661_ACEOF
25662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25664 ac_status=$?
25665 grep -v '^ *+' conftest.er1 >conftest.err
25666 rm -f conftest.er1
25667 cat conftest.err >&5
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); } >/dev/null; then
25670 if test -s conftest.err; then
25671 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25673 else
25674 ac_cpp_err=
25675 fi
25676else
25677 ac_cpp_err=yes
25678fi
25679if test -z "$ac_cpp_err"; then
25680 ac_header_preproc=yes
25681else
25682 echo "$as_me: failed program was:" >&5
25683sed 's/^/| /' conftest.$ac_ext >&5
25684
25685 ac_header_preproc=no
25686fi
25687rm -f conftest.err conftest.$ac_ext
25688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25689echo "${ECHO_T}$ac_header_preproc" >&6
25690
25691# So? What about this header?
ac1cb8d3
VS
25692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25693 yes:no: )
a848cd7e
SC
25694 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25695echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25696 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25697echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25698 ac_header_preproc=yes
a848cd7e 25699 ;;
ac1cb8d3 25700 no:yes:* )
a848cd7e
SC
25701 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25702echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25703 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25704echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25705 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25706echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25707 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25708echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25709 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25710echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25711 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25712echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25713 (
25714 cat <<\_ASBOX
ac1cb8d3
VS
25715## ----------------------------------------- ##
25716## Report this to wx-dev@lists.wxwidgets.org ##
25717## ----------------------------------------- ##
a848cd7e
SC
25718_ASBOX
25719 ) |
25720 sed "s/^/$as_me: WARNING: /" >&2
25721 ;;
25722esac
25723echo "$as_me:$LINENO: checking for mspack.h" >&5
25724echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25725if test "${ac_cv_header_mspack_h+set}" = set; then
25726 echo $ECHO_N "(cached) $ECHO_C" >&6
25727else
25728 ac_cv_header_mspack_h=$ac_header_preproc
25729fi
25730echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25731echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25732
25733fi
25734if test $ac_cv_header_mspack_h = yes; then
25735 found_mspack_h=1
25736fi
25737
25738
25739 if test "x$found_mspack_h" = "x1"; then
25740 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25741echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25742if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25743 echo $ECHO_N "(cached) $ECHO_C" >&6
25744else
25745 ac_check_lib_save_LIBS=$LIBS
25746LIBS="-lmspack $LIBS"
25747cat >conftest.$ac_ext <<_ACEOF
25748/* confdefs.h. */
25749_ACEOF
25750cat confdefs.h >>conftest.$ac_ext
25751cat >>conftest.$ac_ext <<_ACEOF
25752/* end confdefs.h. */
25753
25754/* Override any gcc2 internal prototype to avoid an error. */
25755#ifdef __cplusplus
25756extern "C"
25757#endif
25758/* We use char because int might match the return type of a gcc2
25759 builtin and then its argument prototype would still apply. */
25760char mspack_create_chm_decompressor ();
25761int
25762main ()
25763{
25764mspack_create_chm_decompressor ();
25765 ;
25766 return 0;
25767}
25768_ACEOF
25769rm -f conftest.$ac_objext conftest$ac_exeext
25770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25771 (eval $ac_link) 2>conftest.er1
a848cd7e 25772 ac_status=$?
ac1cb8d3
VS
25773 grep -v '^ *+' conftest.er1 >conftest.err
25774 rm -f conftest.er1
25775 cat conftest.err >&5
a848cd7e
SC
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } &&
3565d135
RR
25778 { ac_try='test -z "$ac_c_werror_flag"
25779 || test ! -s conftest.err'
ac1cb8d3
VS
25780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25781 (eval $ac_try) 2>&5
25782 ac_status=$?
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); }; } &&
25785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787 (eval $ac_try) 2>&5
25788 ac_status=$?
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); }; }; then
25791 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25792else
25793 echo "$as_me: failed program was:" >&5
25794sed 's/^/| /' conftest.$ac_ext >&5
25795
25796ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25797fi
ac1cb8d3
VS
25798rm -f conftest.err conftest.$ac_objext \
25799 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25800LIBS=$ac_check_lib_save_LIBS
25801fi
25802echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25803echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25804if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25805 MSPACK_LINK=" -lmspack"
25806fi
25807
25808 fi
25809 if test "x$MSPACK_LINK" = "x" ; then
25810 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25811 fi
25812fi
25813
25814if test "$wxUSE_LIBMSPACK" != "no"; then
25815 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25816#define wxUSE_LIBMSPACK 1
25817_ACEOF
25818
a848cd7e
SC
25819fi
25820
25821
25822
25823AFMINSTALL=
25824WIN32INSTALL=
25825
25826TOOLKIT=
25827TOOLKIT_INCLUDE=
25828WIDGET_SET=
25829
25830if test "$USE_WIN32" = 1 ; then
25831
25832for ac_header in w32api.h
25833do
25834as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25835if eval "test \"\${$as_ac_Header+set}\" = set"; then
25836 echo "$as_me:$LINENO: checking for $ac_header" >&5
25837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25838if eval "test \"\${$as_ac_Header+set}\" = set"; then
25839 echo $ECHO_N "(cached) $ECHO_C" >&6
25840fi
25841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25843else
25844 # Is the header compilable?
25845echo "$as_me:$LINENO: checking $ac_header usability" >&5
25846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25847cat >conftest.$ac_ext <<_ACEOF
25848/* confdefs.h. */
25849_ACEOF
25850cat confdefs.h >>conftest.$ac_ext
25851cat >>conftest.$ac_ext <<_ACEOF
25852/* end confdefs.h. */
25853$ac_includes_default
25854#include <$ac_header>
25855_ACEOF
25856rm -f conftest.$ac_objext
25857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25858 (eval $ac_compile) 2>conftest.er1
a848cd7e 25859 ac_status=$?
ac1cb8d3
VS
25860 grep -v '^ *+' conftest.er1 >conftest.err
25861 rm -f conftest.er1
25862 cat conftest.err >&5
a848cd7e
SC
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } &&
3565d135
RR
25865 { ac_try='test -z "$ac_c_werror_flag"
25866 || test ! -s conftest.err'
ac1cb8d3
VS
25867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25868 (eval $ac_try) 2>&5
25869 ac_status=$?
25870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); }; } &&
25872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25874 (eval $ac_try) 2>&5
25875 ac_status=$?
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); }; }; then
25878 ac_header_compiler=yes
25879else
25880 echo "$as_me: failed program was:" >&5
25881sed 's/^/| /' conftest.$ac_ext >&5
25882
25883ac_header_compiler=no
25884fi
ac1cb8d3 25885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25886echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25887echo "${ECHO_T}$ac_header_compiler" >&6
25888
25889# Is the header present?
25890echo "$as_me:$LINENO: checking $ac_header presence" >&5
25891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25892cat >conftest.$ac_ext <<_ACEOF
25893/* confdefs.h. */
25894_ACEOF
25895cat confdefs.h >>conftest.$ac_ext
25896cat >>conftest.$ac_ext <<_ACEOF
25897/* end confdefs.h. */
25898#include <$ac_header>
25899_ACEOF
25900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25902 ac_status=$?
25903 grep -v '^ *+' conftest.er1 >conftest.err
25904 rm -f conftest.er1
25905 cat conftest.err >&5
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); } >/dev/null; then
25908 if test -s conftest.err; then
25909 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25911 else
25912 ac_cpp_err=
25913 fi
25914else
25915 ac_cpp_err=yes
25916fi
25917if test -z "$ac_cpp_err"; then
25918 ac_header_preproc=yes
25919else
25920 echo "$as_me: failed program was:" >&5
25921sed 's/^/| /' conftest.$ac_ext >&5
25922
25923 ac_header_preproc=no
25924fi
25925rm -f conftest.err conftest.$ac_ext
25926echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25927echo "${ECHO_T}$ac_header_preproc" >&6
25928
25929# So? What about this header?
ac1cb8d3
VS
25930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25931 yes:no: )
a848cd7e
SC
25932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25935echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25936 ac_header_preproc=yes
a848cd7e 25937 ;;
ac1cb8d3 25938 no:yes:* )
a848cd7e
SC
25939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25940echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25942echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25944echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25946echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25950echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25951 (
25952 cat <<\_ASBOX
ac1cb8d3
VS
25953## ----------------------------------------- ##
25954## Report this to wx-dev@lists.wxwidgets.org ##
25955## ----------------------------------------- ##
a848cd7e
SC
25956_ASBOX
25957 ) |
25958 sed "s/^/$as_me: WARNING: /" >&2
25959 ;;
25960esac
25961echo "$as_me:$LINENO: checking for $ac_header" >&5
25962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25963if eval "test \"\${$as_ac_Header+set}\" = set"; then
25964 echo $ECHO_N "(cached) $ECHO_C" >&6
25965else
ac1cb8d3 25966 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25967fi
25968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25970
25971fi
25972if test `eval echo '${'$as_ac_Header'}'` = yes; then
25973 cat >>confdefs.h <<_ACEOF
25974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25975_ACEOF
25976
25977fi
25978
25979done
25980
25981 if test "${ac_cv_header_windows_h+set}" = set; then
25982 echo "$as_me:$LINENO: checking for windows.h" >&5
25983echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25984if test "${ac_cv_header_windows_h+set}" = set; then
25985 echo $ECHO_N "(cached) $ECHO_C" >&6
25986fi
25987echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25988echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25989else
25990 # Is the header compilable?
25991echo "$as_me:$LINENO: checking windows.h usability" >&5
25992echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25993cat >conftest.$ac_ext <<_ACEOF
25994/* confdefs.h. */
25995_ACEOF
25996cat confdefs.h >>conftest.$ac_ext
25997cat >>conftest.$ac_ext <<_ACEOF
25998/* end confdefs.h. */
25999$ac_includes_default
26000#include <windows.h>
26001_ACEOF
26002rm -f conftest.$ac_objext
26003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26004 (eval $ac_compile) 2>conftest.er1
a848cd7e 26005 ac_status=$?
ac1cb8d3
VS
26006 grep -v '^ *+' conftest.er1 >conftest.err
26007 rm -f conftest.er1
26008 cat conftest.err >&5
a848cd7e
SC
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } &&
3565d135
RR
26011 { ac_try='test -z "$ac_c_werror_flag"
26012 || test ! -s conftest.err'
ac1cb8d3
VS
26013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26014 (eval $ac_try) 2>&5
26015 ac_status=$?
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); }; } &&
26018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26020 (eval $ac_try) 2>&5
26021 ac_status=$?
26022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023 (exit $ac_status); }; }; then
26024 ac_header_compiler=yes
26025else
26026 echo "$as_me: failed program was:" >&5
26027sed 's/^/| /' conftest.$ac_ext >&5
26028
26029ac_header_compiler=no
26030fi
ac1cb8d3 26031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26032echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26033echo "${ECHO_T}$ac_header_compiler" >&6
26034
26035# Is the header present?
26036echo "$as_me:$LINENO: checking windows.h presence" >&5
26037echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26038cat >conftest.$ac_ext <<_ACEOF
26039/* confdefs.h. */
26040_ACEOF
26041cat confdefs.h >>conftest.$ac_ext
26042cat >>conftest.$ac_ext <<_ACEOF
26043/* end confdefs.h. */
26044#include <windows.h>
26045_ACEOF
26046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26048 ac_status=$?
26049 grep -v '^ *+' conftest.er1 >conftest.err
26050 rm -f conftest.er1
26051 cat conftest.err >&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); } >/dev/null; then
26054 if test -s conftest.err; then
26055 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26057 else
26058 ac_cpp_err=
26059 fi
26060else
26061 ac_cpp_err=yes
26062fi
26063if test -z "$ac_cpp_err"; then
26064 ac_header_preproc=yes
26065else
26066 echo "$as_me: failed program was:" >&5
26067sed 's/^/| /' conftest.$ac_ext >&5
26068
26069 ac_header_preproc=no
26070fi
26071rm -f conftest.err conftest.$ac_ext
26072echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26073echo "${ECHO_T}$ac_header_preproc" >&6
26074
26075# So? What about this header?
ac1cb8d3
VS
26076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26077 yes:no: )
a848cd7e
SC
26078 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26079echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26080 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26081echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26082 ac_header_preproc=yes
a848cd7e 26083 ;;
ac1cb8d3 26084 no:yes:* )
a848cd7e
SC
26085 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26086echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26087 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26088echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26089 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26090echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26091 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26092echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26093 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26094echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26095 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26096echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26097 (
26098 cat <<\_ASBOX
ac1cb8d3
VS
26099## ----------------------------------------- ##
26100## Report this to wx-dev@lists.wxwidgets.org ##
26101## ----------------------------------------- ##
a848cd7e
SC
26102_ASBOX
26103 ) |
26104 sed "s/^/$as_me: WARNING: /" >&2
26105 ;;
26106esac
26107echo "$as_me:$LINENO: checking for windows.h" >&5
26108echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26109if test "${ac_cv_header_windows_h+set}" = set; then
26110 echo $ECHO_N "(cached) $ECHO_C" >&6
26111else
26112 ac_cv_header_windows_h=$ac_header_preproc
26113fi
26114echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26115echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26116
26117fi
26118if test $ac_cv_header_windows_h = yes; then
26119 :
26120else
26121
26122 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26123echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26124 { (exit 1); exit 1; }; }
26125
26126fi
26127
26128
26129
26130 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26131
26132 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26133 LIBS="$LIBS -loleacc"
26134 fi
26135
26136 case "${host}" in
26137 *-*-cygwin* )
26138 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26139 esac
26140
26141 if test "$wxUSE_ODBC" = "sys" ; then
26142 wxUSE_ODBC = "yes"
26143 fi
26144 if test "$wxUSE_ODBC" = "yes" ; then
26145 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26146 cat >>confdefs.h <<\_ACEOF
26147#define wxUSE_ODBC 1
26148_ACEOF
26149
26150 fi
26151
370d2fd7 26152 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26153 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26154
004ee6da 26155 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26156
a848cd7e
SC
26157 WIN32INSTALL=win32install
26158fi
26159
26160if test "$wxUSE_GUI" = "yes"; then
26161 USE_GUI=1
26162
26163 GUI_TK_LIBRARY=
26164
26165 WXGTK12=
26166 WXGTK127=
26167 WXGTK20=
26168 WXGPE=
26169
207bc66c
RN
26170 if test "$wxUSE_COCOA" = 1 ; then
26171 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26172 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26173echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26174 wxUSE_PRINTING_ARCHITECTURE=no
26175 fi
26176 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26177 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26178echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26179 wxUSE_DRAG_AND_DROP=no
26180 fi
26181 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26182 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26183echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26184 wxUSE_DRAGIMAGE=no
26185 fi
26186 fi
26187
a848cd7e
SC
26188 if test "$wxUSE_MSW" = 1 ; then
26189 TOOLKIT=MSW
26190 GUIDIST=MSW_DIST
26191
ceec2216 26192 case "${host}" in
a848cd7e
SC
26193 *-*-mingw32* )
26194 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26195 esac
26196 fi
26197
26198 if test "$wxUSE_GTK" = 1; then
26199 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26200echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26201
26202 gtk_version_cached=1
26203 if test "${wx_cv_lib_gtk+set}" = set; then
26204 echo $ECHO_N "(cached) $ECHO_C" >&6
26205else
26206
26207 gtk_version_cached=0
26208 echo "$as_me:$LINENO: result: " >&5
26209echo "${ECHO_T}" >&6
26210
26211 GTK_MODULES=
26212 if test "$wxUSE_THREADS" = "yes"; then
26213 GTK_MODULES=gthread
26214 fi
26215
f597b41c 26216 wx_cv_lib_gtk=
5001df0d
MW
26217 if test "x$wxGTK_VERSION" != "x1"
26218 then
26219 case "${host}" in
26220 *-*-solaris2* )
26221 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26222 enable_gtktest=no
5001df0d
MW
26223 fi
26224 esac
26225
a848cd7e
SC
26226 # Check whether --enable-gtktest or --disable-gtktest was given.
26227if test "${enable_gtktest+set}" = set; then
26228 enableval="$enable_gtktest"
26229
26230else
26231 enable_gtktest=yes
26232fi;
26233
26234 pkg_config_args=gtk+-2.0
26235 for module in . $GTK_MODULES
26236 do
26237 case "$module" in
26238 gthread)
26239 pkg_config_args="$pkg_config_args gthread-2.0"
26240 ;;
26241 esac
26242 done
26243
26244 no_gtk=""
26245
26246 # Extract the first word of "pkg-config", so it can be a program name with args.
26247set dummy pkg-config; ac_word=$2
26248echo "$as_me:$LINENO: checking for $ac_word" >&5
26249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26250if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26251 echo $ECHO_N "(cached) $ECHO_C" >&6
26252else
26253 case $PKG_CONFIG in
26254 [\\/]* | ?:[\\/]*)
26255 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26256 ;;
26257 *)
26258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26259for as_dir in $PATH
26260do
26261 IFS=$as_save_IFS
26262 test -z "$as_dir" && as_dir=.
26263 for ac_exec_ext in '' $ac_executable_extensions; do
26264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26265 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26267 break 2
26268 fi
26269done
26270done
26271
26272 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26273 ;;
26274esac
26275fi
26276PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26277
26278if test -n "$PKG_CONFIG"; then
26279 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26280echo "${ECHO_T}$PKG_CONFIG" >&6
26281else
26282 echo "$as_me:$LINENO: result: no" >&5
26283echo "${ECHO_T}no" >&6
26284fi
26285
26286
26287 if test x$PKG_CONFIG != xno ; then
26288 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26289 :
26290 else
c2218763 26291 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26292 no_gtk=yes
26293 PKG_CONFIG=no
26294 fi
26295 else
26296 no_gtk=yes
26297 fi
26298
26299 min_gtk_version=2.0.0
26300 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26301echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26302
26303 if test x$PKG_CONFIG != xno ; then
26304 ## don't try to run the test against uninstalled libtool libs
26305 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26306 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26307 enable_gtktest=no
26308 fi
26309
26310 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26311 :
26312 else
26313 no_gtk=yes
26314 fi
26315 fi
26316
26317 if test x"$no_gtk" = x ; then
26318 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26319 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26320 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26321 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26322 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26323 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26324 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26325 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26326 if test "x$enable_gtktest" = "xyes" ; then
26327 ac_save_CFLAGS="$CFLAGS"
26328 ac_save_LIBS="$LIBS"
26329 CFLAGS="$CFLAGS $GTK_CFLAGS"
26330 LIBS="$GTK_LIBS $LIBS"
26331 rm -f conf.gtktest
26332 if test "$cross_compiling" = yes; then
26333 echo $ac_n "cross compiling; assumed OK... $ac_c"
26334else
26335 cat >conftest.$ac_ext <<_ACEOF
26336/* confdefs.h. */
26337_ACEOF
26338cat confdefs.h >>conftest.$ac_ext
26339cat >>conftest.$ac_ext <<_ACEOF
26340/* end confdefs.h. */
26341
26342#include <gtk/gtk.h>
26343#include <stdio.h>
26344#include <stdlib.h>
26345
26346int
26347main ()
26348{
26349 int major, minor, micro;
26350 char *tmp_version;
26351
26352 system ("touch conf.gtktest");
26353
26354 /* HP/UX 9 (%@#!) writes to sscanf strings */
26355 tmp_version = g_strdup("$min_gtk_version");
26356 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26357 printf("%s, bad version string\n", "$min_gtk_version");
26358 exit(1);
26359 }
26360
26361 if ((gtk_major_version != $gtk_config_major_version) ||
26362 (gtk_minor_version != $gtk_config_minor_version) ||
26363 (gtk_micro_version != $gtk_config_micro_version))
26364 {
26365 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26366 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26367 gtk_major_version, gtk_minor_version, gtk_micro_version);
26368 printf ("*** was found! If pkg-config was correct, then it is best\n");
26369 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26370 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26371 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26372 printf("*** required on your system.\n");
26373 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26374 printf("*** to point to the correct configuration files\n");
26375 }
26376 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26377 (gtk_minor_version != GTK_MINOR_VERSION) ||
26378 (gtk_micro_version != GTK_MICRO_VERSION))
26379 {
26380 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26381 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26382 printf("*** library (version %d.%d.%d)\n",
26383 gtk_major_version, gtk_minor_version, gtk_micro_version);
26384 }
26385 else
26386 {
26387 if ((gtk_major_version > major) ||
26388 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26389 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26390 {
26391 return 0;
26392 }
26393 else
26394 {
26395 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26396 gtk_major_version, gtk_minor_version, gtk_micro_version);
26397 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26398 major, minor, micro);
26399 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26400 printf("***\n");
26401 printf("*** If you have already installed a sufficiently new version, this error\n");
26402 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26403 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26404 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26405 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26406 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26407 printf("*** so that the correct libraries are found at run-time))\n");
26408 }
26409 }
26410 return 1;
26411}
26412
26413_ACEOF
26414rm -f conftest$ac_exeext
26415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26416 (eval $ac_link) 2>&5
26417 ac_status=$?
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421 (eval $ac_try) 2>&5
26422 ac_status=$?
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); }; }; then
26425 :
26426else
26427 echo "$as_me: program exited with status $ac_status" >&5
26428echo "$as_me: failed program was:" >&5
26429sed 's/^/| /' conftest.$ac_ext >&5
26430
26431( exit $ac_status )
26432no_gtk=yes
26433fi
ac1cb8d3 26434rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26435fi
26436 CFLAGS="$ac_save_CFLAGS"
26437 LIBS="$ac_save_LIBS"
26438 fi
26439 fi
26440 if test "x$no_gtk" = x ; then
26441 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26442echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26443 wx_cv_lib_gtk=2.0
26444 else
26445 echo "$as_me:$LINENO: result: no" >&5
26446echo "${ECHO_T}no" >&6
26447 if test "$PKG_CONFIG" = "no" ; then
26448 echo "*** A new enough version of pkg-config was not found."
26449 echo "*** See http://pkgconfig.sourceforge.net"
26450 else
26451 if test -f conf.gtktest ; then
26452 :
26453 else
26454 echo "*** Could not run GTK+ test program, checking why..."
26455 ac_save_CFLAGS="$CFLAGS"
26456 ac_save_LIBS="$LIBS"
26457 CFLAGS="$CFLAGS $GTK_CFLAGS"
26458 LIBS="$LIBS $GTK_LIBS"
26459 cat >conftest.$ac_ext <<_ACEOF
26460/* confdefs.h. */
26461_ACEOF
26462cat confdefs.h >>conftest.$ac_ext
26463cat >>conftest.$ac_ext <<_ACEOF
26464/* end confdefs.h. */
26465
26466#include <gtk/gtk.h>
26467#include <stdio.h>
26468
26469int
26470main ()
26471{
26472 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26473 ;
26474 return 0;
26475}
26476_ACEOF
26477rm -f conftest.$ac_objext conftest$ac_exeext
26478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26479 (eval $ac_link) 2>conftest.er1
a848cd7e 26480 ac_status=$?
ac1cb8d3
VS
26481 grep -v '^ *+' conftest.er1 >conftest.err
26482 rm -f conftest.er1
26483 cat conftest.err >&5
a848cd7e
SC
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } &&
3565d135
RR
26486 { ac_try='test -z "$ac_c_werror_flag"
26487 || test ! -s conftest.err'
ac1cb8d3
VS
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; } &&
26493 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495 (eval $ac_try) 2>&5
26496 ac_status=$?
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); }; }; then
26499 echo "*** The test program compiled, but did not run. This usually means"
26500 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26501 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26502 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26503 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26504 echo "*** is required on your system"
26505 echo "***"
26506 echo "*** If you have an old version installed, it is best to remove it, although"
26507 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26508else
26509 echo "$as_me: failed program was:" >&5
26510sed 's/^/| /' conftest.$ac_ext >&5
26511
26512 echo "*** The test program failed to compile or link. See the file config.log for the"
26513 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26514fi
ac1cb8d3
VS
26515rm -f conftest.err conftest.$ac_objext \
26516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26517 CFLAGS="$ac_save_CFLAGS"
26518 LIBS="$ac_save_LIBS"
26519 fi
26520 fi
26521 GTK_CFLAGS=""
26522 GTK_LIBS=""
26523 :
26524 fi
26525
26526
26527 rm -f conf.gtktest
26528
5001df0d
MW
26529
26530 case "${host}" in
26531 *-*-solaris2* )
26532 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26533 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26534 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26535 fi
26536 if test "$wxUSE_SHARED" != "yes"; then
26537 GTK_LIBS="$GTK_LIBS -lX11"
26538 fi
26539 esac
f597b41c
MW
26540 fi
26541
f34ca037
MW
26542 if test -z "$wx_cv_lib_gtk"; then
26543 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26544
26545# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26546if test "${with_gtk_prefix+set}" = set; then
26547 withval="$with_gtk_prefix"
26548 gtk_config_prefix="$withval"
26549else
26550 gtk_config_prefix=""
26551fi;
26552
26553# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26554if test "${with_gtk_exec_prefix+set}" = set; then
26555 withval="$with_gtk_exec_prefix"
26556 gtk_config_exec_prefix="$withval"
26557else
26558 gtk_config_exec_prefix=""
26559fi;
26560# Check whether --enable-gtktest or --disable-gtktest was given.
26561if test "${enable_gtktest+set}" = set; then
26562 enableval="$enable_gtktest"
26563
26564else
26565 enable_gtktest=yes
26566fi;
26567
26568 for module in . $GTK_MODULES
26569 do
26570 case "$module" in
26571 gthread)
26572 gtk_config_args="$gtk_config_args gthread"
26573 ;;
26574 esac
26575 done
26576
26577 if test x$gtk_config_exec_prefix != x ; then
26578 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26579 if test x${GTK_CONFIG+set} != xset ; then
26580 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26581 fi
26582 fi
26583 if test x$gtk_config_prefix != x ; then
26584 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26585 if test x${GTK_CONFIG+set} != xset ; then
26586 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26587 fi
26588 fi
26589
26590 # Extract the first word of "gtk-config", so it can be a program name with args.
26591set dummy gtk-config; ac_word=$2
26592echo "$as_me:$LINENO: checking for $ac_word" >&5
26593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26594if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26595 echo $ECHO_N "(cached) $ECHO_C" >&6
26596else
26597 case $GTK_CONFIG in
26598 [\\/]* | ?:[\\/]*)
26599 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26600 ;;
26601 *)
26602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26603for as_dir in $PATH
26604do
26605 IFS=$as_save_IFS
26606 test -z "$as_dir" && as_dir=.
26607 for ac_exec_ext in '' $ac_executable_extensions; do
26608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26609 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26611 break 2
26612 fi
26613done
26614done
26615
26616 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26617 ;;
26618esac
26619fi
26620GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26621
26622if test -n "$GTK_CONFIG"; then
26623 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26624echo "${ECHO_T}$GTK_CONFIG" >&6
26625else
26626 echo "$as_me:$LINENO: result: no" >&5
26627echo "${ECHO_T}no" >&6
26628fi
26629
26630 min_gtk_version=1.2.7
26631 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26632echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26633 no_gtk=""
26634 if test "$GTK_CONFIG" = "no" ; then
26635 no_gtk=yes
26636 else
26637 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26638 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26639 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26640 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26641 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26642 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26643 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26644 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26645 if test "x$enable_gtktest" = "xyes" ; then
26646 ac_save_CFLAGS="$CFLAGS"
26647 ac_save_LIBS="$LIBS"
26648 CFLAGS="$CFLAGS $GTK_CFLAGS"
26649 LIBS="$GTK_LIBS $LIBS"
26650 rm -f conf.gtktest
26651 if test "$cross_compiling" = yes; then
26652 echo $ac_n "cross compiling; assumed OK... $ac_c"
26653else
26654 cat >conftest.$ac_ext <<_ACEOF
26655/* confdefs.h. */
26656_ACEOF
26657cat confdefs.h >>conftest.$ac_ext
26658cat >>conftest.$ac_ext <<_ACEOF
26659/* end confdefs.h. */
26660
26661#include <gtk/gtk.h>
26662#include <stdio.h>
26663#include <stdlib.h>
26664
26665int
26666main ()
26667{
26668 int major, minor, micro;
26669 char *tmp_version;
26670
26671 system ("touch conf.gtktest");
26672
26673 /* HP/UX 9 (%@#!) writes to sscanf strings */
26674 tmp_version = g_strdup("$min_gtk_version");
26675 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26676 printf("%s, bad version string\n", "$min_gtk_version");
26677 exit(1);
26678 }
26679
26680 if ((gtk_major_version != $gtk_config_major_version) ||
26681 (gtk_minor_version != $gtk_config_minor_version) ||
26682 (gtk_micro_version != $gtk_config_micro_version))
26683 {
26684 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26685 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26686 gtk_major_version, gtk_minor_version, gtk_micro_version);
26687 printf ("*** was found! If gtk-config was correct, then it is best\n");
26688 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26689 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26690 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26691 printf("*** required on your system.\n");
26692 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26693 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26694 printf("*** before re-running configure\n");
26695 }
26696#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26697 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26698 (gtk_minor_version != GTK_MINOR_VERSION) ||
26699 (gtk_micro_version != GTK_MICRO_VERSION))
26700 {
26701 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26702 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26703 printf("*** library (version %d.%d.%d)\n",
26704 gtk_major_version, gtk_minor_version, gtk_micro_version);
26705 }
26706#endif /* defined (GTK_MAJOR_VERSION) ... */
26707 else
26708 {
26709 if ((gtk_major_version > major) ||
26710 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26711 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26712 {
26713 return 0;
26714 }
26715 else
26716 {
26717 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26718 gtk_major_version, gtk_minor_version, gtk_micro_version);
26719 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26720 major, minor, micro);
26721 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26722 printf("***\n");
26723 printf("*** If you have already installed a sufficiently new version, this error\n");
26724 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26725 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26726 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26727 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26728 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26729 printf("*** so that the correct libraries are found at run-time))\n");
26730 }
26731 }
26732 return 1;
26733}
26734
26735_ACEOF
26736rm -f conftest$ac_exeext
26737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26738 (eval $ac_link) 2>&5
26739 ac_status=$?
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743 (eval $ac_try) 2>&5
26744 ac_status=$?
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); }; }; then
26747 :
26748else
26749 echo "$as_me: program exited with status $ac_status" >&5
26750echo "$as_me: failed program was:" >&5
26751sed 's/^/| /' conftest.$ac_ext >&5
26752
26753( exit $ac_status )
26754no_gtk=yes
26755fi
ac1cb8d3 26756rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26757fi
26758 CFLAGS="$ac_save_CFLAGS"
26759 LIBS="$ac_save_LIBS"
26760 fi
26761 fi
26762 if test "x$no_gtk" = x ; then
26763 echo "$as_me:$LINENO: result: yes" >&5
26764echo "${ECHO_T}yes" >&6
26765 wx_cv_lib_gtk=1.2.7
26766 else
26767 echo "$as_me:$LINENO: result: no" >&5
26768echo "${ECHO_T}no" >&6
26769 if test "$GTK_CONFIG" = "no" ; then
26770 echo "*** The gtk-config script installed by GTK could not be found"
26771 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26772 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26773 echo "*** full path to gtk-config."
26774 else
26775 if test -f conf.gtktest ; then
26776 :
26777 else
26778 echo "*** Could not run GTK test program, checking why..."
26779 CFLAGS="$CFLAGS $GTK_CFLAGS"
26780 LIBS="$LIBS $GTK_LIBS"
26781 cat >conftest.$ac_ext <<_ACEOF
26782/* confdefs.h. */
26783_ACEOF
26784cat confdefs.h >>conftest.$ac_ext
26785cat >>conftest.$ac_ext <<_ACEOF
26786/* end confdefs.h. */
26787
26788#include <gtk/gtk.h>
26789#include <stdio.h>
26790
26791int
26792main ()
26793{
26794 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26795 ;
26796 return 0;
26797}
26798_ACEOF
26799rm -f conftest.$ac_objext conftest$ac_exeext
26800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26801 (eval $ac_link) 2>conftest.er1
a848cd7e 26802 ac_status=$?
ac1cb8d3
VS
26803 grep -v '^ *+' conftest.er1 >conftest.err
26804 rm -f conftest.er1
26805 cat conftest.err >&5
a848cd7e
SC
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); } &&
3565d135
RR
26808 { ac_try='test -z "$ac_c_werror_flag"
26809 || test ! -s conftest.err'
ac1cb8d3
VS
26810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811 (eval $ac_try) 2>&5
26812 ac_status=$?
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); }; } &&
26815 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817 (eval $ac_try) 2>&5
26818 ac_status=$?
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; }; then
26821 echo "*** The test program compiled, but did not run. This usually means"
26822 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26823 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26824 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26825 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26826 echo "*** is required on your system"
26827 echo "***"
26828 echo "*** If you have an old version installed, it is best to remove it, although"
26829 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26830 echo "***"
26831 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26832 echo "*** came with the system with the command"
26833 echo "***"
26834 echo "*** rpm --erase --nodeps gtk gtk-devel"
26835else
26836 echo "$as_me: failed program was:" >&5
26837sed 's/^/| /' conftest.$ac_ext >&5
26838
26839 echo "*** The test program failed to compile or link. See the file config.log for the"
26840 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26841 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26842 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26843fi
ac1cb8d3
VS
26844rm -f conftest.err conftest.$ac_objext \
26845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26846 CFLAGS="$ac_save_CFLAGS"
26847 LIBS="$ac_save_LIBS"
26848 fi
26849 fi
26850 GTK_CFLAGS=""
26851 GTK_LIBS=""
26852 :
26853 fi
26854
26855
26856 rm -f conf.gtktest
26857
26858
f34ca037 26859 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26860
26861# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26862if test "${with_gtk_prefix+set}" = set; then
26863 withval="$with_gtk_prefix"
26864 gtk_config_prefix="$withval"
26865else
26866 gtk_config_prefix=""
26867fi;
26868
26869# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26870if test "${with_gtk_exec_prefix+set}" = set; then
26871 withval="$with_gtk_exec_prefix"
26872 gtk_config_exec_prefix="$withval"
26873else
26874 gtk_config_exec_prefix=""
26875fi;
26876# Check whether --enable-gtktest or --disable-gtktest was given.
26877if test "${enable_gtktest+set}" = set; then
26878 enableval="$enable_gtktest"
26879
26880else
26881 enable_gtktest=yes
26882fi;
26883
26884 for module in . $GTK_MODULES
26885 do
26886 case "$module" in
26887 gthread)
26888 gtk_config_args="$gtk_config_args gthread"
26889 ;;
26890 esac
26891 done
26892
26893 if test x$gtk_config_exec_prefix != x ; then
26894 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26895 if test x${GTK_CONFIG+set} != xset ; then
26896 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26897 fi
26898 fi
26899 if test x$gtk_config_prefix != x ; then
26900 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26901 if test x${GTK_CONFIG+set} != xset ; then
26902 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26903 fi
26904 fi
26905
26906 # Extract the first word of "gtk-config", so it can be a program name with args.
26907set dummy gtk-config; ac_word=$2
26908echo "$as_me:$LINENO: checking for $ac_word" >&5
26909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26910if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26911 echo $ECHO_N "(cached) $ECHO_C" >&6
26912else
26913 case $GTK_CONFIG in
26914 [\\/]* | ?:[\\/]*)
26915 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26916 ;;
26917 *)
26918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26919for as_dir in $PATH
26920do
26921 IFS=$as_save_IFS
26922 test -z "$as_dir" && as_dir=.
26923 for ac_exec_ext in '' $ac_executable_extensions; do
26924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26925 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26927 break 2
26928 fi
26929done
26930done
26931
26932 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26933 ;;
26934esac
26935fi
26936GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26937
26938if test -n "$GTK_CONFIG"; then
26939 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26940echo "${ECHO_T}$GTK_CONFIG" >&6
26941else
26942 echo "$as_me:$LINENO: result: no" >&5
26943echo "${ECHO_T}no" >&6
26944fi
26945
26946 min_gtk_version=1.2.3
26947 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26948echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26949 no_gtk=""
26950 if test "$GTK_CONFIG" = "no" ; then
26951 no_gtk=yes
26952 else
26953 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26954 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26955 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26956 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26957 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26958 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26959 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26960 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26961 if test "x$enable_gtktest" = "xyes" ; then
26962 ac_save_CFLAGS="$CFLAGS"
26963 ac_save_LIBS="$LIBS"
26964 CFLAGS="$CFLAGS $GTK_CFLAGS"
26965 LIBS="$GTK_LIBS $LIBS"
26966 rm -f conf.gtktest
26967 if test "$cross_compiling" = yes; then
26968 echo $ac_n "cross compiling; assumed OK... $ac_c"
26969else
26970 cat >conftest.$ac_ext <<_ACEOF
26971/* confdefs.h. */
26972_ACEOF
26973cat confdefs.h >>conftest.$ac_ext
26974cat >>conftest.$ac_ext <<_ACEOF
26975/* end confdefs.h. */
26976
26977#include <gtk/gtk.h>
26978#include <stdio.h>
26979#include <stdlib.h>
26980
26981int
26982main ()
26983{
26984 int major, minor, micro;
26985 char *tmp_version;
26986
26987 system ("touch conf.gtktest");
26988
26989 /* HP/UX 9 (%@#!) writes to sscanf strings */
26990 tmp_version = g_strdup("$min_gtk_version");
26991 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26992 printf("%s, bad version string\n", "$min_gtk_version");
26993 exit(1);
26994 }
26995
26996 if ((gtk_major_version != $gtk_config_major_version) ||
26997 (gtk_minor_version != $gtk_config_minor_version) ||
26998 (gtk_micro_version != $gtk_config_micro_version))
26999 {
27000 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27001 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27002 gtk_major_version, gtk_minor_version, gtk_micro_version);
27003 printf ("*** was found! If gtk-config was correct, then it is best\n");
27004 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27005 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27006 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27007 printf("*** required on your system.\n");
27008 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27009 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27010 printf("*** before re-running configure\n");
27011 }
27012#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27013 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27014 (gtk_minor_version != GTK_MINOR_VERSION) ||
27015 (gtk_micro_version != GTK_MICRO_VERSION))
27016 {
27017 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27018 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27019 printf("*** library (version %d.%d.%d)\n",
27020 gtk_major_version, gtk_minor_version, gtk_micro_version);
27021 }
27022#endif /* defined (GTK_MAJOR_VERSION) ... */
27023 else
27024 {
27025 if ((gtk_major_version > major) ||
27026 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27027 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27028 {
27029 return 0;
27030 }
27031 else
27032 {
27033 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27034 gtk_major_version, gtk_minor_version, gtk_micro_version);
27035 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27036 major, minor, micro);
27037 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27038 printf("***\n");
27039 printf("*** If you have already installed a sufficiently new version, this error\n");
27040 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27041 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27042 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27043 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27044 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27045 printf("*** so that the correct libraries are found at run-time))\n");
27046 }
27047 }
27048 return 1;
27049}
27050
27051_ACEOF
27052rm -f conftest$ac_exeext
27053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27054 (eval $ac_link) 2>&5
27055 ac_status=$?
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059 (eval $ac_try) 2>&5
27060 ac_status=$?
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; }; then
27063 :
27064else
27065 echo "$as_me: program exited with status $ac_status" >&5
27066echo "$as_me: failed program was:" >&5
27067sed 's/^/| /' conftest.$ac_ext >&5
27068
27069( exit $ac_status )
27070no_gtk=yes
27071fi
ac1cb8d3 27072rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27073fi
27074 CFLAGS="$ac_save_CFLAGS"
27075 LIBS="$ac_save_LIBS"
27076 fi
27077 fi
27078 if test "x$no_gtk" = x ; then
27079 echo "$as_me:$LINENO: result: yes" >&5
27080echo "${ECHO_T}yes" >&6
27081 wx_cv_lib_gtk=1.2.3
27082 else
27083 echo "$as_me:$LINENO: result: no" >&5
27084echo "${ECHO_T}no" >&6
27085 if test "$GTK_CONFIG" = "no" ; then
27086 echo "*** The gtk-config script installed by GTK could not be found"
27087 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27088 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27089 echo "*** full path to gtk-config."
27090 else
27091 if test -f conf.gtktest ; then
27092 :
27093 else
27094 echo "*** Could not run GTK test program, checking why..."
27095 CFLAGS="$CFLAGS $GTK_CFLAGS"
27096 LIBS="$LIBS $GTK_LIBS"
27097 cat >conftest.$ac_ext <<_ACEOF
27098/* confdefs.h. */
27099_ACEOF
27100cat confdefs.h >>conftest.$ac_ext
27101cat >>conftest.$ac_ext <<_ACEOF
27102/* end confdefs.h. */
27103
27104#include <gtk/gtk.h>
27105#include <stdio.h>
27106
27107int
27108main ()
27109{
27110 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27111 ;
27112 return 0;
27113}
27114_ACEOF
27115rm -f conftest.$ac_objext conftest$ac_exeext
27116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27117 (eval $ac_link) 2>conftest.er1
a848cd7e 27118 ac_status=$?
ac1cb8d3
VS
27119 grep -v '^ *+' conftest.er1 >conftest.err
27120 rm -f conftest.er1
27121 cat conftest.err >&5
a848cd7e
SC
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } &&
3565d135
RR
27124 { ac_try='test -z "$ac_c_werror_flag"
27125 || test ! -s conftest.err'
ac1cb8d3
VS
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27128 ac_status=$?
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; } &&
27131 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133 (eval $ac_try) 2>&5
27134 ac_status=$?
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
27137 echo "*** The test program compiled, but did not run. This usually means"
27138 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27139 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27140 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27141 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27142 echo "*** is required on your system"
27143 echo "***"
27144 echo "*** If you have an old version installed, it is best to remove it, although"
27145 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27146 echo "***"
27147 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27148 echo "*** came with the system with the command"
27149 echo "***"
27150 echo "*** rpm --erase --nodeps gtk gtk-devel"
27151else
27152 echo "$as_me: failed program was:" >&5
27153sed 's/^/| /' conftest.$ac_ext >&5
27154
27155 echo "*** The test program failed to compile or link. See the file config.log for the"
27156 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27157 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27158 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27159fi
ac1cb8d3
VS
27160rm -f conftest.err conftest.$ac_objext \
27161 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27162 CFLAGS="$ac_save_CFLAGS"
27163 LIBS="$ac_save_LIBS"
27164 fi
27165 fi
27166 GTK_CFLAGS=""
27167 GTK_LIBS=""
27168 :
27169 fi
27170
27171
27172 rm -f conf.gtktest
27173
f34ca037 27174 fi
a848cd7e
SC
27175 fi
27176 fi
27177
27178 if test -z "$wx_cv_lib_gtk"; then
27179 wx_cv_lib_gtk=none
27180 else
27181 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27182 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27183 fi
27184
27185
27186fi
27187
27188
27189 if test "$gtk_version_cached" = 1; then
27190 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27191echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27192 fi
27193
27194 case "$wx_cv_lib_gtk" in
27195 2.0) WXGTK20=1
27196 TOOLKIT_VERSION=2
27197 ;;
27198 1.2.7) WXGTK127=1
27199 WXGTK12=1
27200 ;;
27201 1.2.3) WXGTK12=1
27202 ;;
27203 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27204The development files for GTK+ were not found. For GTK+ 2, please
27205ensure that pkg-config is in the path and that gtk+-2.0.pc is
27206installed. For GTK+ 1.2 please check that gtk-config is in the path,
27207and that the version is 1.2.3 or above. Also check that the
27208libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27209--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27210 " >&5
27211echo "$as_me: error:
f597b41c
MW
27212The development files for GTK+ were not found. For GTK+ 2, please
27213ensure that pkg-config is in the path and that gtk+-2.0.pc is
27214installed. For GTK+ 1.2 please check that gtk-config is in the path,
27215and that the version is 1.2.3 or above. Also check that the
27216libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27217--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27218 " >&2;}
27219 { (exit 1); exit 1; }; }
27220 ;;
27221 esac
27222
27223 if test "$WXGTK20" = 1; then
304205f1
VS
27224 save_CFLAGS="$CFLAGS"
27225 save_LIBS="$LIBS"
c92ad099 27226 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27227 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27228
d12aef51
VZ
27229 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27230echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27231 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27232/* confdefs.h. */
27233_ACEOF
27234cat confdefs.h >>conftest.$ac_ext
27235cat >>conftest.$ac_ext <<_ACEOF
27236/* end confdefs.h. */
304205f1 27237
d12aef51 27238 #include <gtk/gtk.h>
304205f1 27239
d12aef51
VZ
27240int
27241main ()
27242{
304205f1 27243
d12aef51 27244 void *f = gtk_icon_size_lookup;
abc736fd
MW
27245
27246 ;
27247 return 0;
27248}
27249_ACEOF
27250rm -f conftest.$ac_objext
27251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27252 (eval $ac_compile) 2>conftest.er1
27253 ac_status=$?
27254 grep -v '^ *+' conftest.er1 >conftest.err
27255 rm -f conftest.er1
27256 cat conftest.err >&5
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); } &&
3565d135
RR
27259 { ac_try='test -z "$ac_c_werror_flag"
27260 || test ! -s conftest.err'
abc736fd
MW
27261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262 (eval $ac_try) 2>&5
27263 ac_status=$?
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); }; } &&
27266 { ac_try='test -s conftest.$ac_objext'
27267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268 (eval $ac_try) 2>&5
27269 ac_status=$?
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); }; }; then
27272
27273 echo "$as_me:$LINENO: result: no" >&5
27274echo "${ECHO_T}no" >&6
27275
27276else
27277 echo "$as_me: failed program was:" >&5
27278sed 's/^/| /' conftest.$ac_ext >&5
27279
27280
27281 cat >>confdefs.h <<\_ACEOF
27282#define NEED_GTK_ICON_SIZE_LOOKUP 1
27283_ACEOF
27284
27285 echo "$as_me:$LINENO: result: yes" >&5
27286echo "${ECHO_T}yes" >&6
27287
27288fi
27289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27290
9755e73b
VS
27291 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27292echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27293 cat >conftest.$ac_ext <<_ACEOF
27294/* confdefs.h. */
27295_ACEOF
27296cat confdefs.h >>conftest.$ac_ext
27297cat >>conftest.$ac_ext <<_ACEOF
27298/* end confdefs.h. */
27299
27300 #include <gtk/gtk.h>
27301
27302int
27303main ()
27304{
27305
27306 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27307 Not GTK+ 2.4
9755e73b
VS
27308 #endif
27309
27310 ;
27311 return 0;
27312}
27313_ACEOF
27314rm -f conftest.$ac_objext
27315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27316 (eval $ac_compile) 2>conftest.er1
27317 ac_status=$?
27318 grep -v '^ *+' conftest.er1 >conftest.err
27319 rm -f conftest.er1
27320 cat conftest.err >&5
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); } &&
3565d135
RR
27323 { ac_try='test -z "$ac_c_werror_flag"
27324 || test ! -s conftest.err'
9755e73b
VS
27325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27326 (eval $ac_try) 2>&5
27327 ac_status=$?
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); }; } &&
27330 { ac_try='test -s conftest.$ac_objext'
27331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27332 (eval $ac_try) 2>&5
27333 ac_status=$?
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); }; }; then
27336
27337 cat >>confdefs.h <<\_ACEOF
27338#define __WXGTK24__ 1
27339_ACEOF
27340
27341 echo "$as_me:$LINENO: result: yes" >&5
27342echo "${ECHO_T}yes" >&6
27343
27344else
27345 echo "$as_me: failed program was:" >&5
27346sed 's/^/| /' conftest.$ac_ext >&5
27347
27348
27349 echo "$as_me:$LINENO: result: no" >&5
27350echo "${ECHO_T}no" >&6
27351
27352fi
27353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27354
304205f1
VS
27355 CFLAGS="$save_CFLAGS"
27356 LIBS="$save_LIBS"
a848cd7e
SC
27357 else
27358 if test "$wxUSE_UNICODE" = "yes"; then
27359 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27360echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27361 wxUSE_UNICODE=no
27362 fi
27363 fi
27364
27365 if test "$USE_DARWIN" != 1; then
27366
27367for ac_func in poll
27368do
27369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27370echo "$as_me:$LINENO: checking for $ac_func" >&5
27371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27372if eval "test \"\${$as_ac_var+set}\" = set"; then
27373 echo $ECHO_N "(cached) $ECHO_C" >&6
27374else
27375 cat >conftest.$ac_ext <<_ACEOF
27376/* confdefs.h. */
27377_ACEOF
27378cat confdefs.h >>conftest.$ac_ext
27379cat >>conftest.$ac_ext <<_ACEOF
27380/* end confdefs.h. */
ac1cb8d3
VS
27381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27383#define $ac_func innocuous_$ac_func
27384
a848cd7e
SC
27385/* System header to define __stub macros and hopefully few prototypes,
27386 which can conflict with char $ac_func (); below.
27387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27388 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27389
a848cd7e
SC
27390#ifdef __STDC__
27391# include <limits.h>
27392#else
27393# include <assert.h>
27394#endif
ac1cb8d3
VS
27395
27396#undef $ac_func
27397
a848cd7e
SC
27398/* Override any gcc2 internal prototype to avoid an error. */
27399#ifdef __cplusplus
27400extern "C"
27401{
27402#endif
27403/* We use char because int might match the return type of a gcc2
27404 builtin and then its argument prototype would still apply. */
27405char $ac_func ();
27406/* The GNU C library defines this for functions which it implements
27407 to always fail with ENOSYS. Some functions are actually named
27408 something starting with __ and the normal name is an alias. */
27409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27410choke me
27411#else
27412char (*f) () = $ac_func;
27413#endif
27414#ifdef __cplusplus
27415}
27416#endif
27417
27418int
27419main ()
27420{
27421return f != $ac_func;
27422 ;
27423 return 0;
27424}
27425_ACEOF
27426rm -f conftest.$ac_objext conftest$ac_exeext
27427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27428 (eval $ac_link) 2>conftest.er1
a848cd7e 27429 ac_status=$?
ac1cb8d3
VS
27430 grep -v '^ *+' conftest.er1 >conftest.err
27431 rm -f conftest.er1
27432 cat conftest.err >&5
a848cd7e
SC
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); } &&
3565d135
RR
27435 { ac_try='test -z "$ac_c_werror_flag"
27436 || test ! -s conftest.err'
ac1cb8d3
VS
27437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27438 (eval $ac_try) 2>&5
27439 ac_status=$?
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); }; } &&
27442 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27444 (eval $ac_try) 2>&5
27445 ac_status=$?
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); }; }; then
27448 eval "$as_ac_var=yes"
27449else
27450 echo "$as_me: failed program was:" >&5
27451sed 's/^/| /' conftest.$ac_ext >&5
27452
27453eval "$as_ac_var=no"
27454fi
ac1cb8d3
VS
27455rm -f conftest.err conftest.$ac_objext \
27456 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27457fi
27458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27459echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27460if test `eval echo '${'$as_ac_var'}'` = yes; then
27461 cat >>confdefs.h <<_ACEOF
27462#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27463_ACEOF
27464
27465fi
27466done
27467
27468 fi
27469
27470 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27471 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27472
27473 AFMINSTALL=afminstall
27474 TOOLKIT=GTK
27475 GUIDIST=GTK_DIST
27476
27477 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27478echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27479if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27480 echo $ECHO_N "(cached) $ECHO_C" >&6
27481else
27482 ac_check_lib_save_LIBS=$LIBS
27483LIBS="-lgdk $LIBS"
27484cat >conftest.$ac_ext <<_ACEOF
27485/* confdefs.h. */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h. */
27490
27491/* Override any gcc2 internal prototype to avoid an error. */
27492#ifdef __cplusplus
27493extern "C"
27494#endif
27495/* We use char because int might match the return type of a gcc2
27496 builtin and then its argument prototype would still apply. */
27497char gdk_im_open ();
27498int
27499main ()
27500{
27501gdk_im_open ();
27502 ;
27503 return 0;
27504}
27505_ACEOF
27506rm -f conftest.$ac_objext conftest$ac_exeext
27507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27508 (eval $ac_link) 2>conftest.er1
a848cd7e 27509 ac_status=$?
ac1cb8d3
VS
27510 grep -v '^ *+' conftest.er1 >conftest.err
27511 rm -f conftest.er1
27512 cat conftest.err >&5
a848cd7e
SC
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); } &&
3565d135
RR
27515 { ac_try='test -z "$ac_c_werror_flag"
27516 || test ! -s conftest.err'
ac1cb8d3
VS
27517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27518 (eval $ac_try) 2>&5
27519 ac_status=$?
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); }; } &&
27522 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524 (eval $ac_try) 2>&5
27525 ac_status=$?
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); }; }; then
27528 ac_cv_lib_gdk_gdk_im_open=yes
27529else
27530 echo "$as_me: failed program was:" >&5
27531sed 's/^/| /' conftest.$ac_ext >&5
27532
27533ac_cv_lib_gdk_gdk_im_open=no
27534fi
ac1cb8d3
VS
27535rm -f conftest.err conftest.$ac_objext \
27536 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27537LIBS=$ac_check_lib_save_LIBS
27538fi
27539echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27540echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27541if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27542 cat >>confdefs.h <<\_ACEOF
27543#define HAVE_XIM 1
27544_ACEOF
27545
27546fi
27547
27548
27549
27550 if test "$wxUSE_GPE" = "yes"; then
27551 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27552echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27553
0ad5d837
VZ
27554 ac_find_libraries=
27555 for ac_dir in $SEARCH_LIB;
a848cd7e 27556 do
3eca31dc 27557 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27558 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27559 ac_find_libraries=$ac_dir
27560 break 2
27561 fi
27562 done
27563 done
27564
27565 if test "$ac_find_libraries" != "" ; then
27566
0ad5d837 27567 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27568 ac_path_to_link=""
27569 else
0ad5d837
VZ
27570 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27571 result=$?
27572 if test $result = 0; then
27573 ac_path_to_link=""
27574 else
27575 ac_path_to_link=" -L$ac_find_libraries"
27576 fi
a848cd7e
SC
27577 fi
27578
27579 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27580 WXGPE=1
0ad5d837
VZ
27581 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27582echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27583 else
27584 echo "$as_me:$LINENO: result: not found" >&5
27585echo "${ECHO_T}not found" >&6
27586 fi
27587
27588 fi
27589 fi
27590
27591 if test "$wxUSE_MGL" = 1; then
27592 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27593echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27594 if test "x$MGL_ROOT" = x ; then
27595 echo "$as_me:$LINENO: result: not found" >&5
27596echo "${ECHO_T}not found" >&6
27597 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27598echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27599 { (exit 1); exit 1; }; }
27600 else
27601 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27602echo "${ECHO_T}$MGL_ROOT" >&6
27603 fi
27604
27605 echo "$as_me:$LINENO: checking for libmgl location" >&5
27606echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27607 case "${host}" in
27608 *-*-linux* )
27609 if test "x$wxUSE_SHARED" = xyes ; then
27610 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27611 else
27612 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27613 fi
27614 ;;
27615 *-pc-msdosdjgpp )
27616 mgl_os_candidates="dos32/dj2"
27617 ;;
27618 *)
27619 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27620echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27621 { (exit 1); exit 1; }; }
27622 esac
27623
27624 mgl_lib_type=""
27625 mgl_os=""
27626
27627 for mgl_os_i in $mgl_os_candidates ; do
27628 if test "x$mgl_os" = x ; then
27629 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27630 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27631 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27632 mgl_lib_type=debug
27633 mgl_os=$mgl_os_i
27634 fi
27635 fi
27636 if test "x$mgl_lib_type" = x ; then
27637 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27638 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27639 mgl_lib_type=release
27640 mgl_os=$mgl_os_i
27641 fi
27642 fi
27643 fi
27644 done
27645
27646 if test "x$mgl_os" = x ; then
27647 echo "$as_me:$LINENO: result: not found" >&5
27648echo "${ECHO_T}not found" >&6
27649 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27650echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27651 { (exit 1); exit 1; }; }
27652 fi
27653 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27654echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27655
27656 wxUSE_UNIVERSAL="yes"
27657
27658 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27659 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27660
27661 AFMINSTALL=afminstall
27662 TOOLKIT=MGL
27663 GUIDIST=MGL_DIST
27664 fi
27665
27666 if test "$wxUSE_MICROWIN" = 1; then
27667 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27668echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27669 if test "x$MICROWINDOWS" = x ; then
27670 echo "$as_me:$LINENO: result: not found" >&5
27671echo "${ECHO_T}not found" >&6
27672 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27673echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27674 { (exit 1); exit 1; }; }
27675 else
27676 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27677echo "${ECHO_T}$MICROWINDOWS" >&6
27678 fi
27679
27680 if test -f $MICROWINDOWS/lib/libmwin.a; then
27681 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27682echo "${ECHO_T}MicroWindows' libraries found." >&6
27683 else
27684 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27685echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27686 { (exit 1); exit 1; }; }
27687 fi
27688
27689 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27690 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27691
27692 wxUSE_UNIVERSAL="yes"
27693
27694 AFMINSTALL=afminstall
27695 TOOLKIT=MICROWIN
27696 GUIDIST=MICROWIN_DIST
27697
27698 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27699 fi
27700
74b84332 27701 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
3565d135 27702 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27703echo $ECHO_N "checking for X... $ECHO_C" >&6
27704
27705
27706# Check whether --with-x or --without-x was given.
27707if test "${with_x+set}" = set; then
27708 withval="$with_x"
27709
27710fi;
27711# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27712if test "x$with_x" = xno; then
27713 # The user explicitly disabled X.
27714 have_x=disabled
27715else
27716 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27717 # Both variables are already set.
27718 have_x=yes
27719 else
27720 if test "${ac_cv_have_x+set}" = set; then
27721 echo $ECHO_N "(cached) $ECHO_C" >&6
27722else
27723 # One or both of the vars are not set, and there is no cached value.
27724ac_x_includes=no ac_x_libraries=no
27725rm -fr conftest.dir
27726if mkdir conftest.dir; then
27727 cd conftest.dir
27728 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27729 cat >Imakefile <<'_ACEOF'
27730acfindx:
27731 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27732_ACEOF
27733 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27734 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27735 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27736 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27737 for ac_extension in a so sl; do
27738 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27739 test -f $ac_im_libdir/libX11.$ac_extension; then
27740 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27741 fi
27742 done
27743 # Screen out bogus values from the imake configuration. They are
27744 # bogus both because they are the default anyway, and because
27745 # using them would break gcc on systems where it needs fixed includes.
27746 case $ac_im_incroot in
27747 /usr/include) ;;
27748 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27749 esac
27750 case $ac_im_usrlibdir in
27751 /usr/lib | /lib) ;;
27752 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27753 esac
27754 fi
27755 cd ..
27756 rm -fr conftest.dir
27757fi
27758
27759# Standard set of common directories for X headers.
27760# Check X11 before X11Rn because it is often a symlink to the current release.
27761ac_x_header_dirs='
27762/usr/X11/include
27763/usr/X11R6/include
27764/usr/X11R5/include
27765/usr/X11R4/include
27766
27767/usr/include/X11
27768/usr/include/X11R6
27769/usr/include/X11R5
27770/usr/include/X11R4
27771
27772/usr/local/X11/include
27773/usr/local/X11R6/include
27774/usr/local/X11R5/include
27775/usr/local/X11R4/include
27776
27777/usr/local/include/X11
27778/usr/local/include/X11R6
27779/usr/local/include/X11R5
27780/usr/local/include/X11R4
27781
27782/usr/X386/include
27783/usr/x386/include
27784/usr/XFree86/include/X11
27785
27786/usr/include
27787/usr/local/include
27788/usr/unsupported/include
27789/usr/athena/include
27790/usr/local/x11r5/include
27791/usr/lpp/Xamples/include
27792
27793/usr/openwin/include
27794/usr/openwin/share/include'
27795
27796if test "$ac_x_includes" = no; then
3565d135 27797 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
27798 # First, try using that file with no special directory specified.
27799 cat >conftest.$ac_ext <<_ACEOF
27800/* confdefs.h. */
27801_ACEOF
27802cat confdefs.h >>conftest.$ac_ext
27803cat >>conftest.$ac_ext <<_ACEOF
27804/* end confdefs.h. */
3565d135 27805#include <X11/Intrinsic.h>
a848cd7e
SC
27806_ACEOF
27807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27809 ac_status=$?
27810 grep -v '^ *+' conftest.er1 >conftest.err
27811 rm -f conftest.er1
27812 cat conftest.err >&5
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); } >/dev/null; then
27815 if test -s conftest.err; then
27816 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27818 else
27819 ac_cpp_err=
27820 fi
27821else
27822 ac_cpp_err=yes
27823fi
27824if test -z "$ac_cpp_err"; then
27825 # We can compile using X headers with no special include directory.
27826ac_x_includes=
27827else
27828 echo "$as_me: failed program was:" >&5
27829sed 's/^/| /' conftest.$ac_ext >&5
27830
27831 for ac_dir in $ac_x_header_dirs; do
3565d135 27832 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
27833 ac_x_includes=$ac_dir
27834 break
27835 fi
27836done
27837fi
27838rm -f conftest.err conftest.$ac_ext
27839fi # $ac_x_includes = no
27840
27841if test "$ac_x_libraries" = no; then
27842 # Check for the libraries.
27843 # See if we find them without any special options.
27844 # Don't add to $LIBS permanently.
27845 ac_save_LIBS=$LIBS
3565d135 27846 LIBS="-lXt $LIBS"
a848cd7e
SC
27847 cat >conftest.$ac_ext <<_ACEOF
27848/* confdefs.h. */
27849_ACEOF
27850cat confdefs.h >>conftest.$ac_ext
27851cat >>conftest.$ac_ext <<_ACEOF
27852/* end confdefs.h. */
3565d135 27853#include <X11/Intrinsic.h>
a848cd7e
SC
27854int
27855main ()
27856{
3565d135 27857XtMalloc (0)
a848cd7e
SC
27858 ;
27859 return 0;
27860}
27861_ACEOF
27862rm -f conftest.$ac_objext conftest$ac_exeext
27863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27864 (eval $ac_link) 2>conftest.er1
a848cd7e 27865 ac_status=$?
ac1cb8d3
VS
27866 grep -v '^ *+' conftest.er1 >conftest.err
27867 rm -f conftest.er1
27868 cat conftest.err >&5
a848cd7e
SC
27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); } &&
3565d135
RR
27871 { ac_try='test -z "$ac_c_werror_flag"
27872 || test ! -s conftest.err'
ac1cb8d3
VS
27873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874 (eval $ac_try) 2>&5
27875 ac_status=$?
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; } &&
27878 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880 (eval $ac_try) 2>&5
27881 ac_status=$?
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; }; then
27884 LIBS=$ac_save_LIBS
27885# We can link X programs with no special library path.
27886ac_x_libraries=
27887else
27888 echo "$as_me: failed program was:" >&5
27889sed 's/^/| /' conftest.$ac_ext >&5
27890
27891LIBS=$ac_save_LIBS
27892for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27893do
27894 # Don't even attempt the hair of trying to link an X program!
27895 for ac_extension in a so sl; do
3565d135 27896 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
27897 ac_x_libraries=$ac_dir
27898 break 2
27899 fi
27900 done
27901done
27902fi
ac1cb8d3
VS
27903rm -f conftest.err conftest.$ac_objext \
27904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27905fi # $ac_x_libraries = no
27906
27907if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27908 # Didn't find X anywhere. Cache the known absence of X.
27909 ac_cv_have_x="have_x=no"
27910else
27911 # Record where we found X for the cache.
27912 ac_cv_have_x="have_x=yes \
ac1cb8d3 27913 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27914fi
27915fi
27916
27917 fi
27918 eval "$ac_cv_have_x"
27919fi # $with_x != no
27920
27921if test "$have_x" != yes; then
27922 echo "$as_me:$LINENO: result: $have_x" >&5
27923echo "${ECHO_T}$have_x" >&6
27924 no_x=yes
27925else
27926 # If each of the values was on the command line, it overrides each guess.
27927 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27928 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27929 # Update the cache value to reflect the command line values.
27930 ac_cv_have_x="have_x=yes \
27931 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3565d135
RR
27932 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
27933echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
27934fi
27935
27936if test "$no_x" = yes; then
27937 # Not all programs may use this symbol, but it does not hurt to define it.
27938
27939cat >>confdefs.h <<\_ACEOF
27940#define X_DISPLAY_MISSING 1
27941_ACEOF
27942
27943 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27944else
27945 if test -n "$x_includes"; then
27946 X_CFLAGS="$X_CFLAGS -I$x_includes"
27947 fi
27948
27949 # It would also be nice to do this for all -L options, not just this one.
27950 if test -n "$x_libraries"; then
27951 X_LIBS="$X_LIBS -L$x_libraries"
27952 # For Solaris; some versions of Sun CC require a space after -R and
27953 # others require no space. Words are not sufficient . . . .
27954 case `(uname -sr) 2>/dev/null` in
27955 "SunOS 5"*)
27956 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27957echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27958 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27959 cat >conftest.$ac_ext <<_ACEOF
27960/* confdefs.h. */
27961_ACEOF
27962cat confdefs.h >>conftest.$ac_ext
27963cat >>conftest.$ac_ext <<_ACEOF
27964/* end confdefs.h. */
27965
27966int
27967main ()
27968{
27969
27970 ;
27971 return 0;
27972}
27973_ACEOF
27974rm -f conftest.$ac_objext conftest$ac_exeext
27975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27976 (eval $ac_link) 2>conftest.er1
a848cd7e 27977 ac_status=$?
ac1cb8d3
VS
27978 grep -v '^ *+' conftest.er1 >conftest.err
27979 rm -f conftest.er1
27980 cat conftest.err >&5
a848cd7e
SC
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); } &&
3565d135
RR
27983 { ac_try='test -z "$ac_c_werror_flag"
27984 || test ! -s conftest.err'
ac1cb8d3
VS
27985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27986 (eval $ac_try) 2>&5
27987 ac_status=$?
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; } &&
27990 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27992 (eval $ac_try) 2>&5
27993 ac_status=$?
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); }; }; then
27996 ac_R_nospace=yes
27997else
27998 echo "$as_me: failed program was:" >&5
27999sed 's/^/| /' conftest.$ac_ext >&5
28000
28001ac_R_nospace=no
28002fi
ac1cb8d3
VS
28003rm -f conftest.err conftest.$ac_objext \
28004 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28005 if test $ac_R_nospace = yes; then
28006 echo "$as_me:$LINENO: result: no" >&5
28007echo "${ECHO_T}no" >&6
28008 X_LIBS="$X_LIBS -R$x_libraries"
28009 else
28010 LIBS="$ac_xsave_LIBS -R $x_libraries"
28011 cat >conftest.$ac_ext <<_ACEOF
28012/* confdefs.h. */
28013_ACEOF
28014cat confdefs.h >>conftest.$ac_ext
28015cat >>conftest.$ac_ext <<_ACEOF
28016/* end confdefs.h. */
28017
28018int
28019main ()
28020{
28021
28022 ;
28023 return 0;
28024}
28025_ACEOF
28026rm -f conftest.$ac_objext conftest$ac_exeext
28027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28028 (eval $ac_link) 2>conftest.er1
a848cd7e 28029 ac_status=$?
ac1cb8d3
VS
28030 grep -v '^ *+' conftest.er1 >conftest.err
28031 rm -f conftest.er1
28032 cat conftest.err >&5
a848cd7e
SC
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); } &&
3565d135
RR
28035 { ac_try='test -z "$ac_c_werror_flag"
28036 || test ! -s conftest.err'
ac1cb8d3
VS
28037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28038 (eval $ac_try) 2>&5
28039 ac_status=$?
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); }; } &&
28042 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28044 (eval $ac_try) 2>&5
28045 ac_status=$?
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); }; }; then
28048 ac_R_space=yes
28049else
28050 echo "$as_me: failed program was:" >&5
28051sed 's/^/| /' conftest.$ac_ext >&5
28052
28053ac_R_space=no
28054fi
ac1cb8d3
VS
28055rm -f conftest.err conftest.$ac_objext \
28056 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28057 if test $ac_R_space = yes; then
28058 echo "$as_me:$LINENO: result: yes" >&5
28059echo "${ECHO_T}yes" >&6
28060 X_LIBS="$X_LIBS -R $x_libraries"
28061 else
28062 echo "$as_me:$LINENO: result: neither works" >&5
28063echo "${ECHO_T}neither works" >&6
28064 fi
28065 fi
28066 LIBS=$ac_xsave_LIBS
28067 esac
28068 fi
28069
28070 # Check for system-dependent libraries X programs must link with.
28071 # Do this before checking for the system-independent R6 libraries
28072 # (-lICE), since we may need -lsocket or whatever for X linking.
28073
28074 if test "$ISC" = yes; then
28075 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28076 else
28077 # Martyn Johnson says this is needed for Ultrix, if the X
28078 # libraries were built with DECnet support. And Karl Berry says
28079 # the Alpha needs dnet_stub (dnet does not exist).
28080 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28081 cat >conftest.$ac_ext <<_ACEOF
28082/* confdefs.h. */
28083_ACEOF
28084cat confdefs.h >>conftest.$ac_ext
28085cat >>conftest.$ac_ext <<_ACEOF
28086/* end confdefs.h. */
28087
28088/* Override any gcc2 internal prototype to avoid an error. */
28089#ifdef __cplusplus
28090extern "C"
28091#endif
28092/* We use char because int might match the return type of a gcc2
28093 builtin and then its argument prototype would still apply. */
28094char XOpenDisplay ();
28095int
28096main ()
28097{
28098XOpenDisplay ();
28099 ;
28100 return 0;
28101}
28102_ACEOF
28103rm -f conftest.$ac_objext conftest$ac_exeext
28104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28105 (eval $ac_link) 2>conftest.er1
a848cd7e 28106 ac_status=$?
ac1cb8d3
VS
28107 grep -v '^ *+' conftest.er1 >conftest.err
28108 rm -f conftest.er1
28109 cat conftest.err >&5
a848cd7e
SC
28110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); } &&
3565d135
RR
28112 { ac_try='test -z "$ac_c_werror_flag"
28113 || test ! -s conftest.err'
ac1cb8d3
VS
28114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115 (eval $ac_try) 2>&5
28116 ac_status=$?
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); }; } &&
28119 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121 (eval $ac_try) 2>&5
28122 ac_status=$?
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; }; then
28125 :
28126else
28127 echo "$as_me: failed program was:" >&5
28128sed 's/^/| /' conftest.$ac_ext >&5
28129
28130echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28131echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28132if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28133 echo $ECHO_N "(cached) $ECHO_C" >&6
28134else
28135 ac_check_lib_save_LIBS=$LIBS
28136LIBS="-ldnet $LIBS"
28137cat >conftest.$ac_ext <<_ACEOF
28138/* confdefs.h. */
28139_ACEOF
28140cat confdefs.h >>conftest.$ac_ext
28141cat >>conftest.$ac_ext <<_ACEOF
28142/* end confdefs.h. */
28143
28144/* Override any gcc2 internal prototype to avoid an error. */
28145#ifdef __cplusplus
28146extern "C"
28147#endif
28148/* We use char because int might match the return type of a gcc2
28149 builtin and then its argument prototype would still apply. */
28150char dnet_ntoa ();
28151int
28152main ()
28153{
28154dnet_ntoa ();
28155 ;
28156 return 0;
28157}
28158_ACEOF
28159rm -f conftest.$ac_objext conftest$ac_exeext
28160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28161 (eval $ac_link) 2>conftest.er1
a848cd7e 28162 ac_status=$?
ac1cb8d3
VS
28163 grep -v '^ *+' conftest.er1 >conftest.err
28164 rm -f conftest.er1
28165 cat conftest.err >&5
a848cd7e
SC
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); } &&
3565d135
RR
28168 { ac_try='test -z "$ac_c_werror_flag"
28169 || test ! -s conftest.err'
ac1cb8d3
VS
28170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28171 (eval $ac_try) 2>&5
28172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; } &&
28175 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28177 (eval $ac_try) 2>&5
28178 ac_status=$?
28179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); }; }; then
28181 ac_cv_lib_dnet_dnet_ntoa=yes
28182else
28183 echo "$as_me: failed program was:" >&5
28184sed 's/^/| /' conftest.$ac_ext >&5
28185
28186ac_cv_lib_dnet_dnet_ntoa=no
28187fi
ac1cb8d3
VS
28188rm -f conftest.err conftest.$ac_objext \
28189 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28190LIBS=$ac_check_lib_save_LIBS
28191fi
28192echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28193echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28194if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28195 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28196fi
28197
28198 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28199 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28200echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28201if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28202 echo $ECHO_N "(cached) $ECHO_C" >&6
28203else
28204 ac_check_lib_save_LIBS=$LIBS
28205LIBS="-ldnet_stub $LIBS"
28206cat >conftest.$ac_ext <<_ACEOF
28207/* confdefs.h. */
28208_ACEOF
28209cat confdefs.h >>conftest.$ac_ext
28210cat >>conftest.$ac_ext <<_ACEOF
28211/* end confdefs.h. */
28212
28213/* Override any gcc2 internal prototype to avoid an error. */
28214#ifdef __cplusplus
28215extern "C"
28216#endif
28217/* We use char because int might match the return type of a gcc2
28218 builtin and then its argument prototype would still apply. */
28219char dnet_ntoa ();
28220int
28221main ()
28222{
28223dnet_ntoa ();
28224 ;
28225 return 0;
28226}
28227_ACEOF
28228rm -f conftest.$ac_objext conftest$ac_exeext
28229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28230 (eval $ac_link) 2>conftest.er1
a848cd7e 28231 ac_status=$?
ac1cb8d3
VS
28232 grep -v '^ *+' conftest.er1 >conftest.err
28233 rm -f conftest.er1
28234 cat conftest.err >&5
a848cd7e
SC
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); } &&
3565d135
RR
28237 { ac_try='test -z "$ac_c_werror_flag"
28238 || test ! -s conftest.err'
ac1cb8d3
VS
28239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28240 (eval $ac_try) 2>&5
28241 ac_status=$?
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); }; } &&
28244 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28246 (eval $ac_try) 2>&5
28247 ac_status=$?
28248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249 (exit $ac_status); }; }; then
28250 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28251else
28252 echo "$as_me: failed program was:" >&5
28253sed 's/^/| /' conftest.$ac_ext >&5
28254
28255ac_cv_lib_dnet_stub_dnet_ntoa=no
28256fi
ac1cb8d3
VS
28257rm -f conftest.err conftest.$ac_objext \
28258 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28259LIBS=$ac_check_lib_save_LIBS
28260fi
28261echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28262echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28263if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28264 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28265fi
28266
28267 fi
28268fi
ac1cb8d3
VS
28269rm -f conftest.err conftest.$ac_objext \
28270 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28271 LIBS="$ac_xsave_LIBS"
28272
28273 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28274 # to get the SysV transport functions.
28275 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28276 # needs -lnsl.
28277 # The nsl library prevents programs from opening the X display
28278 # on Irix 5.2, according to T.E. Dickey.
28279 # The functions gethostbyname, getservbyname, and inet_addr are
28280 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28281 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28282echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28283if test "${ac_cv_func_gethostbyname+set}" = set; then
28284 echo $ECHO_N "(cached) $ECHO_C" >&6
28285else
28286 cat >conftest.$ac_ext <<_ACEOF
28287/* confdefs.h. */
28288_ACEOF
28289cat confdefs.h >>conftest.$ac_ext
28290cat >>conftest.$ac_ext <<_ACEOF
28291/* end confdefs.h. */
ac1cb8d3
VS
28292/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28294#define gethostbyname innocuous_gethostbyname
28295
a848cd7e
SC
28296/* System header to define __stub macros and hopefully few prototypes,
28297 which can conflict with char gethostbyname (); below.
28298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28299 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28300
a848cd7e
SC
28301#ifdef __STDC__
28302# include <limits.h>
28303#else
28304# include <assert.h>
28305#endif
ac1cb8d3
VS
28306
28307#undef gethostbyname
28308
a848cd7e
SC
28309/* Override any gcc2 internal prototype to avoid an error. */
28310#ifdef __cplusplus
28311extern "C"
28312{
28313#endif
28314/* We use char because int might match the return type of a gcc2
28315 builtin and then its argument prototype would still apply. */
28316char gethostbyname ();
28317/* The GNU C library defines this for functions which it implements
28318 to always fail with ENOSYS. Some functions are actually named
28319 something starting with __ and the normal name is an alias. */
28320#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28321choke me
28322#else
28323char (*f) () = gethostbyname;
28324#endif
28325#ifdef __cplusplus
28326}
28327#endif
28328
28329int
28330main ()
28331{
28332return f != gethostbyname;
28333 ;
28334 return 0;
28335}
28336_ACEOF
28337rm -f conftest.$ac_objext conftest$ac_exeext
28338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28339 (eval $ac_link) 2>conftest.er1
a848cd7e 28340 ac_status=$?
ac1cb8d3
VS
28341 grep -v '^ *+' conftest.er1 >conftest.err
28342 rm -f conftest.er1
28343 cat conftest.err >&5
a848cd7e
SC
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); } &&
3565d135
RR
28346 { ac_try='test -z "$ac_c_werror_flag"
28347 || test ! -s conftest.err'
ac1cb8d3
VS
28348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28349 (eval $ac_try) 2>&5
28350 ac_status=$?
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); }; } &&
28353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355 (eval $ac_try) 2>&5
28356 ac_status=$?
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); }; }; then
28359 ac_cv_func_gethostbyname=yes
28360else
28361 echo "$as_me: failed program was:" >&5
28362sed 's/^/| /' conftest.$ac_ext >&5
28363
28364ac_cv_func_gethostbyname=no
28365fi
ac1cb8d3
VS
28366rm -f conftest.err conftest.$ac_objext \
28367 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28368fi
28369echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28370echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28371
28372 if test $ac_cv_func_gethostbyname = no; then
28373 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28374echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28375if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28376 echo $ECHO_N "(cached) $ECHO_C" >&6
28377else
28378 ac_check_lib_save_LIBS=$LIBS
28379LIBS="-lnsl $LIBS"
28380cat >conftest.$ac_ext <<_ACEOF
28381/* confdefs.h. */
28382_ACEOF
28383cat confdefs.h >>conftest.$ac_ext
28384cat >>conftest.$ac_ext <<_ACEOF
28385/* end confdefs.h. */
28386
28387/* Override any gcc2 internal prototype to avoid an error. */
28388#ifdef __cplusplus
28389extern "C"
28390#endif
28391/* We use char because int might match the return type of a gcc2
28392 builtin and then its argument prototype would still apply. */
28393char gethostbyname ();
28394int
28395main ()
28396{
28397gethostbyname ();
28398 ;
28399 return 0;
28400}
28401_ACEOF
28402rm -f conftest.$ac_objext conftest$ac_exeext
28403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28404 (eval $ac_link) 2>conftest.er1
28405 ac_status=$?
28406 grep -v '^ *+' conftest.er1 >conftest.err
28407 rm -f conftest.er1
28408 cat conftest.err >&5
28409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410 (exit $ac_status); } &&
3565d135
RR
28411 { ac_try='test -z "$ac_c_werror_flag"
28412 || test ! -s conftest.err'
ac1cb8d3
VS
28413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28414 (eval $ac_try) 2>&5
28415 ac_status=$?
28416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); }; } &&
28418 { ac_try='test -s conftest$ac_exeext'
28419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28420 (eval $ac_try) 2>&5
28421 ac_status=$?
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); }; }; then
28424 ac_cv_lib_nsl_gethostbyname=yes
28425else
28426 echo "$as_me: failed program was:" >&5
28427sed 's/^/| /' conftest.$ac_ext >&5
28428
28429ac_cv_lib_nsl_gethostbyname=no
28430fi
28431rm -f conftest.err conftest.$ac_objext \
28432 conftest$ac_exeext conftest.$ac_ext
28433LIBS=$ac_check_lib_save_LIBS
28434fi
28435echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28436echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28437if test $ac_cv_lib_nsl_gethostbyname = yes; then
28438 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28439fi
28440
28441 if test $ac_cv_lib_nsl_gethostbyname = no; then
28442 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28443echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28444if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28445 echo $ECHO_N "(cached) $ECHO_C" >&6
28446else
28447 ac_check_lib_save_LIBS=$LIBS
28448LIBS="-lbsd $LIBS"
28449cat >conftest.$ac_ext <<_ACEOF
28450/* confdefs.h. */
28451_ACEOF
28452cat confdefs.h >>conftest.$ac_ext
28453cat >>conftest.$ac_ext <<_ACEOF
28454/* end confdefs.h. */
28455
28456/* Override any gcc2 internal prototype to avoid an error. */
28457#ifdef __cplusplus
28458extern "C"
28459#endif
28460/* We use char because int might match the return type of a gcc2
28461 builtin and then its argument prototype would still apply. */
28462char gethostbyname ();
28463int
28464main ()
28465{
28466gethostbyname ();
28467 ;
28468 return 0;
28469}
28470_ACEOF
28471rm -f conftest.$ac_objext conftest$ac_exeext
28472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28473 (eval $ac_link) 2>conftest.er1
a848cd7e 28474 ac_status=$?
ac1cb8d3
VS
28475 grep -v '^ *+' conftest.er1 >conftest.err
28476 rm -f conftest.er1
28477 cat conftest.err >&5
a848cd7e
SC
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); } &&
3565d135
RR
28480 { ac_try='test -z "$ac_c_werror_flag"
28481 || test ! -s conftest.err'
a848cd7e
SC
28482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28483 (eval $ac_try) 2>&5
28484 ac_status=$?
28485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28486 (exit $ac_status); }; } &&
28487 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28489 (eval $ac_try) 2>&5
28490 ac_status=$?
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); }; }; then
28493 ac_cv_lib_bsd_gethostbyname=yes
28494else
28495 echo "$as_me: failed program was:" >&5
28496sed 's/^/| /' conftest.$ac_ext >&5
28497
28498ac_cv_lib_bsd_gethostbyname=no
28499fi
ac1cb8d3
VS
28500rm -f conftest.err conftest.$ac_objext \
28501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28502LIBS=$ac_check_lib_save_LIBS
28503fi
28504echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28505echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28506if test $ac_cv_lib_bsd_gethostbyname = yes; then
28507 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28508fi
28509
28510 fi
28511 fi
28512
28513 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28514 # socket/setsockopt and other routines are undefined under SCO ODT
28515 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28516 # on later versions), says Simon Leinen: it contains gethostby*
28517 # variants that don't use the name server (or something). -lsocket
28518 # must be given before -lnsl if both are needed. We assume that
28519 # if connect needs -lnsl, so does gethostbyname.
28520 echo "$as_me:$LINENO: checking for connect" >&5
28521echo $ECHO_N "checking for connect... $ECHO_C" >&6
28522if test "${ac_cv_func_connect+set}" = set; then
28523 echo $ECHO_N "(cached) $ECHO_C" >&6
28524else
28525 cat >conftest.$ac_ext <<_ACEOF
28526/* confdefs.h. */
28527_ACEOF
28528cat confdefs.h >>conftest.$ac_ext
28529cat >>conftest.$ac_ext <<_ACEOF
28530/* end confdefs.h. */
ac1cb8d3
VS
28531/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28533#define connect innocuous_connect
28534
a848cd7e
SC
28535/* System header to define __stub macros and hopefully few prototypes,
28536 which can conflict with char connect (); below.
28537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28538 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28539
a848cd7e
SC
28540#ifdef __STDC__
28541# include <limits.h>
28542#else
28543# include <assert.h>
28544#endif
ac1cb8d3
VS
28545
28546#undef connect
28547
a848cd7e
SC
28548/* Override any gcc2 internal prototype to avoid an error. */
28549#ifdef __cplusplus
28550extern "C"
28551{
28552#endif
28553/* We use char because int might match the return type of a gcc2
28554 builtin and then its argument prototype would still apply. */
28555char connect ();
28556/* The GNU C library defines this for functions which it implements
28557 to always fail with ENOSYS. Some functions are actually named
28558 something starting with __ and the normal name is an alias. */
28559#if defined (__stub_connect) || defined (__stub___connect)
28560choke me
28561#else
28562char (*f) () = connect;
28563#endif
28564#ifdef __cplusplus
28565}
28566#endif
28567
28568int
28569main ()
28570{
28571return f != connect;
28572 ;
28573 return 0;
28574}
28575_ACEOF
28576rm -f conftest.$ac_objext conftest$ac_exeext
28577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28578 (eval $ac_link) 2>conftest.er1
a848cd7e 28579 ac_status=$?
ac1cb8d3
VS
28580 grep -v '^ *+' conftest.er1 >conftest.err
28581 rm -f conftest.er1
28582 cat conftest.err >&5
a848cd7e
SC
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); } &&
3565d135
RR
28585 { ac_try='test -z "$ac_c_werror_flag"
28586 || test ! -s conftest.err'
ac1cb8d3
VS
28587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588 (eval $ac_try) 2>&5
28589 ac_status=$?
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); }; } &&
28592 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594 (eval $ac_try) 2>&5
28595 ac_status=$?
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); }; }; then
28598 ac_cv_func_connect=yes
28599else
28600 echo "$as_me: failed program was:" >&5
28601sed 's/^/| /' conftest.$ac_ext >&5
28602
28603ac_cv_func_connect=no
28604fi
ac1cb8d3
VS
28605rm -f conftest.err conftest.$ac_objext \
28606 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28607fi
28608echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28609echo "${ECHO_T}$ac_cv_func_connect" >&6
28610
28611 if test $ac_cv_func_connect = no; then
28612 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28613echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28614if test "${ac_cv_lib_socket_connect+set}" = set; then
28615 echo $ECHO_N "(cached) $ECHO_C" >&6
28616else
28617 ac_check_lib_save_LIBS=$LIBS
28618LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28619cat >conftest.$ac_ext <<_ACEOF
28620/* confdefs.h. */
28621_ACEOF
28622cat confdefs.h >>conftest.$ac_ext
28623cat >>conftest.$ac_ext <<_ACEOF
28624/* end confdefs.h. */
28625
28626/* Override any gcc2 internal prototype to avoid an error. */
28627#ifdef __cplusplus
28628extern "C"
28629#endif
28630/* We use char because int might match the return type of a gcc2
28631 builtin and then its argument prototype would still apply. */
28632char connect ();
28633int
28634main ()
28635{
28636connect ();
28637 ;
28638 return 0;
28639}
28640_ACEOF
28641rm -f conftest.$ac_objext conftest$ac_exeext
28642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28643 (eval $ac_link) 2>conftest.er1
a848cd7e 28644 ac_status=$?
ac1cb8d3
VS
28645 grep -v '^ *+' conftest.er1 >conftest.err
28646 rm -f conftest.er1
28647 cat conftest.err >&5
a848cd7e
SC
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); } &&
3565d135
RR
28650 { ac_try='test -z "$ac_c_werror_flag"
28651 || test ! -s conftest.err'
ac1cb8d3
VS
28652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28653 (eval $ac_try) 2>&5
28654 ac_status=$?
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); }; } &&
28657 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659 (eval $ac_try) 2>&5
28660 ac_status=$?
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); }; }; then
28663 ac_cv_lib_socket_connect=yes
28664else
28665 echo "$as_me: failed program was:" >&5
28666sed 's/^/| /' conftest.$ac_ext >&5
28667
28668ac_cv_lib_socket_connect=no
28669fi
ac1cb8d3
VS
28670rm -f conftest.err conftest.$ac_objext \
28671 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28672LIBS=$ac_check_lib_save_LIBS
28673fi
28674echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28675echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28676if test $ac_cv_lib_socket_connect = yes; then
28677 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28678fi
28679
28680 fi
28681
28682 # Guillermo Gomez says -lposix is necessary on A/UX.
28683 echo "$as_me:$LINENO: checking for remove" >&5
28684echo $ECHO_N "checking for remove... $ECHO_C" >&6
28685if test "${ac_cv_func_remove+set}" = set; then
28686 echo $ECHO_N "(cached) $ECHO_C" >&6
28687else
28688 cat >conftest.$ac_ext <<_ACEOF
28689/* confdefs.h. */
28690_ACEOF
28691cat confdefs.h >>conftest.$ac_ext
28692cat >>conftest.$ac_ext <<_ACEOF
28693/* end confdefs.h. */
ac1cb8d3
VS
28694/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28696#define remove innocuous_remove
28697
a848cd7e
SC
28698/* System header to define __stub macros and hopefully few prototypes,
28699 which can conflict with char remove (); below.
28700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28701 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28702
a848cd7e
SC
28703#ifdef __STDC__
28704# include <limits.h>
28705#else
28706# include <assert.h>
28707#endif
ac1cb8d3
VS
28708
28709#undef remove
28710
a848cd7e
SC
28711/* Override any gcc2 internal prototype to avoid an error. */
28712#ifdef __cplusplus
28713extern "C"
28714{
28715#endif
28716/* We use char because int might match the return type of a gcc2
28717 builtin and then its argument prototype would still apply. */
28718char remove ();
28719/* The GNU C library defines this for functions which it implements
28720 to always fail with ENOSYS. Some functions are actually named
28721 something starting with __ and the normal name is an alias. */
28722#if defined (__stub_remove) || defined (__stub___remove)
28723choke me
28724#else
28725char (*f) () = remove;
28726#endif
28727#ifdef __cplusplus
28728}
28729#endif
28730
28731int
28732main ()
28733{
28734return f != remove;
28735 ;
28736 return 0;
28737}
28738_ACEOF
28739rm -f conftest.$ac_objext conftest$ac_exeext
28740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28741 (eval $ac_link) 2>conftest.er1
a848cd7e 28742 ac_status=$?
ac1cb8d3
VS
28743 grep -v '^ *+' conftest.er1 >conftest.err
28744 rm -f conftest.er1
28745 cat conftest.err >&5
a848cd7e
SC
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); } &&
3565d135
RR
28748 { ac_try='test -z "$ac_c_werror_flag"
28749 || test ! -s conftest.err'
ac1cb8d3
VS
28750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751 (eval $ac_try) 2>&5
28752 ac_status=$?
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; } &&
28755 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757 (eval $ac_try) 2>&5
28758 ac_status=$?
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; }; then
28761 ac_cv_func_remove=yes
28762else
28763 echo "$as_me: failed program was:" >&5
28764sed 's/^/| /' conftest.$ac_ext >&5
28765
28766ac_cv_func_remove=no
28767fi
ac1cb8d3
VS
28768rm -f conftest.err conftest.$ac_objext \
28769 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28770fi
28771echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28772echo "${ECHO_T}$ac_cv_func_remove" >&6
28773
28774 if test $ac_cv_func_remove = no; then
28775 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28776echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28777if test "${ac_cv_lib_posix_remove+set}" = set; then
28778 echo $ECHO_N "(cached) $ECHO_C" >&6
28779else
28780 ac_check_lib_save_LIBS=$LIBS
28781LIBS="-lposix $LIBS"
28782cat >conftest.$ac_ext <<_ACEOF
28783/* confdefs.h. */
28784_ACEOF
28785cat confdefs.h >>conftest.$ac_ext
28786cat >>conftest.$ac_ext <<_ACEOF
28787/* end confdefs.h. */
28788
28789/* Override any gcc2 internal prototype to avoid an error. */
28790#ifdef __cplusplus
28791extern "C"
28792#endif
28793/* We use char because int might match the return type of a gcc2
28794 builtin and then its argument prototype would still apply. */
28795char remove ();
28796int
28797main ()
28798{
28799remove ();
28800 ;
28801 return 0;
28802}
28803_ACEOF
28804rm -f conftest.$ac_objext conftest$ac_exeext
28805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28806 (eval $ac_link) 2>conftest.er1
a848cd7e 28807 ac_status=$?
ac1cb8d3
VS
28808 grep -v '^ *+' conftest.er1 >conftest.err
28809 rm -f conftest.er1
28810 cat conftest.err >&5
a848cd7e
SC
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); } &&
3565d135
RR
28813 { ac_try='test -z "$ac_c_werror_flag"
28814 || test ! -s conftest.err'
ac1cb8d3
VS
28815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28816 (eval $ac_try) 2>&5
28817 ac_status=$?
28818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819 (exit $ac_status); }; } &&
28820 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28822 (eval $ac_try) 2>&5
28823 ac_status=$?
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); }; }; then
28826 ac_cv_lib_posix_remove=yes
28827else
28828 echo "$as_me: failed program was:" >&5
28829sed 's/^/| /' conftest.$ac_ext >&5
28830
28831ac_cv_lib_posix_remove=no
28832fi
ac1cb8d3
VS
28833rm -f conftest.err conftest.$ac_objext \
28834 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28835LIBS=$ac_check_lib_save_LIBS
28836fi
28837echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28838echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28839if test $ac_cv_lib_posix_remove = yes; then
28840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28841fi
28842
28843 fi
28844
28845 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28846 echo "$as_me:$LINENO: checking for shmat" >&5
28847echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28848if test "${ac_cv_func_shmat+set}" = set; then
28849 echo $ECHO_N "(cached) $ECHO_C" >&6
28850else
28851 cat >conftest.$ac_ext <<_ACEOF
28852/* confdefs.h. */
28853_ACEOF
28854cat confdefs.h >>conftest.$ac_ext
28855cat >>conftest.$ac_ext <<_ACEOF
28856/* end confdefs.h. */
ac1cb8d3
VS
28857/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28859#define shmat innocuous_shmat
28860
a848cd7e
SC
28861/* System header to define __stub macros and hopefully few prototypes,
28862 which can conflict with char shmat (); below.
28863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28864 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28865
a848cd7e
SC
28866#ifdef __STDC__
28867# include <limits.h>
28868#else
28869# include <assert.h>
28870#endif
ac1cb8d3
VS
28871
28872#undef shmat
28873
a848cd7e
SC
28874/* Override any gcc2 internal prototype to avoid an error. */
28875#ifdef __cplusplus
28876extern "C"
28877{
28878#endif
28879/* We use char because int might match the return type of a gcc2
28880 builtin and then its argument prototype would still apply. */
28881char shmat ();
28882/* The GNU C library defines this for functions which it implements
28883 to always fail with ENOSYS. Some functions are actually named
28884 something starting with __ and the normal name is an alias. */
28885#if defined (__stub_shmat) || defined (__stub___shmat)
28886choke me
28887#else
28888char (*f) () = shmat;
28889#endif
28890#ifdef __cplusplus
28891}
28892#endif
28893
28894int
28895main ()
28896{
28897return f != shmat;
28898 ;
28899 return 0;
28900}
28901_ACEOF
28902rm -f conftest.$ac_objext conftest$ac_exeext
28903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28904 (eval $ac_link) 2>conftest.er1
a848cd7e 28905 ac_status=$?
ac1cb8d3
VS
28906 grep -v '^ *+' conftest.er1 >conftest.err
28907 rm -f conftest.er1
28908 cat conftest.err >&5
a848cd7e
SC
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); } &&
3565d135
RR
28911 { ac_try='test -z "$ac_c_werror_flag"
28912 || test ! -s conftest.err'
ac1cb8d3
VS
28913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28914 (eval $ac_try) 2>&5
28915 ac_status=$?
28916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 (exit $ac_status); }; } &&
28918 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28920 (eval $ac_try) 2>&5
28921 ac_status=$?
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); }; }; then
28924 ac_cv_func_shmat=yes
28925else
28926 echo "$as_me: failed program was:" >&5
28927sed 's/^/| /' conftest.$ac_ext >&5
28928
28929ac_cv_func_shmat=no
28930fi
ac1cb8d3
VS
28931rm -f conftest.err conftest.$ac_objext \
28932 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28933fi
28934echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28935echo "${ECHO_T}$ac_cv_func_shmat" >&6
28936
28937 if test $ac_cv_func_shmat = no; then
28938 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28939echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28940if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28942else
28943 ac_check_lib_save_LIBS=$LIBS
28944LIBS="-lipc $LIBS"
28945cat >conftest.$ac_ext <<_ACEOF
28946/* confdefs.h. */
28947_ACEOF
28948cat confdefs.h >>conftest.$ac_ext
28949cat >>conftest.$ac_ext <<_ACEOF
28950/* end confdefs.h. */
28951
28952/* Override any gcc2 internal prototype to avoid an error. */
28953#ifdef __cplusplus
28954extern "C"
28955#endif
28956/* We use char because int might match the return type of a gcc2
28957 builtin and then its argument prototype would still apply. */
28958char shmat ();
28959int
28960main ()
28961{
28962shmat ();
28963 ;
28964 return 0;
28965}
28966_ACEOF
28967rm -f conftest.$ac_objext conftest$ac_exeext
28968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28969 (eval $ac_link) 2>conftest.er1
a848cd7e 28970 ac_status=$?
ac1cb8d3
VS
28971 grep -v '^ *+' conftest.er1 >conftest.err
28972 rm -f conftest.er1
28973 cat conftest.err >&5
a848cd7e
SC
28974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975 (exit $ac_status); } &&
3565d135
RR
28976 { ac_try='test -z "$ac_c_werror_flag"
28977 || test ! -s conftest.err'
ac1cb8d3
VS
28978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28979 (eval $ac_try) 2>&5
28980 ac_status=$?
28981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982 (exit $ac_status); }; } &&
28983 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28985 (eval $ac_try) 2>&5
28986 ac_status=$?
28987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28988 (exit $ac_status); }; }; then
28989 ac_cv_lib_ipc_shmat=yes
28990else
28991 echo "$as_me: failed program was:" >&5
28992sed 's/^/| /' conftest.$ac_ext >&5
28993
28994ac_cv_lib_ipc_shmat=no
28995fi
ac1cb8d3
VS
28996rm -f conftest.err conftest.$ac_objext \
28997 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28998LIBS=$ac_check_lib_save_LIBS
28999fi
29000echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29001echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29002if test $ac_cv_lib_ipc_shmat = yes; then
29003 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29004fi
29005
29006 fi
29007 fi
29008
29009 # Check for libraries that X11R6 Xt/Xaw programs need.
29010 ac_save_LDFLAGS=$LDFLAGS
29011 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29012 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29013 # check for ICE first), but we must link in the order -lSM -lICE or
29014 # we get undefined symbols. So assume we have SM if we have ICE.
29015 # These have to be linked with before -lX11, unlike the other
29016 # libraries we check for below, so use a different variable.
29017 # John Interrante, Karl Berry
29018 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29019echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29020if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29021 echo $ECHO_N "(cached) $ECHO_C" >&6
29022else
29023 ac_check_lib_save_LIBS=$LIBS
29024LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29025cat >conftest.$ac_ext <<_ACEOF
29026/* confdefs.h. */
29027_ACEOF
29028cat confdefs.h >>conftest.$ac_ext
29029cat >>conftest.$ac_ext <<_ACEOF
29030/* end confdefs.h. */
29031
29032/* Override any gcc2 internal prototype to avoid an error. */
29033#ifdef __cplusplus
29034extern "C"
29035#endif
29036/* We use char because int might match the return type of a gcc2
29037 builtin and then its argument prototype would still apply. */
29038char IceConnectionNumber ();
29039int
29040main ()
29041{
29042IceConnectionNumber ();
29043 ;
29044 return 0;
29045}
29046_ACEOF
29047rm -f conftest.$ac_objext conftest$ac_exeext
29048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29049 (eval $ac_link) 2>conftest.er1
a848cd7e 29050 ac_status=$?
ac1cb8d3
VS
29051 grep -v '^ *+' conftest.er1 >conftest.err
29052 rm -f conftest.er1
29053 cat conftest.err >&5
a848cd7e
SC
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); } &&
3565d135
RR
29056 { ac_try='test -z "$ac_c_werror_flag"
29057 || test ! -s conftest.err'
ac1cb8d3
VS
29058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29059 (eval $ac_try) 2>&5
29060 ac_status=$?
29061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); }; } &&
29063 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29065 (eval $ac_try) 2>&5
29066 ac_status=$?
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); }; }; then
29069 ac_cv_lib_ICE_IceConnectionNumber=yes
29070else
29071 echo "$as_me: failed program was:" >&5
29072sed 's/^/| /' conftest.$ac_ext >&5
29073
29074ac_cv_lib_ICE_IceConnectionNumber=no
29075fi
ac1cb8d3
VS
29076rm -f conftest.err conftest.$ac_objext \
29077 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29078LIBS=$ac_check_lib_save_LIBS
29079fi
29080echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29081echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29082if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29083 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29084fi
29085
29086 LDFLAGS=$ac_save_LDFLAGS
29087
29088fi
29089
29090
29091 if test "$no_x" = "yes"; then
89d90d6d
VZ
29092 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29093echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29094 { (exit 1); exit 1; }; }
a848cd7e
SC
29095 fi
29096
74b84332
VS
29097 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29098 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29099 AFMINSTALL=afminstall
29100 COMPILED_X_PROGRAM=0
29101
74b84332
VS
29102 fi
29103
29104 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29105 if test "$wxUSE_NANOX" = "yes"; then
29106 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29107echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29108 if test "x$MICROWIN" = x ; then
29109 echo "$as_me:$LINENO: result: not found" >&5
29110echo "${ECHO_T}not found" >&6
29111 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29112echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29113 { (exit 1); exit 1; }; }
29114 else
29115 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29116echo "${ECHO_T}$MICROWIN" >&6
29117 cat >>confdefs.h <<\_ACEOF
29118#define wxUSE_NANOX 1
29119_ACEOF
29120
29121 fi
29122 fi
29123
29124 if test "$wxUSE_UNICODE" = "yes"; then
29125
29126 succeeded=no
29127
29128 if test -z "$PKG_CONFIG"; then
29129 # Extract the first word of "pkg-config", so it can be a program name with args.
29130set dummy pkg-config; ac_word=$2
29131echo "$as_me:$LINENO: checking for $ac_word" >&5
29132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29133if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29134 echo $ECHO_N "(cached) $ECHO_C" >&6
29135else
29136 case $PKG_CONFIG in
29137 [\\/]* | ?:[\\/]*)
29138 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29139 ;;
29140 *)
29141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29142for as_dir in $PATH
29143do
29144 IFS=$as_save_IFS
29145 test -z "$as_dir" && as_dir=.
29146 for ac_exec_ext in '' $ac_executable_extensions; do
29147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29148 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29150 break 2
29151 fi
29152done
29153done
29154
29155 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29156 ;;
29157esac
29158fi
29159PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29160
29161if test -n "$PKG_CONFIG"; then
29162 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29163echo "${ECHO_T}$PKG_CONFIG" >&6
29164else
29165 echo "$as_me:$LINENO: result: no" >&5
29166echo "${ECHO_T}no" >&6
29167fi
29168
29169 fi
29170
29171 if test "$PKG_CONFIG" = "no" ; then
29172 echo "*** The pkg-config script could not be found. Make sure it is"
29173 echo "*** in your path, or set the PKG_CONFIG environment variable"
29174 echo "*** to the full path to pkg-config."
29175 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29176 else
29177 PKG_CONFIG_MIN_VERSION=0.9.0
29178 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29179 echo "$as_me:$LINENO: checking for pangox" >&5
29180echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29181
29182 if $PKG_CONFIG --exists "pangox" ; then
29183 echo "$as_me:$LINENO: result: yes" >&5
29184echo "${ECHO_T}yes" >&6
29185 succeeded=yes
29186
29187 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29188echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29189 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29190 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29191echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29192
29193 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29194echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29195 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29196 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29197echo "${ECHO_T}$PANGOX_LIBS" >&6
29198 else
29199 PANGOX_CFLAGS=""
29200 PANGOX_LIBS=""
29201 ## If we have a custom action on failure, don't print errors, but
29202 ## do set a variable so people can do so.
29203 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29204
29205 fi
29206
29207
29208
29209 else
29210 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29211 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29212 fi
29213 fi
29214
29215 if test $succeeded = yes; then
29216
c92ad099 29217 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29218 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29219
29220 else
29221
29222 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29223echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29224 { (exit 1); exit 1; }; }
29225
29226
29227 fi
29228
29229
29230 succeeded=no
29231
29232 if test -z "$PKG_CONFIG"; then
29233 # Extract the first word of "pkg-config", so it can be a program name with args.
29234set dummy pkg-config; ac_word=$2
29235echo "$as_me:$LINENO: checking for $ac_word" >&5
29236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29237if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29238 echo $ECHO_N "(cached) $ECHO_C" >&6
29239else
29240 case $PKG_CONFIG in
29241 [\\/]* | ?:[\\/]*)
29242 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29243 ;;
29244 *)
29245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29246for as_dir in $PATH
29247do
29248 IFS=$as_save_IFS
29249 test -z "$as_dir" && as_dir=.
29250 for ac_exec_ext in '' $ac_executable_extensions; do
29251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29252 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29254 break 2
29255 fi
29256done
29257done
29258
29259 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29260 ;;
29261esac
29262fi
29263PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29264
29265if test -n "$PKG_CONFIG"; then
29266 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29267echo "${ECHO_T}$PKG_CONFIG" >&6
29268else
29269 echo "$as_me:$LINENO: result: no" >&5
29270echo "${ECHO_T}no" >&6
29271fi
29272
29273 fi
29274
29275 if test "$PKG_CONFIG" = "no" ; then
29276 echo "*** The pkg-config script could not be found. Make sure it is"
29277 echo "*** in your path, or set the PKG_CONFIG environment variable"
29278 echo "*** to the full path to pkg-config."
29279 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29280 else
29281 PKG_CONFIG_MIN_VERSION=0.9.0
29282 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29283 echo "$as_me:$LINENO: checking for pangoft2" >&5
29284echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29285
29286 if $PKG_CONFIG --exists "pangoft2" ; then
29287 echo "$as_me:$LINENO: result: yes" >&5
29288echo "${ECHO_T}yes" >&6
29289 succeeded=yes
29290
29291 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29292echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29293 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29294 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29295echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29296
29297 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29298echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29299 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29300 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29301echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29302 else
29303 PANGOFT2_CFLAGS=""
29304 PANGOFT2_LIBS=""
29305 ## If we have a custom action on failure, don't print errors, but
29306 ## do set a variable so people can do so.
29307 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29308
29309 fi
29310
29311
29312
29313 else
29314 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29315 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29316 fi
29317 fi
29318
29319 if test $succeeded = yes; then
29320
c92ad099 29321 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29322 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29323
29324 else
29325
29326 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29327echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29328 wxUSE_PRINTING_ARCHITECTURE="no"
29329
29330
29331 fi
29332
29333
29334 succeeded=no
29335
29336 if test -z "$PKG_CONFIG"; then
29337 # Extract the first word of "pkg-config", so it can be a program name with args.
29338set dummy pkg-config; ac_word=$2
29339echo "$as_me:$LINENO: checking for $ac_word" >&5
29340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29341if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29342 echo $ECHO_N "(cached) $ECHO_C" >&6
29343else
29344 case $PKG_CONFIG in
29345 [\\/]* | ?:[\\/]*)
29346 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29347 ;;
29348 *)
29349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29350for as_dir in $PATH
29351do
29352 IFS=$as_save_IFS
29353 test -z "$as_dir" && as_dir=.
29354 for ac_exec_ext in '' $ac_executable_extensions; do
29355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29356 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29358 break 2
29359 fi
29360done
29361done
29362
29363 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29364 ;;
29365esac
29366fi
29367PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29368
29369if test -n "$PKG_CONFIG"; then
29370 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29371echo "${ECHO_T}$PKG_CONFIG" >&6
29372else
29373 echo "$as_me:$LINENO: result: no" >&5
29374echo "${ECHO_T}no" >&6
29375fi
29376
29377 fi
29378
29379 if test "$PKG_CONFIG" = "no" ; then
29380 echo "*** The pkg-config script could not be found. Make sure it is"
29381 echo "*** in your path, or set the PKG_CONFIG environment variable"
29382 echo "*** to the full path to pkg-config."
29383 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29384 else
29385 PKG_CONFIG_MIN_VERSION=0.9.0
29386 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29387 echo "$as_me:$LINENO: checking for pangoxft" >&5
29388echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29389
29390 if $PKG_CONFIG --exists "pangoxft" ; then
29391 echo "$as_me:$LINENO: result: yes" >&5
29392echo "${ECHO_T}yes" >&6
29393 succeeded=yes
29394
29395 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29396echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29397 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29398 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29399echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29400
29401 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29402echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29403 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29404 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29405echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29406 else
29407 PANGOXFT_CFLAGS=""
29408 PANGOXFT_LIBS=""
29409 ## If we have a custom action on failure, don't print errors, but
29410 ## do set a variable so people can do so.
29411 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29412
29413 fi
29414
29415
29416
29417 else
29418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29420 fi
29421 fi
29422
29423 if test $succeeded = yes; then
29424
4ae1af05
MB
29425 cat >>confdefs.h <<\_ACEOF
29426#define HAVE_PANGO_XFT 1
29427_ACEOF
29428
c92ad099 29429 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29430 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29431
29432 else
29433
29434 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29435echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29436
29437
29438 fi
29439
304205f1
VS
29440 save_CFLAGS="$CFLAGS"
29441 save_LIBS="$LIBS"
c92ad099 29442 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
304205f1
VS
29443 LIBS="$LIBS $PANGOX_LIBS"
29444
29445for ac_func in pango_font_family_is_monospace
29446do
29447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29448echo "$as_me:$LINENO: checking for $ac_func" >&5
29449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29450if eval "test \"\${$as_ac_var+set}\" = set"; then
29451 echo $ECHO_N "(cached) $ECHO_C" >&6
29452else
29453 cat >conftest.$ac_ext <<_ACEOF
29454/* confdefs.h. */
29455_ACEOF
29456cat confdefs.h >>conftest.$ac_ext
29457cat >>conftest.$ac_ext <<_ACEOF
29458/* end confdefs.h. */
29459/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29461#define $ac_func innocuous_$ac_func
29462
29463/* System header to define __stub macros and hopefully few prototypes,
29464 which can conflict with char $ac_func (); below.
29465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29466 <limits.h> exists even on freestanding compilers. */
29467
29468#ifdef __STDC__
29469# include <limits.h>
29470#else
29471# include <assert.h>
29472#endif
29473
29474#undef $ac_func
29475
29476/* Override any gcc2 internal prototype to avoid an error. */
29477#ifdef __cplusplus
29478extern "C"
29479{
29480#endif
29481/* We use char because int might match the return type of a gcc2
29482 builtin and then its argument prototype would still apply. */
29483char $ac_func ();
29484/* The GNU C library defines this for functions which it implements
29485 to always fail with ENOSYS. Some functions are actually named
29486 something starting with __ and the normal name is an alias. */
29487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29488choke me
29489#else
29490char (*f) () = $ac_func;
29491#endif
29492#ifdef __cplusplus
29493}
29494#endif
29495
29496int
29497main ()
29498{
29499return f != $ac_func;
29500 ;
29501 return 0;
29502}
29503_ACEOF
29504rm -f conftest.$ac_objext conftest$ac_exeext
29505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29506 (eval $ac_link) 2>conftest.er1
29507 ac_status=$?
29508 grep -v '^ *+' conftest.er1 >conftest.err
29509 rm -f conftest.er1
29510 cat conftest.err >&5
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); } &&
3565d135
RR
29513 { ac_try='test -z "$ac_c_werror_flag"
29514 || test ! -s conftest.err'
304205f1
VS
29515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29516 (eval $ac_try) 2>&5
29517 ac_status=$?
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); }; } &&
29520 { ac_try='test -s conftest$ac_exeext'
29521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29522 (eval $ac_try) 2>&5
29523 ac_status=$?
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525 (exit $ac_status); }; }; then
29526 eval "$as_ac_var=yes"
29527else
29528 echo "$as_me: failed program was:" >&5
29529sed 's/^/| /' conftest.$ac_ext >&5
29530
29531eval "$as_ac_var=no"
29532fi
29533rm -f conftest.err conftest.$ac_objext \
29534 conftest$ac_exeext conftest.$ac_ext
29535fi
29536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29537echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29538if test `eval echo '${'$as_ac_var'}'` = yes; then
29539 cat >>confdefs.h <<_ACEOF
29540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29541_ACEOF
29542
29543fi
29544done
29545
29546 CFLAGS="$save_CFLAGS"
29547 LIBS="$save_LIBS"
a848cd7e
SC
29548 fi
29549
29550 wxUSE_UNIVERSAL="yes"
29551
29552 if test "$wxUSE_NANOX" = "yes"; then
29553 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29554 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"
29555 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29556 else
29557 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29558 fi
29559
a848cd7e
SC
29560 TOOLKIT=X11
29561 GUIDIST=X11_DIST
29562 fi
29563
29564 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29565 if test "$wxUSE_UNICODE" = "yes"; then
29566 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29567echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29568 { (exit 1); exit 1; }; }
29569 fi
29570
74b84332
VS
29571 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29572echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29573
74b84332
VS
29574ac_find_includes=
29575for ac_dir in $SEARCH_INCLUDE /usr/include;
29576 do
29577 if test -f "$ac_dir/Xm/Xm.h"; then
29578 ac_find_includes=$ac_dir
29579 break
29580 fi
29581 done
a848cd7e 29582
74b84332
VS
29583 if test "$ac_find_includes" != "" ; then
29584 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29585echo "${ECHO_T}found in $ac_find_includes" >&6
29586
29587 if test "x$ac_find_includes" = "x/usr/include"; then
29588 ac_path_to_include=""
29589 else
29590 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29591 result=$?
29592 if test $result = 0; then
29593 ac_path_to_include=""
29594 else
29595 ac_path_to_include=" -I$ac_find_includes"
29596 fi
a848cd7e
SC
29597 fi
29598
74b84332
VS
29599 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29600 else
e051b34e 29601 save_CFLAGS=$CFLAGS
c92ad099 29602 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 29603
74b84332 29604 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29605/* confdefs.h. */
29606_ACEOF
29607cat confdefs.h >>conftest.$ac_ext
29608cat >>conftest.$ac_ext <<_ACEOF
29609/* end confdefs.h. */
29610
74b84332
VS
29611 #include <Xm/Xm.h>
29612
a848cd7e
SC
29613int
29614main ()
29615{
29616
74b84332
VS
29617 int version;
29618 version = xmUseVersion;
29619
a848cd7e
SC
29620 ;
29621 return 0;
29622}
29623_ACEOF
74b84332
VS
29624rm -f conftest.$ac_objext
29625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29626 (eval $ac_compile) 2>conftest.er1
a848cd7e 29627 ac_status=$?
ac1cb8d3
VS
29628 grep -v '^ *+' conftest.er1 >conftest.err
29629 rm -f conftest.er1
29630 cat conftest.err >&5
a848cd7e
SC
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); } &&
3565d135
RR
29633 { ac_try='test -z "$ac_c_werror_flag"
29634 || test ! -s conftest.err'
ac1cb8d3
VS
29635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29636 (eval $ac_try) 2>&5
29637 ac_status=$?
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); }; } &&
74b84332 29640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29642 (eval $ac_try) 2>&5
29643 ac_status=$?
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); }; }; then
74b84332
VS
29646
29647 echo "$as_me:$LINENO: result: found in default search path" >&5
29648echo "${ECHO_T}found in default search path" >&6
29649 COMPILED_X_PROGRAM=1
29650
a848cd7e
SC
29651else
29652 echo "$as_me: failed program was:" >&5
29653sed 's/^/| /' conftest.$ac_ext >&5
29654
a848cd7e 29655
74b84332
VS
29656 echo "$as_me:$LINENO: result: no" >&5
29657echo "${ECHO_T}no" >&6
e051b34e
MW
29658 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29659echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29660 { (exit 1); exit 1; }; }
a848cd7e 29661
a848cd7e 29662
a848cd7e 29663fi
74b84332 29664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29665
29666 CFLAGS=$save_CFLAGS
74b84332
VS
29667 fi
29668
0ad5d837
VZ
29669
29670 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29671echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29672
0ad5d837
VZ
29673 ac_find_libraries=
29674 for ac_dir in $SEARCH_LIB;
74b84332 29675 do
3eca31dc 29676 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29677 if test -f "$ac_dir/libXm.$ac_extension"; then
29678 ac_find_libraries=$ac_dir
29679 break 2
a848cd7e 29680 fi
74b84332
VS
29681 done
29682 done
a848cd7e 29683
0ad5d837
VZ
29684
29685 if test "x$ac_find_libraries" != "x" ; then
29686 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29687echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29688
74b84332 29689
0ad5d837 29690 if test "$ac_find_libraries" = "default location"; then
74b84332 29691 ac_path_to_link=""
a848cd7e 29692 else
0ad5d837
VZ
29693 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29694 result=$?
29695 if test $result = 0; then
29696 ac_path_to_link=""
29697 else
29698 ac_path_to_link=" -L$ac_find_libraries"
29699 fi
74b84332
VS
29700 fi
29701
0ad5d837
VZ
29702 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29703 else
29704 save_CFLAGS=$CFLAGS
c92ad099 29705 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
29706 save_LIBS="$LIBS"
29707 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29708
0ad5d837 29709 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29710/* confdefs.h. */
29711_ACEOF
29712cat confdefs.h >>conftest.$ac_ext
29713cat >>conftest.$ac_ext <<_ACEOF
29714/* end confdefs.h. */
29715
0ad5d837 29716 #include <Xm/Xm.h>
74b84332 29717
a848cd7e
SC
29718int
29719main ()
29720{
74b84332 29721
0ad5d837
VZ
29722 int version;
29723 version = xmUseVersion;
74b84332 29724
a848cd7e
SC
29725 ;
29726 return 0;
29727}
29728_ACEOF
0ad5d837
VZ
29729rm -f conftest.$ac_objext conftest$ac_exeext
29730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29731 (eval $ac_link) 2>conftest.er1
a848cd7e 29732 ac_status=$?
ac1cb8d3
VS
29733 grep -v '^ *+' conftest.er1 >conftest.err
29734 rm -f conftest.er1
29735 cat conftest.err >&5
a848cd7e
SC
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); } &&
3565d135
RR
29738 { ac_try='test -z "$ac_c_werror_flag"
29739 || test ! -s conftest.err'
ac1cb8d3
VS
29740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29741 (eval $ac_try) 2>&5
29742 ac_status=$?
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); }; } &&
0ad5d837 29745 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29747 (eval $ac_try) 2>&5
29748 ac_status=$?
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); }; }; then
74b84332 29751
0ad5d837 29752 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29753echo "${ECHO_T}found in default search path" >&6
0ad5d837 29754 COMPILED_X_PROGRAM=1
74b84332 29755
a848cd7e
SC
29756else
29757 echo "$as_me: failed program was:" >&5
29758sed 's/^/| /' conftest.$ac_ext >&5
29759
74b84332 29760
6f9cf1e6 29761 echo "$as_me:$LINENO: result: no" >&5
74b84332 29762echo "${ECHO_T}no" >&6
6f9cf1e6 29763 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29764echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29765 { (exit 1); exit 1; }; }
29766
29767
29768fi
0ad5d837
VZ
29769rm -f conftest.err conftest.$ac_objext \
29770 conftest$ac_exeext conftest.$ac_ext
74b84332 29771
0ad5d837 29772 CFLAGS=$save_CFLAGS
6f9cf1e6 29773 LIBS="$save_LIBS"
74b84332
VS
29774 fi
29775
29776 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29777echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29778 libp_link=""
29779 libsm_ice_link=""
29780 libs_found=0
29781 for libp in "" " -lXp"; do
29782 if test "$libs_found" = "0"; then
29783 for libsm_ice in "" " -lSM -lICE"; do
29784 if test "$libs_found" = "0"; then
29785 save_LIBS="$LIBS"
29786 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29787 save_CFLAGS=$CFLAGS
c92ad099 29788 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
29789
29790 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29791/* confdefs.h. */
29792_ACEOF
29793cat confdefs.h >>conftest.$ac_ext
29794cat >>conftest.$ac_ext <<_ACEOF
29795/* end confdefs.h. */
29796
74b84332
VS
29797 #include <Xm/Xm.h>
29798 #include <Xm/List.h>
29799
a848cd7e
SC
29800int
29801main ()
29802{
74b84332
VS
29803
29804 XmString string = NULL;
29805 Widget w = NULL;
29806 int position = 0;
29807 XmListAddItem(w, string, position);
29808
a848cd7e
SC
29809 ;
29810 return 0;
29811}
29812_ACEOF
29813rm -f conftest.$ac_objext conftest$ac_exeext
29814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29815 (eval $ac_link) 2>conftest.er1
a848cd7e 29816 ac_status=$?
ac1cb8d3
VS
29817 grep -v '^ *+' conftest.er1 >conftest.err
29818 rm -f conftest.er1
29819 cat conftest.err >&5
a848cd7e
SC
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); } &&
3565d135
RR
29822 { ac_try='test -z "$ac_c_werror_flag"
29823 || test ! -s conftest.err'
ac1cb8d3
VS
29824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29825 (eval $ac_try) 2>&5
29826 ac_status=$?
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); }; } &&
29829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29831 (eval $ac_try) 2>&5
29832 ac_status=$?
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); }; }; then
29835
29836 libp_link="$libp"
29837 libsm_ice_link="$libsm_ice"
29838 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29839echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29840 libs_found=1
29841
29842else
29843 echo "$as_me: failed program was:" >&5
29844sed 's/^/| /' conftest.$ac_ext >&5
29845
29846
29847
29848fi
ac1cb8d3
VS
29849rm -f conftest.err conftest.$ac_objext \
29850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29851
29852 LIBS="$save_LIBS"
29853 CFLAGS=$save_CFLAGS
29854 fi
29855 done
29856 fi
29857 done
29858
29859 if test "$libs_found" = "0"; then
29860 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29861echo "${ECHO_T}can't find the right libraries" >&6
29862 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29863echo "$as_me: error: can't link a simple motif program" >&2;}
29864 { (exit 1); exit 1; }; }
29865 fi
29866
62fa8b3a
MW
29867 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29868echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29869if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29870 echo $ECHO_N "(cached) $ECHO_C" >&6
29871else
29872 ac_check_lib_save_LIBS=$LIBS
29873LIBS="-lSgm $LIBS"
29874cat >conftest.$ac_ext <<_ACEOF
29875/* confdefs.h. */
29876_ACEOF
29877cat confdefs.h >>conftest.$ac_ext
29878cat >>conftest.$ac_ext <<_ACEOF
29879/* end confdefs.h. */
29880
29881/* Override any gcc2 internal prototype to avoid an error. */
29882#ifdef __cplusplus
29883extern "C"
29884#endif
29885/* We use char because int might match the return type of a gcc2
29886 builtin and then its argument prototype would still apply. */
29887char SgCreateList ();
29888int
29889main ()
29890{
29891SgCreateList ();
29892 ;
29893 return 0;
29894}
29895_ACEOF
29896rm -f conftest.$ac_objext conftest$ac_exeext
29897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29898 (eval $ac_link) 2>conftest.er1
29899 ac_status=$?
29900 grep -v '^ *+' conftest.er1 >conftest.err
29901 rm -f conftest.er1
29902 cat conftest.err >&5
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); } &&
3565d135
RR
29905 { ac_try='test -z "$ac_c_werror_flag"
29906 || test ! -s conftest.err'
62fa8b3a
MW
29907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29908 (eval $ac_try) 2>&5
29909 ac_status=$?
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); }; } &&
29912 { ac_try='test -s conftest$ac_exeext'
29913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29914 (eval $ac_try) 2>&5
29915 ac_status=$?
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); }; }; then
29918 ac_cv_lib_Sgm_SgCreateList=yes
29919else
29920 echo "$as_me: failed program was:" >&5
29921sed 's/^/| /' conftest.$ac_ext >&5
29922
29923ac_cv_lib_Sgm_SgCreateList=no
29924fi
29925rm -f conftest.err conftest.$ac_objext \
29926 conftest$ac_exeext conftest.$ac_ext
29927LIBS=$ac_check_lib_save_LIBS
29928fi
29929echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29930echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29931if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29932 libsgm_link=" -lSgm"
29933fi
29934
29935
a848cd7e 29936 save_CFLAGS=$CFLAGS
c92ad099 29937 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 29938
a848cd7e
SC
29939 echo "$as_me:$LINENO: checking for Motif 2" >&5
29940echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29941if test "${wx_cv_lib_motif2+set}" = set; then
29942 echo $ECHO_N "(cached) $ECHO_C" >&6
29943else
29944 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29945/* confdefs.h. */
29946_ACEOF
29947cat confdefs.h >>conftest.$ac_ext
29948cat >>conftest.$ac_ext <<_ACEOF
29949/* end confdefs.h. */
29950
0ad5d837 29951 #include <Xm/Xm.h>
a848cd7e
SC
29952
29953int
29954main ()
29955{
29956
0ad5d837
VZ
29957 #if XmVersion < 2000
29958 Not Motif 2
29959 #endif
a848cd7e
SC
29960
29961 ;
29962 return 0;
29963}
29964_ACEOF
29965rm -f conftest.$ac_objext
29966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29967 (eval $ac_compile) 2>conftest.er1
a848cd7e 29968 ac_status=$?
ac1cb8d3
VS
29969 grep -v '^ *+' conftest.er1 >conftest.err
29970 rm -f conftest.er1
29971 cat conftest.err >&5
a848cd7e
SC
29972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); } &&
3565d135
RR
29974 { ac_try='test -z "$ac_c_werror_flag"
29975 || test ! -s conftest.err'
ac1cb8d3
VS
29976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977 (eval $ac_try) 2>&5
29978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; } &&
29981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; }; then
0ad5d837 29987 wx_cv_lib_motif2="yes"
a848cd7e
SC
29988else
29989 echo "$as_me: failed program was:" >&5
29990sed 's/^/| /' conftest.$ac_ext >&5
29991
0ad5d837
VZ
29992wx_cv_lib_motif2="no"
29993fi
29994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29995fi
29996echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29997echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29998 if test "$wx_cv_lib_motif2" = "yes"; then
29999 cat >>confdefs.h <<\_ACEOF
30000#define __WXMOTIF20__ 1
30001_ACEOF
a848cd7e 30002
0ad5d837
VZ
30003 else
30004 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30005#define __WXMOTIF20__ 0
30006_ACEOF
30007
0ad5d837 30008 fi
2113bc77
MW
30009
30010 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30011echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30012if test "${wx_cv_lib_lesstif+set}" = set; then
30013 echo $ECHO_N "(cached) $ECHO_C" >&6
30014else
30015 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30016/* confdefs.h. */
30017_ACEOF
30018cat confdefs.h >>conftest.$ac_ext
30019cat >>conftest.$ac_ext <<_ACEOF
30020/* end confdefs.h. */
30021
0ad5d837 30022 #include <Xm/Xm.h>
2113bc77
MW
30023
30024int
30025main ()
30026{
30027
0ad5d837
VZ
30028 #if !defined(LesstifVersion) || LesstifVersion <= 0
30029 Not Lesstif
30030 #endif
2113bc77
MW
30031
30032 ;
30033 return 0;
30034}
30035_ACEOF
30036rm -f conftest.$ac_objext
30037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30038 (eval $ac_compile) 2>conftest.er1
30039 ac_status=$?
30040 grep -v '^ *+' conftest.er1 >conftest.err
30041 rm -f conftest.er1
30042 cat conftest.err >&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } &&
3565d135
RR
30045 { ac_try='test -z "$ac_c_werror_flag"
30046 || test ! -s conftest.err'
2113bc77
MW
30047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30048 (eval $ac_try) 2>&5
30049 ac_status=$?
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); }; } &&
30052 { ac_try='test -s conftest.$ac_objext'
30053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30054 (eval $ac_try) 2>&5
30055 ac_status=$?
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); }; }; then
0ad5d837 30058 wx_cv_lib_lesstif="yes"
2113bc77
MW
30059else
30060 echo "$as_me: failed program was:" >&5
30061sed 's/^/| /' conftest.$ac_ext >&5
30062
0ad5d837
VZ
30063wx_cv_lib_lesstif="no"
30064fi
30065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30066
0ad5d837
VZ
30067fi
30068echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30069echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30070 if test "$wx_cv_lib_lesstif" = "yes"; then
30071 cat >>confdefs.h <<\_ACEOF
30072#define __WXLESSTIF__ 1
30073_ACEOF
30074
30075 else
30076 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30077#define __WXLESSTIF__ 0
30078_ACEOF
30079
0ad5d837 30080 fi
2113bc77 30081
a848cd7e
SC
30082 CFLAGS=$save_CFLAGS
30083
62fa8b3a 30084 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30085 TOOLKIT=MOTIF
30086 GUIDIST=MOTIF_DIST
30087 fi
30088
74b84332 30089 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30090 if test "$wxUSE_LIBXPM" = "sys"; then
30091 echo "$as_me:$LINENO: checking for Xpm library" >&5
30092echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30093
0ad5d837
VZ
30094 ac_find_libraries=
30095 for ac_dir in $SEARCH_LIB;
a848cd7e 30096 do
3eca31dc 30097 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30098 if test -f "$ac_dir/libXpm.$ac_extension"; then
30099 ac_find_libraries=$ac_dir
30100 break 2
30101 fi
30102 done
30103 done
30104
30105 if test "$ac_find_libraries" != "" ; then
30106
0ad5d837 30107 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30108 ac_path_to_link=""
30109 else
0ad5d837
VZ
30110 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30111 result=$?
30112 if test $result = 0; then
30113 ac_path_to_link=""
30114 else
30115 ac_path_to_link=" -L$ac_find_libraries"
30116 fi
a848cd7e
SC
30117 fi
30118
30119 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30120 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30121echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30122
30123 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30124echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30125if test "${wx_cv_x11_xpm_h+set}" = set; then
30126 echo $ECHO_N "(cached) $ECHO_C" >&6
30127else
30128
30129 save_CFLAGS=$CFLAGS
c92ad099 30130 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30131
30132 cat >conftest.$ac_ext <<_ACEOF
30133/* confdefs.h. */
30134_ACEOF
30135cat confdefs.h >>conftest.$ac_ext
30136cat >>conftest.$ac_ext <<_ACEOF
30137/* end confdefs.h. */
30138
30139 #include <X11/xpm.h>
30140
30141int
30142main ()
30143{
30144
30145 int version;
30146 version = XpmLibraryVersion();
30147
30148 ;
30149 return 0;
30150}
30151_ACEOF
30152rm -f conftest.$ac_objext
30153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30154 (eval $ac_compile) 2>conftest.er1
a848cd7e 30155 ac_status=$?
ac1cb8d3
VS
30156 grep -v '^ *+' conftest.er1 >conftest.err
30157 rm -f conftest.er1
30158 cat conftest.err >&5
a848cd7e
SC
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); } &&
3565d135
RR
30161 { ac_try='test -z "$ac_c_werror_flag"
30162 || test ! -s conftest.err'
ac1cb8d3
VS
30163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30164 (eval $ac_try) 2>&5
30165 ac_status=$?
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); }; } &&
30168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30170 (eval $ac_try) 2>&5
30171 ac_status=$?
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); }; }; then
30174 wx_cv_x11_xpm_h=yes
30175else
30176 echo "$as_me: failed program was:" >&5
30177sed 's/^/| /' conftest.$ac_ext >&5
30178
30179wx_cv_x11_xpm_h=no
30180
30181fi
ac1cb8d3 30182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30183
30184 CFLAGS=$save_CFLAGS
30185
30186
30187fi
30188echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30189echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30190
30191 if test $wx_cv_x11_xpm_h = "yes"; then
30192 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30193 cat >>confdefs.h <<\_ACEOF
30194#define wxHAVE_LIB_XPM 1
30195_ACEOF
30196
30197 else
30198 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30199echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30200 fi
30201 fi
30202
30203 fi
30204
30205 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30206echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30207if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30208 echo $ECHO_N "(cached) $ECHO_C" >&6
30209else
30210 ac_check_lib_save_LIBS=$LIBS
30211LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30212cat >conftest.$ac_ext <<_ACEOF
30213/* confdefs.h. */
30214_ACEOF
30215cat confdefs.h >>conftest.$ac_ext
30216cat >>conftest.$ac_ext <<_ACEOF
30217/* end confdefs.h. */
30218
30219/* Override any gcc2 internal prototype to avoid an error. */
30220#ifdef __cplusplus
30221extern "C"
30222#endif
30223/* We use char because int might match the return type of a gcc2
30224 builtin and then its argument prototype would still apply. */
30225char XShapeQueryExtension ();
30226int
30227main ()
30228{
30229XShapeQueryExtension ();
30230 ;
30231 return 0;
30232}
30233_ACEOF
30234rm -f conftest.$ac_objext conftest$ac_exeext
30235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30236 (eval $ac_link) 2>conftest.er1
a848cd7e 30237 ac_status=$?
ac1cb8d3
VS
30238 grep -v '^ *+' conftest.er1 >conftest.err
30239 rm -f conftest.er1
30240 cat conftest.err >&5
a848cd7e
SC
30241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30242 (exit $ac_status); } &&
3565d135
RR
30243 { ac_try='test -z "$ac_c_werror_flag"
30244 || test ! -s conftest.err'
ac1cb8d3
VS
30245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30246 (eval $ac_try) 2>&5
30247 ac_status=$?
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); }; } &&
30250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30252 (eval $ac_try) 2>&5
30253 ac_status=$?
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); }; }; then
30256 ac_cv_lib_Xext_XShapeQueryExtension=yes
30257else
30258 echo "$as_me: failed program was:" >&5
30259sed 's/^/| /' conftest.$ac_ext >&5
30260
30261ac_cv_lib_Xext_XShapeQueryExtension=no
30262fi
ac1cb8d3
VS
30263rm -f conftest.err conftest.$ac_objext \
30264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30265LIBS=$ac_check_lib_save_LIBS
30266fi
30267echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30268echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30269if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30270
30271 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30272 wxHAVE_XEXT_LIB=1
30273
30274fi
30275
30276
30277 if test "$wxHAVE_XEXT_LIB" = 1; then
30278 save_CFLAGS="$CFLAGS"
c92ad099 30279 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30280
30281 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30282echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30283 cat >conftest.$ac_ext <<_ACEOF
30284/* confdefs.h. */
30285_ACEOF
30286cat confdefs.h >>conftest.$ac_ext
30287cat >>conftest.$ac_ext <<_ACEOF
30288/* end confdefs.h. */
30289
30290 #include <X11/Xlib.h>
30291 #include <X11/extensions/shape.h>
30292
30293int
30294main ()
30295{
30296
30297 int dummy1, dummy2;
30298 XShapeQueryExtension((Display*)NULL,
30299 (int*)NULL, (int*)NULL);
30300
30301 ;
30302 return 0;
30303}
30304_ACEOF
30305rm -f conftest.$ac_objext
30306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30307 (eval $ac_compile) 2>conftest.er1
a848cd7e 30308 ac_status=$?
ac1cb8d3
VS
30309 grep -v '^ *+' conftest.er1 >conftest.err
30310 rm -f conftest.er1
30311 cat conftest.err >&5
a848cd7e
SC
30312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313 (exit $ac_status); } &&
3565d135
RR
30314 { ac_try='test -z "$ac_c_werror_flag"
30315 || test ! -s conftest.err'
ac1cb8d3
VS
30316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30317 (eval $ac_try) 2>&5
30318 ac_status=$?
30319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320 (exit $ac_status); }; } &&
30321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30323 (eval $ac_try) 2>&5
30324 ac_status=$?
30325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326 (exit $ac_status); }; }; then
30327
30328 cat >>confdefs.h <<\_ACEOF
30329#define HAVE_XSHAPE 1
30330_ACEOF
30331
30332 echo "$as_me:$LINENO: result: found" >&5
30333echo "${ECHO_T}found" >&6
30334
30335else
30336 echo "$as_me: failed program was:" >&5
30337sed 's/^/| /' conftest.$ac_ext >&5
30338
30339
30340 echo "$as_me:$LINENO: result: not found" >&5
30341echo "${ECHO_T}not found" >&6
30342
30343fi
ac1cb8d3 30344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30345 CFLAGS="$save_CFLAGS"
30346
30347 fi
30348 fi
30349
30350 if test "$wxUSE_MAC" = 1; then
30351 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30352echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30353 if test "$GCC" = yes; then
30354 echo "$as_me:$LINENO: result: gcc" >&5
30355echo "${ECHO_T}gcc" >&6
30356 CPPFLAGS_PASCAL="-fpascal-strings"
30357 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30358 echo "$as_me:$LINENO: result: xlc" >&5
30359echo "${ECHO_T}xlc" >&6
30360 CPPFLAGS_PASCAL="-qmacpstr"
30361 else
30362 echo "$as_me:$LINENO: result: none" >&5
30363echo "${ECHO_T}none" >&6
30364 fi
30365
1e9e8aba 30366 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30367 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30368 else
c92ad099 30369 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30370 fi
a848cd7e 30371
a848cd7e
SC
30372 TOOLKIT=MAC
30373 GUIDIST=MACX_DIST
dd21ced8 30374 WXBASEPORT="_carbon"
a848cd7e
SC
30375 fi
30376
30377 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30378 TOOLKIT=COCOA
30379 GUIDIST=COCOA_DIST
30380 fi
30381
30382 if test "$wxUSE_PM" = 1; then
30383 TOOLKIT=PM
de59c161
RD
30384 GUIDIST=PM_DIST
30385 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30386echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30387if test "${wx_cv_spbcdata+set}" = set; then
30388 echo $ECHO_N "(cached) $ECHO_C" >&6
30389else
30390
30391 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30392/* confdefs.h. */
30393_ACEOF
30394cat confdefs.h >>conftest.$ac_ext
30395cat >>conftest.$ac_ext <<_ACEOF
30396/* end confdefs.h. */
30397
30398 #define INCL_PM
30399 #include <os2.h>
30400
30401int
30402main ()
30403{
30404
30405 SPBCDATA test;
30406
30407 ;
30408 return 0;
30409}
30410_ACEOF
30411rm -f conftest.$ac_objext
30412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30413 (eval $ac_compile) 2>conftest.er1
de59c161 30414 ac_status=$?
ac1cb8d3
VS
30415 grep -v '^ *+' conftest.er1 >conftest.err
30416 rm -f conftest.er1
30417 cat conftest.err >&5
de59c161
RD
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); } &&
3565d135
RR
30420 { ac_try='test -z "$ac_c_werror_flag"
30421 || test ! -s conftest.err'
ac1cb8d3
VS
30422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30423 (eval $ac_try) 2>&5
30424 ac_status=$?
30425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426 (exit $ac_status); }; } &&
30427 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30429 (eval $ac_try) 2>&5
30430 ac_status=$?
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); }; }; then
30433 wx_cv_spbcdata=yes
30434else
30435 echo "$as_me: failed program was:" >&5
30436sed 's/^/| /' conftest.$ac_ext >&5
30437
30438wx_cv_spbcdata=no
30439
30440fi
ac1cb8d3 30441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30442
30443
30444fi
30445echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30446echo "${ECHO_T}$wx_cv_spbcdata" >&6
30447
30448 if test $wx_cv_spbcdata = "yes"; then
30449 cat >>confdefs.h <<\_ACEOF
30450#define HAVE_SPBCDATA 1
30451_ACEOF
30452
30453 fi
a848cd7e
SC
30454 fi
30455
30456 if test "$TOOLKIT" = "PM" ; then
30457 TOOLKIT_DIR="os2"
30458 else
30459 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30460 fi
30461
a848cd7e 30462 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30463 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30464 WIDGET_SET=univ
a848cd7e
SC
30465 fi
30466
30467 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30468 DISTDIR="wx\$(TOOLKIT)"
30469else
30470 USE_GUI=0
30471
30472 TOOLKIT_DIR="base"
30473
30474 if test "$USE_WIN32" = 1 ; then
a848cd7e 30475 TOOLKIT="MSW"
a848cd7e
SC
30476 fi
30477
a848cd7e
SC
30478 GUIDIST="BASE_DIST"
30479 DISTDIR="wxBase"
30480fi
30481
30482
d12aef51
VZ
30483if test "$wxUSE_GUI" = "yes"; then
30484 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30485
30486for ac_header in X11/Xlib.h
30487do
30488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30489if eval "test \"\${$as_ac_Header+set}\" = set"; then
30490 echo "$as_me:$LINENO: checking for $ac_header" >&5
30491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30492if eval "test \"\${$as_ac_Header+set}\" = set"; then
30493 echo $ECHO_N "(cached) $ECHO_C" >&6
30494fi
30495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30497else
30498 # Is the header compilable?
30499echo "$as_me:$LINENO: checking $ac_header usability" >&5
30500echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30501cat >conftest.$ac_ext <<_ACEOF
30502/* confdefs.h. */
30503_ACEOF
30504cat confdefs.h >>conftest.$ac_ext
30505cat >>conftest.$ac_ext <<_ACEOF
30506/* end confdefs.h. */
30507$ac_includes_default
30508#include <$ac_header>
30509_ACEOF
30510rm -f conftest.$ac_objext
30511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30512 (eval $ac_compile) 2>conftest.er1
30513 ac_status=$?
30514 grep -v '^ *+' conftest.er1 >conftest.err
30515 rm -f conftest.er1
30516 cat conftest.err >&5
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); } &&
3565d135
RR
30519 { ac_try='test -z "$ac_c_werror_flag"
30520 || test ! -s conftest.err'
d12aef51
VZ
30521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522 (eval $ac_try) 2>&5
30523 ac_status=$?
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); }; } &&
30526 { ac_try='test -s conftest.$ac_objext'
30527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30528 (eval $ac_try) 2>&5
30529 ac_status=$?
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); }; }; then
30532 ac_header_compiler=yes
30533else
30534 echo "$as_me: failed program was:" >&5
30535sed 's/^/| /' conftest.$ac_ext >&5
30536
30537ac_header_compiler=no
30538fi
30539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30540echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30541echo "${ECHO_T}$ac_header_compiler" >&6
30542
30543# Is the header present?
30544echo "$as_me:$LINENO: checking $ac_header presence" >&5
30545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30546cat >conftest.$ac_ext <<_ACEOF
30547/* confdefs.h. */
30548_ACEOF
30549cat confdefs.h >>conftest.$ac_ext
30550cat >>conftest.$ac_ext <<_ACEOF
30551/* end confdefs.h. */
30552#include <$ac_header>
30553_ACEOF
30554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30556 ac_status=$?
30557 grep -v '^ *+' conftest.er1 >conftest.err
30558 rm -f conftest.er1
30559 cat conftest.err >&5
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); } >/dev/null; then
30562 if test -s conftest.err; then
30563 ac_cpp_err=$ac_c_preproc_warn_flag
30564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30565 else
30566 ac_cpp_err=
30567 fi
30568else
30569 ac_cpp_err=yes
30570fi
30571if test -z "$ac_cpp_err"; then
30572 ac_header_preproc=yes
30573else
30574 echo "$as_me: failed program was:" >&5
30575sed 's/^/| /' conftest.$ac_ext >&5
30576
30577 ac_header_preproc=no
30578fi
30579rm -f conftest.err conftest.$ac_ext
30580echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30581echo "${ECHO_T}$ac_header_preproc" >&6
30582
30583# So? What about this header?
30584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30585 yes:no: )
30586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30589echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30590 ac_header_preproc=yes
30591 ;;
30592 no:yes:* )
30593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30598echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30600echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30604echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30605 (
30606 cat <<\_ASBOX
30607## ----------------------------------------- ##
30608## Report this to wx-dev@lists.wxwidgets.org ##
30609## ----------------------------------------- ##
30610_ASBOX
30611 ) |
30612 sed "s/^/$as_me: WARNING: /" >&2
30613 ;;
30614esac
30615echo "$as_me:$LINENO: checking for $ac_header" >&5
30616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30617if eval "test \"\${$as_ac_Header+set}\" = set"; then
30618 echo $ECHO_N "(cached) $ECHO_C" >&6
30619else
30620 eval "$as_ac_Header=\$ac_header_preproc"
30621fi
30622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30624
30625fi
30626if test `eval echo '${'$as_ac_Header'}'` = yes; then
30627 cat >>confdefs.h <<_ACEOF
30628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30629_ACEOF
30630
30631fi
30632
30633done
30634
30635
30636for ac_header in X11/XKBlib.h
30637do
30638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30639echo "$as_me:$LINENO: checking for $ac_header" >&5
30640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30641if eval "test \"\${$as_ac_Header+set}\" = set"; then
30642 echo $ECHO_N "(cached) $ECHO_C" >&6
30643else
30644 cat >conftest.$ac_ext <<_ACEOF
30645/* confdefs.h. */
30646_ACEOF
30647cat confdefs.h >>conftest.$ac_ext
30648cat >>conftest.$ac_ext <<_ACEOF
30649/* end confdefs.h. */
30650
30651 #if HAVE_X11_XLIB_H
30652 #include <X11/Xlib.h>
30653 #endif
30654
30655
30656#include <$ac_header>
30657_ACEOF
30658rm -f conftest.$ac_objext
30659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30660 (eval $ac_compile) 2>conftest.er1
30661 ac_status=$?
30662 grep -v '^ *+' conftest.er1 >conftest.err
30663 rm -f conftest.er1
30664 cat conftest.err >&5
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); } &&
3565d135
RR
30667 { ac_try='test -z "$ac_c_werror_flag"
30668 || test ! -s conftest.err'
d12aef51
VZ
30669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30670 (eval $ac_try) 2>&5
30671 ac_status=$?
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); }; } &&
30674 { ac_try='test -s conftest.$ac_objext'
30675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30676 (eval $ac_try) 2>&5
30677 ac_status=$?
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; }; then
30680 eval "$as_ac_Header=yes"
30681else
30682 echo "$as_me: failed program was:" >&5
30683sed 's/^/| /' conftest.$ac_ext >&5
30684
30685eval "$as_ac_Header=no"
30686fi
30687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30688fi
30689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30691if test `eval echo '${'$as_ac_Header'}'` = yes; then
30692 cat >>confdefs.h <<_ACEOF
30693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30694_ACEOF
30695
30696fi
30697
30698done
30699
30700 fi
30701fi
30702
a848cd7e
SC
30703
30704
30705IODBC_C_SRC=""
30706
30707
30708if test "$TOOLKIT" != "MSW" ; then
30709
30710 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30711
30712 if test "${ac_cv_header_sql_h+set}" = set; then
30713 echo "$as_me:$LINENO: checking for sql.h" >&5
30714echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30715if test "${ac_cv_header_sql_h+set}" = set; then
30716 echo $ECHO_N "(cached) $ECHO_C" >&6
30717fi
30718echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30719echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30720else
30721 # Is the header compilable?
30722echo "$as_me:$LINENO: checking sql.h usability" >&5
30723echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30724cat >conftest.$ac_ext <<_ACEOF
30725/* confdefs.h. */
30726_ACEOF
30727cat confdefs.h >>conftest.$ac_ext
30728cat >>conftest.$ac_ext <<_ACEOF
30729/* end confdefs.h. */
30730$ac_includes_default
30731#include <sql.h>
30732_ACEOF
30733rm -f conftest.$ac_objext
30734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30735 (eval $ac_compile) 2>conftest.er1
a848cd7e 30736 ac_status=$?
ac1cb8d3
VS
30737 grep -v '^ *+' conftest.er1 >conftest.err
30738 rm -f conftest.er1
30739 cat conftest.err >&5
a848cd7e
SC
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); } &&
3565d135
RR
30742 { ac_try='test -z "$ac_c_werror_flag"
30743 || test ! -s conftest.err'
ac1cb8d3
VS
30744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30745 (eval $ac_try) 2>&5
30746 ac_status=$?
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); }; } &&
30749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751 (eval $ac_try) 2>&5
30752 ac_status=$?
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); }; }; then
30755 ac_header_compiler=yes
30756else
30757 echo "$as_me: failed program was:" >&5
30758sed 's/^/| /' conftest.$ac_ext >&5
30759
30760ac_header_compiler=no
30761fi
ac1cb8d3 30762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30763echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30764echo "${ECHO_T}$ac_header_compiler" >&6
30765
30766# Is the header present?
30767echo "$as_me:$LINENO: checking sql.h presence" >&5
30768echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30769cat >conftest.$ac_ext <<_ACEOF
30770/* confdefs.h. */
30771_ACEOF
30772cat confdefs.h >>conftest.$ac_ext
30773cat >>conftest.$ac_ext <<_ACEOF
30774/* end confdefs.h. */
30775#include <sql.h>
30776_ACEOF
30777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30779 ac_status=$?
30780 grep -v '^ *+' conftest.er1 >conftest.err
30781 rm -f conftest.er1
30782 cat conftest.err >&5
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); } >/dev/null; then
30785 if test -s conftest.err; then
30786 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30788 else
30789 ac_cpp_err=
30790 fi
30791else
30792 ac_cpp_err=yes
30793fi
30794if test -z "$ac_cpp_err"; then
30795 ac_header_preproc=yes
30796else
30797 echo "$as_me: failed program was:" >&5
30798sed 's/^/| /' conftest.$ac_ext >&5
30799
30800 ac_header_preproc=no
30801fi
30802rm -f conftest.err conftest.$ac_ext
30803echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30804echo "${ECHO_T}$ac_header_preproc" >&6
30805
30806# So? What about this header?
ac1cb8d3
VS
30807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30808 yes:no: )
a848cd7e
SC
30809 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30810echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30811 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30812echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30813 ac_header_preproc=yes
a848cd7e 30814 ;;
ac1cb8d3 30815 no:yes:* )
a848cd7e
SC
30816 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30817echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30818 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30819echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30820 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30821echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30822 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30823echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30824 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30825echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30826 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30827echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30828 (
30829 cat <<\_ASBOX
ac1cb8d3
VS
30830## ----------------------------------------- ##
30831## Report this to wx-dev@lists.wxwidgets.org ##
30832## ----------------------------------------- ##
a848cd7e
SC
30833_ASBOX
30834 ) |
30835 sed "s/^/$as_me: WARNING: /" >&2
30836 ;;
30837esac
30838echo "$as_me:$LINENO: checking for sql.h" >&5
30839echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30840if test "${ac_cv_header_sql_h+set}" = set; then
30841 echo $ECHO_N "(cached) $ECHO_C" >&6
30842else
30843 ac_cv_header_sql_h=$ac_header_preproc
30844fi
30845echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30846echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30847
30848fi
30849if test $ac_cv_header_sql_h = yes; then
30850 found_sql_h=1
30851fi
30852
30853
30854 if test "x$found_sql_h" = "x1" ; then
30855 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30856echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30857if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30858 echo $ECHO_N "(cached) $ECHO_C" >&6
30859else
30860 ac_check_lib_save_LIBS=$LIBS
30861LIBS="-liodbc $LIBS"
30862cat >conftest.$ac_ext <<_ACEOF
30863/* confdefs.h. */
30864_ACEOF
30865cat confdefs.h >>conftest.$ac_ext
30866cat >>conftest.$ac_ext <<_ACEOF
30867/* end confdefs.h. */
30868
30869/* Override any gcc2 internal prototype to avoid an error. */
30870#ifdef __cplusplus
30871extern "C"
30872#endif
30873/* We use char because int might match the return type of a gcc2
30874 builtin and then its argument prototype would still apply. */
30875char SQLAllocEnv ();
30876int
30877main ()
30878{
30879SQLAllocEnv ();
30880 ;
30881 return 0;
30882}
30883_ACEOF
30884rm -f conftest.$ac_objext conftest$ac_exeext
30885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30886 (eval $ac_link) 2>conftest.er1
a848cd7e 30887 ac_status=$?
ac1cb8d3
VS
30888 grep -v '^ *+' conftest.er1 >conftest.err
30889 rm -f conftest.er1
30890 cat conftest.err >&5
a848cd7e
SC
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); } &&
3565d135
RR
30893 { ac_try='test -z "$ac_c_werror_flag"
30894 || test ! -s conftest.err'
ac1cb8d3
VS
30895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30896 (eval $ac_try) 2>&5
30897 ac_status=$?
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); }; } &&
30900 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30902 (eval $ac_try) 2>&5
30903 ac_status=$?
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); }; }; then
30906 ac_cv_lib_iodbc_SQLAllocEnv=yes
30907else
30908 echo "$as_me: failed program was:" >&5
30909sed 's/^/| /' conftest.$ac_ext >&5
30910
30911ac_cv_lib_iodbc_SQLAllocEnv=no
30912fi
ac1cb8d3
VS
30913rm -f conftest.err conftest.$ac_objext \
30914 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30915LIBS=$ac_check_lib_save_LIBS
30916fi
30917echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30918echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30919if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30920 ODBC_LINK=" -liodbc"
30921else
30922
30923 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30924echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30925if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30926 echo $ECHO_N "(cached) $ECHO_C" >&6
30927else
30928 ac_check_lib_save_LIBS=$LIBS
30929LIBS="-lunixodbc $LIBS"
30930cat >conftest.$ac_ext <<_ACEOF
30931/* confdefs.h. */
30932_ACEOF
30933cat confdefs.h >>conftest.$ac_ext
30934cat >>conftest.$ac_ext <<_ACEOF
30935/* end confdefs.h. */
30936
30937/* Override any gcc2 internal prototype to avoid an error. */
30938#ifdef __cplusplus
30939extern "C"
30940#endif
30941/* We use char because int might match the return type of a gcc2
30942 builtin and then its argument prototype would still apply. */
30943char SQLAllocEnv ();
30944int
30945main ()
30946{
30947SQLAllocEnv ();
30948 ;
30949 return 0;
30950}
30951_ACEOF
30952rm -f conftest.$ac_objext conftest$ac_exeext
30953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30954 (eval $ac_link) 2>conftest.er1
a848cd7e 30955 ac_status=$?
ac1cb8d3
VS
30956 grep -v '^ *+' conftest.er1 >conftest.err
30957 rm -f conftest.er1
30958 cat conftest.err >&5
a848cd7e
SC
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); } &&
3565d135
RR
30961 { ac_try='test -z "$ac_c_werror_flag"
30962 || test ! -s conftest.err'
ac1cb8d3
VS
30963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30964 (eval $ac_try) 2>&5
30965 ac_status=$?
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; } &&
30968 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30970 (eval $ac_try) 2>&5
30971 ac_status=$?
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; }; then
30974 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30975else
30976 echo "$as_me: failed program was:" >&5
30977sed 's/^/| /' conftest.$ac_ext >&5
30978
30979ac_cv_lib_unixodbc_SQLAllocEnv=no
30980fi
ac1cb8d3
VS
30981rm -f conftest.err conftest.$ac_objext \
30982 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30983LIBS=$ac_check_lib_save_LIBS
30984fi
30985echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30986echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30987if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30988 ODBC_LINK=" -lunixodbc"
30989else
30990
30991 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30992echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30993if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30994 echo $ECHO_N "(cached) $ECHO_C" >&6
30995else
30996 ac_check_lib_save_LIBS=$LIBS
30997LIBS="-lodbc $LIBS"
30998cat >conftest.$ac_ext <<_ACEOF
30999/* confdefs.h. */
31000_ACEOF
31001cat confdefs.h >>conftest.$ac_ext
31002cat >>conftest.$ac_ext <<_ACEOF
31003/* end confdefs.h. */
31004
31005/* Override any gcc2 internal prototype to avoid an error. */
31006#ifdef __cplusplus
31007extern "C"
31008#endif
31009/* We use char because int might match the return type of a gcc2
31010 builtin and then its argument prototype would still apply. */
31011char SQLAllocEnv ();
31012int
31013main ()
31014{
31015SQLAllocEnv ();
31016 ;
31017 return 0;
31018}
31019_ACEOF
31020rm -f conftest.$ac_objext conftest$ac_exeext
31021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31022 (eval $ac_link) 2>conftest.er1
a848cd7e 31023 ac_status=$?
ac1cb8d3
VS
31024 grep -v '^ *+' conftest.er1 >conftest.err
31025 rm -f conftest.er1
31026 cat conftest.err >&5
a848cd7e
SC
31027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028 (exit $ac_status); } &&
3565d135
RR
31029 { ac_try='test -z "$ac_c_werror_flag"
31030 || test ! -s conftest.err'
ac1cb8d3
VS
31031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31032 (eval $ac_try) 2>&5
31033 ac_status=$?
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; } &&
31036 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31038 (eval $ac_try) 2>&5
31039 ac_status=$?
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); }; }; then
31042 ac_cv_lib_odbc_SQLAllocEnv=yes
31043else
31044 echo "$as_me: failed program was:" >&5
31045sed 's/^/| /' conftest.$ac_ext >&5
31046
31047ac_cv_lib_odbc_SQLAllocEnv=no
31048fi
ac1cb8d3
VS
31049rm -f conftest.err conftest.$ac_objext \
31050 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31051LIBS=$ac_check_lib_save_LIBS
31052fi
31053echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31054echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31055if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31056 ODBC_LINK=" -lodbc"
31057fi
31058
31059
31060fi
31061
31062
31063fi
31064
31065 fi
31066 if test "x$ODBC_LINK" = "x" ; then
31067 if test "$wxUSE_ODBC" = "sys" ; then
31068 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31069echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31070 { (exit 1); exit 1; }; }
31071 else
31072 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31073echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31074 wxUSE_ODBC=builtin
31075 fi
31076 else
31077 wxUSE_ODBC=sys
31078 fi
31079 fi
a848cd7e 31080
2da0c077
RD
31081 if test "$wxUSE_ODBC" = "builtin" ; then
31082 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31083#define wxUSE_BUILTIN_IODBC 1
31084_ACEOF
31085
a848cd7e
SC
31086 fi
31087fi
31088
2da0c077
RD
31089if test "$wxUSE_ODBC" != "no" ; then
31090 cat >>confdefs.h <<\_ACEOF
31091#define wxUSE_ODBC 1
31092_ACEOF
31093
31094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31095
5ff751d6 31096 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31097fi
a848cd7e 31098
01cb68df 31099
a848cd7e 31100if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31101 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31102 echo "$as_me:$LINENO: checking for Xinerama" >&5
31103echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31104
0ad5d837
VZ
31105 ac_find_libraries=
31106 for ac_dir in $SEARCH_LIB;
31107 do
31108 for ac_extension in a so sl dylib dll.a; do
31109 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31110 ac_find_libraries=$ac_dir
31111 break 2
31112 fi
31113 done
31114 done
31115
a848cd7e
SC
31116 if test "$ac_find_libraries" != "" ; then
31117
0ad5d837 31118 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31119 ac_path_to_link=""
31120 else
0ad5d837
VZ
31121 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31122 result=$?
31123 if test $result = 0; then
31124 ac_path_to_link=""
31125 else
31126 ac_path_to_link=" -L$ac_find_libraries"
31127 fi
a848cd7e
SC
31128 fi
31129
31130 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31131 LDFLAGS="$LDFLAGS $ac_path_to_link"
31132 fi
31133 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31134 echo "$as_me:$LINENO: result: yes" >&5
31135echo "${ECHO_T}yes" >&6
31136
31137 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31138echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31139
0ad5d837
VZ
31140 ac_find_libraries=
31141 for ac_dir in $SEARCH_LIB;
a848cd7e 31142 do
3eca31dc 31143 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31144 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31145 ac_find_libraries=$ac_dir
31146 break 2
31147 fi
31148 done
31149 done
31150
31151 if test "$ac_find_libraries" != "" ; then
31152 echo "$as_me:$LINENO: result: yes" >&5
31153echo "${ECHO_T}yes" >&6
31154
31155for ac_header in X11/extensions/xf86vmode.h
31156do
31157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31158echo "$as_me:$LINENO: checking for $ac_header" >&5
31159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31160if eval "test \"\${$as_ac_Header+set}\" = set"; then
31161 echo $ECHO_N "(cached) $ECHO_C" >&6
31162else
31163 cat >conftest.$ac_ext <<_ACEOF
31164/* confdefs.h. */
31165_ACEOF
31166cat confdefs.h >>conftest.$ac_ext
31167cat >>conftest.$ac_ext <<_ACEOF
31168/* end confdefs.h. */
31169
31170 #if HAVE_X11_XLIB_H
31171 #include <X11/Xlib.h>
31172 #endif
31173
31174
31175#include <$ac_header>
31176_ACEOF
31177rm -f conftest.$ac_objext
31178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31179 (eval $ac_compile) 2>conftest.er1
a848cd7e 31180 ac_status=$?
ac1cb8d3
VS
31181 grep -v '^ *+' conftest.er1 >conftest.err
31182 rm -f conftest.er1
31183 cat conftest.err >&5
a848cd7e
SC
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); } &&
3565d135
RR
31186 { ac_try='test -z "$ac_c_werror_flag"
31187 || test ! -s conftest.err'
ac1cb8d3
VS
31188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31189 (eval $ac_try) 2>&5
31190 ac_status=$?
31191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31192 (exit $ac_status); }; } &&
31193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31195 (eval $ac_try) 2>&5
31196 ac_status=$?
31197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198 (exit $ac_status); }; }; then
31199 eval "$as_ac_Header=yes"
31200else
31201 echo "$as_me: failed program was:" >&5
31202sed 's/^/| /' conftest.$ac_ext >&5
31203
31204eval "$as_ac_Header=no"
31205fi
ac1cb8d3 31206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31207fi
31208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31210if test `eval echo '${'$as_ac_Header'}'` = yes; then
31211 cat >>confdefs.h <<_ACEOF
31212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31213_ACEOF
31214
31215 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31216
31217fi
31218
31219done
31220
31221 else
31222 echo "$as_me:$LINENO: result: no" >&5
31223echo "${ECHO_T}no" >&6
31224 fi
31225
31226 else
31227 echo "$as_me:$LINENO: result: no" >&5
31228echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31229 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31230echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31231 wxUSE_DISPLAY="no"
31232 fi
01cb68df
RG
31233 elif test "$wxUSE_MSW" = 1; then
31234
31235
31236for ac_header in multimon.h ddraw.h
31237do
31238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31239echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31241if eval "test \"\${$as_ac_Header+set}\" = set"; then
31242 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31243else
5294a27e 31244 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31245/* confdefs.h. */
31246_ACEOF
31247cat confdefs.h >>conftest.$ac_ext
31248cat >>conftest.$ac_ext <<_ACEOF
31249/* end confdefs.h. */
5294a27e
VZ
31250#include <windows.h>
31251
01cb68df
RG
31252#include <$ac_header>
31253_ACEOF
31254rm -f conftest.$ac_objext
31255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31256 (eval $ac_compile) 2>conftest.er1
01cb68df 31257 ac_status=$?
ac1cb8d3
VS
31258 grep -v '^ *+' conftest.er1 >conftest.err
31259 rm -f conftest.er1
31260 cat conftest.err >&5
01cb68df
RG
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); } &&
3565d135
RR
31263 { ac_try='test -z "$ac_c_werror_flag"
31264 || test ! -s conftest.err'
ac1cb8d3
VS
31265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31266 (eval $ac_try) 2>&5
31267 ac_status=$?
31268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269 (exit $ac_status); }; } &&
31270 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31272 (eval $ac_try) 2>&5
31273 ac_status=$?
31274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275 (exit $ac_status); }; }; then
5294a27e 31276 eval "$as_ac_Header=yes"
01cb68df
RG
31277else
31278 echo "$as_me: failed program was:" >&5
31279sed 's/^/| /' conftest.$ac_ext >&5
31280
5294a27e 31281eval "$as_ac_Header=no"
01cb68df 31282fi
ac1cb8d3 31283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31284fi
31285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31286echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31287if test `eval echo '${'$as_ac_Header'}'` = yes; then
31288 cat >>confdefs.h <<_ACEOF
31289#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31290_ACEOF
31291
31292else
31293
5294a27e
VZ
31294 wxUSE_DISPLAY="no"
31295 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 31296echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
31297
31298fi
31299
31300done
31301
a848cd7e
SC
31302 fi
31303fi
31304
31305
31306USE_OPENGL=0
31307if test "$wxUSE_OPENGL" = "yes"; then
31308 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31309 OPENGL_LIBS="-framework OpenGL -framework AGL"
31310 elif test "$wxUSE_MSW" = 1; then
31311 OPENGL_LIBS="-lopengl32 -lglu32"
31312 else
31313
31314
31315ac_find_includes=
31316for ac_dir in $SEARCH_INCLUDE /usr/include;
31317 do
31318 if test -f "$ac_dir/GL/gl.h"; then
31319 ac_find_includes=$ac_dir
31320 break
31321 fi
31322 done
31323
31324 if test "$ac_find_includes" != "" ; then
31325 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31326echo "${ECHO_T}found in $ac_find_includes" >&6
31327
31328 if test "x$ac_find_includes" = "x/usr/include"; then
31329 ac_path_to_include=""
31330 else
31331 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31332 result=$?
31333 if test $result = 0; then
31334 ac_path_to_include=""
31335 else
31336 ac_path_to_include=" -I$ac_find_includes"
31337 fi
31338 fi
31339
c92ad099 31340 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31341 fi
31342
31343 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31344 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31345echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31346if test "${ac_cv_header_GL_gl_h+set}" = set; then
31347 echo $ECHO_N "(cached) $ECHO_C" >&6
31348fi
31349echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31350echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31351else
31352 # Is the header compilable?
31353echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31354echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31355cat >conftest.$ac_ext <<_ACEOF
31356/* confdefs.h. */
31357_ACEOF
31358cat confdefs.h >>conftest.$ac_ext
31359cat >>conftest.$ac_ext <<_ACEOF
31360/* end confdefs.h. */
31361$ac_includes_default
31362#include <GL/gl.h>
31363_ACEOF
31364rm -f conftest.$ac_objext
31365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31366 (eval $ac_compile) 2>conftest.er1
a848cd7e 31367 ac_status=$?
ac1cb8d3
VS
31368 grep -v '^ *+' conftest.er1 >conftest.err
31369 rm -f conftest.er1
31370 cat conftest.err >&5
a848cd7e
SC
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); } &&
3565d135
RR
31373 { ac_try='test -z "$ac_c_werror_flag"
31374 || test ! -s conftest.err'
ac1cb8d3
VS
31375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31376 (eval $ac_try) 2>&5
31377 ac_status=$?
31378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379 (exit $ac_status); }; } &&
31380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31382 (eval $ac_try) 2>&5
31383 ac_status=$?
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); }; }; then
31386 ac_header_compiler=yes
31387else
31388 echo "$as_me: failed program was:" >&5
31389sed 's/^/| /' conftest.$ac_ext >&5
31390
31391ac_header_compiler=no
31392fi
ac1cb8d3 31393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31394echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31395echo "${ECHO_T}$ac_header_compiler" >&6
31396
31397# Is the header present?
31398echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31399echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31400cat >conftest.$ac_ext <<_ACEOF
31401/* confdefs.h. */
31402_ACEOF
31403cat confdefs.h >>conftest.$ac_ext
31404cat >>conftest.$ac_ext <<_ACEOF
31405/* end confdefs.h. */
31406#include <GL/gl.h>
31407_ACEOF
31408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31410 ac_status=$?
31411 grep -v '^ *+' conftest.er1 >conftest.err
31412 rm -f conftest.er1
31413 cat conftest.err >&5
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); } >/dev/null; then
31416 if test -s conftest.err; then
31417 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31419 else
31420 ac_cpp_err=
31421 fi
31422else
31423 ac_cpp_err=yes
31424fi
31425if test -z "$ac_cpp_err"; then
31426 ac_header_preproc=yes
31427else
31428 echo "$as_me: failed program was:" >&5
31429sed 's/^/| /' conftest.$ac_ext >&5
31430
31431 ac_header_preproc=no
31432fi
31433rm -f conftest.err conftest.$ac_ext
31434echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31435echo "${ECHO_T}$ac_header_preproc" >&6
31436
31437# So? What about this header?
ac1cb8d3
VS
31438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31439 yes:no: )
a848cd7e
SC
31440 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31441echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31442 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31443echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31444 ac_header_preproc=yes
a848cd7e 31445 ;;
ac1cb8d3 31446 no:yes:* )
a848cd7e
SC
31447 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31448echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31449 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31450echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31451 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31452echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31453 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31454echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31455 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31456echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31457 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31458echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31459 (
31460 cat <<\_ASBOX
ac1cb8d3
VS
31461## ----------------------------------------- ##
31462## Report this to wx-dev@lists.wxwidgets.org ##
31463## ----------------------------------------- ##
a848cd7e
SC
31464_ASBOX
31465 ) |
31466 sed "s/^/$as_me: WARNING: /" >&2
31467 ;;
31468esac
31469echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31470echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31471if test "${ac_cv_header_GL_gl_h+set}" = set; then
31472 echo $ECHO_N "(cached) $ECHO_C" >&6
31473else
31474 ac_cv_header_GL_gl_h=$ac_header_preproc
31475fi
31476echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31477echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31478
31479fi
31480if test $ac_cv_header_GL_gl_h = yes; then
31481
31482 found_gl=0
31483
31484 echo "$as_me:$LINENO: checking for -lGL" >&5
31485echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31486
0ad5d837
VZ
31487 ac_find_libraries=
31488 for ac_dir in $SEARCH_LIB;
a848cd7e 31489 do
3eca31dc 31490 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31491 if test -f "$ac_dir/libGL.$ac_extension"; then
31492 ac_find_libraries=$ac_dir
31493 break 2
31494 fi
31495 done
31496 done
31497
31498 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31499 echo "$as_me:$LINENO: result: yes" >&5
31500echo "${ECHO_T}yes" >&6
31501
a848cd7e 31502
0ad5d837 31503 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31504 ac_path_to_link=""
31505 else
0ad5d837
VZ
31506 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31507 result=$?
31508 if test $result = 0; then
31509 ac_path_to_link=""
31510 else
31511 ac_path_to_link=" -L$ac_find_libraries"
31512 fi
a848cd7e
SC
31513 fi
31514
31515 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31516 LDFLAGS_GL="$ac_path_to_link"
31517 fi
31518
69120ee4
VZ
31519 echo "$as_me:$LINENO: checking for -lGLU" >&5
31520echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31521
0ad5d837
VZ
31522 ac_find_libraries=
31523 for ac_dir in $SEARCH_LIB;
31524 do
31525 for ac_extension in a so sl dylib dll.a; do
31526 if test -f "$ac_dir/libGLU.$ac_extension"; then
31527 ac_find_libraries=$ac_dir
31528 break 2
31529 fi
31530 done
31531 done
31532
a848cd7e
SC
31533 if test "$ac_find_libraries" != "" ; then
31534
0ad5d837 31535 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31536 ac_path_to_link=""
31537 else
0ad5d837
VZ
31538 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31539 result=$?
31540 if test $result = 0; then
31541 ac_path_to_link=""
31542 else
31543 ac_path_to_link=" -L$ac_find_libraries"
31544 fi
a848cd7e
SC
31545 fi
31546
31547 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31548 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31549 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31550 fi
31551
31552 found_gl=1
31553 OPENGL_LIBS="-lGL -lGLU"
31554 echo "$as_me:$LINENO: result: yes" >&5
31555echo "${ECHO_T}yes" >&6
69120ee4
VZ
31556 else
31557 echo "$as_me:$LINENO: result: no" >&5
31558echo "${ECHO_T}no" >&6
a848cd7e 31559 fi
69120ee4
VZ
31560 else
31561 echo "$as_me:$LINENO: result: no" >&5
31562echo "${ECHO_T}no" >&6
a848cd7e
SC
31563 fi
31564
31565 if test "$found_gl" != 1; then
a848cd7e
SC
31566 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31567echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31568
0ad5d837
VZ
31569 ac_find_libraries=
31570 for ac_dir in $SEARCH_LIB;
a848cd7e 31571 do
3eca31dc 31572 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31573 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31574 ac_find_libraries=$ac_dir
31575 break 2
31576 fi
31577 done
31578 done
31579
31580 if test "$ac_find_libraries" != "" ; then
31581
0ad5d837 31582 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31583 ac_path_to_link=""
31584 else
0ad5d837
VZ
31585 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31586 result=$?
31587 if test $result = 0; then
31588 ac_path_to_link=""
31589 else
31590 ac_path_to_link=" -L$ac_find_libraries"
31591 fi
a848cd7e
SC
31592 fi
31593
31594 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31595 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31596 echo "$as_me:$LINENO: result: yes" >&5
31597echo "${ECHO_T}yes" >&6
31598 else
31599 echo "$as_me:$LINENO: result: no" >&5
31600echo "${ECHO_T}no" >&6
31601 fi
31602 fi
31603
31604fi
31605
31606
31607
31608 if test "x$OPENGL_LIBS" = "x"; then
31609 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31610echo "$as_me: error: OpenGL libraries not available" >&2;}
31611 { (exit 1); exit 1; }; }
31612 fi
31613 fi
31614
31615 if test "$wxUSE_OPENGL" = "yes"; then
31616 USE_OPENGL=1
31617 cat >>confdefs.h <<\_ACEOF
31618#define wxUSE_OPENGL 1
31619_ACEOF
31620
31621 cat >>confdefs.h <<\_ACEOF
31622#define wxUSE_GLCANVAS 1
31623_ACEOF
31624
31625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31626 fi
31627fi
31628
a848cd7e
SC
31629
31630if test -n "$TOOLKIT" ; then
31631 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31632fi
31633
a848cd7e
SC
31634
31635
31636if test "$wxUSE_SHARED" = "yes"; then
31637 case "${host}" in
31638 *-pc-msdosdjgpp )
31639 wxUSE_SHARED=no
31640 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31641echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31642 ;;
31643 esac
31644fi
31645
a848cd7e 31646if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31647
31648
31649 found_versioning=no
31650
31651
31652 if test $found_versioning = no ; then
31653 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31654echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31655if test "${wx_cv_version_script+set}" = set; then
31656 echo $ECHO_N "(cached) $ECHO_C" >&6
31657else
31658
31659 echo "VER_1 { *; };" >conftest.sym
31660 echo "int main() { return 0; }" >conftest.cpp
31661
31662 if { ac_try='
31663 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31664 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31666 (eval $ac_try) 2>&5
31667 ac_status=$?
31668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 (exit $ac_status); }; } ; then
31670 if test -s conftest.stderr ; then
31671 wx_cv_version_script=no
31672 else
31673 wx_cv_version_script=yes
31674 fi
31675 else
31676 wx_cv_version_script=no
31677 fi
e5d4b470
MW
31678
31679 if test $wx_cv_version_script = yes
31680 then
31681 echo "struct B { virtual ~B() { } }; \
31682 struct D : public B { }; \
31683 void F() { D d; }" > conftest.cpp
31684
31685 if { ac_try='
31686 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31687 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31689 (eval $ac_try) 2>&5
31690 ac_status=$?
31691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); }; } &&
31693 { ac_try='
31694 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31695 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31697 (eval $ac_try) 2>&5
31698 ac_status=$?
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; }
31701 then
31702 if { ac_try='
31703 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31704 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31706 (eval $ac_try) 2>&5
31707 ac_status=$?
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); }; }
31710 then
31711 wx_cv_version_script=yes
31712 else
31713 wx_cv_version_script=no
31714 fi
31715 fi
31716 fi
31717
a848cd7e 31718 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31719 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31720
31721fi
31722echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31723echo "${ECHO_T}$wx_cv_version_script" >&6
31724 if test $wx_cv_version_script = yes ; then
31725 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31726 fi
31727 fi
31728
31729
31730 case "${host}" in
31731 *-*-linux* | *-*-gnu* )
31732 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31733 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31734 ;;
a848cd7e
SC
31735
31736 *-*-solaris2* )
31737 if test "$GCC" = yes ; then
c92ad099 31738 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
31739
31740 saveLdflags="$LDFLAGS"
31741 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31742 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31743echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31744 cat >conftest.$ac_ext <<_ACEOF
31745/* confdefs.h. */
31746_ACEOF
31747cat confdefs.h >>conftest.$ac_ext
31748cat >>conftest.$ac_ext <<_ACEOF
31749/* end confdefs.h. */
31750
31751int
31752main ()
31753{
31754
31755 ;
31756 return 0;
31757}
31758_ACEOF
31759rm -f conftest.$ac_objext conftest$ac_exeext
31760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31761 (eval $ac_link) 2>conftest.er1
a848cd7e 31762 ac_status=$?
ac1cb8d3
VS
31763 grep -v '^ *+' conftest.er1 >conftest.err
31764 rm -f conftest.er1
31765 cat conftest.err >&5
a848cd7e
SC
31766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767 (exit $ac_status); } &&
3565d135
RR
31768 { ac_try='test -z "$ac_c_werror_flag"
31769 || test ! -s conftest.err'
ac1cb8d3
VS
31770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31771 (eval $ac_try) 2>&5
31772 ac_status=$?
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); }; } &&
31775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31777 (eval $ac_try) 2>&5
31778 ac_status=$?
31779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780 (exit $ac_status); }; }; then
31781
31782 echo "$as_me:$LINENO: result: yes" >&5
31783echo "${ECHO_T}yes" >&6
31784 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31785 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31786
31787else
31788 echo "$as_me: failed program was:" >&5
31789sed 's/^/| /' conftest.$ac_ext >&5
31790
31791
31792 echo "$as_me:$LINENO: result: no" >&5
31793echo "${ECHO_T}no" >&6
31794 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31795echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31796 LDFLAGS="$saveLdflags -Wl,-R,/"
31797 cat >conftest.$ac_ext <<_ACEOF
31798/* confdefs.h. */
31799_ACEOF
31800cat confdefs.h >>conftest.$ac_ext
31801cat >>conftest.$ac_ext <<_ACEOF
31802/* end confdefs.h. */
31803
31804int
31805main ()
31806{
31807
31808 ;
31809 return 0;
31810}
31811_ACEOF
31812rm -f conftest.$ac_objext conftest$ac_exeext
31813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31814 (eval $ac_link) 2>conftest.er1
a848cd7e 31815 ac_status=$?
ac1cb8d3
VS
31816 grep -v '^ *+' conftest.er1 >conftest.err
31817 rm -f conftest.er1
31818 cat conftest.err >&5
a848cd7e
SC
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); } &&
3565d135
RR
31821 { ac_try='test -z "$ac_c_werror_flag"
31822 || test ! -s conftest.err'
ac1cb8d3
VS
31823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31824 (eval $ac_try) 2>&5
31825 ac_status=$?
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; } &&
31828 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31830 (eval $ac_try) 2>&5
31831 ac_status=$?
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
31834
ffa0583f 31835 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31836echo "${ECHO_T}yes" >&6
ffa0583f
RL
31837 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31838 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31839
a848cd7e
SC
31840else
31841 echo "$as_me: failed program was:" >&5
31842sed 's/^/| /' conftest.$ac_ext >&5
31843
31844
31845 echo "$as_me:$LINENO: result: no" >&5
31846echo "${ECHO_T}no" >&6
31847
31848fi
ac1cb8d3
VS
31849rm -f conftest.err conftest.$ac_objext \
31850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31851
31852fi
ac1cb8d3
VS
31853rm -f conftest.err conftest.$ac_objext \
31854 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31855 LDFLAGS="$saveLdflags"
31856 else
a848cd7e 31857 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31858 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31859 fi
31860 ;;
31861
cfda0ea8 31862 *-*-darwin* )
0caebc27
MW
31863 install_name_tool=`which install_name_tool`
31864 if test "$install_name_tool" -a -x "$install_name_tool"; then
31865 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31866 cat <<EOF >change-install-names
a848cd7e
SC
31867#!/bin/sh
31868libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31869inst_cmd="install_name_tool "
31870for i in \${libnames} ; do
31871 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31872done
31873\${inst_cmd} \${3}
31874EOF
0caebc27
MW
31875 chmod +x change-install-names
31876 fi
a848cd7e
SC
31877 ;;
31878
31879 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
31880 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
31881 ;;
a848cd7e 31882
81f90336
MW
31883 *-*-hpux* )
31884 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31885 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 31886 ;;
81f90336 31887
a848cd7e 31888 esac
ceec2216 31889
ffa0583f
RL
31890 if test $wxUSE_RPATH = "no"; then
31891 SAMPLES_RPATH_FLAG=''
31892 SAMPLES_RPATH_POSTLINK=''
31893 WXCONFIG_RPATH=''
31894 fi
31895
31896 SHARED=1
31897
31898else
31899
ceec2216
RL
31900 config_linkage_component="-static"
31901 SHARED=0
ffa0583f 31902
ceec2216 31903fi
a848cd7e 31904
a848cd7e 31905
ceec2216
RL
31906UNICODE=0
31907lib_unicode_suffix=
31908WX_CHARTYPE="ansi"
31909if test "$wxUSE_UNICODE" = "yes"; then
31910 lib_unicode_suffix=u
31911 WX_CHARTYPE="unicode"
31912 UNICODE=1
a848cd7e
SC
31913fi
31914
ceec2216
RL
31915lib_debug_suffix=
31916WX_DEBUGTYPE="release"
31917DEBUG_FLAG=0
31918if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31919 lib_debug_suffix=d
31920 WX_DEBUGTYPE="debug"
31921 DEBUG_FLAG=1
31922fi
a848cd7e 31923
ceec2216
RL
31924WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31925WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31926
ceec2216
RL
31927DEBUG_INFO=0
31928if test "$wxUSE_DEBUG_INFO" = "yes"; then
31929 DEBUG_INFO=1
31930fi
a848cd7e 31931
ceec2216 31932WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31933
ceec2216 31934TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31935
ceec2216 31936TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31937
ceec2216
RL
31938if test "$cross_compiling" = "yes"; then
31939 HOST_SUFFIX="-$host_alias"
31940 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31941 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31942fi
31943
dd21ced8 31944WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31945if test "${TOOLKIT_DIR}" = "os2"; then
31946 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31947else
31948 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31949fi
ceec2216
RL
31950
31951
31952
1d1af5ea
DE
31953if test "$wxUSE_COCOA" = 1; then
31954
31955
31956 ac_ext=c
31957ac_cpp='$CPP $CPPFLAGS'
31958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31960ac_compiler_gnu=$ac_cv_c_compiler_gnu
31961
31962ac_ext=m
31963
31964 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31965echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31966 cat >conftest.$ac_ext <<_ACEOF
31967/* confdefs.h. */
31968_ACEOF
31969cat confdefs.h >>conftest.$ac_ext
31970cat >>conftest.$ac_ext <<_ACEOF
31971/* end confdefs.h. */
31972#include <AppKit/NSEvent.h>
31973#include <CoreFoundation/CoreFoundation.h>
31974
31975int
31976main ()
31977{
31978
31979 ;
31980 return 0;
31981}
31982_ACEOF
31983rm -f conftest.$ac_objext
31984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31985 (eval $ac_compile) 2>conftest.er1
31986 ac_status=$?
31987 grep -v '^ *+' conftest.er1 >conftest.err
31988 rm -f conftest.er1
31989 cat conftest.err >&5
31990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991 (exit $ac_status); } &&
3565d135
RR
31992 { ac_try='test -z "$ac_c_werror_flag"
31993 || test ! -s conftest.err'
1d1af5ea
DE
31994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31995 (eval $ac_try) 2>&5
31996 ac_status=$?
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); }; } &&
31999 { ac_try='test -s conftest.$ac_objext'
32000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32001 (eval $ac_try) 2>&5
32002 ac_status=$?
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); }; }; then
32005 echo "$as_me:$LINENO: result: no" >&5
32006echo "${ECHO_T}no" >&6
32007else
32008 echo "$as_me: failed program was:" >&5
32009sed 's/^/| /' conftest.$ac_ext >&5
32010
32011echo "$as_me:$LINENO: result: yes" >&5
32012echo "${ECHO_T}yes" >&6
32013 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32014echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32015 cat >conftest.$ac_ext <<_ACEOF
32016/* confdefs.h. */
32017_ACEOF
32018cat confdefs.h >>conftest.$ac_ext
32019cat >>conftest.$ac_ext <<_ACEOF
32020/* end confdefs.h. */
32021#define __Point__ 1
32022#include <AppKit/NSEvent.h>
32023#include <CoreFoundation/CoreFoundation.h>
32024
32025int
32026main ()
32027{
32028
32029 ;
32030 return 0;
32031}
32032_ACEOF
32033rm -f conftest.$ac_objext
32034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32035 (eval $ac_compile) 2>conftest.er1
32036 ac_status=$?
32037 grep -v '^ *+' conftest.er1 >conftest.err
32038 rm -f conftest.er1
32039 cat conftest.err >&5
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); } &&
3565d135
RR
32042 { ac_try='test -z "$ac_c_werror_flag"
32043 || test ! -s conftest.err'
1d1af5ea
DE
32044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32045 (eval $ac_try) 2>&5
32046 ac_status=$?
32047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048 (exit $ac_status); }; } &&
32049 { ac_try='test -s conftest.$ac_objext'
32050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32051 (eval $ac_try) 2>&5
32052 ac_status=$?
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054 (exit $ac_status); }; }; then
32055 echo "$as_me:$LINENO: result: yes" >&5
32056echo "${ECHO_T}yes" >&6
32057 cat >>confdefs.h <<\_ACEOF
32058#define __Point__ 1
32059_ACEOF
32060
32061
32062else
32063 echo "$as_me: failed program was:" >&5
32064sed 's/^/| /' conftest.$ac_ext >&5
32065
32066{ { echo "$as_me:$LINENO: error: no
32067See \`config.log' for more details." >&5
32068echo "$as_me: error: no
32069See \`config.log' for more details." >&2;}
32070 { (exit 1); exit 1; }; }
32071
32072fi
32073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32074
32075fi
32076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32077 ac_ext=c
32078ac_cpp='$CPP $CPPFLAGS'
32079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32081ac_compiler_gnu=$ac_cv_c_compiler_gnu
32082
32083fi
32084
a848cd7e 32085if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32086 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32087 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32088
a848cd7e 32089 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32090
32091 # Extract the first word of "Rez", so it can be a program name with args.
32092set dummy Rez; ac_word=$2
32093echo "$as_me:$LINENO: checking for $ac_word" >&5
32094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32095if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32096 echo $ECHO_N "(cached) $ECHO_C" >&6
32097else
8ced02f6
DE
32098 if test -n "$REZ"; then
32099 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32100else
32101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32102for as_dir in $PATH
32103do
32104 IFS=$as_save_IFS
32105 test -z "$as_dir" && as_dir=.
32106 for ac_exec_ext in '' $ac_executable_extensions; do
32107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32108 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32110 break 2
32111 fi
32112done
32113done
32114
8ced02f6 32115 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32116fi
32117fi
8ced02f6
DE
32118REZ=$ac_cv_prog_REZ
32119if test -n "$REZ"; then
32120 echo "$as_me:$LINENO: result: $REZ" >&5
32121echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32122else
32123 echo "$as_me:$LINENO: result: no" >&5
32124echo "${ECHO_T}no" >&6
32125fi
32126
32127 # Extract the first word of "DeRez", so it can be a program name with args.
32128set dummy DeRez; ac_word=$2
32129echo "$as_me:$LINENO: checking for $ac_word" >&5
32130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32131if test "${ac_cv_prog_DEREZ+set}" = set; then
32132 echo $ECHO_N "(cached) $ECHO_C" >&6
32133else
32134 if test -n "$DEREZ"; then
32135 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32136else
32137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32138for as_dir in $PATH
32139do
32140 IFS=$as_save_IFS
32141 test -z "$as_dir" && as_dir=.
32142 for ac_exec_ext in '' $ac_executable_extensions; do
32143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32144 ac_cv_prog_DEREZ="DeRez"
32145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32146 break 2
32147 fi
32148done
32149done
32150
32151 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32152fi
32153fi
32154DEREZ=$ac_cv_prog_DEREZ
32155if test -n "$DEREZ"; then
32156 echo "$as_me:$LINENO: result: $DEREZ" >&5
32157echo "${ECHO_T}$DEREZ" >&6
32158else
32159 echo "$as_me:$LINENO: result: no" >&5
32160echo "${ECHO_T}no" >&6
32161fi
32162
32163 # Extract the first word of "SetFile", so it can be a program name with args.
32164set dummy SetFile; ac_word=$2
32165echo "$as_me:$LINENO: checking for $ac_word" >&5
32166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32167if test "${ac_cv_prog_SETFILE+set}" = set; then
32168 echo $ECHO_N "(cached) $ECHO_C" >&6
32169else
32170 if test -n "$SETFILE"; then
32171 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32172else
32173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32174for as_dir in $PATH
32175do
32176 IFS=$as_save_IFS
32177 test -z "$as_dir" && as_dir=.
32178 for ac_exec_ext in '' $ac_executable_extensions; do
32179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32180 ac_cv_prog_SETFILE="SetFile"
32181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32182 break 2
32183 fi
32184done
32185done
32186
32187 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32188fi
32189fi
32190SETFILE=$ac_cv_prog_SETFILE
32191if test -n "$SETFILE"; then
32192 echo "$as_me:$LINENO: result: $SETFILE" >&5
32193echo "${ECHO_T}$SETFILE" >&6
32194else
32195 echo "$as_me:$LINENO: result: no" >&5
32196echo "${ECHO_T}no" >&6
32197fi
32198
32199
32200 MACSETFILE="\$(SETFILE)"
32201
32202 if test "$wxUSE_MAC" = 1; then
8ced02f6 32203 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32204 RESCOMP="$REZ"
32205 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32206 else
004ee6da
RL
32207 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32208 RESCOMP="echo -n \| $REZ"
32209 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32210 fi
004ee6da 32211
a848cd7e 32212else
ffa0583f 32213 MACSETFILE="@true"
a848cd7e 32214
8ced02f6 32215 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32216 RESCOMP="emxbind"
32217 WXCONFIG_RESFLAGS="-ep"
32218
32219 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32220 else
8ced02f6 32221 POSTLINK_COMMAND="@true"
a848cd7e 32222 fi
004ee6da 32223
a848cd7e
SC
32224fi
32225
32226
32227
32228echo "$as_me:$LINENO: checking for mode_t" >&5
32229echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32230if test "${ac_cv_type_mode_t+set}" = set; then
32231 echo $ECHO_N "(cached) $ECHO_C" >&6
32232else
32233 cat >conftest.$ac_ext <<_ACEOF
32234/* confdefs.h. */
32235_ACEOF
32236cat confdefs.h >>conftest.$ac_ext
32237cat >>conftest.$ac_ext <<_ACEOF
32238/* end confdefs.h. */
32239$ac_includes_default
32240int
32241main ()
32242{
32243if ((mode_t *) 0)
32244 return 0;
32245if (sizeof (mode_t))
32246 return 0;
32247 ;
32248 return 0;
32249}
32250_ACEOF
32251rm -f conftest.$ac_objext
32252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32253 (eval $ac_compile) 2>conftest.er1
a848cd7e 32254 ac_status=$?
ac1cb8d3
VS
32255 grep -v '^ *+' conftest.er1 >conftest.err
32256 rm -f conftest.er1
32257 cat conftest.err >&5
a848cd7e
SC
32258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259 (exit $ac_status); } &&
3565d135
RR
32260 { ac_try='test -z "$ac_c_werror_flag"
32261 || test ! -s conftest.err'
ac1cb8d3
VS
32262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32263 (eval $ac_try) 2>&5
32264 ac_status=$?
32265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266 (exit $ac_status); }; } &&
32267 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32269 (eval $ac_try) 2>&5
32270 ac_status=$?
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); }; }; then
32273 ac_cv_type_mode_t=yes
32274else
32275 echo "$as_me: failed program was:" >&5
32276sed 's/^/| /' conftest.$ac_ext >&5
32277
32278ac_cv_type_mode_t=no
32279fi
ac1cb8d3 32280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32281fi
32282echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32283echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32284if test $ac_cv_type_mode_t = yes; then
32285 :
32286else
32287
32288cat >>confdefs.h <<_ACEOF
32289#define mode_t int
32290_ACEOF
32291
32292fi
32293
32294echo "$as_me:$LINENO: checking for off_t" >&5
32295echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32296if test "${ac_cv_type_off_t+set}" = set; then
32297 echo $ECHO_N "(cached) $ECHO_C" >&6
32298else
32299 cat >conftest.$ac_ext <<_ACEOF
32300/* confdefs.h. */
32301_ACEOF
32302cat confdefs.h >>conftest.$ac_ext
32303cat >>conftest.$ac_ext <<_ACEOF
32304/* end confdefs.h. */
32305$ac_includes_default
32306int
32307main ()
32308{
32309if ((off_t *) 0)
32310 return 0;
32311if (sizeof (off_t))
32312 return 0;
32313 ;
32314 return 0;
32315}
32316_ACEOF
32317rm -f conftest.$ac_objext
32318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32319 (eval $ac_compile) 2>conftest.er1
a848cd7e 32320 ac_status=$?
ac1cb8d3
VS
32321 grep -v '^ *+' conftest.er1 >conftest.err
32322 rm -f conftest.er1
32323 cat conftest.err >&5
a848cd7e
SC
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); } &&
3565d135
RR
32326 { ac_try='test -z "$ac_c_werror_flag"
32327 || test ! -s conftest.err'
ac1cb8d3
VS
32328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32329 (eval $ac_try) 2>&5
32330 ac_status=$?
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); }; } &&
32333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32335 (eval $ac_try) 2>&5
32336 ac_status=$?
32337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32338 (exit $ac_status); }; }; then
32339 ac_cv_type_off_t=yes
32340else
32341 echo "$as_me: failed program was:" >&5
32342sed 's/^/| /' conftest.$ac_ext >&5
32343
32344ac_cv_type_off_t=no
32345fi
ac1cb8d3 32346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32347fi
32348echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32349echo "${ECHO_T}$ac_cv_type_off_t" >&6
32350if test $ac_cv_type_off_t = yes; then
32351 :
32352else
32353
32354cat >>confdefs.h <<_ACEOF
32355#define off_t long
32356_ACEOF
32357
32358fi
32359
32360echo "$as_me:$LINENO: checking for pid_t" >&5
32361echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32362if test "${ac_cv_type_pid_t+set}" = set; then
32363 echo $ECHO_N "(cached) $ECHO_C" >&6
32364else
32365 cat >conftest.$ac_ext <<_ACEOF
32366/* confdefs.h. */
32367_ACEOF
32368cat confdefs.h >>conftest.$ac_ext
32369cat >>conftest.$ac_ext <<_ACEOF
32370/* end confdefs.h. */
32371$ac_includes_default
32372int
32373main ()
32374{
32375if ((pid_t *) 0)
32376 return 0;
32377if (sizeof (pid_t))
32378 return 0;
32379 ;
32380 return 0;
32381}
32382_ACEOF
32383rm -f conftest.$ac_objext
32384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32385 (eval $ac_compile) 2>conftest.er1
a848cd7e 32386 ac_status=$?
ac1cb8d3
VS
32387 grep -v '^ *+' conftest.er1 >conftest.err
32388 rm -f conftest.er1
32389 cat conftest.err >&5
a848cd7e
SC
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); } &&
3565d135
RR
32392 { ac_try='test -z "$ac_c_werror_flag"
32393 || test ! -s conftest.err'
ac1cb8d3
VS
32394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32395 (eval $ac_try) 2>&5
32396 ac_status=$?
32397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398 (exit $ac_status); }; } &&
32399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32401 (eval $ac_try) 2>&5
32402 ac_status=$?
32403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404 (exit $ac_status); }; }; then
32405 ac_cv_type_pid_t=yes
32406else
32407 echo "$as_me: failed program was:" >&5
32408sed 's/^/| /' conftest.$ac_ext >&5
32409
32410ac_cv_type_pid_t=no
32411fi
ac1cb8d3 32412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32413fi
32414echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32415echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32416if test $ac_cv_type_pid_t = yes; then
32417 :
32418else
32419
32420cat >>confdefs.h <<_ACEOF
32421#define pid_t int
32422_ACEOF
32423
32424fi
32425
32426echo "$as_me:$LINENO: checking for size_t" >&5
32427echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32428if test "${ac_cv_type_size_t+set}" = set; then
32429 echo $ECHO_N "(cached) $ECHO_C" >&6
32430else
32431 cat >conftest.$ac_ext <<_ACEOF
32432/* confdefs.h. */
32433_ACEOF
32434cat confdefs.h >>conftest.$ac_ext
32435cat >>conftest.$ac_ext <<_ACEOF
32436/* end confdefs.h. */
32437$ac_includes_default
32438int
32439main ()
32440{
32441if ((size_t *) 0)
32442 return 0;
32443if (sizeof (size_t))
32444 return 0;
32445 ;
32446 return 0;
32447}
32448_ACEOF
32449rm -f conftest.$ac_objext
32450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32451 (eval $ac_compile) 2>conftest.er1
a848cd7e 32452 ac_status=$?
ac1cb8d3
VS
32453 grep -v '^ *+' conftest.er1 >conftest.err
32454 rm -f conftest.er1
32455 cat conftest.err >&5
a848cd7e
SC
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); } &&
3565d135
RR
32458 { ac_try='test -z "$ac_c_werror_flag"
32459 || test ! -s conftest.err'
ac1cb8d3
VS
32460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32461 (eval $ac_try) 2>&5
32462 ac_status=$?
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); }; } &&
32465 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32467 (eval $ac_try) 2>&5
32468 ac_status=$?
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); }; }; then
32471 ac_cv_type_size_t=yes
32472else
32473 echo "$as_me: failed program was:" >&5
32474sed 's/^/| /' conftest.$ac_ext >&5
32475
32476ac_cv_type_size_t=no
32477fi
ac1cb8d3 32478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32479fi
32480echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32481echo "${ECHO_T}$ac_cv_type_size_t" >&6
32482if test $ac_cv_type_size_t = yes; then
32483 :
32484else
32485
32486cat >>confdefs.h <<_ACEOF
32487#define size_t unsigned
32488_ACEOF
32489
32490fi
32491
32492echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32493echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32494if test "${ac_cv_type_uid_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#include <sys/types.h>
32504
32505_ACEOF
32506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32507 $EGREP "uid_t" >/dev/null 2>&1; then
32508 ac_cv_type_uid_t=yes
32509else
32510 ac_cv_type_uid_t=no
32511fi
32512rm -f conftest*
32513
32514fi
32515echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32516echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32517if test $ac_cv_type_uid_t = no; then
32518
32519cat >>confdefs.h <<\_ACEOF
32520#define uid_t int
32521_ACEOF
32522
32523
32524cat >>confdefs.h <<\_ACEOF
32525#define gid_t int
32526_ACEOF
32527
32528fi
32529
32530
d51253e8
RL
32531echo "$as_me:$LINENO: checking for ssize_t" >&5
32532echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32533if test "${ac_cv_type_ssize_t+set}" = set; then
32534 echo $ECHO_N "(cached) $ECHO_C" >&6
32535else
32536 cat >conftest.$ac_ext <<_ACEOF
32537/* confdefs.h. */
32538_ACEOF
32539cat confdefs.h >>conftest.$ac_ext
32540cat >>conftest.$ac_ext <<_ACEOF
32541/* end confdefs.h. */
32542$ac_includes_default
32543int
32544main ()
32545{
32546if ((ssize_t *) 0)
32547 return 0;
32548if (sizeof (ssize_t))
32549 return 0;
32550 ;
32551 return 0;
32552}
32553_ACEOF
32554rm -f conftest.$ac_objext
32555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32556 (eval $ac_compile) 2>conftest.er1
32557 ac_status=$?
32558 grep -v '^ *+' conftest.er1 >conftest.err
32559 rm -f conftest.er1
32560 cat conftest.err >&5
32561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); } &&
3565d135
RR
32563 { ac_try='test -z "$ac_c_werror_flag"
32564 || test ! -s conftest.err'
d51253e8
RL
32565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32566 (eval $ac_try) 2>&5
32567 ac_status=$?
32568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569 (exit $ac_status); }; } &&
32570 { ac_try='test -s conftest.$ac_objext'
32571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32572 (eval $ac_try) 2>&5
32573 ac_status=$?
32574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575 (exit $ac_status); }; }; then
32576 ac_cv_type_ssize_t=yes
32577else
32578 echo "$as_me: failed program was:" >&5
32579sed 's/^/| /' conftest.$ac_ext >&5
32580
32581ac_cv_type_ssize_t=no
32582fi
32583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32584fi
32585echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32586echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32587if test $ac_cv_type_ssize_t = yes; then
32588
32589cat >>confdefs.h <<_ACEOF
32590#define HAVE_SSIZE_T 1
32591_ACEOF
32592
32593
32594fi
32595
32596
a848cd7e
SC
32597ac_ext=cc
32598ac_cpp='$CXXCPP $CPPFLAGS'
32599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32602
32603echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32604echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32605if test "${wx_cv_size_t_is_uint+set}" = set; then
32606 echo $ECHO_N "(cached) $ECHO_C" >&6
32607else
32608
32609 cat >conftest.$ac_ext <<_ACEOF
32610/* confdefs.h. */
32611_ACEOF
32612cat confdefs.h >>conftest.$ac_ext
32613cat >>conftest.$ac_ext <<_ACEOF
32614/* end confdefs.h. */
32615#include <stddef.h>
32616int
32617main ()
32618{
32619
32620 return 0; }
32621
32622 struct Foo { void foo(size_t); void foo(unsigned int); };
32623
32624 int bar() {
32625
32626 ;
32627 return 0;
32628}
32629_ACEOF
32630rm -f conftest.$ac_objext
32631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32632 (eval $ac_compile) 2>conftest.er1
a848cd7e 32633 ac_status=$?
ac1cb8d3
VS
32634 grep -v '^ *+' conftest.er1 >conftest.err
32635 rm -f conftest.er1
32636 cat conftest.err >&5
a848cd7e
SC
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); } &&
3565d135
RR
32639 { ac_try='test -z "$ac_cxx_werror_flag"
32640 || test ! -s conftest.err'
ac1cb8d3
VS
32641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642 (eval $ac_try) 2>&5
32643 ac_status=$?
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; } &&
32646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648 (eval $ac_try) 2>&5
32649 ac_status=$?
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; }; then
32652 wx_cv_size_t_is_uint=no
32653else
32654 echo "$as_me: failed program was:" >&5
32655sed 's/^/| /' conftest.$ac_ext >&5
32656
32657wx_cv_size_t_is_uint=yes
32658
32659fi
ac1cb8d3 32660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32661
32662
32663fi
32664echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32665echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32666
32667if test "$wx_cv_size_t_is_uint" = "yes"; then
32668 cat >>confdefs.h <<\_ACEOF
32669#define wxSIZE_T_IS_UINT 1
32670_ACEOF
32671
32672else
32673 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32674echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32675if test "${wx_cv_size_t_is_ulong+set}" = set; then
32676 echo $ECHO_N "(cached) $ECHO_C" >&6
32677else
32678 cat >conftest.$ac_ext <<_ACEOF
32679/* confdefs.h. */
32680_ACEOF
32681cat confdefs.h >>conftest.$ac_ext
32682cat >>conftest.$ac_ext <<_ACEOF
32683/* end confdefs.h. */
32684#include <stddef.h>
32685int
32686main ()
32687{
32688
32689 return 0; }
32690
32691 struct Foo { void foo(size_t); void foo(unsigned long); };
32692
32693 int bar() {
32694
32695 ;
32696 return 0;
32697}
32698_ACEOF
32699rm -f conftest.$ac_objext
32700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32701 (eval $ac_compile) 2>conftest.er1
a848cd7e 32702 ac_status=$?
ac1cb8d3
VS
32703 grep -v '^ *+' conftest.er1 >conftest.err
32704 rm -f conftest.er1
32705 cat conftest.err >&5
a848cd7e
SC
32706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32707 (exit $ac_status); } &&
3565d135
RR
32708 { ac_try='test -z "$ac_cxx_werror_flag"
32709 || test ! -s conftest.err'
ac1cb8d3
VS
32710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32711 (eval $ac_try) 2>&5
32712 ac_status=$?
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); }; } &&
32715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32717 (eval $ac_try) 2>&5
32718 ac_status=$?
32719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720 (exit $ac_status); }; }; then
32721 wx_cv_size_t_is_ulong=no
32722else
32723 echo "$as_me: failed program was:" >&5
32724sed 's/^/| /' conftest.$ac_ext >&5
32725
32726wx_cv_size_t_is_ulong=yes
32727
32728fi
ac1cb8d3 32729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32730
32731fi
32732echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32733echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32734
32735 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32736 cat >>confdefs.h <<\_ACEOF
32737#define wxSIZE_T_IS_ULONG 1
32738_ACEOF
32739
32740 fi
32741fi
32742
32743ac_ext=c
32744ac_cpp='$CPP $CPPFLAGS'
32745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32747ac_compiler_gnu=$ac_cv_c_compiler_gnu
32748
32749
32750
32751echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32752echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32753if test "${wx_cv_struct_pw_gecos+set}" = set; then
32754 echo $ECHO_N "(cached) $ECHO_C" >&6
32755else
32756
32757 cat >conftest.$ac_ext <<_ACEOF
32758/* confdefs.h. */
32759_ACEOF
32760cat confdefs.h >>conftest.$ac_ext
32761cat >>conftest.$ac_ext <<_ACEOF
32762/* end confdefs.h. */
32763#include <pwd.h>
32764int
32765main ()
32766{
32767
32768 char *p;
32769 struct passwd *pw;
32770 p = pw->pw_gecos;
32771
32772 ;
32773 return 0;
32774}
32775_ACEOF
32776rm -f conftest.$ac_objext
32777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32778 (eval $ac_compile) 2>conftest.er1
a848cd7e 32779 ac_status=$?
ac1cb8d3
VS
32780 grep -v '^ *+' conftest.er1 >conftest.err
32781 rm -f conftest.er1
32782 cat conftest.err >&5
a848cd7e
SC
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); } &&
3565d135
RR
32785 { ac_try='test -z "$ac_c_werror_flag"
32786 || test ! -s conftest.err'
ac1cb8d3
VS
32787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32788 (eval $ac_try) 2>&5
32789 ac_status=$?
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); }; } &&
32792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32794 (eval $ac_try) 2>&5
32795 ac_status=$?
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); }; }; then
32798
32799 wx_cv_struct_pw_gecos=yes
32800
32801else
32802 echo "$as_me: failed program was:" >&5
32803sed 's/^/| /' conftest.$ac_ext >&5
32804
32805
32806 wx_cv_struct_pw_gecos=no
32807
32808
32809fi
ac1cb8d3 32810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32811
32812
32813fi
32814echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32815echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32816
32817if test "$wx_cv_struct_pw_gecos" = "yes"; then
32818 cat >>confdefs.h <<\_ACEOF
32819#define HAVE_PW_GECOS 1
32820_ACEOF
32821
32822fi
32823
32824
47a7e797 32825if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32826 cat >>confdefs.h <<\_ACEOF
32827#define wxUSE_WCHAR_T 1
32828_ACEOF
32829
32830
32831 WCSLEN_FOUND=0
32832 WCHAR_LINK=
32833
32834for ac_func in wcslen
32835do
32836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32837echo "$as_me:$LINENO: checking for $ac_func" >&5
32838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32839if eval "test \"\${$as_ac_var+set}\" = set"; then
32840 echo $ECHO_N "(cached) $ECHO_C" >&6
32841else
32842 cat >conftest.$ac_ext <<_ACEOF
32843/* confdefs.h. */
32844_ACEOF
32845cat confdefs.h >>conftest.$ac_ext
32846cat >>conftest.$ac_ext <<_ACEOF
32847/* end confdefs.h. */
ac1cb8d3
VS
32848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32850#define $ac_func innocuous_$ac_func
32851
a848cd7e
SC
32852/* System header to define __stub macros and hopefully few prototypes,
32853 which can conflict with char $ac_func (); below.
32854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32855 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32856
a848cd7e
SC
32857#ifdef __STDC__
32858# include <limits.h>
32859#else
32860# include <assert.h>
32861#endif
ac1cb8d3
VS
32862
32863#undef $ac_func
32864
a848cd7e
SC
32865/* Override any gcc2 internal prototype to avoid an error. */
32866#ifdef __cplusplus
32867extern "C"
32868{
32869#endif
32870/* We use char because int might match the return type of a gcc2
32871 builtin and then its argument prototype would still apply. */
32872char $ac_func ();
32873/* The GNU C library defines this for functions which it implements
32874 to always fail with ENOSYS. Some functions are actually named
32875 something starting with __ and the normal name is an alias. */
32876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32877choke me
32878#else
32879char (*f) () = $ac_func;
32880#endif
32881#ifdef __cplusplus
32882}
32883#endif
32884
32885int
32886main ()
32887{
32888return f != $ac_func;
32889 ;
32890 return 0;
32891}
32892_ACEOF
32893rm -f conftest.$ac_objext conftest$ac_exeext
32894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32895 (eval $ac_link) 2>conftest.er1
a848cd7e 32896 ac_status=$?
ac1cb8d3
VS
32897 grep -v '^ *+' conftest.er1 >conftest.err
32898 rm -f conftest.er1
32899 cat conftest.err >&5
a848cd7e
SC
32900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); } &&
3565d135
RR
32902 { ac_try='test -z "$ac_c_werror_flag"
32903 || test ! -s conftest.err'
ac1cb8d3
VS
32904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32905 (eval $ac_try) 2>&5
32906 ac_status=$?
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); }; } &&
32909 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32911 (eval $ac_try) 2>&5
32912 ac_status=$?
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; }; then
32915 eval "$as_ac_var=yes"
32916else
32917 echo "$as_me: failed program was:" >&5
32918sed 's/^/| /' conftest.$ac_ext >&5
32919
32920eval "$as_ac_var=no"
32921fi
ac1cb8d3
VS
32922rm -f conftest.err conftest.$ac_objext \
32923 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32924fi
32925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32926echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32927if test `eval echo '${'$as_ac_var'}'` = yes; then
32928 cat >>confdefs.h <<_ACEOF
32929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32930_ACEOF
32931 WCSLEN_FOUND=1
32932fi
32933done
32934
32935
32936 if test "$WCSLEN_FOUND" = 0; then
32937 if test "$TOOLKIT" = "MSW"; then
32938 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32939echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32940if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32941 echo $ECHO_N "(cached) $ECHO_C" >&6
32942else
32943 ac_check_lib_save_LIBS=$LIBS
32944LIBS="-lmsvcrt $LIBS"
32945cat >conftest.$ac_ext <<_ACEOF
32946/* confdefs.h. */
32947_ACEOF
32948cat confdefs.h >>conftest.$ac_ext
32949cat >>conftest.$ac_ext <<_ACEOF
32950/* end confdefs.h. */
32951
32952/* Override any gcc2 internal prototype to avoid an error. */
32953#ifdef __cplusplus
32954extern "C"
32955#endif
32956/* We use char because int might match the return type of a gcc2
32957 builtin and then its argument prototype would still apply. */
32958char wcslen ();
32959int
32960main ()
32961{
32962wcslen ();
32963 ;
32964 return 0;
32965}
32966_ACEOF
32967rm -f conftest.$ac_objext conftest$ac_exeext
32968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32969 (eval $ac_link) 2>conftest.er1
a848cd7e 32970 ac_status=$?
ac1cb8d3
VS
32971 grep -v '^ *+' conftest.er1 >conftest.err
32972 rm -f conftest.er1
32973 cat conftest.err >&5
a848cd7e
SC
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); } &&
3565d135
RR
32976 { ac_try='test -z "$ac_c_werror_flag"
32977 || test ! -s conftest.err'
ac1cb8d3
VS
32978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32979 (eval $ac_try) 2>&5
32980 ac_status=$?
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; } &&
32983 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32985 (eval $ac_try) 2>&5
32986 ac_status=$?
32987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32988 (exit $ac_status); }; }; then
32989 ac_cv_lib_msvcrt_wcslen=yes
32990else
32991 echo "$as_me: failed program was:" >&5
32992sed 's/^/| /' conftest.$ac_ext >&5
32993
32994ac_cv_lib_msvcrt_wcslen=no
32995fi
ac1cb8d3
VS
32996rm -f conftest.err conftest.$ac_objext \
32997 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32998LIBS=$ac_check_lib_save_LIBS
32999fi
33000echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33001echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33002if test $ac_cv_lib_msvcrt_wcslen = yes; then
33003 WCHAR_OK=1
33004fi
33005
33006 else
33007 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33008echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33009if test "${ac_cv_lib_w_wcslen+set}" = set; then
33010 echo $ECHO_N "(cached) $ECHO_C" >&6
33011else
33012 ac_check_lib_save_LIBS=$LIBS
33013LIBS="-lw $LIBS"
33014cat >conftest.$ac_ext <<_ACEOF
33015/* confdefs.h. */
33016_ACEOF
33017cat confdefs.h >>conftest.$ac_ext
33018cat >>conftest.$ac_ext <<_ACEOF
33019/* end confdefs.h. */
33020
33021/* Override any gcc2 internal prototype to avoid an error. */
33022#ifdef __cplusplus
33023extern "C"
33024#endif
33025/* We use char because int might match the return type of a gcc2
33026 builtin and then its argument prototype would still apply. */
33027char wcslen ();
33028int
33029main ()
33030{
33031wcslen ();
33032 ;
33033 return 0;
33034}
33035_ACEOF
33036rm -f conftest.$ac_objext conftest$ac_exeext
33037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33038 (eval $ac_link) 2>conftest.er1
a848cd7e 33039 ac_status=$?
ac1cb8d3
VS
33040 grep -v '^ *+' conftest.er1 >conftest.err
33041 rm -f conftest.er1
33042 cat conftest.err >&5
a848cd7e
SC
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); } &&
3565d135
RR
33045 { ac_try='test -z "$ac_c_werror_flag"
33046 || test ! -s conftest.err'
ac1cb8d3
VS
33047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33048 (eval $ac_try) 2>&5
33049 ac_status=$?
33050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051 (exit $ac_status); }; } &&
33052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33054 (eval $ac_try) 2>&5
33055 ac_status=$?
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); }; }; then
33058 ac_cv_lib_w_wcslen=yes
33059else
33060 echo "$as_me: failed program was:" >&5
33061sed 's/^/| /' conftest.$ac_ext >&5
33062
33063ac_cv_lib_w_wcslen=no
33064fi
ac1cb8d3
VS
33065rm -f conftest.err conftest.$ac_objext \
33066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33067LIBS=$ac_check_lib_save_LIBS
33068fi
33069echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33070echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33071if test $ac_cv_lib_w_wcslen = yes; then
33072
33073 WCHAR_LINK=" -lw"
33074 WCSLEN_FOUND=1
33075
33076fi
33077
33078 fi
33079 fi
33080
33081 if test "$WCSLEN_FOUND" = 1; then
33082 cat >>confdefs.h <<\_ACEOF
33083#define HAVE_WCSLEN 1
33084_ACEOF
33085
33086 fi
33087
efdf6afe 33088 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33089 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33090 fi
33091
efdf6afe
VZ
33092 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33093echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33094if test "${ac_cv_type_mbstate_t+set}" = set; then
33095 echo $ECHO_N "(cached) $ECHO_C" >&6
33096else
33097 cat >conftest.$ac_ext <<_ACEOF
33098/* confdefs.h. */
33099_ACEOF
33100cat confdefs.h >>conftest.$ac_ext
33101cat >>conftest.$ac_ext <<_ACEOF
33102/* end confdefs.h. */
33103#include <wchar.h>
33104
33105int
33106main ()
33107{
33108if ((mbstate_t *) 0)
33109 return 0;
33110if (sizeof (mbstate_t))
33111 return 0;
33112 ;
33113 return 0;
33114}
33115_ACEOF
33116rm -f conftest.$ac_objext
33117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33118 (eval $ac_compile) 2>conftest.er1
33119 ac_status=$?
33120 grep -v '^ *+' conftest.er1 >conftest.err
33121 rm -f conftest.er1
33122 cat conftest.err >&5
33123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124 (exit $ac_status); } &&
3565d135
RR
33125 { ac_try='test -z "$ac_c_werror_flag"
33126 || test ! -s conftest.err'
efdf6afe
VZ
33127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33128 (eval $ac_try) 2>&5
33129 ac_status=$?
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; } &&
33132 { ac_try='test -s conftest.$ac_objext'
33133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33134 (eval $ac_try) 2>&5
33135 ac_status=$?
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); }; }; then
33138 ac_cv_type_mbstate_t=yes
33139else
33140 echo "$as_me: failed program was:" >&5
33141sed 's/^/| /' conftest.$ac_ext >&5
33142
33143ac_cv_type_mbstate_t=no
33144fi
33145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33146fi
33147echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33148echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33149if test $ac_cv_type_mbstate_t = yes; then
33150
33151cat >>confdefs.h <<_ACEOF
33152#define HAVE_MBSTATE_T 1
33153_ACEOF
33154
a848cd7e
SC
33155
33156for ac_func in wcsrtombs
33157do
33158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33159echo "$as_me:$LINENO: checking for $ac_func" >&5
33160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33161if eval "test \"\${$as_ac_var+set}\" = set"; then
33162 echo $ECHO_N "(cached) $ECHO_C" >&6
33163else
33164 cat >conftest.$ac_ext <<_ACEOF
33165/* confdefs.h. */
33166_ACEOF
33167cat confdefs.h >>conftest.$ac_ext
33168cat >>conftest.$ac_ext <<_ACEOF
33169/* end confdefs.h. */
ac1cb8d3
VS
33170/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33172#define $ac_func innocuous_$ac_func
33173
a848cd7e
SC
33174/* System header to define __stub macros and hopefully few prototypes,
33175 which can conflict with char $ac_func (); below.
33176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33177 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33178
a848cd7e
SC
33179#ifdef __STDC__
33180# include <limits.h>
33181#else
33182# include <assert.h>
33183#endif
ac1cb8d3
VS
33184
33185#undef $ac_func
33186
a848cd7e
SC
33187/* Override any gcc2 internal prototype to avoid an error. */
33188#ifdef __cplusplus
33189extern "C"
33190{
33191#endif
33192/* We use char because int might match the return type of a gcc2
33193 builtin and then its argument prototype would still apply. */
33194char $ac_func ();
33195/* The GNU C library defines this for functions which it implements
33196 to always fail with ENOSYS. Some functions are actually named
33197 something starting with __ and the normal name is an alias. */
33198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33199choke me
33200#else
33201char (*f) () = $ac_func;
33202#endif
33203#ifdef __cplusplus
33204}
33205#endif
33206
33207int
33208main ()
33209{
33210return f != $ac_func;
33211 ;
33212 return 0;
33213}
33214_ACEOF
33215rm -f conftest.$ac_objext conftest$ac_exeext
33216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33217 (eval $ac_link) 2>conftest.er1
a848cd7e 33218 ac_status=$?
ac1cb8d3
VS
33219 grep -v '^ *+' conftest.er1 >conftest.err
33220 rm -f conftest.er1
33221 cat conftest.err >&5
a848cd7e
SC
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); } &&
3565d135
RR
33224 { ac_try='test -z "$ac_c_werror_flag"
33225 || test ! -s conftest.err'
ac1cb8d3
VS
33226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33227 (eval $ac_try) 2>&5
33228 ac_status=$?
33229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 (exit $ac_status); }; } &&
33231 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33233 (eval $ac_try) 2>&5
33234 ac_status=$?
33235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236 (exit $ac_status); }; }; then
33237 eval "$as_ac_var=yes"
33238else
33239 echo "$as_me: failed program was:" >&5
33240sed 's/^/| /' conftest.$ac_ext >&5
33241
33242eval "$as_ac_var=no"
33243fi
ac1cb8d3
VS
33244rm -f conftest.err conftest.$ac_objext \
33245 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33246fi
33247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33248echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33249if test `eval echo '${'$as_ac_var'}'` = yes; then
33250 cat >>confdefs.h <<_ACEOF
33251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33252_ACEOF
33253
33254fi
33255done
33256
efdf6afe
VZ
33257fi
33258
a848cd7e
SC
33259else
33260 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33261echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33262fi
33263
a848cd7e
SC
33264ac_ext=cc
33265ac_cpp='$CXXCPP $CPPFLAGS'
33266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33269
33270
33271
4a767dd5
VZ
33272
33273for ac_func in snprintf vsnprintf
a848cd7e
SC
33274do
33275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33276echo "$as_me:$LINENO: checking for $ac_func" >&5
33277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33278if eval "test \"\${$as_ac_var+set}\" = set"; then
33279 echo $ECHO_N "(cached) $ECHO_C" >&6
33280else
33281 cat >conftest.$ac_ext <<_ACEOF
33282/* confdefs.h. */
33283_ACEOF
33284cat confdefs.h >>conftest.$ac_ext
33285cat >>conftest.$ac_ext <<_ACEOF
33286/* end confdefs.h. */
ac1cb8d3
VS
33287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33289#define $ac_func innocuous_$ac_func
33290
a848cd7e
SC
33291/* System header to define __stub macros and hopefully few prototypes,
33292 which can conflict with char $ac_func (); below.
33293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33294 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33295
a848cd7e
SC
33296#ifdef __STDC__
33297# include <limits.h>
33298#else
33299# include <assert.h>
33300#endif
ac1cb8d3
VS
33301
33302#undef $ac_func
33303
a848cd7e
SC
33304/* Override any gcc2 internal prototype to avoid an error. */
33305#ifdef __cplusplus
33306extern "C"
33307{
33308#endif
33309/* We use char because int might match the return type of a gcc2
33310 builtin and then its argument prototype would still apply. */
33311char $ac_func ();
33312/* The GNU C library defines this for functions which it implements
33313 to always fail with ENOSYS. Some functions are actually named
33314 something starting with __ and the normal name is an alias. */
33315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33316choke me
33317#else
33318char (*f) () = $ac_func;
33319#endif
33320#ifdef __cplusplus
33321}
33322#endif
33323
33324int
33325main ()
33326{
33327return f != $ac_func;
33328 ;
33329 return 0;
33330}
33331_ACEOF
33332rm -f conftest.$ac_objext conftest$ac_exeext
33333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33334 (eval $ac_link) 2>conftest.er1
a848cd7e 33335 ac_status=$?
ac1cb8d3
VS
33336 grep -v '^ *+' conftest.er1 >conftest.err
33337 rm -f conftest.er1
33338 cat conftest.err >&5
a848cd7e
SC
33339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340 (exit $ac_status); } &&
3565d135
RR
33341 { ac_try='test -z "$ac_cxx_werror_flag"
33342 || test ! -s conftest.err'
ac1cb8d3
VS
33343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33344 (eval $ac_try) 2>&5
33345 ac_status=$?
33346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33347 (exit $ac_status); }; } &&
33348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33350 (eval $ac_try) 2>&5
33351 ac_status=$?
33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353 (exit $ac_status); }; }; then
33354 eval "$as_ac_var=yes"
33355else
33356 echo "$as_me: failed program was:" >&5
33357sed 's/^/| /' conftest.$ac_ext >&5
33358
33359eval "$as_ac_var=no"
33360fi
ac1cb8d3
VS
33361rm -f conftest.err conftest.$ac_objext \
33362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33363fi
33364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33365echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33366if test `eval echo '${'$as_ac_var'}'` = yes; then
33367 cat >>confdefs.h <<_ACEOF
33368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33369_ACEOF
33370
33371fi
33372done
33373
33374
33375if test "$ac_cv_func_vsnprintf" = "yes"; then
33376 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33377echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33378if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33379 echo $ECHO_N "(cached) $ECHO_C" >&6
33380else
33381
efdf6afe 33382 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33383/* confdefs.h. */
33384_ACEOF
33385cat confdefs.h >>conftest.$ac_ext
33386cat >>conftest.$ac_ext <<_ACEOF
33387/* end confdefs.h. */
33388
33389 #include <stdio.h>
33390 #include <stdarg.h>
efdf6afe
VZ
33391 #ifdef __MSL__
33392 #if __MSL__ >= 0x6000
33393 namespace std {}
33394 using namespace std;
33395 #endif
33396 #endif
a848cd7e
SC
33397
33398int
33399main ()
33400{
33401
33402 char *buf;
33403 va_list ap;
62fa8b3a 33404 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33405
33406 ;
33407 return 0;
33408}
33409_ACEOF
33410rm -f conftest.$ac_objext
33411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33412 (eval $ac_compile) 2>conftest.er1
33413 ac_status=$?
33414 grep -v '^ *+' conftest.er1 >conftest.err
33415 rm -f conftest.er1
33416 cat conftest.err >&5
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); } &&
3565d135
RR
33419 { ac_try='test -z "$ac_cxx_werror_flag"
33420 || test ! -s conftest.err'
c122b164
DE
33421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33422 (eval $ac_try) 2>&5
33423 ac_status=$?
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); }; } &&
33426 { ac_try='test -s conftest.$ac_objext'
33427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33428 (eval $ac_try) 2>&5
33429 ac_status=$?
33430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431 (exit $ac_status); }; }; then
33432 wx_cv_func_vsnprintf_decl=yes
33433else
33434 echo "$as_me: failed program was:" >&5
33435sed 's/^/| /' conftest.$ac_ext >&5
33436
a848cd7e
SC
33437wx_cv_func_vsnprintf_decl=no
33438
33439fi
ac1cb8d3 33440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33441
33442
33443fi
33444echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33445echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33446
33447 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33448 cat >>confdefs.h <<\_ACEOF
33449#define HAVE_VSNPRINTF_DECL 1
33450_ACEOF
33451
62fa8b3a
MW
33452
33453 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33454echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33455if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33456 echo $ECHO_N "(cached) $ECHO_C" >&6
33457else
33458
33459 cat >conftest.$ac_ext <<_ACEOF
33460/* confdefs.h. */
33461_ACEOF
33462cat confdefs.h >>conftest.$ac_ext
33463cat >>conftest.$ac_ext <<_ACEOF
33464/* end confdefs.h. */
33465
33466 #include <stdio.h>
33467 #include <stdarg.h>
33468 #ifdef __MSL__
33469 #if __MSL__ >= 0x6000
33470 namespace std {}
33471 using namespace std;
33472 #endif
33473 #endif
33474
33475int
33476main ()
33477{
33478
33479 char *buf;
33480 va_list ap;
33481 const char *fmt = "%s";
33482 vsnprintf(buf, 10u, fmt, ap);
33483
33484 ;
33485 return 0;
33486}
33487_ACEOF
33488rm -f conftest.$ac_objext
33489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33490 (eval $ac_compile) 2>conftest.er1
33491 ac_status=$?
33492 grep -v '^ *+' conftest.er1 >conftest.err
33493 rm -f conftest.er1
33494 cat conftest.err >&5
33495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496 (exit $ac_status); } &&
3565d135
RR
33497 { ac_try='test -z "$ac_cxx_werror_flag"
33498 || test ! -s conftest.err'
62fa8b3a
MW
33499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33500 (eval $ac_try) 2>&5
33501 ac_status=$?
33502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503 (exit $ac_status); }; } &&
33504 { ac_try='test -s conftest.$ac_objext'
33505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33506 (eval $ac_try) 2>&5
33507 ac_status=$?
33508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509 (exit $ac_status); }; }; then
33510 wx_cv_func_broken_vsnprintf_decl=no
33511else
33512 echo "$as_me: failed program was:" >&5
33513sed 's/^/| /' conftest.$ac_ext >&5
33514
33515wx_cv_func_broken_vsnprintf_decl=yes
33516
33517fi
33518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33519
33520
33521fi
33522echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33523echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33524
33525 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33526 cat >>confdefs.h <<\_ACEOF
33527#define HAVE_BROKEN_VSNPRINTF_DECL 1
33528_ACEOF
33529
33530 fi
a848cd7e
SC
33531 fi
33532fi
33533
4a767dd5
VZ
33534if test "$ac_cv_func_snprintf" = "yes"; then
33535 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33536echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33537if test "${wx_cv_func_snprintf_decl+set}" = set; then
33538 echo $ECHO_N "(cached) $ECHO_C" >&6
33539else
33540
33541 cat >conftest.$ac_ext <<_ACEOF
33542/* confdefs.h. */
33543_ACEOF
33544cat confdefs.h >>conftest.$ac_ext
33545cat >>conftest.$ac_ext <<_ACEOF
33546/* end confdefs.h. */
33547
33548 #include <stdio.h>
33549 #include <stdarg.h>
33550 #ifdef __MSL__
33551 #if __MSL__ >= 0x6000
33552 namespace std {}
33553 using namespace std;
33554 #endif
33555 #endif
33556
33557int
33558main ()
33559{
33560
33561 char *buf;
62fa8b3a 33562 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33563
33564 ;
33565 return 0;
33566}
33567_ACEOF
33568rm -f conftest.$ac_objext
33569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33570 (eval $ac_compile) 2>conftest.er1
33571 ac_status=$?
33572 grep -v '^ *+' conftest.er1 >conftest.err
33573 rm -f conftest.er1
33574 cat conftest.err >&5
33575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576 (exit $ac_status); } &&
3565d135
RR
33577 { ac_try='test -z "$ac_cxx_werror_flag"
33578 || test ! -s conftest.err'
4a767dd5
VZ
33579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33580 (eval $ac_try) 2>&5
33581 ac_status=$?
33582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583 (exit $ac_status); }; } &&
33584 { ac_try='test -s conftest.$ac_objext'
33585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33586 (eval $ac_try) 2>&5
33587 ac_status=$?
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); }; }; then
33590 wx_cv_func_snprintf_decl=yes
33591else
33592 echo "$as_me: failed program was:" >&5
33593sed 's/^/| /' conftest.$ac_ext >&5
33594
33595wx_cv_func_snprintf_decl=no
33596
33597fi
33598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33599
33600
33601fi
33602echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33603echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33604
33605 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33606 cat >>confdefs.h <<\_ACEOF
33607#define HAVE_SNPRINTF_DECL 1
33608_ACEOF
33609
62fa8b3a
MW
33610
33611 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33612echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33613if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33614 echo $ECHO_N "(cached) $ECHO_C" >&6
33615else
33616
33617 cat >conftest.$ac_ext <<_ACEOF
33618/* confdefs.h. */
33619_ACEOF
33620cat confdefs.h >>conftest.$ac_ext
33621cat >>conftest.$ac_ext <<_ACEOF
33622/* end confdefs.h. */
33623
33624 #include <stdio.h>
33625 #include <stdarg.h>
33626 #ifdef __MSL__
33627 #if __MSL__ >= 0x6000
33628 namespace std {}
33629 using namespace std;
33630 #endif
33631 #endif
33632
33633int
33634main ()
33635{
33636
33637 char *buf;
33638 const char *fmt = "%s";
33639 snprintf(buf, 10u, fmt, "wx");
33640
33641 ;
33642 return 0;
33643}
33644_ACEOF
33645rm -f conftest.$ac_objext
33646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33647 (eval $ac_compile) 2>conftest.er1
33648 ac_status=$?
33649 grep -v '^ *+' conftest.er1 >conftest.err
33650 rm -f conftest.er1
33651 cat conftest.err >&5
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); } &&
3565d135
RR
33654 { ac_try='test -z "$ac_cxx_werror_flag"
33655 || test ! -s conftest.err'
62fa8b3a
MW
33656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657 (eval $ac_try) 2>&5
33658 ac_status=$?
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; } &&
33661 { ac_try='test -s conftest.$ac_objext'
33662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33663 (eval $ac_try) 2>&5
33664 ac_status=$?
33665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); }; }; then
33667 wx_cv_func_broken_snprintf_decl=no
33668else
33669 echo "$as_me: failed program was:" >&5
33670sed 's/^/| /' conftest.$ac_ext >&5
33671
33672wx_cv_func_broken_snprintf_decl=yes
33673
33674fi
33675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33676
33677
33678fi
33679echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33680echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33681
33682 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33683 cat >>confdefs.h <<\_ACEOF
33684#define HAVE_BROKEN_SNPRINTF_DECL 1
33685_ACEOF
33686
33687 fi
4a767dd5
VZ
33688 fi
33689fi
33690
a848cd7e
SC
33691if test "$wxUSE_UNICODE" = yes; then
33692
33693
33694
fbe47c7b
VS
33695
33696
33697
33698for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33699do
33700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33701echo "$as_me:$LINENO: checking for $ac_func" >&5
33702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33703if eval "test \"\${$as_ac_var+set}\" = set"; then
33704 echo $ECHO_N "(cached) $ECHO_C" >&6
33705else
33706 cat >conftest.$ac_ext <<_ACEOF
33707/* confdefs.h. */
33708_ACEOF
33709cat confdefs.h >>conftest.$ac_ext
33710cat >>conftest.$ac_ext <<_ACEOF
33711/* end confdefs.h. */
ac1cb8d3
VS
33712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33714#define $ac_func innocuous_$ac_func
33715
a848cd7e
SC
33716/* System header to define __stub macros and hopefully few prototypes,
33717 which can conflict with char $ac_func (); below.
33718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33719 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33720
a848cd7e
SC
33721#ifdef __STDC__
33722# include <limits.h>
33723#else
33724# include <assert.h>
33725#endif
ac1cb8d3
VS
33726
33727#undef $ac_func
33728
a848cd7e
SC
33729/* Override any gcc2 internal prototype to avoid an error. */
33730#ifdef __cplusplus
33731extern "C"
33732{
33733#endif
33734/* We use char because int might match the return type of a gcc2
33735 builtin and then its argument prototype would still apply. */
33736char $ac_func ();
33737/* The GNU C library defines this for functions which it implements
33738 to always fail with ENOSYS. Some functions are actually named
33739 something starting with __ and the normal name is an alias. */
33740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33741choke me
33742#else
33743char (*f) () = $ac_func;
33744#endif
33745#ifdef __cplusplus
33746}
33747#endif
33748
33749int
33750main ()
33751{
33752return f != $ac_func;
33753 ;
33754 return 0;
33755}
33756_ACEOF
33757rm -f conftest.$ac_objext conftest$ac_exeext
33758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33759 (eval $ac_link) 2>conftest.er1
a848cd7e 33760 ac_status=$?
ac1cb8d3
VS
33761 grep -v '^ *+' conftest.er1 >conftest.err
33762 rm -f conftest.er1
33763 cat conftest.err >&5
a848cd7e
SC
33764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765 (exit $ac_status); } &&
3565d135
RR
33766 { ac_try='test -z "$ac_cxx_werror_flag"
33767 || test ! -s conftest.err'
ac1cb8d3
VS
33768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33769 (eval $ac_try) 2>&5
33770 ac_status=$?
33771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33772 (exit $ac_status); }; } &&
33773 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33775 (eval $ac_try) 2>&5
33776 ac_status=$?
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); }; }; then
33779 eval "$as_ac_var=yes"
33780else
33781 echo "$as_me: failed program was:" >&5
33782sed 's/^/| /' conftest.$ac_ext >&5
33783
33784eval "$as_ac_var=no"
33785fi
ac1cb8d3
VS
33786rm -f conftest.err conftest.$ac_objext \
33787 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33788fi
33789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33790echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33791if test `eval echo '${'$as_ac_var'}'` = yes; then
33792 cat >>confdefs.h <<_ACEOF
33793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33794_ACEOF
33795
33796fi
33797done
33798
33799
33800 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33801echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33802 cat >conftest.$ac_ext <<_ACEOF
33803/* confdefs.h. */
33804_ACEOF
33805cat confdefs.h >>conftest.$ac_ext
33806cat >>conftest.$ac_ext <<_ACEOF
33807/* end confdefs.h. */
33808#include <wchar.h>
33809int
33810main ()
33811{
33812&_vsnwprintf;
33813 ;
33814 return 0;
33815}
33816_ACEOF
33817rm -f conftest.$ac_objext
33818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33819 (eval $ac_compile) 2>conftest.er1
a848cd7e 33820 ac_status=$?
ac1cb8d3
VS
33821 grep -v '^ *+' conftest.er1 >conftest.err
33822 rm -f conftest.er1
33823 cat conftest.err >&5
a848cd7e
SC
33824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825 (exit $ac_status); } &&
3565d135
RR
33826 { ac_try='test -z "$ac_cxx_werror_flag"
33827 || test ! -s conftest.err'
ac1cb8d3
VS
33828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33829 (eval $ac_try) 2>&5
33830 ac_status=$?
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); }; } &&
33833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33835 (eval $ac_try) 2>&5
33836 ac_status=$?
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); }; }; then
33839 echo "$as_me:$LINENO: result: yes" >&5
33840echo "${ECHO_T}yes" >&6
33841 cat >>confdefs.h <<\_ACEOF
33842#define HAVE__VSNWPRINTF 1
33843_ACEOF
33844
33845else
33846 echo "$as_me: failed program was:" >&5
33847sed 's/^/| /' conftest.$ac_ext >&5
33848
33849echo "$as_me:$LINENO: result: no" >&5
33850echo "${ECHO_T}no" >&6
33851fi
ac1cb8d3 33852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33853fi
33854
33855ac_ext=c
33856ac_cpp='$CPP $CPPFLAGS'
33857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33859ac_compiler_gnu=$ac_cv_c_compiler_gnu
33860
33861
6ebeb4c7
VZ
33862if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33863
33864for ac_func in fnmatch
33865do
33866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33867echo "$as_me:$LINENO: checking for $ac_func" >&5
33868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33869if eval "test \"\${$as_ac_var+set}\" = set"; then
33870 echo $ECHO_N "(cached) $ECHO_C" >&6
33871else
33872 cat >conftest.$ac_ext <<_ACEOF
33873/* confdefs.h. */
33874_ACEOF
33875cat confdefs.h >>conftest.$ac_ext
33876cat >>conftest.$ac_ext <<_ACEOF
33877/* end confdefs.h. */
33878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33880#define $ac_func innocuous_$ac_func
33881
33882/* System header to define __stub macros and hopefully few prototypes,
33883 which can conflict with char $ac_func (); below.
33884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33885 <limits.h> exists even on freestanding compilers. */
33886
33887#ifdef __STDC__
33888# include <limits.h>
33889#else
33890# include <assert.h>
33891#endif
33892
33893#undef $ac_func
33894
33895/* Override any gcc2 internal prototype to avoid an error. */
33896#ifdef __cplusplus
33897extern "C"
33898{
33899#endif
33900/* We use char because int might match the return type of a gcc2
33901 builtin and then its argument prototype would still apply. */
33902char $ac_func ();
33903/* The GNU C library defines this for functions which it implements
33904 to always fail with ENOSYS. Some functions are actually named
33905 something starting with __ and the normal name is an alias. */
33906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33907choke me
33908#else
33909char (*f) () = $ac_func;
33910#endif
33911#ifdef __cplusplus
33912}
33913#endif
33914
33915int
33916main ()
33917{
33918return f != $ac_func;
33919 ;
33920 return 0;
33921}
33922_ACEOF
33923rm -f conftest.$ac_objext conftest$ac_exeext
33924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33925 (eval $ac_link) 2>conftest.er1
33926 ac_status=$?
33927 grep -v '^ *+' conftest.er1 >conftest.err
33928 rm -f conftest.er1
33929 cat conftest.err >&5
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); } &&
3565d135
RR
33932 { ac_try='test -z "$ac_c_werror_flag"
33933 || test ! -s conftest.err'
6ebeb4c7
VZ
33934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33935 (eval $ac_try) 2>&5
33936 ac_status=$?
33937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938 (exit $ac_status); }; } &&
33939 { ac_try='test -s conftest$ac_exeext'
33940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33941 (eval $ac_try) 2>&5
33942 ac_status=$?
33943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944 (exit $ac_status); }; }; then
33945 eval "$as_ac_var=yes"
33946else
33947 echo "$as_me: failed program was:" >&5
33948sed 's/^/| /' conftest.$ac_ext >&5
33949
33950eval "$as_ac_var=no"
33951fi
33952rm -f conftest.err conftest.$ac_objext \
33953 conftest$ac_exeext conftest.$ac_ext
33954fi
33955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33956echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33957if test `eval echo '${'$as_ac_var'}'` = yes; then
33958 cat >>confdefs.h <<_ACEOF
33959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33960_ACEOF
33961
33962fi
33963done
33964
33965fi
33966
33967if test "$wxUSE_FILE" = "yes"; then
33968
33969for ac_func in fsync
33970do
33971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33972echo "$as_me:$LINENO: checking for $ac_func" >&5
33973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33974if eval "test \"\${$as_ac_var+set}\" = set"; then
33975 echo $ECHO_N "(cached) $ECHO_C" >&6
33976else
33977 cat >conftest.$ac_ext <<_ACEOF
33978/* confdefs.h. */
33979_ACEOF
33980cat confdefs.h >>conftest.$ac_ext
33981cat >>conftest.$ac_ext <<_ACEOF
33982/* end confdefs.h. */
33983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33985#define $ac_func innocuous_$ac_func
33986
33987/* System header to define __stub macros and hopefully few prototypes,
33988 which can conflict with char $ac_func (); below.
33989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33990 <limits.h> exists even on freestanding compilers. */
33991
33992#ifdef __STDC__
33993# include <limits.h>
33994#else
33995# include <assert.h>
33996#endif
33997
33998#undef $ac_func
33999
34000/* Override any gcc2 internal prototype to avoid an error. */
34001#ifdef __cplusplus
34002extern "C"
34003{
34004#endif
34005/* We use char because int might match the return type of a gcc2
34006 builtin and then its argument prototype would still apply. */
34007char $ac_func ();
34008/* The GNU C library defines this for functions which it implements
34009 to always fail with ENOSYS. Some functions are actually named
34010 something starting with __ and the normal name is an alias. */
34011#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34012choke me
34013#else
34014char (*f) () = $ac_func;
34015#endif
34016#ifdef __cplusplus
34017}
34018#endif
34019
34020int
34021main ()
34022{
34023return f != $ac_func;
34024 ;
34025 return 0;
34026}
34027_ACEOF
34028rm -f conftest.$ac_objext conftest$ac_exeext
34029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34030 (eval $ac_link) 2>conftest.er1
34031 ac_status=$?
34032 grep -v '^ *+' conftest.er1 >conftest.err
34033 rm -f conftest.er1
34034 cat conftest.err >&5
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); } &&
3565d135
RR
34037 { ac_try='test -z "$ac_c_werror_flag"
34038 || test ! -s conftest.err'
6ebeb4c7
VZ
34039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34040 (eval $ac_try) 2>&5
34041 ac_status=$?
34042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043 (exit $ac_status); }; } &&
34044 { ac_try='test -s conftest$ac_exeext'
34045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34046 (eval $ac_try) 2>&5
34047 ac_status=$?
34048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049 (exit $ac_status); }; }; then
34050 eval "$as_ac_var=yes"
34051else
34052 echo "$as_me: failed program was:" >&5
34053sed 's/^/| /' conftest.$ac_ext >&5
34054
34055eval "$as_ac_var=no"
34056fi
34057rm -f conftest.err conftest.$ac_objext \
34058 conftest$ac_exeext conftest.$ac_ext
34059fi
34060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34061echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34062if test `eval echo '${'$as_ac_var'}'` = yes; then
34063 cat >>confdefs.h <<_ACEOF
34064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34065_ACEOF
34066
34067fi
34068done
34069
34070fi
a848cd7e
SC
34071
34072
34073if test "$TOOLKIT" != "MSW"; then
34074
34075
a848cd7e
SC
34076ac_ext=cc
34077ac_cpp='$CXXCPP $CPPFLAGS'
34078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34081
34082
34083
34084
34085# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34086if test "${with_libiconv_prefix+set}" = set; then
34087 withval="$with_libiconv_prefix"
34088
34089 for dir in `echo "$withval" | tr : ' '`; do
34090 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34091 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34092 done
34093
34094fi;
34095
34096 echo "$as_me:$LINENO: checking for iconv" >&5
34097echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34098if test "${am_cv_func_iconv+set}" = set; then
34099 echo $ECHO_N "(cached) $ECHO_C" >&6
34100else
34101
34102 am_cv_func_iconv="no, consider installing GNU libiconv"
34103 am_cv_lib_iconv=no
34104 cat >conftest.$ac_ext <<_ACEOF
34105/* confdefs.h. */
34106_ACEOF
34107cat confdefs.h >>conftest.$ac_ext
34108cat >>conftest.$ac_ext <<_ACEOF
34109/* end confdefs.h. */
34110#include <stdlib.h>
34111#include <iconv.h>
34112int
34113main ()
34114{
34115iconv_t cd = iconv_open("","");
34116 iconv(cd,NULL,NULL,NULL,NULL);
34117 iconv_close(cd);
34118 ;
34119 return 0;
34120}
34121_ACEOF
34122rm -f conftest.$ac_objext conftest$ac_exeext
34123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34124 (eval $ac_link) 2>conftest.er1
a848cd7e 34125 ac_status=$?
ac1cb8d3
VS
34126 grep -v '^ *+' conftest.er1 >conftest.err
34127 rm -f conftest.er1
34128 cat conftest.err >&5
a848cd7e
SC
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); } &&
3565d135
RR
34131 { ac_try='test -z "$ac_cxx_werror_flag"
34132 || test ! -s conftest.err'
ac1cb8d3
VS
34133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34134 (eval $ac_try) 2>&5
34135 ac_status=$?
34136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137 (exit $ac_status); }; } &&
34138 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34140 (eval $ac_try) 2>&5
34141 ac_status=$?
34142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143 (exit $ac_status); }; }; then
34144 am_cv_func_iconv=yes
34145else
34146 echo "$as_me: failed program was:" >&5
34147sed 's/^/| /' conftest.$ac_ext >&5
34148
34149fi
ac1cb8d3
VS
34150rm -f conftest.err conftest.$ac_objext \
34151 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34152 if test "$am_cv_func_iconv" != yes; then
34153 am_save_LIBS="$LIBS"
34154 LIBS="$LIBS -liconv"
34155 cat >conftest.$ac_ext <<_ACEOF
34156/* confdefs.h. */
34157_ACEOF
34158cat confdefs.h >>conftest.$ac_ext
34159cat >>conftest.$ac_ext <<_ACEOF
34160/* end confdefs.h. */
34161#include <stdlib.h>
34162#include <iconv.h>
34163int
34164main ()
34165{
34166iconv_t cd = iconv_open("","");
34167 iconv(cd,NULL,NULL,NULL,NULL);
34168 iconv_close(cd);
34169 ;
34170 return 0;
34171}
34172_ACEOF
34173rm -f conftest.$ac_objext conftest$ac_exeext
34174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34175 (eval $ac_link) 2>conftest.er1
a848cd7e 34176 ac_status=$?
ac1cb8d3
VS
34177 grep -v '^ *+' conftest.er1 >conftest.err
34178 rm -f conftest.er1
34179 cat conftest.err >&5
a848cd7e
SC
34180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181 (exit $ac_status); } &&
3565d135
RR
34182 { ac_try='test -z "$ac_cxx_werror_flag"
34183 || test ! -s conftest.err'
ac1cb8d3
VS
34184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34185 (eval $ac_try) 2>&5
34186 ac_status=$?
34187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188 (exit $ac_status); }; } &&
34189 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34191 (eval $ac_try) 2>&5
34192 ac_status=$?
34193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); }; }; then
34195 am_cv_lib_iconv=yes
34196 am_cv_func_iconv=yes
34197else
34198 echo "$as_me: failed program was:" >&5
34199sed 's/^/| /' conftest.$ac_ext >&5
34200
34201fi
ac1cb8d3
VS
34202rm -f conftest.err conftest.$ac_objext \
34203 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34204 LIBS="$am_save_LIBS"
34205 fi
34206
34207fi
34208echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34209echo "${ECHO_T}$am_cv_func_iconv" >&6
34210 if test "$am_cv_func_iconv" = yes; then
34211
34212cat >>confdefs.h <<\_ACEOF
34213#define HAVE_ICONV 1
34214_ACEOF
34215
34216 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34217echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34218if test "${wx_cv_func_iconv_const+set}" = set; then
34219 echo $ECHO_N "(cached) $ECHO_C" >&6
34220else
34221 cat >conftest.$ac_ext <<_ACEOF
34222/* confdefs.h. */
34223_ACEOF
34224cat confdefs.h >>conftest.$ac_ext
34225cat >>conftest.$ac_ext <<_ACEOF
34226/* end confdefs.h. */
34227
34228#include <stdlib.h>
34229#include <iconv.h>
34230extern
34231#ifdef __cplusplus
34232"C"
34233#endif
34234#if defined(__STDC__) || defined(__cplusplus)
34235size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34236#else
34237size_t iconv();
34238#endif
34239
34240int
34241main ()
34242{
34243
34244 ;
34245 return 0;
34246}
34247_ACEOF
34248rm -f conftest.$ac_objext
34249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34250 (eval $ac_compile) 2>conftest.er1
a848cd7e 34251 ac_status=$?
ac1cb8d3
VS
34252 grep -v '^ *+' conftest.er1 >conftest.err
34253 rm -f conftest.er1
34254 cat conftest.err >&5
a848cd7e
SC
34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256 (exit $ac_status); } &&
3565d135
RR
34257 { ac_try='test -z "$ac_cxx_werror_flag"
34258 || test ! -s conftest.err'
ac1cb8d3
VS
34259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34260 (eval $ac_try) 2>&5
34261 ac_status=$?
34262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263 (exit $ac_status); }; } &&
34264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34266 (eval $ac_try) 2>&5
34267 ac_status=$?
34268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34269 (exit $ac_status); }; }; then
34270 wx_cv_func_iconv_const="no"
34271else
34272 echo "$as_me: failed program was:" >&5
34273sed 's/^/| /' conftest.$ac_ext >&5
34274
34275wx_cv_func_iconv_const="yes"
34276
34277fi
ac1cb8d3 34278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34279
34280fi
34281echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34282echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34283
34284 iconv_const=
34285 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34286 iconv_const="const"
34287 fi
34288
34289
34290cat >>confdefs.h <<_ACEOF
34291#define ICONV_CONST $iconv_const
34292_ACEOF
34293
34294 fi
34295 LIBICONV=
34296 if test "$am_cv_lib_iconv" = yes; then
34297 LIBICONV="-liconv"
34298 fi
34299
34300
34301LIBS="$LIBICONV $LIBS"
34302ac_ext=c
34303ac_cpp='$CPP $CPPFLAGS'
34304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34306ac_compiler_gnu=$ac_cv_c_compiler_gnu
34307
34308
34309if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34310
34311for ac_func in sigaction
34312do
34313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34314echo "$as_me:$LINENO: checking for $ac_func" >&5
34315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34316if eval "test \"\${$as_ac_var+set}\" = set"; then
34317 echo $ECHO_N "(cached) $ECHO_C" >&6
34318else
34319 cat >conftest.$ac_ext <<_ACEOF
34320/* confdefs.h. */
34321_ACEOF
34322cat confdefs.h >>conftest.$ac_ext
34323cat >>conftest.$ac_ext <<_ACEOF
34324/* end confdefs.h. */
ac1cb8d3
VS
34325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34327#define $ac_func innocuous_$ac_func
34328
a848cd7e
SC
34329/* System header to define __stub macros and hopefully few prototypes,
34330 which can conflict with char $ac_func (); below.
34331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34332 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34333
a848cd7e
SC
34334#ifdef __STDC__
34335# include <limits.h>
34336#else
34337# include <assert.h>
34338#endif
ac1cb8d3
VS
34339
34340#undef $ac_func
34341
a848cd7e
SC
34342/* Override any gcc2 internal prototype to avoid an error. */
34343#ifdef __cplusplus
34344extern "C"
34345{
34346#endif
34347/* We use char because int might match the return type of a gcc2
34348 builtin and then its argument prototype would still apply. */
34349char $ac_func ();
34350/* The GNU C library defines this for functions which it implements
34351 to always fail with ENOSYS. Some functions are actually named
34352 something starting with __ and the normal name is an alias. */
34353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34354choke me
34355#else
34356char (*f) () = $ac_func;
34357#endif
34358#ifdef __cplusplus
34359}
34360#endif
34361
34362int
34363main ()
34364{
34365return f != $ac_func;
34366 ;
34367 return 0;
34368}
34369_ACEOF
34370rm -f conftest.$ac_objext conftest$ac_exeext
34371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34372 (eval $ac_link) 2>conftest.er1
a848cd7e 34373 ac_status=$?
ac1cb8d3
VS
34374 grep -v '^ *+' conftest.er1 >conftest.err
34375 rm -f conftest.er1
34376 cat conftest.err >&5
a848cd7e
SC
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); } &&
3565d135
RR
34379 { ac_try='test -z "$ac_c_werror_flag"
34380 || test ! -s conftest.err'
ac1cb8d3
VS
34381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34382 (eval $ac_try) 2>&5
34383 ac_status=$?
34384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385 (exit $ac_status); }; } &&
34386 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34388 (eval $ac_try) 2>&5
34389 ac_status=$?
34390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391 (exit $ac_status); }; }; then
34392 eval "$as_ac_var=yes"
34393else
34394 echo "$as_me: failed program was:" >&5
34395sed 's/^/| /' conftest.$ac_ext >&5
34396
34397eval "$as_ac_var=no"
34398fi
ac1cb8d3
VS
34399rm -f conftest.err conftest.$ac_objext \
34400 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34401fi
34402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34403echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34404if test `eval echo '${'$as_ac_var'}'` = yes; then
34405 cat >>confdefs.h <<_ACEOF
34406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34407_ACEOF
34408
34409fi
34410done
34411
34412
34413 if test "$ac_cv_func_sigaction" = "no"; then
34414 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34415echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34416 wxUSE_ON_FATAL_EXCEPTION=no
34417 fi
34418
34419 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
34420 ac_ext=cc
34421ac_cpp='$CXXCPP $CPPFLAGS'
34422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34425
34426
34427 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34428echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34429if test "${wx_cv_type_sa_handler+set}" = set; then
34430 echo $ECHO_N "(cached) $ECHO_C" >&6
34431else
34432
34433 cat >conftest.$ac_ext <<_ACEOF
34434/* confdefs.h. */
34435_ACEOF
34436cat confdefs.h >>conftest.$ac_ext
34437cat >>conftest.$ac_ext <<_ACEOF
34438/* end confdefs.h. */
34439#include <signal.h>
34440int
34441main ()
34442{
34443
34444 extern void testSigHandler(int);
34445
34446 struct sigaction sa;
34447 sa.sa_handler = testSigHandler;
34448
34449 ;
34450 return 0;
34451}
34452_ACEOF
34453rm -f conftest.$ac_objext
34454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34455 (eval $ac_compile) 2>conftest.er1
a848cd7e 34456 ac_status=$?
ac1cb8d3
VS
34457 grep -v '^ *+' conftest.er1 >conftest.err
34458 rm -f conftest.er1
34459 cat conftest.err >&5
a848cd7e
SC
34460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461 (exit $ac_status); } &&
3565d135
RR
34462 { ac_try='test -z "$ac_cxx_werror_flag"
34463 || test ! -s conftest.err'
ac1cb8d3
VS
34464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34465 (eval $ac_try) 2>&5
34466 ac_status=$?
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); }; } &&
34469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34471 (eval $ac_try) 2>&5
34472 ac_status=$?
34473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); }; }; then
34475
34476 wx_cv_type_sa_handler=int
34477
34478else
34479 echo "$as_me: failed program was:" >&5
34480sed 's/^/| /' conftest.$ac_ext >&5
34481
34482
34483 wx_cv_type_sa_handler=void
34484
34485fi
ac1cb8d3 34486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34487
34488fi
34489echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34490echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34491
34492 ac_ext=c
34493ac_cpp='$CPP $CPPFLAGS'
34494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34496ac_compiler_gnu=$ac_cv_c_compiler_gnu
34497
34498
34499 cat >>confdefs.h <<_ACEOF
34500#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34501_ACEOF
34502
34503 fi
34504fi
34505
eaff0f0d 34506if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
34507 ac_ext=cc
34508ac_cpp='$CXXCPP $CPPFLAGS'
34509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34512
34513
34514 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34515echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34516if test "${wx_cv_func_backtrace+set}" = set; then
34517 echo $ECHO_N "(cached) $ECHO_C" >&6
34518else
34519
34520 cat >conftest.$ac_ext <<_ACEOF
34521/* confdefs.h. */
34522_ACEOF
34523cat confdefs.h >>conftest.$ac_ext
34524cat >>conftest.$ac_ext <<_ACEOF
34525/* end confdefs.h. */
34526#include <execinfo.h>
34527int
34528main ()
34529{
34530
34531 void *trace[1];
34532 char **messages;
34533
34534 backtrace(trace, 1);
34535 messages = backtrace_symbols(trace, 1);
34536
34537 ;
34538 return 0;
34539}
34540_ACEOF
34541rm -f conftest.$ac_objext
34542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34543 (eval $ac_compile) 2>conftest.er1
34544 ac_status=$?
34545 grep -v '^ *+' conftest.er1 >conftest.err
34546 rm -f conftest.er1
34547 cat conftest.err >&5
34548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34549 (exit $ac_status); } &&
3565d135
RR
34550 { ac_try='test -z "$ac_cxx_werror_flag"
34551 || test ! -s conftest.err'
eaff0f0d
VZ
34552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34553 (eval $ac_try) 2>&5
34554 ac_status=$?
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); }; } &&
34557 { ac_try='test -s conftest.$ac_objext'
34558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34559 (eval $ac_try) 2>&5
34560 ac_status=$?
34561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562 (exit $ac_status); }; }; then
34563 wx_cv_func_backtrace=yes
34564else
34565 echo "$as_me: failed program was:" >&5
34566sed 's/^/| /' conftest.$ac_ext >&5
34567
34568wx_cv_func_backtrace=no
34569
34570fi
34571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34572
34573
34574fi
34575echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34576echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34577
34578
34579 if test "$wx_cv_func_backtrace" = "no"; then
34580 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34581echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34582 wxUSE_STACKWALKER=no
34583 else
34584 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34585echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34586if test "${wx_cv_func_cxa_demangle+set}" = set; then
34587 echo $ECHO_N "(cached) $ECHO_C" >&6
34588else
34589
34590 cat >conftest.$ac_ext <<_ACEOF
34591/* confdefs.h. */
34592_ACEOF
34593cat confdefs.h >>conftest.$ac_ext
34594cat >>conftest.$ac_ext <<_ACEOF
34595/* end confdefs.h. */
34596#include <cxxabi.h>
34597int
34598main ()
34599{
34600
34601 int rc;
34602 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34603
34604 ;
34605 return 0;
34606}
34607_ACEOF
dfe0c803
JS
34608rm -f conftest.$ac_objext conftest$ac_exeext
34609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34610 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34611 ac_status=$?
34612 grep -v '^ *+' conftest.er1 >conftest.err
34613 rm -f conftest.er1
34614 cat conftest.err >&5
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); } &&
3565d135
RR
34617 { ac_try='test -z "$ac_cxx_werror_flag"
34618 || test ! -s conftest.err'
eaff0f0d
VZ
34619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34620 (eval $ac_try) 2>&5
34621 ac_status=$?
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); }; } &&
dfe0c803 34624 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34626 (eval $ac_try) 2>&5
34627 ac_status=$?
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); }; }; then
34630 wx_cv_func_cxa_demangle=yes
34631else
34632 echo "$as_me: failed program was:" >&5
34633sed 's/^/| /' conftest.$ac_ext >&5
34634
34635wx_cv_func_cxa_demangle=no
34636
34637fi
dfe0c803
JS
34638rm -f conftest.err conftest.$ac_objext \
34639 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34640
34641
34642fi
34643echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34644echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34645
34646 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34647 cat >>confdefs.h <<\_ACEOF
34648#define HAVE_CXA_DEMANGLE 1
34649_ACEOF
34650
34651 fi
34652 fi
34653
34654 ac_ext=c
34655ac_cpp='$CPP $CPPFLAGS'
34656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34658ac_compiler_gnu=$ac_cv_c_compiler_gnu
34659
34660fi
34661
898beab1
DE
34662if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34663 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34664echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34665 wxUSE_STACKWALKER=no
34666fi
34667
34668
a848cd7e
SC
34669
34670
34671for ac_func in mkstemp mktemp
34672do
34673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34674echo "$as_me:$LINENO: checking for $ac_func" >&5
34675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34676if eval "test \"\${$as_ac_var+set}\" = set"; then
34677 echo $ECHO_N "(cached) $ECHO_C" >&6
34678else
34679 cat >conftest.$ac_ext <<_ACEOF
34680/* confdefs.h. */
34681_ACEOF
34682cat confdefs.h >>conftest.$ac_ext
34683cat >>conftest.$ac_ext <<_ACEOF
34684/* end confdefs.h. */
ac1cb8d3
VS
34685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34687#define $ac_func innocuous_$ac_func
34688
a848cd7e
SC
34689/* System header to define __stub macros and hopefully few prototypes,
34690 which can conflict with char $ac_func (); below.
34691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34692 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34693
a848cd7e
SC
34694#ifdef __STDC__
34695# include <limits.h>
34696#else
34697# include <assert.h>
34698#endif
ac1cb8d3
VS
34699
34700#undef $ac_func
34701
a848cd7e
SC
34702/* Override any gcc2 internal prototype to avoid an error. */
34703#ifdef __cplusplus
34704extern "C"
34705{
34706#endif
34707/* We use char because int might match the return type of a gcc2
34708 builtin and then its argument prototype would still apply. */
34709char $ac_func ();
34710/* The GNU C library defines this for functions which it implements
34711 to always fail with ENOSYS. Some functions are actually named
34712 something starting with __ and the normal name is an alias. */
34713#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34714choke me
34715#else
34716char (*f) () = $ac_func;
34717#endif
34718#ifdef __cplusplus
34719}
34720#endif
34721
34722int
34723main ()
34724{
34725return f != $ac_func;
34726 ;
34727 return 0;
34728}
34729_ACEOF
34730rm -f conftest.$ac_objext conftest$ac_exeext
34731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34732 (eval $ac_link) 2>conftest.er1
a848cd7e 34733 ac_status=$?
ac1cb8d3
VS
34734 grep -v '^ *+' conftest.er1 >conftest.err
34735 rm -f conftest.er1
34736 cat conftest.err >&5
a848cd7e
SC
34737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34738 (exit $ac_status); } &&
3565d135
RR
34739 { ac_try='test -z "$ac_c_werror_flag"
34740 || test ! -s conftest.err'
ac1cb8d3
VS
34741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34742 (eval $ac_try) 2>&5
34743 ac_status=$?
34744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745 (exit $ac_status); }; } &&
34746 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34748 (eval $ac_try) 2>&5
34749 ac_status=$?
34750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); }; }; then
34752 eval "$as_ac_var=yes"
34753else
34754 echo "$as_me: failed program was:" >&5
34755sed 's/^/| /' conftest.$ac_ext >&5
34756
34757eval "$as_ac_var=no"
34758fi
ac1cb8d3
VS
34759rm -f conftest.err conftest.$ac_objext \
34760 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34761fi
34762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34763echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34764if test `eval echo '${'$as_ac_var'}'` = yes; then
34765 cat >>confdefs.h <<_ACEOF
34766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34767_ACEOF
34768 break
34769fi
34770done
34771
34772
34773echo "$as_me:$LINENO: checking for statfs" >&5
34774echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34775if test "${wx_cv_func_statfs+set}" = set; then
34776 echo $ECHO_N "(cached) $ECHO_C" >&6
34777else
34778 cat >conftest.$ac_ext <<_ACEOF
34779/* confdefs.h. */
34780_ACEOF
34781cat confdefs.h >>conftest.$ac_ext
34782cat >>conftest.$ac_ext <<_ACEOF
34783/* end confdefs.h. */
34784
34785 #if defined(__BSD__)
84ae7ca4
VZ
34786 #include <sys/param.h>
34787 #include <sys/mount.h>
a848cd7e 34788 #else
84ae7ca4 34789 #include <sys/vfs.h>
a848cd7e
SC
34790 #endif
34791
34792int
34793main ()
34794{
34795
34796 long l;
34797 struct statfs fs;
34798 statfs("/", &fs);
34799 l = fs.f_bsize;
34800 l += fs.f_blocks;
34801 l += fs.f_bavail;
34802
34803 ;
34804 return 0;
34805}
34806_ACEOF
34807rm -f conftest.$ac_objext
34808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34809 (eval $ac_compile) 2>conftest.er1
a848cd7e 34810 ac_status=$?
ac1cb8d3
VS
34811 grep -v '^ *+' conftest.er1 >conftest.err
34812 rm -f conftest.er1
34813 cat conftest.err >&5
a848cd7e
SC
34814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34815 (exit $ac_status); } &&
3565d135
RR
34816 { ac_try='test -z "$ac_c_werror_flag"
34817 || test ! -s conftest.err'
ac1cb8d3
VS
34818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34819 (eval $ac_try) 2>&5
34820 ac_status=$?
34821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822 (exit $ac_status); }; } &&
34823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34825 (eval $ac_try) 2>&5
34826 ac_status=$?
34827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34828 (exit $ac_status); }; }; then
84ae7ca4 34829 wx_cv_func_statfs=yes
a848cd7e
SC
34830else
34831 echo "$as_me: failed program was:" >&5
34832sed 's/^/| /' conftest.$ac_ext >&5
34833
84ae7ca4 34834wx_cv_func_statfs=no
a848cd7e
SC
34835
34836fi
ac1cb8d3 34837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34838
34839fi
34840echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34841echo "${ECHO_T}$wx_cv_func_statfs" >&6
34842
34843if test "$wx_cv_func_statfs" = "yes"; then
5ec3bc43 34844 ac_ext=cc
84ae7ca4
VZ
34845ac_cpp='$CXXCPP $CPPFLAGS'
34846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34849
34850 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34851echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34852if test "${wx_cv_func_statfs_decl+set}" = set; then
34853 echo $ECHO_N "(cached) $ECHO_C" >&6
34854else
0683aca6
VZ
34855 cat >conftest.$ac_ext <<_ACEOF
34856/* confdefs.h. */
34857_ACEOF
34858cat confdefs.h >>conftest.$ac_ext
34859cat >>conftest.$ac_ext <<_ACEOF
34860/* end confdefs.h. */
84ae7ca4 34861
0683aca6
VZ
34862 #if defined(__BSD__)
34863 #include <sys/param.h>
34864 #include <sys/mount.h>
34865 #else
34866 #include <sys/vfs.h>
34867 #endif
34868
34869int
34870main ()
34871{
34872
34873 struct statfs fs;
34874 statfs("", &fs);
34875
34876 ;
34877 return 0;
34878}
34879_ACEOF
34880rm -f conftest.$ac_objext
34881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34882 (eval $ac_compile) 2>conftest.er1
34883 ac_status=$?
34884 grep -v '^ *+' conftest.er1 >conftest.err
34885 rm -f conftest.er1
34886 cat conftest.err >&5
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); } &&
3565d135
RR
34889 { ac_try='test -z "$ac_cxx_werror_flag"
34890 || test ! -s conftest.err'
0683aca6
VZ
34891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892 (eval $ac_try) 2>&5
34893 ac_status=$?
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; } &&
34896 { ac_try='test -s conftest.$ac_objext'
34897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34898 (eval $ac_try) 2>&5
34899 ac_status=$?
34900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34901 (exit $ac_status); }; }; then
34902 wx_cv_func_statfs_decl=yes
34903else
34904 echo "$as_me: failed program was:" >&5
34905sed 's/^/| /' conftest.$ac_ext >&5
34906
34907wx_cv_func_statfs_decl=no
34908
34909fi
34910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34911
34912fi
34913echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34914echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34915 ac_ext=c
34916ac_cpp='$CPP $CPPFLAGS'
34917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34919ac_compiler_gnu=$ac_cv_c_compiler_gnu
34920
34921
34922 if test "$wx_cv_func_statfs_decl" = "yes"; then
34923 cat >>confdefs.h <<\_ACEOF
34924#define HAVE_STATFS_DECL 1
34925_ACEOF
34926
34927 fi
34928
a848cd7e
SC
34929 wx_cv_type_statvfs_t="struct statfs"
34930 cat >>confdefs.h <<\_ACEOF
34931#define HAVE_STATFS 1
34932_ACEOF
34933
34934else
34935 echo "$as_me:$LINENO: checking for statvfs" >&5
34936echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34937if test "${wx_cv_func_statvfs+set}" = set; then
34938 echo $ECHO_N "(cached) $ECHO_C" >&6
34939else
34940 cat >conftest.$ac_ext <<_ACEOF
34941/* confdefs.h. */
34942_ACEOF
34943cat confdefs.h >>conftest.$ac_ext
34944cat >>conftest.$ac_ext <<_ACEOF
34945/* end confdefs.h. */
34946
34947 #include <stddef.h>
34948 #include <sys/statvfs.h>
34949
34950int
34951main ()
34952{
34953
34954 statvfs("/", NULL);
34955
34956 ;
34957 return 0;
34958}
34959_ACEOF
34960rm -f conftest.$ac_objext
34961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34962 (eval $ac_compile) 2>conftest.er1
a848cd7e 34963 ac_status=$?
ac1cb8d3
VS
34964 grep -v '^ *+' conftest.er1 >conftest.err
34965 rm -f conftest.er1
34966 cat conftest.err >&5
a848cd7e
SC
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); } &&
3565d135
RR
34969 { ac_try='test -z "$ac_c_werror_flag"
34970 || test ! -s conftest.err'
ac1cb8d3
VS
34971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34972 (eval $ac_try) 2>&5
34973 ac_status=$?
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); }; } &&
34976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34978 (eval $ac_try) 2>&5
34979 ac_status=$?
34980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981 (exit $ac_status); }; }; then
34982 wx_cv_func_statvfs=yes
34983else
34984 echo "$as_me: failed program was:" >&5
34985sed 's/^/| /' conftest.$ac_ext >&5
34986
34987wx_cv_func_statvfs=no
34988
34989fi
ac1cb8d3 34990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34991
34992fi
34993echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34994echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34995
34996 if test "$wx_cv_func_statvfs" = "yes"; then
5ec3bc43 34997 ac_ext=cc
a848cd7e
SC
34998ac_cpp='$CXXCPP $CPPFLAGS'
34999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35002
35003
35004 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
35005echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35006if test "${wx_cv_type_statvfs_t+set}" = set; then
35007 echo $ECHO_N "(cached) $ECHO_C" >&6
35008else
35009 cat >conftest.$ac_ext <<_ACEOF
35010/* confdefs.h. */
35011_ACEOF
35012cat confdefs.h >>conftest.$ac_ext
35013cat >>conftest.$ac_ext <<_ACEOF
35014/* end confdefs.h. */
35015
35016 #include <sys/statvfs.h>
35017
35018int
35019main ()
35020{
35021
35022 long l;
35023 statvfs_t fs;
35024 statvfs("/", &fs);
35025 l = fs.f_bsize;
35026 l += fs.f_blocks;
35027 l += fs.f_bavail;
35028
35029 ;
35030 return 0;
35031}
35032_ACEOF
35033rm -f conftest.$ac_objext
35034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35035 (eval $ac_compile) 2>conftest.er1
a848cd7e 35036 ac_status=$?
ac1cb8d3
VS
35037 grep -v '^ *+' conftest.er1 >conftest.err
35038 rm -f conftest.er1
35039 cat conftest.err >&5
a848cd7e
SC
35040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041 (exit $ac_status); } &&
3565d135
RR
35042 { ac_try='test -z "$ac_cxx_werror_flag"
35043 || test ! -s conftest.err'
ac1cb8d3
VS
35044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35045 (eval $ac_try) 2>&5
35046 ac_status=$?
35047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048 (exit $ac_status); }; } &&
35049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35051 (eval $ac_try) 2>&5
35052 ac_status=$?
35053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35054 (exit $ac_status); }; }; then
35055 wx_cv_type_statvfs_t=statvfs_t
35056else
35057 echo "$as_me: failed program was:" >&5
35058sed 's/^/| /' conftest.$ac_ext >&5
35059
35060
35061 cat >conftest.$ac_ext <<_ACEOF
35062/* confdefs.h. */
35063_ACEOF
35064cat confdefs.h >>conftest.$ac_ext
35065cat >>conftest.$ac_ext <<_ACEOF
35066/* end confdefs.h. */
35067
35068 #include <sys/statvfs.h>
35069
35070int
35071main ()
35072{
35073
35074 long l;
35075 struct statvfs fs;
35076 statvfs("/", &fs);
35077 l = fs.f_bsize;
35078 l += fs.f_blocks;
35079 l += fs.f_bavail;
35080
35081 ;
35082 return 0;
35083}
35084_ACEOF
35085rm -f conftest.$ac_objext
35086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35087 (eval $ac_compile) 2>conftest.er1
a848cd7e 35088 ac_status=$?
ac1cb8d3
VS
35089 grep -v '^ *+' conftest.er1 >conftest.err
35090 rm -f conftest.er1
35091 cat conftest.err >&5
a848cd7e
SC
35092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35093 (exit $ac_status); } &&
3565d135
RR
35094 { ac_try='test -z "$ac_cxx_werror_flag"
35095 || test ! -s conftest.err'
ac1cb8d3
VS
35096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35097 (eval $ac_try) 2>&5
35098 ac_status=$?
35099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100 (exit $ac_status); }; } &&
35101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35103 (eval $ac_try) 2>&5
35104 ac_status=$?
35105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106 (exit $ac_status); }; }; then
35107 wx_cv_type_statvfs_t="struct statvfs"
35108else
35109 echo "$as_me: failed program was:" >&5
35110sed 's/^/| /' conftest.$ac_ext >&5
35111
35112wx_cv_type_statvfs_t="unknown"
35113
35114fi
ac1cb8d3 35115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35116
35117
35118fi
ac1cb8d3 35119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35120
35121fi
35122echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35123echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35124
35125 ac_ext=c
35126ac_cpp='$CPP $CPPFLAGS'
35127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35129ac_compiler_gnu=$ac_cv_c_compiler_gnu
35130
35131
35132 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35133 cat >>confdefs.h <<\_ACEOF
35134#define HAVE_STATVFS 1
35135_ACEOF
35136
35137 fi
35138 else
35139 wx_cv_type_statvfs_t="unknown"
35140 fi
35141fi
35142
35143if test "$wx_cv_type_statvfs_t" != "unknown"; then
35144 cat >>confdefs.h <<_ACEOF
35145#define WX_STATFS_T $wx_cv_type_statvfs_t
35146_ACEOF
35147
35148else
35149 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35150echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35151fi
35152
35153if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35154
35155
35156for ac_func in fcntl flock
35157do
35158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35159echo "$as_me:$LINENO: checking for $ac_func" >&5
35160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35161if eval "test \"\${$as_ac_var+set}\" = set"; then
35162 echo $ECHO_N "(cached) $ECHO_C" >&6
35163else
35164 cat >conftest.$ac_ext <<_ACEOF
35165/* confdefs.h. */
35166_ACEOF
35167cat confdefs.h >>conftest.$ac_ext
35168cat >>conftest.$ac_ext <<_ACEOF
35169/* end confdefs.h. */
ac1cb8d3
VS
35170/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35172#define $ac_func innocuous_$ac_func
35173
a848cd7e
SC
35174/* System header to define __stub macros and hopefully few prototypes,
35175 which can conflict with char $ac_func (); below.
35176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35177 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35178
a848cd7e
SC
35179#ifdef __STDC__
35180# include <limits.h>
35181#else
35182# include <assert.h>
35183#endif
ac1cb8d3
VS
35184
35185#undef $ac_func
35186
a848cd7e
SC
35187/* Override any gcc2 internal prototype to avoid an error. */
35188#ifdef __cplusplus
35189extern "C"
35190{
35191#endif
35192/* We use char because int might match the return type of a gcc2
35193 builtin and then its argument prototype would still apply. */
35194char $ac_func ();
35195/* The GNU C library defines this for functions which it implements
35196 to always fail with ENOSYS. Some functions are actually named
35197 something starting with __ and the normal name is an alias. */
35198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35199choke me
35200#else
35201char (*f) () = $ac_func;
35202#endif
35203#ifdef __cplusplus
35204}
35205#endif
35206
35207int
35208main ()
35209{
35210return f != $ac_func;
35211 ;
35212 return 0;
35213}
35214_ACEOF
35215rm -f conftest.$ac_objext conftest$ac_exeext
35216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35217 (eval $ac_link) 2>conftest.er1
a848cd7e 35218 ac_status=$?
ac1cb8d3
VS
35219 grep -v '^ *+' conftest.er1 >conftest.err
35220 rm -f conftest.er1
35221 cat conftest.err >&5
a848cd7e
SC
35222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223 (exit $ac_status); } &&
3565d135
RR
35224 { ac_try='test -z "$ac_c_werror_flag"
35225 || test ! -s conftest.err'
ac1cb8d3
VS
35226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35227 (eval $ac_try) 2>&5
35228 ac_status=$?
35229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230 (exit $ac_status); }; } &&
35231 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35233 (eval $ac_try) 2>&5
35234 ac_status=$?
35235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236 (exit $ac_status); }; }; then
35237 eval "$as_ac_var=yes"
35238else
35239 echo "$as_me: failed program was:" >&5
35240sed 's/^/| /' conftest.$ac_ext >&5
35241
35242eval "$as_ac_var=no"
35243fi
ac1cb8d3
VS
35244rm -f conftest.err conftest.$ac_objext \
35245 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35246fi
35247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35248echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35249if test `eval echo '${'$as_ac_var'}'` = yes; then
35250 cat >>confdefs.h <<_ACEOF
35251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35252_ACEOF
35253 break
35254fi
35255done
35256
35257
35258 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35259 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35260echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35261 wxUSE_SNGLINST_CHECKER=no
35262 fi
35263fi
35264
35265
35266for ac_func in timegm
35267do
35268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35269echo "$as_me:$LINENO: checking for $ac_func" >&5
35270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35271if eval "test \"\${$as_ac_var+set}\" = set"; then
35272 echo $ECHO_N "(cached) $ECHO_C" >&6
35273else
35274 cat >conftest.$ac_ext <<_ACEOF
35275/* confdefs.h. */
35276_ACEOF
35277cat confdefs.h >>conftest.$ac_ext
35278cat >>conftest.$ac_ext <<_ACEOF
35279/* end confdefs.h. */
ac1cb8d3
VS
35280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35282#define $ac_func innocuous_$ac_func
35283
a848cd7e
SC
35284/* System header to define __stub macros and hopefully few prototypes,
35285 which can conflict with char $ac_func (); below.
35286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35287 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35288
a848cd7e
SC
35289#ifdef __STDC__
35290# include <limits.h>
35291#else
35292# include <assert.h>
35293#endif
ac1cb8d3
VS
35294
35295#undef $ac_func
35296
a848cd7e
SC
35297/* Override any gcc2 internal prototype to avoid an error. */
35298#ifdef __cplusplus
35299extern "C"
35300{
35301#endif
35302/* We use char because int might match the return type of a gcc2
35303 builtin and then its argument prototype would still apply. */
35304char $ac_func ();
35305/* The GNU C library defines this for functions which it implements
35306 to always fail with ENOSYS. Some functions are actually named
35307 something starting with __ and the normal name is an alias. */
35308#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35309choke me
35310#else
35311char (*f) () = $ac_func;
35312#endif
35313#ifdef __cplusplus
35314}
35315#endif
35316
35317int
35318main ()
35319{
35320return f != $ac_func;
35321 ;
35322 return 0;
35323}
35324_ACEOF
35325rm -f conftest.$ac_objext conftest$ac_exeext
35326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35327 (eval $ac_link) 2>conftest.er1
a848cd7e 35328 ac_status=$?
ac1cb8d3
VS
35329 grep -v '^ *+' conftest.er1 >conftest.err
35330 rm -f conftest.er1
35331 cat conftest.err >&5
a848cd7e
SC
35332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35333 (exit $ac_status); } &&
3565d135
RR
35334 { ac_try='test -z "$ac_c_werror_flag"
35335 || test ! -s conftest.err'
ac1cb8d3
VS
35336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35337 (eval $ac_try) 2>&5
35338 ac_status=$?
35339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340 (exit $ac_status); }; } &&
35341 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35343 (eval $ac_try) 2>&5
35344 ac_status=$?
35345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35346 (exit $ac_status); }; }; then
35347 eval "$as_ac_var=yes"
35348else
35349 echo "$as_me: failed program was:" >&5
35350sed 's/^/| /' conftest.$ac_ext >&5
35351
35352eval "$as_ac_var=no"
35353fi
ac1cb8d3
VS
35354rm -f conftest.err conftest.$ac_objext \
35355 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35356fi
35357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35358echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35359if test `eval echo '${'$as_ac_var'}'` = yes; then
35360 cat >>confdefs.h <<_ACEOF
35361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35362_ACEOF
35363
35364fi
35365done
35366
35367
35368
35369
35370for ac_func in putenv setenv
35371do
35372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35373echo "$as_me:$LINENO: checking for $ac_func" >&5
35374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35375if eval "test \"\${$as_ac_var+set}\" = set"; then
35376 echo $ECHO_N "(cached) $ECHO_C" >&6
35377else
35378 cat >conftest.$ac_ext <<_ACEOF
35379/* confdefs.h. */
35380_ACEOF
35381cat confdefs.h >>conftest.$ac_ext
35382cat >>conftest.$ac_ext <<_ACEOF
35383/* end confdefs.h. */
ac1cb8d3
VS
35384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35386#define $ac_func innocuous_$ac_func
35387
a848cd7e
SC
35388/* System header to define __stub macros and hopefully few prototypes,
35389 which can conflict with char $ac_func (); below.
35390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35391 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35392
a848cd7e
SC
35393#ifdef __STDC__
35394# include <limits.h>
35395#else
35396# include <assert.h>
35397#endif
ac1cb8d3
VS
35398
35399#undef $ac_func
35400
a848cd7e
SC
35401/* Override any gcc2 internal prototype to avoid an error. */
35402#ifdef __cplusplus
35403extern "C"
35404{
35405#endif
35406/* We use char because int might match the return type of a gcc2
35407 builtin and then its argument prototype would still apply. */
35408char $ac_func ();
35409/* The GNU C library defines this for functions which it implements
35410 to always fail with ENOSYS. Some functions are actually named
35411 something starting with __ and the normal name is an alias. */
35412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35413choke me
35414#else
35415char (*f) () = $ac_func;
35416#endif
35417#ifdef __cplusplus
35418}
35419#endif
35420
35421int
35422main ()
35423{
35424return f != $ac_func;
35425 ;
35426 return 0;
35427}
35428_ACEOF
35429rm -f conftest.$ac_objext conftest$ac_exeext
35430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35431 (eval $ac_link) 2>conftest.er1
a848cd7e 35432 ac_status=$?
ac1cb8d3
VS
35433 grep -v '^ *+' conftest.er1 >conftest.err
35434 rm -f conftest.er1
35435 cat conftest.err >&5
a848cd7e
SC
35436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35437 (exit $ac_status); } &&
3565d135
RR
35438 { ac_try='test -z "$ac_c_werror_flag"
35439 || test ! -s conftest.err'
ac1cb8d3
VS
35440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35441 (eval $ac_try) 2>&5
35442 ac_status=$?
35443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444 (exit $ac_status); }; } &&
35445 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35447 (eval $ac_try) 2>&5
35448 ac_status=$?
35449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450 (exit $ac_status); }; }; then
35451 eval "$as_ac_var=yes"
35452else
35453 echo "$as_me: failed program was:" >&5
35454sed 's/^/| /' conftest.$ac_ext >&5
35455
35456eval "$as_ac_var=no"
35457fi
ac1cb8d3
VS
35458rm -f conftest.err conftest.$ac_objext \
35459 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35460fi
35461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35462echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35463if test `eval echo '${'$as_ac_var'}'` = yes; then
35464 cat >>confdefs.h <<_ACEOF
35465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35466_ACEOF
35467 break
35468fi
35469done
35470
35471
35472HAVE_SOME_SLEEP_FUNC=0
35473if test "$USE_BEOS" = 1; then
35474 cat >>confdefs.h <<\_ACEOF
35475#define HAVE_SLEEP 1
35476_ACEOF
35477
35478 HAVE_SOME_SLEEP_FUNC=1
35479fi
35480
35481if test "$USE_DARWIN" = 1; then
35482 cat >>confdefs.h <<\_ACEOF
35483#define HAVE_USLEEP 1
35484_ACEOF
35485
35486 HAVE_SOME_SLEEP_FUNC=1
35487fi
35488
35489if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35490 POSIX4_LINK=
35491
35492for ac_func in nanosleep
35493do
35494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35495echo "$as_me:$LINENO: checking for $ac_func" >&5
35496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35497if eval "test \"\${$as_ac_var+set}\" = set"; then
35498 echo $ECHO_N "(cached) $ECHO_C" >&6
35499else
35500 cat >conftest.$ac_ext <<_ACEOF
35501/* confdefs.h. */
35502_ACEOF
35503cat confdefs.h >>conftest.$ac_ext
35504cat >>conftest.$ac_ext <<_ACEOF
35505/* end confdefs.h. */
ac1cb8d3
VS
35506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35508#define $ac_func innocuous_$ac_func
35509
a848cd7e
SC
35510/* System header to define __stub macros and hopefully few prototypes,
35511 which can conflict with char $ac_func (); below.
35512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35513 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35514
a848cd7e
SC
35515#ifdef __STDC__
35516# include <limits.h>
35517#else
35518# include <assert.h>
35519#endif
ac1cb8d3
VS
35520
35521#undef $ac_func
35522
a848cd7e
SC
35523/* Override any gcc2 internal prototype to avoid an error. */
35524#ifdef __cplusplus
35525extern "C"
35526{
35527#endif
35528/* We use char because int might match the return type of a gcc2
35529 builtin and then its argument prototype would still apply. */
35530char $ac_func ();
35531/* The GNU C library defines this for functions which it implements
35532 to always fail with ENOSYS. Some functions are actually named
35533 something starting with __ and the normal name is an alias. */
35534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35535choke me
35536#else
35537char (*f) () = $ac_func;
35538#endif
35539#ifdef __cplusplus
35540}
35541#endif
35542
35543int
35544main ()
35545{
35546return f != $ac_func;
35547 ;
35548 return 0;
35549}
35550_ACEOF
35551rm -f conftest.$ac_objext conftest$ac_exeext
35552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35553 (eval $ac_link) 2>conftest.er1
a848cd7e 35554 ac_status=$?
ac1cb8d3
VS
35555 grep -v '^ *+' conftest.er1 >conftest.err
35556 rm -f conftest.er1
35557 cat conftest.err >&5
a848cd7e
SC
35558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559 (exit $ac_status); } &&
3565d135
RR
35560 { ac_try='test -z "$ac_c_werror_flag"
35561 || test ! -s conftest.err'
ac1cb8d3
VS
35562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35563 (eval $ac_try) 2>&5
35564 ac_status=$?
35565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566 (exit $ac_status); }; } &&
35567 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35569 (eval $ac_try) 2>&5
35570 ac_status=$?
35571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572 (exit $ac_status); }; }; then
35573 eval "$as_ac_var=yes"
35574else
35575 echo "$as_me: failed program was:" >&5
35576sed 's/^/| /' conftest.$ac_ext >&5
35577
35578eval "$as_ac_var=no"
35579fi
ac1cb8d3
VS
35580rm -f conftest.err conftest.$ac_objext \
35581 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35582fi
35583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35585if test `eval echo '${'$as_ac_var'}'` = yes; then
35586 cat >>confdefs.h <<_ACEOF
35587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35588_ACEOF
35589 cat >>confdefs.h <<\_ACEOF
35590#define HAVE_NANOSLEEP 1
35591_ACEOF
35592
35593else
35594
35595 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35596echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35597if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35598 echo $ECHO_N "(cached) $ECHO_C" >&6
35599else
35600 ac_check_lib_save_LIBS=$LIBS
35601LIBS="-lposix4 $LIBS"
35602cat >conftest.$ac_ext <<_ACEOF
35603/* confdefs.h. */
35604_ACEOF
35605cat confdefs.h >>conftest.$ac_ext
35606cat >>conftest.$ac_ext <<_ACEOF
35607/* end confdefs.h. */
35608
35609/* Override any gcc2 internal prototype to avoid an error. */
35610#ifdef __cplusplus
35611extern "C"
35612#endif
35613/* We use char because int might match the return type of a gcc2
35614 builtin and then its argument prototype would still apply. */
35615char nanosleep ();
35616int
35617main ()
35618{
35619nanosleep ();
35620 ;
35621 return 0;
35622}
35623_ACEOF
35624rm -f conftest.$ac_objext conftest$ac_exeext
35625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35626 (eval $ac_link) 2>conftest.er1
a848cd7e 35627 ac_status=$?
ac1cb8d3
VS
35628 grep -v '^ *+' conftest.er1 >conftest.err
35629 rm -f conftest.er1
35630 cat conftest.err >&5
a848cd7e
SC
35631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35632 (exit $ac_status); } &&
3565d135
RR
35633 { ac_try='test -z "$ac_c_werror_flag"
35634 || test ! -s conftest.err'
ac1cb8d3
VS
35635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35636 (eval $ac_try) 2>&5
35637 ac_status=$?
35638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639 (exit $ac_status); }; } &&
35640 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35642 (eval $ac_try) 2>&5
35643 ac_status=$?
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); }; }; then
35646 ac_cv_lib_posix4_nanosleep=yes
35647else
35648 echo "$as_me: failed program was:" >&5
35649sed 's/^/| /' conftest.$ac_ext >&5
35650
35651ac_cv_lib_posix4_nanosleep=no
35652fi
ac1cb8d3
VS
35653rm -f conftest.err conftest.$ac_objext \
35654 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35655LIBS=$ac_check_lib_save_LIBS
35656fi
35657echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35658echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35659if test $ac_cv_lib_posix4_nanosleep = yes; then
35660
35661 cat >>confdefs.h <<\_ACEOF
35662#define HAVE_NANOSLEEP 1
35663_ACEOF
35664
35665 POSIX4_LINK=" -lposix4"
35666
35667else
35668
35669
35670for ac_func in usleep
35671do
35672as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35673echo "$as_me:$LINENO: checking for $ac_func" >&5
35674echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35675if eval "test \"\${$as_ac_var+set}\" = set"; then
35676 echo $ECHO_N "(cached) $ECHO_C" >&6
35677else
35678 cat >conftest.$ac_ext <<_ACEOF
35679/* confdefs.h. */
35680_ACEOF
35681cat confdefs.h >>conftest.$ac_ext
35682cat >>conftest.$ac_ext <<_ACEOF
35683/* end confdefs.h. */
ac1cb8d3
VS
35684/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35686#define $ac_func innocuous_$ac_func
35687
a848cd7e
SC
35688/* System header to define __stub macros and hopefully few prototypes,
35689 which can conflict with char $ac_func (); below.
35690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35691 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35692
a848cd7e
SC
35693#ifdef __STDC__
35694# include <limits.h>
35695#else
35696# include <assert.h>
35697#endif
ac1cb8d3
VS
35698
35699#undef $ac_func
35700
a848cd7e
SC
35701/* Override any gcc2 internal prototype to avoid an error. */
35702#ifdef __cplusplus
35703extern "C"
35704{
35705#endif
35706/* We use char because int might match the return type of a gcc2
35707 builtin and then its argument prototype would still apply. */
35708char $ac_func ();
35709/* The GNU C library defines this for functions which it implements
35710 to always fail with ENOSYS. Some functions are actually named
35711 something starting with __ and the normal name is an alias. */
35712#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35713choke me
35714#else
35715char (*f) () = $ac_func;
35716#endif
35717#ifdef __cplusplus
35718}
35719#endif
35720
35721int
35722main ()
35723{
35724return f != $ac_func;
35725 ;
35726 return 0;
35727}
35728_ACEOF
35729rm -f conftest.$ac_objext conftest$ac_exeext
35730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35731 (eval $ac_link) 2>conftest.er1
a848cd7e 35732 ac_status=$?
ac1cb8d3
VS
35733 grep -v '^ *+' conftest.er1 >conftest.err
35734 rm -f conftest.er1
35735 cat conftest.err >&5
a848cd7e
SC
35736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); } &&
3565d135
RR
35738 { ac_try='test -z "$ac_c_werror_flag"
35739 || test ! -s conftest.err'
ac1cb8d3
VS
35740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35741 (eval $ac_try) 2>&5
35742 ac_status=$?
35743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744 (exit $ac_status); }; } &&
35745 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35747 (eval $ac_try) 2>&5
35748 ac_status=$?
35749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35750 (exit $ac_status); }; }; then
35751 eval "$as_ac_var=yes"
35752else
35753 echo "$as_me: failed program was:" >&5
35754sed 's/^/| /' conftest.$ac_ext >&5
35755
35756eval "$as_ac_var=no"
35757fi
ac1cb8d3
VS
35758rm -f conftest.err conftest.$ac_objext \
35759 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35760fi
35761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35763if test `eval echo '${'$as_ac_var'}'` = yes; then
35764 cat >>confdefs.h <<_ACEOF
35765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35766_ACEOF
35767 cat >>confdefs.h <<\_ACEOF
35768#define HAVE_USLEEP 1
35769_ACEOF
35770
35771else
35772 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35773echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35774
35775fi
35776done
35777
35778
35779
35780fi
35781
35782
35783
35784fi
35785done
35786
35787fi
35788
35789
35790
35791for ac_func in uname gethostname
35792do
35793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35794echo "$as_me:$LINENO: checking for $ac_func" >&5
35795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35796if eval "test \"\${$as_ac_var+set}\" = set"; then
35797 echo $ECHO_N "(cached) $ECHO_C" >&6
35798else
35799 cat >conftest.$ac_ext <<_ACEOF
35800/* confdefs.h. */
35801_ACEOF
35802cat confdefs.h >>conftest.$ac_ext
35803cat >>conftest.$ac_ext <<_ACEOF
35804/* end confdefs.h. */
ac1cb8d3
VS
35805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35807#define $ac_func innocuous_$ac_func
35808
a848cd7e
SC
35809/* System header to define __stub macros and hopefully few prototypes,
35810 which can conflict with char $ac_func (); below.
35811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35812 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35813
a848cd7e
SC
35814#ifdef __STDC__
35815# include <limits.h>
35816#else
35817# include <assert.h>
35818#endif
ac1cb8d3
VS
35819
35820#undef $ac_func
35821
a848cd7e
SC
35822/* Override any gcc2 internal prototype to avoid an error. */
35823#ifdef __cplusplus
35824extern "C"
35825{
35826#endif
35827/* We use char because int might match the return type of a gcc2
35828 builtin and then its argument prototype would still apply. */
35829char $ac_func ();
35830/* The GNU C library defines this for functions which it implements
35831 to always fail with ENOSYS. Some functions are actually named
35832 something starting with __ and the normal name is an alias. */
35833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35834choke me
35835#else
35836char (*f) () = $ac_func;
35837#endif
35838#ifdef __cplusplus
35839}
35840#endif
35841
35842int
35843main ()
35844{
35845return f != $ac_func;
35846 ;
35847 return 0;
35848}
35849_ACEOF
35850rm -f conftest.$ac_objext conftest$ac_exeext
35851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35852 (eval $ac_link) 2>conftest.er1
a848cd7e 35853 ac_status=$?
ac1cb8d3
VS
35854 grep -v '^ *+' conftest.er1 >conftest.err
35855 rm -f conftest.er1
35856 cat conftest.err >&5
a848cd7e
SC
35857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35858 (exit $ac_status); } &&
3565d135
RR
35859 { ac_try='test -z "$ac_c_werror_flag"
35860 || test ! -s conftest.err'
ac1cb8d3
VS
35861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35862 (eval $ac_try) 2>&5
35863 ac_status=$?
35864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865 (exit $ac_status); }; } &&
35866 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35868 (eval $ac_try) 2>&5
35869 ac_status=$?
35870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871 (exit $ac_status); }; }; then
35872 eval "$as_ac_var=yes"
35873else
35874 echo "$as_me: failed program was:" >&5
35875sed 's/^/| /' conftest.$ac_ext >&5
35876
35877eval "$as_ac_var=no"
35878fi
ac1cb8d3
VS
35879rm -f conftest.err conftest.$ac_objext \
35880 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35881fi
35882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35884if test `eval echo '${'$as_ac_var'}'` = yes; then
35885 cat >>confdefs.h <<_ACEOF
35886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35887_ACEOF
35888 break
35889fi
35890done
35891
35892
a848cd7e
SC
35893ac_ext=cc
35894ac_cpp='$CXXCPP $CPPFLAGS'
35895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35898
35899
35900
35901for ac_func in strtok_r
35902do
35903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35904echo "$as_me:$LINENO: checking for $ac_func" >&5
35905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35906if eval "test \"\${$as_ac_var+set}\" = set"; then
35907 echo $ECHO_N "(cached) $ECHO_C" >&6
35908else
35909 cat >conftest.$ac_ext <<_ACEOF
35910/* confdefs.h. */
35911_ACEOF
35912cat confdefs.h >>conftest.$ac_ext
35913cat >>conftest.$ac_ext <<_ACEOF
35914/* end confdefs.h. */
ac1cb8d3
VS
35915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35917#define $ac_func innocuous_$ac_func
35918
a848cd7e
SC
35919/* System header to define __stub macros and hopefully few prototypes,
35920 which can conflict with char $ac_func (); below.
35921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35922 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35923
a848cd7e
SC
35924#ifdef __STDC__
35925# include <limits.h>
35926#else
35927# include <assert.h>
35928#endif
ac1cb8d3
VS
35929
35930#undef $ac_func
35931
a848cd7e
SC
35932/* Override any gcc2 internal prototype to avoid an error. */
35933#ifdef __cplusplus
35934extern "C"
35935{
35936#endif
35937/* We use char because int might match the return type of a gcc2
35938 builtin and then its argument prototype would still apply. */
35939char $ac_func ();
35940/* The GNU C library defines this for functions which it implements
35941 to always fail with ENOSYS. Some functions are actually named
35942 something starting with __ and the normal name is an alias. */
35943#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35944choke me
35945#else
35946char (*f) () = $ac_func;
35947#endif
35948#ifdef __cplusplus
35949}
35950#endif
35951
35952int
35953main ()
35954{
35955return f != $ac_func;
35956 ;
35957 return 0;
35958}
35959_ACEOF
35960rm -f conftest.$ac_objext conftest$ac_exeext
35961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35962 (eval $ac_link) 2>conftest.er1
a848cd7e 35963 ac_status=$?
ac1cb8d3
VS
35964 grep -v '^ *+' conftest.er1 >conftest.err
35965 rm -f conftest.er1
35966 cat conftest.err >&5
a848cd7e
SC
35967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968 (exit $ac_status); } &&
3565d135
RR
35969 { ac_try='test -z "$ac_cxx_werror_flag"
35970 || test ! -s conftest.err'
ac1cb8d3
VS
35971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35972 (eval $ac_try) 2>&5
35973 ac_status=$?
35974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975 (exit $ac_status); }; } &&
35976 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35978 (eval $ac_try) 2>&5
35979 ac_status=$?
35980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981 (exit $ac_status); }; }; then
35982 eval "$as_ac_var=yes"
35983else
35984 echo "$as_me: failed program was:" >&5
35985sed 's/^/| /' conftest.$ac_ext >&5
35986
35987eval "$as_ac_var=no"
35988fi
ac1cb8d3
VS
35989rm -f conftest.err conftest.$ac_objext \
35990 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35991fi
35992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35993echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35994if test `eval echo '${'$as_ac_var'}'` = yes; then
35995 cat >>confdefs.h <<_ACEOF
35996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35997_ACEOF
35998
35999fi
36000done
36001
36002
36003ac_ext=c
36004ac_cpp='$CPP $CPPFLAGS'
36005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36007ac_compiler_gnu=$ac_cv_c_compiler_gnu
36008
36009
36010INET_LINK=
36011
36012for ac_func in inet_addr
36013do
36014as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36015echo "$as_me:$LINENO: checking for $ac_func" >&5
36016echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36017if eval "test \"\${$as_ac_var+set}\" = set"; then
36018 echo $ECHO_N "(cached) $ECHO_C" >&6
36019else
36020 cat >conftest.$ac_ext <<_ACEOF
36021/* confdefs.h. */
36022_ACEOF
36023cat confdefs.h >>conftest.$ac_ext
36024cat >>conftest.$ac_ext <<_ACEOF
36025/* end confdefs.h. */
ac1cb8d3
VS
36026/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36028#define $ac_func innocuous_$ac_func
36029
a848cd7e
SC
36030/* System header to define __stub macros and hopefully few prototypes,
36031 which can conflict with char $ac_func (); below.
36032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36033 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36034
a848cd7e
SC
36035#ifdef __STDC__
36036# include <limits.h>
36037#else
36038# include <assert.h>
36039#endif
ac1cb8d3
VS
36040
36041#undef $ac_func
36042
a848cd7e
SC
36043/* Override any gcc2 internal prototype to avoid an error. */
36044#ifdef __cplusplus
36045extern "C"
36046{
36047#endif
36048/* We use char because int might match the return type of a gcc2
36049 builtin and then its argument prototype would still apply. */
36050char $ac_func ();
36051/* The GNU C library defines this for functions which it implements
36052 to always fail with ENOSYS. Some functions are actually named
36053 something starting with __ and the normal name is an alias. */
36054#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36055choke me
36056#else
36057char (*f) () = $ac_func;
36058#endif
36059#ifdef __cplusplus
36060}
36061#endif
36062
36063int
36064main ()
36065{
36066return f != $ac_func;
36067 ;
36068 return 0;
36069}
36070_ACEOF
36071rm -f conftest.$ac_objext conftest$ac_exeext
36072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36073 (eval $ac_link) 2>conftest.er1
a848cd7e 36074 ac_status=$?
ac1cb8d3
VS
36075 grep -v '^ *+' conftest.er1 >conftest.err
36076 rm -f conftest.er1
36077 cat conftest.err >&5
a848cd7e
SC
36078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079 (exit $ac_status); } &&
3565d135
RR
36080 { ac_try='test -z "$ac_c_werror_flag"
36081 || test ! -s conftest.err'
ac1cb8d3
VS
36082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36083 (eval $ac_try) 2>&5
36084 ac_status=$?
36085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36086 (exit $ac_status); }; } &&
36087 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36089 (eval $ac_try) 2>&5
36090 ac_status=$?
36091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36092 (exit $ac_status); }; }; then
36093 eval "$as_ac_var=yes"
36094else
36095 echo "$as_me: failed program was:" >&5
36096sed 's/^/| /' conftest.$ac_ext >&5
36097
36098eval "$as_ac_var=no"
36099fi
ac1cb8d3
VS
36100rm -f conftest.err conftest.$ac_objext \
36101 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36102fi
36103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36105if test `eval echo '${'$as_ac_var'}'` = yes; then
36106 cat >>confdefs.h <<_ACEOF
36107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36108_ACEOF
36109 cat >>confdefs.h <<\_ACEOF
36110#define HAVE_INET_ADDR 1
36111_ACEOF
36112
36113else
36114
36115 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36116echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36117if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36118 echo $ECHO_N "(cached) $ECHO_C" >&6
36119else
36120 ac_check_lib_save_LIBS=$LIBS
36121LIBS="-lnsl $LIBS"
36122cat >conftest.$ac_ext <<_ACEOF
36123/* confdefs.h. */
36124_ACEOF
36125cat confdefs.h >>conftest.$ac_ext
36126cat >>conftest.$ac_ext <<_ACEOF
36127/* end confdefs.h. */
36128
36129/* Override any gcc2 internal prototype to avoid an error. */
36130#ifdef __cplusplus
36131extern "C"
36132#endif
36133/* We use char because int might match the return type of a gcc2
36134 builtin and then its argument prototype would still apply. */
36135char inet_addr ();
36136int
36137main ()
36138{
36139inet_addr ();
36140 ;
36141 return 0;
36142}
36143_ACEOF
36144rm -f conftest.$ac_objext conftest$ac_exeext
36145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36146 (eval $ac_link) 2>conftest.er1
a848cd7e 36147 ac_status=$?
ac1cb8d3
VS
36148 grep -v '^ *+' conftest.er1 >conftest.err
36149 rm -f conftest.er1
36150 cat conftest.err >&5
a848cd7e
SC
36151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152 (exit $ac_status); } &&
3565d135
RR
36153 { ac_try='test -z "$ac_c_werror_flag"
36154 || test ! -s conftest.err'
ac1cb8d3
VS
36155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36156 (eval $ac_try) 2>&5
36157 ac_status=$?
36158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36159 (exit $ac_status); }; } &&
36160 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36162 (eval $ac_try) 2>&5
36163 ac_status=$?
36164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36165 (exit $ac_status); }; }; then
36166 ac_cv_lib_nsl_inet_addr=yes
36167else
36168 echo "$as_me: failed program was:" >&5
36169sed 's/^/| /' conftest.$ac_ext >&5
36170
36171ac_cv_lib_nsl_inet_addr=no
36172fi
ac1cb8d3
VS
36173rm -f conftest.err conftest.$ac_objext \
36174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36175LIBS=$ac_check_lib_save_LIBS
36176fi
36177echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36178echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36179if test $ac_cv_lib_nsl_inet_addr = yes; then
36180 INET_LINK="nsl"
36181else
36182
36183 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36184echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36185if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36186 echo $ECHO_N "(cached) $ECHO_C" >&6
36187else
36188 ac_check_lib_save_LIBS=$LIBS
36189LIBS="-lresolv $LIBS"
36190cat >conftest.$ac_ext <<_ACEOF
36191/* confdefs.h. */
36192_ACEOF
36193cat confdefs.h >>conftest.$ac_ext
36194cat >>conftest.$ac_ext <<_ACEOF
36195/* end confdefs.h. */
36196
36197/* Override any gcc2 internal prototype to avoid an error. */
36198#ifdef __cplusplus
36199extern "C"
36200#endif
36201/* We use char because int might match the return type of a gcc2
36202 builtin and then its argument prototype would still apply. */
36203char inet_addr ();
36204int
36205main ()
36206{
36207inet_addr ();
36208 ;
36209 return 0;
36210}
36211_ACEOF
36212rm -f conftest.$ac_objext conftest$ac_exeext
36213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36214 (eval $ac_link) 2>conftest.er1
a848cd7e 36215 ac_status=$?
ac1cb8d3
VS
36216 grep -v '^ *+' conftest.er1 >conftest.err
36217 rm -f conftest.er1
36218 cat conftest.err >&5
a848cd7e
SC
36219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36220 (exit $ac_status); } &&
3565d135
RR
36221 { ac_try='test -z "$ac_c_werror_flag"
36222 || test ! -s conftest.err'
ac1cb8d3
VS
36223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36224 (eval $ac_try) 2>&5
36225 ac_status=$?
36226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36227 (exit $ac_status); }; } &&
36228 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36230 (eval $ac_try) 2>&5
36231 ac_status=$?
36232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233 (exit $ac_status); }; }; then
36234 ac_cv_lib_resolv_inet_addr=yes
36235else
36236 echo "$as_me: failed program was:" >&5
36237sed 's/^/| /' conftest.$ac_ext >&5
36238
36239ac_cv_lib_resolv_inet_addr=no
36240fi
ac1cb8d3
VS
36241rm -f conftest.err conftest.$ac_objext \
36242 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36243LIBS=$ac_check_lib_save_LIBS
36244fi
36245echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36246echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36247if test $ac_cv_lib_resolv_inet_addr = yes; then
36248 INET_LINK="resolv"
36249else
36250
36251 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36252echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36253if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36254 echo $ECHO_N "(cached) $ECHO_C" >&6
36255else
36256 ac_check_lib_save_LIBS=$LIBS
36257LIBS="-lsocket $LIBS"
36258cat >conftest.$ac_ext <<_ACEOF
36259/* confdefs.h. */
36260_ACEOF
36261cat confdefs.h >>conftest.$ac_ext
36262cat >>conftest.$ac_ext <<_ACEOF
36263/* end confdefs.h. */
36264
36265/* Override any gcc2 internal prototype to avoid an error. */
36266#ifdef __cplusplus
36267extern "C"
36268#endif
36269/* We use char because int might match the return type of a gcc2
36270 builtin and then its argument prototype would still apply. */
36271char inet_addr ();
36272int
36273main ()
36274{
36275inet_addr ();
36276 ;
36277 return 0;
36278}
36279_ACEOF
36280rm -f conftest.$ac_objext conftest$ac_exeext
36281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36282 (eval $ac_link) 2>conftest.er1
a848cd7e 36283 ac_status=$?
ac1cb8d3
VS
36284 grep -v '^ *+' conftest.er1 >conftest.err
36285 rm -f conftest.er1
36286 cat conftest.err >&5
a848cd7e
SC
36287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288 (exit $ac_status); } &&
3565d135
RR
36289 { ac_try='test -z "$ac_c_werror_flag"
36290 || test ! -s conftest.err'
ac1cb8d3
VS
36291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36292 (eval $ac_try) 2>&5
36293 ac_status=$?
36294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36295 (exit $ac_status); }; } &&
36296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36298 (eval $ac_try) 2>&5
36299 ac_status=$?
36300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36301 (exit $ac_status); }; }; then
36302 ac_cv_lib_socket_inet_addr=yes
36303else
36304 echo "$as_me: failed program was:" >&5
36305sed 's/^/| /' conftest.$ac_ext >&5
36306
36307ac_cv_lib_socket_inet_addr=no
36308fi
ac1cb8d3
VS
36309rm -f conftest.err conftest.$ac_objext \
36310 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36311LIBS=$ac_check_lib_save_LIBS
36312fi
36313echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36314echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36315if test $ac_cv_lib_socket_inet_addr = yes; then
36316 INET_LINK="socket"
36317
36318fi
36319
36320
36321
36322fi
36323
36324
36325
36326fi
36327
36328
36329
36330fi
36331done
36332
36333
36334
36335for ac_func in inet_aton
36336do
36337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36338echo "$as_me:$LINENO: checking for $ac_func" >&5
36339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36340if eval "test \"\${$as_ac_var+set}\" = set"; then
36341 echo $ECHO_N "(cached) $ECHO_C" >&6
36342else
36343 cat >conftest.$ac_ext <<_ACEOF
36344/* confdefs.h. */
36345_ACEOF
36346cat confdefs.h >>conftest.$ac_ext
36347cat >>conftest.$ac_ext <<_ACEOF
36348/* end confdefs.h. */
ac1cb8d3
VS
36349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36351#define $ac_func innocuous_$ac_func
36352
a848cd7e
SC
36353/* System header to define __stub macros and hopefully few prototypes,
36354 which can conflict with char $ac_func (); below.
36355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36356 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36357
a848cd7e
SC
36358#ifdef __STDC__
36359# include <limits.h>
36360#else
36361# include <assert.h>
36362#endif
ac1cb8d3
VS
36363
36364#undef $ac_func
36365
a848cd7e
SC
36366/* Override any gcc2 internal prototype to avoid an error. */
36367#ifdef __cplusplus
36368extern "C"
36369{
36370#endif
36371/* We use char because int might match the return type of a gcc2
36372 builtin and then its argument prototype would still apply. */
36373char $ac_func ();
36374/* The GNU C library defines this for functions which it implements
36375 to always fail with ENOSYS. Some functions are actually named
36376 something starting with __ and the normal name is an alias. */
36377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36378choke me
36379#else
36380char (*f) () = $ac_func;
36381#endif
36382#ifdef __cplusplus
36383}
36384#endif
36385
36386int
36387main ()
36388{
36389return f != $ac_func;
36390 ;
36391 return 0;
36392}
36393_ACEOF
36394rm -f conftest.$ac_objext conftest$ac_exeext
36395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36396 (eval $ac_link) 2>conftest.er1
a848cd7e 36397 ac_status=$?
ac1cb8d3
VS
36398 grep -v '^ *+' conftest.er1 >conftest.err
36399 rm -f conftest.er1
36400 cat conftest.err >&5
a848cd7e
SC
36401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36402 (exit $ac_status); } &&
3565d135
RR
36403 { ac_try='test -z "$ac_c_werror_flag"
36404 || test ! -s conftest.err'
ac1cb8d3
VS
36405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36406 (eval $ac_try) 2>&5
36407 ac_status=$?
36408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409 (exit $ac_status); }; } &&
36410 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36412 (eval $ac_try) 2>&5
36413 ac_status=$?
36414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415 (exit $ac_status); }; }; then
36416 eval "$as_ac_var=yes"
36417else
36418 echo "$as_me: failed program was:" >&5
36419sed 's/^/| /' conftest.$ac_ext >&5
36420
36421eval "$as_ac_var=no"
36422fi
ac1cb8d3
VS
36423rm -f conftest.err conftest.$ac_objext \
36424 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36425fi
36426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36427echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36428if test `eval echo '${'$as_ac_var'}'` = yes; then
36429 cat >>confdefs.h <<_ACEOF
36430#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36431_ACEOF
36432 cat >>confdefs.h <<\_ACEOF
36433#define HAVE_INET_ATON 1
36434_ACEOF
36435
36436else
36437
36438 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36439echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36440echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36441if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36442 echo $ECHO_N "(cached) $ECHO_C" >&6
36443else
36444 ac_check_lib_save_LIBS=$LIBS
36445LIBS="-l$INET_LINK $LIBS"
36446cat >conftest.$ac_ext <<_ACEOF
36447/* confdefs.h. */
36448_ACEOF
36449cat confdefs.h >>conftest.$ac_ext
36450cat >>conftest.$ac_ext <<_ACEOF
36451/* end confdefs.h. */
36452
36453/* Override any gcc2 internal prototype to avoid an error. */
36454#ifdef __cplusplus
36455extern "C"
36456#endif
36457/* We use char because int might match the return type of a gcc2
36458 builtin and then its argument prototype would still apply. */
36459char inet_aton ();
36460int
36461main ()
36462{
36463inet_aton ();
36464 ;
36465 return 0;
36466}
36467_ACEOF
36468rm -f conftest.$ac_objext conftest$ac_exeext
36469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36470 (eval $ac_link) 2>conftest.er1
a848cd7e 36471 ac_status=$?
ac1cb8d3
VS
36472 grep -v '^ *+' conftest.er1 >conftest.err
36473 rm -f conftest.er1
36474 cat conftest.err >&5
a848cd7e
SC
36475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36476 (exit $ac_status); } &&
3565d135
RR
36477 { ac_try='test -z "$ac_c_werror_flag"
36478 || test ! -s conftest.err'
ac1cb8d3
VS
36479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36480 (eval $ac_try) 2>&5
36481 ac_status=$?
36482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36483 (exit $ac_status); }; } &&
36484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36486 (eval $ac_try) 2>&5
36487 ac_status=$?
36488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489 (exit $ac_status); }; }; then
36490 eval "$as_ac_Lib=yes"
36491else
36492 echo "$as_me: failed program was:" >&5
36493sed 's/^/| /' conftest.$ac_ext >&5
36494
36495eval "$as_ac_Lib=no"
36496fi
ac1cb8d3
VS
36497rm -f conftest.err conftest.$ac_objext \
36498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36499LIBS=$ac_check_lib_save_LIBS
36500fi
36501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36502echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36503if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36504 cat >>confdefs.h <<\_ACEOF
36505#define HAVE_INET_ATON 1
36506_ACEOF
36507
36508fi
36509
36510
36511fi
36512done
36513
36514
36515if test "x$INET_LINK" != "x"; then
36516 cat >>confdefs.h <<\_ACEOF
36517#define HAVE_INET_ADDR 1
36518_ACEOF
36519
36520 INET_LINK=" -l$INET_LINK"
36521fi
36522
36523fi
36524
36525
36526
36527EXTRALIBS_ESD=
36528echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36529echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36530if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36531 echo $ECHO_N "(cached) $ECHO_C" >&6
36532else
36533 ac_check_lib_save_LIBS=$LIBS
36534LIBS="-lesd $LIBS"
36535cat >conftest.$ac_ext <<_ACEOF
36536/* confdefs.h. */
36537_ACEOF
36538cat confdefs.h >>conftest.$ac_ext
36539cat >>conftest.$ac_ext <<_ACEOF
36540/* end confdefs.h. */
36541
36542/* Override any gcc2 internal prototype to avoid an error. */
36543#ifdef __cplusplus
36544extern "C"
36545#endif
36546/* We use char because int might match the return type of a gcc2
36547 builtin and then its argument prototype would still apply. */
36548char esd_close ();
36549int
36550main ()
36551{
36552esd_close ();
36553 ;
36554 return 0;
36555}
36556_ACEOF
36557rm -f conftest.$ac_objext conftest$ac_exeext
36558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36559 (eval $ac_link) 2>conftest.er1
a848cd7e 36560 ac_status=$?
ac1cb8d3
VS
36561 grep -v '^ *+' conftest.er1 >conftest.err
36562 rm -f conftest.er1
36563 cat conftest.err >&5
a848cd7e
SC
36564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565 (exit $ac_status); } &&
3565d135
RR
36566 { ac_try='test -z "$ac_c_werror_flag"
36567 || test ! -s conftest.err'
ac1cb8d3
VS
36568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36569 (eval $ac_try) 2>&5
36570 ac_status=$?
36571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36572 (exit $ac_status); }; } &&
36573 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36575 (eval $ac_try) 2>&5
36576 ac_status=$?
36577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578 (exit $ac_status); }; }; then
36579 ac_cv_lib_esd_esd_close=yes
36580else
36581 echo "$as_me: failed program was:" >&5
36582sed 's/^/| /' conftest.$ac_ext >&5
36583
36584ac_cv_lib_esd_esd_close=no
36585fi
ac1cb8d3
VS
36586rm -f conftest.err conftest.$ac_objext \
36587 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36588LIBS=$ac_check_lib_save_LIBS
36589fi
36590echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36591echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36592if test $ac_cv_lib_esd_esd_close = yes; then
36593
36594
36595for ac_header in esd.h
36596do
36597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36598if eval "test \"\${$as_ac_Header+set}\" = set"; then
36599 echo "$as_me:$LINENO: checking for $ac_header" >&5
36600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36601if eval "test \"\${$as_ac_Header+set}\" = set"; then
36602 echo $ECHO_N "(cached) $ECHO_C" >&6
36603fi
36604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36606else
36607 # Is the header compilable?
36608echo "$as_me:$LINENO: checking $ac_header usability" >&5
36609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36610cat >conftest.$ac_ext <<_ACEOF
36611/* confdefs.h. */
36612_ACEOF
36613cat confdefs.h >>conftest.$ac_ext
36614cat >>conftest.$ac_ext <<_ACEOF
36615/* end confdefs.h. */
36616$ac_includes_default
36617#include <$ac_header>
36618_ACEOF
36619rm -f conftest.$ac_objext
36620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36621 (eval $ac_compile) 2>conftest.er1
a848cd7e 36622 ac_status=$?
ac1cb8d3
VS
36623 grep -v '^ *+' conftest.er1 >conftest.err
36624 rm -f conftest.er1
36625 cat conftest.err >&5
a848cd7e
SC
36626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36627 (exit $ac_status); } &&
3565d135
RR
36628 { ac_try='test -z "$ac_c_werror_flag"
36629 || test ! -s conftest.err'
ac1cb8d3
VS
36630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36631 (eval $ac_try) 2>&5
36632 ac_status=$?
36633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634 (exit $ac_status); }; } &&
36635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36637 (eval $ac_try) 2>&5
36638 ac_status=$?
36639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 (exit $ac_status); }; }; then
36641 ac_header_compiler=yes
36642else
36643 echo "$as_me: failed program was:" >&5
36644sed 's/^/| /' conftest.$ac_ext >&5
36645
36646ac_header_compiler=no
36647fi
ac1cb8d3 36648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36650echo "${ECHO_T}$ac_header_compiler" >&6
36651
36652# Is the header present?
36653echo "$as_me:$LINENO: checking $ac_header presence" >&5
36654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36655cat >conftest.$ac_ext <<_ACEOF
36656/* confdefs.h. */
36657_ACEOF
36658cat confdefs.h >>conftest.$ac_ext
36659cat >>conftest.$ac_ext <<_ACEOF
36660/* end confdefs.h. */
36661#include <$ac_header>
36662_ACEOF
36663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36665 ac_status=$?
36666 grep -v '^ *+' conftest.er1 >conftest.err
36667 rm -f conftest.er1
36668 cat conftest.err >&5
36669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36670 (exit $ac_status); } >/dev/null; then
36671 if test -s conftest.err; then
36672 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36674 else
36675 ac_cpp_err=
36676 fi
36677else
36678 ac_cpp_err=yes
36679fi
36680if test -z "$ac_cpp_err"; then
36681 ac_header_preproc=yes
36682else
36683 echo "$as_me: failed program was:" >&5
36684sed 's/^/| /' conftest.$ac_ext >&5
36685
36686 ac_header_preproc=no
36687fi
36688rm -f conftest.err conftest.$ac_ext
36689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36690echo "${ECHO_T}$ac_header_preproc" >&6
36691
36692# So? What about this header?
ac1cb8d3
VS
36693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36694 yes:no: )
a848cd7e
SC
36695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36698echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36699 ac_header_preproc=yes
a848cd7e 36700 ;;
ac1cb8d3 36701 no:yes:* )
a848cd7e
SC
36702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36703echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36705echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36707echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36709echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36713echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36714 (
36715 cat <<\_ASBOX
ac1cb8d3
VS
36716## ----------------------------------------- ##
36717## Report this to wx-dev@lists.wxwidgets.org ##
36718## ----------------------------------------- ##
a848cd7e
SC
36719_ASBOX
36720 ) |
36721 sed "s/^/$as_me: WARNING: /" >&2
36722 ;;
36723esac
36724echo "$as_me:$LINENO: checking for $ac_header" >&5
36725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36726if eval "test \"\${$as_ac_Header+set}\" = set"; then
36727 echo $ECHO_N "(cached) $ECHO_C" >&6
36728else
ac1cb8d3 36729 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36730fi
36731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36733
36734fi
36735if test `eval echo '${'$as_ac_Header'}'` = yes; then
36736 cat >>confdefs.h <<_ACEOF
36737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36738_ACEOF
36739
36740 EXTRALIBS_ESD="-lesd"
36741
36742fi
36743
36744done
36745
36746
36747fi
36748
36749
36750
36751echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36752echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36753cat >conftest.$ac_ext <<_ACEOF
36754/* confdefs.h. */
36755_ACEOF
36756cat confdefs.h >>conftest.$ac_ext
36757cat >>conftest.$ac_ext <<_ACEOF
36758/* end confdefs.h. */
36759#ifdef __linux__
36760 #include <linux/cdrom.h>
36761 #else
36762 /* For Solaris */
36763 #include <sys/cdio.h>
36764 #endif
36765
36766int
36767main ()
36768{
36769struct cdrom_tocentry entry, old_entry;
36770 ;
36771 return 0;
36772}
36773_ACEOF
36774rm -f conftest.$ac_objext
36775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36776 (eval $ac_compile) 2>conftest.er1
a848cd7e 36777 ac_status=$?
ac1cb8d3
VS
36778 grep -v '^ *+' conftest.er1 >conftest.err
36779 rm -f conftest.er1
36780 cat conftest.err >&5
a848cd7e
SC
36781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36782 (exit $ac_status); } &&
3565d135
RR
36783 { ac_try='test -z "$ac_c_werror_flag"
36784 || test ! -s conftest.err'
ac1cb8d3
VS
36785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36786 (eval $ac_try) 2>&5
36787 ac_status=$?
36788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789 (exit $ac_status); }; } &&
36790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36792 (eval $ac_try) 2>&5
36793 ac_status=$?
36794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36795 (exit $ac_status); }; }; then
36796 echo "$as_me:$LINENO: result: yes" >&5
36797echo "${ECHO_T}yes" >&6
36798 cat >>confdefs.h <<\_ACEOF
36799#define HAVE_KNOWN_CDROM_INTERFACE 1
36800_ACEOF
36801
36802else
36803 echo "$as_me: failed program was:" >&5
36804sed 's/^/| /' conftest.$ac_ext >&5
36805
36806echo "$as_me:$LINENO: result: no" >&5
36807echo "${ECHO_T}no" >&6
36808fi
ac1cb8d3 36809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36810
36811
36812cat >confcache <<\_ACEOF
36813# This file is a shell script that caches the results of configure
36814# tests run on this system so they can be shared between configure
36815# scripts and configure runs, see configure's option --config-cache.
36816# It is not useful on other systems. If it contains results you don't
36817# want to keep, you may remove or edit it.
36818#
36819# config.status only pays attention to the cache file if you give it
36820# the --recheck option to rerun configure.
36821#
36822# `ac_cv_env_foo' variables (set or unset) will be overridden when
36823# loading this file, other *unset* `ac_cv_foo' will be assigned the
36824# following values.
36825
36826_ACEOF
36827
36828# The following way of writing the cache mishandles newlines in values,
36829# but we know of no workaround that is simple, portable, and efficient.
36830# So, don't put newlines in cache variables' values.
36831# Ultrix sh set writes to stderr and can't be redirected directly,
36832# and sets the high bit in the cache file unless we assign to the vars.
36833{
36834 (set) 2>&1 |
36835 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36836 *ac_space=\ *)
36837 # `set' does not quote correctly, so add quotes (double-quote
36838 # substitution turns \\\\ into \\, and sed turns \\ into \).
36839 sed -n \
ac1cb8d3
VS
36840 "s/'/'\\\\''/g;
36841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36842 ;;
36843 *)
36844 # `set' quotes correctly as required by POSIX, so do not add quotes.
36845 sed -n \
ac1cb8d3 36846 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36847 ;;
36848 esac;
36849} |
36850 sed '
36851 t clear
36852 : clear
36853 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36854 t end
36855 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36856 : end' >>confcache
36857if diff $cache_file confcache >/dev/null 2>&1; then :; else
36858 if test -w $cache_file; then
36859 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36860 cat confcache >$cache_file
36861 else
36862 echo "not updating unwritable cache $cache_file"
36863 fi
36864fi
36865rm -f confcache
36866
36867
a848cd7e
SC
36868if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36869
36870
36871 THREADS_LINK=
36872 THREADS_CFLAGS=
36873
36874 if test "$wxUSE_THREADS" = "yes" ; then
36875 if test "$USE_BEOS" = 1; then
36876 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36877echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36878 wxUSE_THREADS="no"
36879 fi
36880 fi
36881
36882 if test "$wxUSE_THREADS" = "yes" ; then
36883
36884
36885 THREAD_OPTS="-pthread"
36886 case "${host}" in
36887 *-*-solaris2* | *-*-sunos4* )
36888 if test "x$GCC" = "xyes"; then
36889 THREAD_OPTS="-pthreads $THREAD_OPTS"
36890 else
36891 THREAD_OPTS="-mt $THREAD_OPTS"
36892 fi
36893 ;;
36894 *-*-freebsd*)
36895 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36896 ;;
36897 *-*-darwin* | *-*-cygwin* )
36898 THREAD_OPTS=""
36899 ;;
36900 *-*-aix*)
36901 THREAD_OPTS="pthreads"
36902 ;;
36903 *-hp-hpux* )
00421666
MW
36904 if test "x$GCC" = "xyes"; then
36905 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36906 THREAD_OPTS=""
36907 else
0093c2fc 36908 THREAD_OPTS="-mt"
a848cd7e
SC
36909 fi
36910 ;;
36911
36912 *-*-irix* )
36913 if test "x$GCC" = "xyes"; then
36914 THREAD_OPTS=""
36915 fi
36916 ;;
36917
36918 *-*-*UnixWare*)
36919 if test "x$GCC" != "xyes"; then
36920 THREAD_OPTS="-Ethread"
36921 fi
36922 ;;
36923 esac
36924
36925 THREAD_OPTS="$THREAD_OPTS pthread none"
36926
36927 THREADS_OK=no
36928 for flag in $THREAD_OPTS; do
36929 case $flag in
36930 none)
36931 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36932echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36933 ;;
36934
36935 -*)
36936 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36937echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36938 THREADS_CFLAGS="$flag"
36939 ;;
36940
36941 *)
36942 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36943echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36944 THREADS_LINK="-l$flag"
36945 ;;
36946 esac
36947
36948 save_LIBS="$LIBS"
36949 save_CFLAGS="$CFLAGS"
36950 LIBS="$THREADS_LINK $LIBS"
36951 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36952
36953 cat >conftest.$ac_ext <<_ACEOF
36954/* confdefs.h. */
36955_ACEOF
36956cat confdefs.h >>conftest.$ac_ext
36957cat >>conftest.$ac_ext <<_ACEOF
36958/* end confdefs.h. */
36959#include <pthread.h>
36960int
36961main ()
36962{
36963pthread_create(0,0,0,0);
36964 ;
36965 return 0;
36966}
36967_ACEOF
36968rm -f conftest.$ac_objext conftest$ac_exeext
36969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36970 (eval $ac_link) 2>conftest.er1
a848cd7e 36971 ac_status=$?
ac1cb8d3
VS
36972 grep -v '^ *+' conftest.er1 >conftest.err
36973 rm -f conftest.er1
36974 cat conftest.err >&5
a848cd7e
SC
36975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36976 (exit $ac_status); } &&
3565d135
RR
36977 { ac_try='test -z "$ac_c_werror_flag"
36978 || test ! -s conftest.err'
ac1cb8d3
VS
36979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36980 (eval $ac_try) 2>&5
36981 ac_status=$?
36982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983 (exit $ac_status); }; } &&
36984 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36986 (eval $ac_try) 2>&5
36987 ac_status=$?
36988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36989 (exit $ac_status); }; }; then
36990 THREADS_OK=yes
36991else
36992 echo "$as_me: failed program was:" >&5
36993sed 's/^/| /' conftest.$ac_ext >&5
36994
36995fi
ac1cb8d3
VS
36996rm -f conftest.err conftest.$ac_objext \
36997 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36998
36999 LIBS="$save_LIBS"
37000 CFLAGS="$save_CFLAGS"
37001
37002 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37003echo "${ECHO_T}$THREADS_OK" >&6
37004 if test "x$THREADS_OK" = "xyes"; then
37005 break;
37006 fi
37007
37008 THREADS_LINK=""
37009 THREADS_CFLAGS=""
37010 done
37011
37012 if test "x$THREADS_OK" != "xyes"; then
37013 wxUSE_THREADS=no
37014 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37015echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37016 else
37017 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
37018 LIBS="$THREADS_LINK $LIBS"
37019
37020 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37021echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37022 flag=no
37023 case "${host}" in
37024 *-aix*)
37025 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37026 flag="-D_THREAD_SAFE"
37027 ;;
37028 *-freebsd*)
37029 flag="-D_THREAD_SAFE"
37030 ;;
37031 *-hp-hpux* )
37032 flag="-D_REENTRANT"
37033 if test "x$GCC" != "xyes"; then
37034 flag="$flag -D_RWSTD_MULTI_THREAD"
37035 fi
37036 ;;
37037 *solaris* | alpha*-osf*)
37038 flag="-D_REENTRANT"
37039 ;;
37040 esac
37041 echo "$as_me:$LINENO: result: ${flag}" >&5
37042echo "${ECHO_T}${flag}" >&6
37043 if test "x$flag" != xno; then
37044 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
37045 fi
37046
5ff751d6 37047 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
37048 fi
37049 fi
37050
37051 if test "$wxUSE_THREADS" = "yes" ; then
37052
37053for ac_func in thr_setconcurrency
37054do
37055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37056echo "$as_me:$LINENO: checking for $ac_func" >&5
37057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37058if eval "test \"\${$as_ac_var+set}\" = set"; then
37059 echo $ECHO_N "(cached) $ECHO_C" >&6
37060else
37061 cat >conftest.$ac_ext <<_ACEOF
37062/* confdefs.h. */
37063_ACEOF
37064cat confdefs.h >>conftest.$ac_ext
37065cat >>conftest.$ac_ext <<_ACEOF
37066/* end confdefs.h. */
ac1cb8d3
VS
37067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37069#define $ac_func innocuous_$ac_func
37070
a848cd7e
SC
37071/* System header to define __stub macros and hopefully few prototypes,
37072 which can conflict with char $ac_func (); below.
37073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37074 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37075
a848cd7e
SC
37076#ifdef __STDC__
37077# include <limits.h>
37078#else
37079# include <assert.h>
37080#endif
ac1cb8d3
VS
37081
37082#undef $ac_func
37083
a848cd7e
SC
37084/* Override any gcc2 internal prototype to avoid an error. */
37085#ifdef __cplusplus
37086extern "C"
37087{
37088#endif
37089/* We use char because int might match the return type of a gcc2
37090 builtin and then its argument prototype would still apply. */
37091char $ac_func ();
37092/* The GNU C library defines this for functions which it implements
37093 to always fail with ENOSYS. Some functions are actually named
37094 something starting with __ and the normal name is an alias. */
37095#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37096choke me
37097#else
37098char (*f) () = $ac_func;
37099#endif
37100#ifdef __cplusplus
37101}
37102#endif
37103
37104int
37105main ()
37106{
37107return f != $ac_func;
37108 ;
37109 return 0;
37110}
37111_ACEOF
37112rm -f conftest.$ac_objext conftest$ac_exeext
37113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37114 (eval $ac_link) 2>conftest.er1
a848cd7e 37115 ac_status=$?
ac1cb8d3
VS
37116 grep -v '^ *+' conftest.er1 >conftest.err
37117 rm -f conftest.er1
37118 cat conftest.err >&5
a848cd7e
SC
37119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37120 (exit $ac_status); } &&
3565d135
RR
37121 { ac_try='test -z "$ac_c_werror_flag"
37122 || test ! -s conftest.err'
ac1cb8d3
VS
37123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37124 (eval $ac_try) 2>&5
37125 ac_status=$?
37126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127 (exit $ac_status); }; } &&
37128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37130 (eval $ac_try) 2>&5
37131 ac_status=$?
37132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37133 (exit $ac_status); }; }; then
37134 eval "$as_ac_var=yes"
37135else
37136 echo "$as_me: failed program was:" >&5
37137sed 's/^/| /' conftest.$ac_ext >&5
37138
37139eval "$as_ac_var=no"
37140fi
ac1cb8d3
VS
37141rm -f conftest.err conftest.$ac_objext \
37142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37143fi
37144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37145echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37146if test `eval echo '${'$as_ac_var'}'` = yes; then
37147 cat >>confdefs.h <<_ACEOF
37148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37149_ACEOF
37150
37151fi
37152done
37153
37154
6ebeb4c7
VZ
37155 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37156echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37157if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37158 echo $ECHO_N "(cached) $ECHO_C" >&6
37159else
37160
37161 cat >conftest.$ac_ext <<_ACEOF
37162/* confdefs.h. */
37163_ACEOF
37164cat confdefs.h >>conftest.$ac_ext
37165cat >>conftest.$ac_ext <<_ACEOF
37166/* end confdefs.h. */
37167#include <pthread.h>
37168 void ThreadCleanupFunc(void *p);
37169
37170int
37171main ()
37172{
37173
37174 void *p;
37175 pthread_cleanup_push(ThreadCleanupFunc, p);
37176 pthread_cleanup_pop(0);
37177
37178 ;
37179 return 0;
37180}
37181_ACEOF
37182rm -f conftest.$ac_objext
37183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37184 (eval $ac_compile) 2>conftest.er1
37185 ac_status=$?
37186 grep -v '^ *+' conftest.er1 >conftest.err
37187 rm -f conftest.er1
37188 cat conftest.err >&5
37189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190 (exit $ac_status); } &&
3565d135
RR
37191 { ac_try='test -z "$ac_c_werror_flag"
37192 || test ! -s conftest.err'
6ebeb4c7
VZ
37193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37194 (eval $ac_try) 2>&5
37195 ac_status=$?
37196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37197 (exit $ac_status); }; } &&
37198 { ac_try='test -s conftest.$ac_objext'
37199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37200 (eval $ac_try) 2>&5
37201 ac_status=$?
37202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37203 (exit $ac_status); }; }; then
37204
37205 wx_cv_func_pthread_cleanup=yes
37206
37207else
37208 echo "$as_me: failed program was:" >&5
37209sed 's/^/| /' conftest.$ac_ext >&5
37210
37211
37212 wx_cv_func_pthread_cleanup=no
37213
37214
37215fi
37216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37217
37218fi
37219echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37220echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37221 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37222 cat >>confdefs.h <<\_ACEOF
37223#define wxHAVE_PTHREAD_CLEANUP 1
37224_ACEOF
37225
37226 fi
37227
a848cd7e
SC
37228
37229for ac_header in sched.h
37230do
37231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37232if eval "test \"\${$as_ac_Header+set}\" = set"; then
37233 echo "$as_me:$LINENO: checking for $ac_header" >&5
37234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37235if eval "test \"\${$as_ac_Header+set}\" = set"; then
37236 echo $ECHO_N "(cached) $ECHO_C" >&6
37237fi
37238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37240else
37241 # Is the header compilable?
37242echo "$as_me:$LINENO: checking $ac_header usability" >&5
37243echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37244cat >conftest.$ac_ext <<_ACEOF
37245/* confdefs.h. */
37246_ACEOF
37247cat confdefs.h >>conftest.$ac_ext
37248cat >>conftest.$ac_ext <<_ACEOF
37249/* end confdefs.h. */
37250$ac_includes_default
37251#include <$ac_header>
37252_ACEOF
37253rm -f conftest.$ac_objext
37254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37255 (eval $ac_compile) 2>conftest.er1
a848cd7e 37256 ac_status=$?
ac1cb8d3
VS
37257 grep -v '^ *+' conftest.er1 >conftest.err
37258 rm -f conftest.er1
37259 cat conftest.err >&5
a848cd7e
SC
37260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261 (exit $ac_status); } &&
3565d135
RR
37262 { ac_try='test -z "$ac_c_werror_flag"
37263 || test ! -s conftest.err'
ac1cb8d3
VS
37264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37265 (eval $ac_try) 2>&5
37266 ac_status=$?
37267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268 (exit $ac_status); }; } &&
37269 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37271 (eval $ac_try) 2>&5
37272 ac_status=$?
37273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274 (exit $ac_status); }; }; then
37275 ac_header_compiler=yes
37276else
37277 echo "$as_me: failed program was:" >&5
37278sed 's/^/| /' conftest.$ac_ext >&5
37279
37280ac_header_compiler=no
37281fi
ac1cb8d3 37282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37283echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37284echo "${ECHO_T}$ac_header_compiler" >&6
37285
37286# Is the header present?
37287echo "$as_me:$LINENO: checking $ac_header presence" >&5
37288echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37289cat >conftest.$ac_ext <<_ACEOF
37290/* confdefs.h. */
37291_ACEOF
37292cat confdefs.h >>conftest.$ac_ext
37293cat >>conftest.$ac_ext <<_ACEOF
37294/* end confdefs.h. */
37295#include <$ac_header>
37296_ACEOF
37297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37299 ac_status=$?
37300 grep -v '^ *+' conftest.er1 >conftest.err
37301 rm -f conftest.er1
37302 cat conftest.err >&5
37303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37304 (exit $ac_status); } >/dev/null; then
37305 if test -s conftest.err; then
37306 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37308 else
37309 ac_cpp_err=
37310 fi
37311else
37312 ac_cpp_err=yes
37313fi
37314if test -z "$ac_cpp_err"; then
37315 ac_header_preproc=yes
37316else
37317 echo "$as_me: failed program was:" >&5
37318sed 's/^/| /' conftest.$ac_ext >&5
37319
37320 ac_header_preproc=no
37321fi
37322rm -f conftest.err conftest.$ac_ext
37323echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37324echo "${ECHO_T}$ac_header_preproc" >&6
37325
37326# So? What about this header?
ac1cb8d3
VS
37327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37328 yes:no: )
a848cd7e
SC
37329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37330echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37332echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37333 ac_header_preproc=yes
a848cd7e 37334 ;;
ac1cb8d3 37335 no:yes:* )
a848cd7e
SC
37336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37339echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37341echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37343echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37345echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37347echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37348 (
37349 cat <<\_ASBOX
ac1cb8d3
VS
37350## ----------------------------------------- ##
37351## Report this to wx-dev@lists.wxwidgets.org ##
37352## ----------------------------------------- ##
a848cd7e
SC
37353_ASBOX
37354 ) |
37355 sed "s/^/$as_me: WARNING: /" >&2
37356 ;;
37357esac
37358echo "$as_me:$LINENO: checking for $ac_header" >&5
37359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37360if eval "test \"\${$as_ac_Header+set}\" = set"; then
37361 echo $ECHO_N "(cached) $ECHO_C" >&6
37362else
ac1cb8d3 37363 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37364fi
37365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37367
37368fi
37369if test `eval echo '${'$as_ac_Header'}'` = yes; then
37370 cat >>confdefs.h <<_ACEOF
37371#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37372_ACEOF
37373
37374fi
37375
37376done
37377
37378 if test "$ac_cv_header_sched_h" = "yes"; then
37379 echo "$as_me:$LINENO: checking for sched_yield" >&5
37380echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37381if test "${ac_cv_func_sched_yield+set}" = set; then
37382 echo $ECHO_N "(cached) $ECHO_C" >&6
37383else
37384 cat >conftest.$ac_ext <<_ACEOF
37385/* confdefs.h. */
37386_ACEOF
37387cat confdefs.h >>conftest.$ac_ext
37388cat >>conftest.$ac_ext <<_ACEOF
37389/* end confdefs.h. */
ac1cb8d3
VS
37390/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37392#define sched_yield innocuous_sched_yield
37393
a848cd7e
SC
37394/* System header to define __stub macros and hopefully few prototypes,
37395 which can conflict with char sched_yield (); below.
37396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37397 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37398
a848cd7e
SC
37399#ifdef __STDC__
37400# include <limits.h>
37401#else
37402# include <assert.h>
37403#endif
ac1cb8d3
VS
37404
37405#undef sched_yield
37406
a848cd7e
SC
37407/* Override any gcc2 internal prototype to avoid an error. */
37408#ifdef __cplusplus
37409extern "C"
37410{
37411#endif
37412/* We use char because int might match the return type of a gcc2
37413 builtin and then its argument prototype would still apply. */
37414char sched_yield ();
37415/* The GNU C library defines this for functions which it implements
37416 to always fail with ENOSYS. Some functions are actually named
37417 something starting with __ and the normal name is an alias. */
37418#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37419choke me
37420#else
37421char (*f) () = sched_yield;
37422#endif
37423#ifdef __cplusplus
37424}
37425#endif
37426
37427int
37428main ()
37429{
37430return f != sched_yield;
37431 ;
37432 return 0;
37433}
37434_ACEOF
37435rm -f conftest.$ac_objext conftest$ac_exeext
37436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37437 (eval $ac_link) 2>conftest.er1
a848cd7e 37438 ac_status=$?
ac1cb8d3
VS
37439 grep -v '^ *+' conftest.er1 >conftest.err
37440 rm -f conftest.er1
37441 cat conftest.err >&5
a848cd7e
SC
37442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443 (exit $ac_status); } &&
3565d135
RR
37444 { ac_try='test -z "$ac_c_werror_flag"
37445 || test ! -s conftest.err'
ac1cb8d3
VS
37446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37447 (eval $ac_try) 2>&5
37448 ac_status=$?
37449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37450 (exit $ac_status); }; } &&
37451 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37453 (eval $ac_try) 2>&5
37454 ac_status=$?
37455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37456 (exit $ac_status); }; }; then
37457 ac_cv_func_sched_yield=yes
37458else
37459 echo "$as_me: failed program was:" >&5
37460sed 's/^/| /' conftest.$ac_ext >&5
37461
37462ac_cv_func_sched_yield=no
37463fi
ac1cb8d3
VS
37464rm -f conftest.err conftest.$ac_objext \
37465 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37466fi
37467echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37468echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37469if test $ac_cv_func_sched_yield = yes; then
37470 cat >>confdefs.h <<\_ACEOF
37471#define HAVE_SCHED_YIELD 1
37472_ACEOF
37473
37474else
37475
37476 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37477echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37478if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37479 echo $ECHO_N "(cached) $ECHO_C" >&6
37480else
37481 ac_check_lib_save_LIBS=$LIBS
37482LIBS="-lposix4 $LIBS"
37483cat >conftest.$ac_ext <<_ACEOF
37484/* confdefs.h. */
37485_ACEOF
37486cat confdefs.h >>conftest.$ac_ext
37487cat >>conftest.$ac_ext <<_ACEOF
37488/* end confdefs.h. */
37489
37490/* Override any gcc2 internal prototype to avoid an error. */
37491#ifdef __cplusplus
37492extern "C"
37493#endif
37494/* We use char because int might match the return type of a gcc2
37495 builtin and then its argument prototype would still apply. */
37496char sched_yield ();
37497int
37498main ()
37499{
37500sched_yield ();
37501 ;
37502 return 0;
37503}
37504_ACEOF
37505rm -f conftest.$ac_objext conftest$ac_exeext
37506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37507 (eval $ac_link) 2>conftest.er1
a848cd7e 37508 ac_status=$?
ac1cb8d3
VS
37509 grep -v '^ *+' conftest.er1 >conftest.err
37510 rm -f conftest.er1
37511 cat conftest.err >&5
a848cd7e
SC
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); } &&
3565d135
RR
37514 { ac_try='test -z "$ac_c_werror_flag"
37515 || test ! -s conftest.err'
ac1cb8d3
VS
37516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37517 (eval $ac_try) 2>&5
37518 ac_status=$?
37519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37520 (exit $ac_status); }; } &&
37521 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37523 (eval $ac_try) 2>&5
37524 ac_status=$?
37525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37526 (exit $ac_status); }; }; then
37527 ac_cv_lib_posix4_sched_yield=yes
37528else
37529 echo "$as_me: failed program was:" >&5
37530sed 's/^/| /' conftest.$ac_ext >&5
37531
37532ac_cv_lib_posix4_sched_yield=no
37533fi
ac1cb8d3
VS
37534rm -f conftest.err conftest.$ac_objext \
37535 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37536LIBS=$ac_check_lib_save_LIBS
37537fi
37538echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37539echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37540if test $ac_cv_lib_posix4_sched_yield = yes; then
37541 cat >>confdefs.h <<\_ACEOF
37542#define HAVE_SCHED_YIELD 1
37543_ACEOF
37544 POSIX4_LINK=" -lposix4"
37545else
37546 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37547echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37548
37549fi
37550
37551
37552
37553fi
37554
37555 fi
37556
37557 HAVE_PRIOR_FUNCS=0
37558 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37559echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37560if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37561 echo $ECHO_N "(cached) $ECHO_C" >&6
37562else
37563 cat >conftest.$ac_ext <<_ACEOF
37564/* confdefs.h. */
37565_ACEOF
37566cat confdefs.h >>conftest.$ac_ext
37567cat >>conftest.$ac_ext <<_ACEOF
37568/* end confdefs.h. */
ac1cb8d3
VS
37569/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37571#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37572
a848cd7e
SC
37573/* System header to define __stub macros and hopefully few prototypes,
37574 which can conflict with char pthread_attr_getschedpolicy (); below.
37575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37576 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37577
a848cd7e
SC
37578#ifdef __STDC__
37579# include <limits.h>
37580#else
37581# include <assert.h>
37582#endif
ac1cb8d3
VS
37583
37584#undef pthread_attr_getschedpolicy
37585
a848cd7e
SC
37586/* Override any gcc2 internal prototype to avoid an error. */
37587#ifdef __cplusplus
37588extern "C"
37589{
37590#endif
37591/* We use char because int might match the return type of a gcc2
37592 builtin and then its argument prototype would still apply. */
37593char pthread_attr_getschedpolicy ();
37594/* The GNU C library defines this for functions which it implements
37595 to always fail with ENOSYS. Some functions are actually named
37596 something starting with __ and the normal name is an alias. */
37597#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37598choke me
37599#else
37600char (*f) () = pthread_attr_getschedpolicy;
37601#endif
37602#ifdef __cplusplus
37603}
37604#endif
37605
37606int
37607main ()
37608{
37609return f != pthread_attr_getschedpolicy;
37610 ;
37611 return 0;
37612}
37613_ACEOF
37614rm -f conftest.$ac_objext conftest$ac_exeext
37615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37616 (eval $ac_link) 2>conftest.er1
a848cd7e 37617 ac_status=$?
ac1cb8d3
VS
37618 grep -v '^ *+' conftest.er1 >conftest.err
37619 rm -f conftest.er1
37620 cat conftest.err >&5
a848cd7e
SC
37621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622 (exit $ac_status); } &&
3565d135
RR
37623 { ac_try='test -z "$ac_c_werror_flag"
37624 || test ! -s conftest.err'
ac1cb8d3
VS
37625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37626 (eval $ac_try) 2>&5
37627 ac_status=$?
37628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37629 (exit $ac_status); }; } &&
37630 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37632 (eval $ac_try) 2>&5
37633 ac_status=$?
37634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37635 (exit $ac_status); }; }; then
37636 ac_cv_func_pthread_attr_getschedpolicy=yes
37637else
37638 echo "$as_me: failed program was:" >&5
37639sed 's/^/| /' conftest.$ac_ext >&5
37640
37641ac_cv_func_pthread_attr_getschedpolicy=no
37642fi
ac1cb8d3
VS
37643rm -f conftest.err conftest.$ac_objext \
37644 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37645fi
37646echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37647echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37648if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37649 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37650echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37651if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37652 echo $ECHO_N "(cached) $ECHO_C" >&6
37653else
37654 cat >conftest.$ac_ext <<_ACEOF
37655/* confdefs.h. */
37656_ACEOF
37657cat confdefs.h >>conftest.$ac_ext
37658cat >>conftest.$ac_ext <<_ACEOF
37659/* end confdefs.h. */
ac1cb8d3
VS
37660/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37662#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37663
a848cd7e
SC
37664/* System header to define __stub macros and hopefully few prototypes,
37665 which can conflict with char pthread_attr_setschedparam (); below.
37666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37667 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37668
a848cd7e
SC
37669#ifdef __STDC__
37670# include <limits.h>
37671#else
37672# include <assert.h>
37673#endif
ac1cb8d3
VS
37674
37675#undef pthread_attr_setschedparam
37676
a848cd7e
SC
37677/* Override any gcc2 internal prototype to avoid an error. */
37678#ifdef __cplusplus
37679extern "C"
37680{
37681#endif
37682/* We use char because int might match the return type of a gcc2
37683 builtin and then its argument prototype would still apply. */
37684char pthread_attr_setschedparam ();
37685/* The GNU C library defines this for functions which it implements
37686 to always fail with ENOSYS. Some functions are actually named
37687 something starting with __ and the normal name is an alias. */
37688#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37689choke me
37690#else
37691char (*f) () = pthread_attr_setschedparam;
37692#endif
37693#ifdef __cplusplus
37694}
37695#endif
37696
37697int
37698main ()
37699{
37700return f != pthread_attr_setschedparam;
37701 ;
37702 return 0;
37703}
37704_ACEOF
37705rm -f conftest.$ac_objext conftest$ac_exeext
37706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37707 (eval $ac_link) 2>conftest.er1
a848cd7e 37708 ac_status=$?
ac1cb8d3
VS
37709 grep -v '^ *+' conftest.er1 >conftest.err
37710 rm -f conftest.er1
37711 cat conftest.err >&5
a848cd7e
SC
37712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37713 (exit $ac_status); } &&
3565d135
RR
37714 { ac_try='test -z "$ac_c_werror_flag"
37715 || test ! -s conftest.err'
ac1cb8d3
VS
37716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37717 (eval $ac_try) 2>&5
37718 ac_status=$?
37719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720 (exit $ac_status); }; } &&
37721 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37723 (eval $ac_try) 2>&5
37724 ac_status=$?
37725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726 (exit $ac_status); }; }; then
37727 ac_cv_func_pthread_attr_setschedparam=yes
37728else
37729 echo "$as_me: failed program was:" >&5
37730sed 's/^/| /' conftest.$ac_ext >&5
37731
37732ac_cv_func_pthread_attr_setschedparam=no
37733fi
ac1cb8d3
VS
37734rm -f conftest.err conftest.$ac_objext \
37735 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37736fi
37737echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37738echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37739if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37740 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37741echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37742if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37743 echo $ECHO_N "(cached) $ECHO_C" >&6
37744else
37745 cat >conftest.$ac_ext <<_ACEOF
37746/* confdefs.h. */
37747_ACEOF
37748cat confdefs.h >>conftest.$ac_ext
37749cat >>conftest.$ac_ext <<_ACEOF
37750/* end confdefs.h. */
ac1cb8d3
VS
37751/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37753#define sched_get_priority_max innocuous_sched_get_priority_max
37754
a848cd7e
SC
37755/* System header to define __stub macros and hopefully few prototypes,
37756 which can conflict with char sched_get_priority_max (); below.
37757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37758 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37759
a848cd7e
SC
37760#ifdef __STDC__
37761# include <limits.h>
37762#else
37763# include <assert.h>
37764#endif
ac1cb8d3
VS
37765
37766#undef sched_get_priority_max
37767
a848cd7e
SC
37768/* Override any gcc2 internal prototype to avoid an error. */
37769#ifdef __cplusplus
37770extern "C"
37771{
37772#endif
37773/* We use char because int might match the return type of a gcc2
37774 builtin and then its argument prototype would still apply. */
37775char sched_get_priority_max ();
37776/* The GNU C library defines this for functions which it implements
37777 to always fail with ENOSYS. Some functions are actually named
37778 something starting with __ and the normal name is an alias. */
37779#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37780choke me
37781#else
37782char (*f) () = sched_get_priority_max;
37783#endif
37784#ifdef __cplusplus
37785}
37786#endif
37787
37788int
37789main ()
37790{
37791return f != sched_get_priority_max;
37792 ;
37793 return 0;
37794}
37795_ACEOF
37796rm -f conftest.$ac_objext conftest$ac_exeext
37797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37798 (eval $ac_link) 2>conftest.er1
a848cd7e 37799 ac_status=$?
ac1cb8d3
VS
37800 grep -v '^ *+' conftest.er1 >conftest.err
37801 rm -f conftest.er1
37802 cat conftest.err >&5
a848cd7e
SC
37803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804 (exit $ac_status); } &&
3565d135
RR
37805 { ac_try='test -z "$ac_c_werror_flag"
37806 || test ! -s conftest.err'
ac1cb8d3
VS
37807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37808 (eval $ac_try) 2>&5
37809 ac_status=$?
37810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37811 (exit $ac_status); }; } &&
37812 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37814 (eval $ac_try) 2>&5
37815 ac_status=$?
37816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37817 (exit $ac_status); }; }; then
37818 ac_cv_func_sched_get_priority_max=yes
37819else
37820 echo "$as_me: failed program was:" >&5
37821sed 's/^/| /' conftest.$ac_ext >&5
37822
37823ac_cv_func_sched_get_priority_max=no
37824fi
ac1cb8d3
VS
37825rm -f conftest.err conftest.$ac_objext \
37826 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37827fi
37828echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37829echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37830if test $ac_cv_func_sched_get_priority_max = yes; then
37831 HAVE_PRIOR_FUNCS=1
37832else
37833 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37834echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37835if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37836 echo $ECHO_N "(cached) $ECHO_C" >&6
37837else
37838 ac_check_lib_save_LIBS=$LIBS
37839LIBS="-lposix4 $LIBS"
37840cat >conftest.$ac_ext <<_ACEOF
37841/* confdefs.h. */
37842_ACEOF
37843cat confdefs.h >>conftest.$ac_ext
37844cat >>conftest.$ac_ext <<_ACEOF
37845/* end confdefs.h. */
37846
37847/* Override any gcc2 internal prototype to avoid an error. */
37848#ifdef __cplusplus
37849extern "C"
37850#endif
37851/* We use char because int might match the return type of a gcc2
37852 builtin and then its argument prototype would still apply. */
37853char sched_get_priority_max ();
37854int
37855main ()
37856{
37857sched_get_priority_max ();
37858 ;
37859 return 0;
37860}
37861_ACEOF
37862rm -f conftest.$ac_objext conftest$ac_exeext
37863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37864 (eval $ac_link) 2>conftest.er1
a848cd7e 37865 ac_status=$?
ac1cb8d3
VS
37866 grep -v '^ *+' conftest.er1 >conftest.err
37867 rm -f conftest.er1
37868 cat conftest.err >&5
a848cd7e
SC
37869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37870 (exit $ac_status); } &&
3565d135
RR
37871 { ac_try='test -z "$ac_c_werror_flag"
37872 || test ! -s conftest.err'
ac1cb8d3
VS
37873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37874 (eval $ac_try) 2>&5
37875 ac_status=$?
37876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37877 (exit $ac_status); }; } &&
37878 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37880 (eval $ac_try) 2>&5
37881 ac_status=$?
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883 (exit $ac_status); }; }; then
37884 ac_cv_lib_posix4_sched_get_priority_max=yes
37885else
37886 echo "$as_me: failed program was:" >&5
37887sed 's/^/| /' conftest.$ac_ext >&5
37888
37889ac_cv_lib_posix4_sched_get_priority_max=no
37890fi
ac1cb8d3
VS
37891rm -f conftest.err conftest.$ac_objext \
37892 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37893LIBS=$ac_check_lib_save_LIBS
37894fi
37895echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37896echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37897if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37898
37899 HAVE_PRIOR_FUNCS=1
37900 POSIX4_LINK=" -lposix4"
37901
37902fi
37903
37904
37905fi
37906
37907
37908fi
37909
37910
37911fi
37912
37913
37914 if test "$HAVE_PRIOR_FUNCS" = 1; then
37915 cat >>confdefs.h <<\_ACEOF
37916#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37917_ACEOF
37918
37919 else
37920 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37921echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37922 fi
37923
37924 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37925echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37926if test "${ac_cv_func_pthread_cancel+set}" = set; then
37927 echo $ECHO_N "(cached) $ECHO_C" >&6
37928else
37929 cat >conftest.$ac_ext <<_ACEOF
37930/* confdefs.h. */
37931_ACEOF
37932cat confdefs.h >>conftest.$ac_ext
37933cat >>conftest.$ac_ext <<_ACEOF
37934/* end confdefs.h. */
ac1cb8d3
VS
37935/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37937#define pthread_cancel innocuous_pthread_cancel
37938
a848cd7e
SC
37939/* System header to define __stub macros and hopefully few prototypes,
37940 which can conflict with char pthread_cancel (); below.
37941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37942 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37943
a848cd7e
SC
37944#ifdef __STDC__
37945# include <limits.h>
37946#else
37947# include <assert.h>
37948#endif
ac1cb8d3
VS
37949
37950#undef pthread_cancel
37951
a848cd7e
SC
37952/* Override any gcc2 internal prototype to avoid an error. */
37953#ifdef __cplusplus
37954extern "C"
37955{
37956#endif
37957/* We use char because int might match the return type of a gcc2
37958 builtin and then its argument prototype would still apply. */
37959char pthread_cancel ();
37960/* The GNU C library defines this for functions which it implements
37961 to always fail with ENOSYS. Some functions are actually named
37962 something starting with __ and the normal name is an alias. */
37963#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37964choke me
37965#else
37966char (*f) () = pthread_cancel;
37967#endif
37968#ifdef __cplusplus
37969}
37970#endif
37971
37972int
37973main ()
37974{
37975return f != pthread_cancel;
37976 ;
37977 return 0;
37978}
37979_ACEOF
37980rm -f conftest.$ac_objext conftest$ac_exeext
37981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37982 (eval $ac_link) 2>conftest.er1
a848cd7e 37983 ac_status=$?
ac1cb8d3
VS
37984 grep -v '^ *+' conftest.er1 >conftest.err
37985 rm -f conftest.er1
37986 cat conftest.err >&5
a848cd7e
SC
37987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37988 (exit $ac_status); } &&
3565d135
RR
37989 { ac_try='test -z "$ac_c_werror_flag"
37990 || test ! -s conftest.err'
ac1cb8d3
VS
37991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37992 (eval $ac_try) 2>&5
37993 ac_status=$?
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); }; } &&
37996 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37998 (eval $ac_try) 2>&5
37999 ac_status=$?
38000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001 (exit $ac_status); }; }; then
38002 ac_cv_func_pthread_cancel=yes
38003else
38004 echo "$as_me: failed program was:" >&5
38005sed 's/^/| /' conftest.$ac_ext >&5
38006
38007ac_cv_func_pthread_cancel=no
38008fi
ac1cb8d3
VS
38009rm -f conftest.err conftest.$ac_objext \
38010 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38011fi
38012echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38013echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38014if test $ac_cv_func_pthread_cancel = yes; then
38015 cat >>confdefs.h <<\_ACEOF
38016#define HAVE_PTHREAD_CANCEL 1
38017_ACEOF
38018
38019else
38020 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38021echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38022fi
38023
38024
abc736fd
MW
38025 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38026echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38027if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38028 echo $ECHO_N "(cached) $ECHO_C" >&6
38029else
38030 cat >conftest.$ac_ext <<_ACEOF
38031/* confdefs.h. */
38032_ACEOF
38033cat confdefs.h >>conftest.$ac_ext
38034cat >>conftest.$ac_ext <<_ACEOF
38035/* end confdefs.h. */
38036/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38038#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38039
38040/* System header to define __stub macros and hopefully few prototypes,
38041 which can conflict with char pthread_attr_setstacksize (); below.
38042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38043 <limits.h> exists even on freestanding compilers. */
38044
38045#ifdef __STDC__
38046# include <limits.h>
38047#else
38048# include <assert.h>
38049#endif
38050
38051#undef pthread_attr_setstacksize
38052
38053/* Override any gcc2 internal prototype to avoid an error. */
38054#ifdef __cplusplus
38055extern "C"
38056{
38057#endif
38058/* We use char because int might match the return type of a gcc2
38059 builtin and then its argument prototype would still apply. */
38060char pthread_attr_setstacksize ();
38061/* The GNU C library defines this for functions which it implements
38062 to always fail with ENOSYS. Some functions are actually named
38063 something starting with __ and the normal name is an alias. */
38064#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38065choke me
38066#else
38067char (*f) () = pthread_attr_setstacksize;
38068#endif
38069#ifdef __cplusplus
38070}
38071#endif
38072
38073int
38074main ()
38075{
38076return f != pthread_attr_setstacksize;
38077 ;
38078 return 0;
38079}
38080_ACEOF
38081rm -f conftest.$ac_objext conftest$ac_exeext
38082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38083 (eval $ac_link) 2>conftest.er1
38084 ac_status=$?
38085 grep -v '^ *+' conftest.er1 >conftest.err
38086 rm -f conftest.er1
38087 cat conftest.err >&5
38088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38089 (exit $ac_status); } &&
3565d135
RR
38090 { ac_try='test -z "$ac_c_werror_flag"
38091 || test ! -s conftest.err'
abc736fd
MW
38092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38093 (eval $ac_try) 2>&5
38094 ac_status=$?
38095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38096 (exit $ac_status); }; } &&
38097 { ac_try='test -s conftest$ac_exeext'
38098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38099 (eval $ac_try) 2>&5
38100 ac_status=$?
38101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102 (exit $ac_status); }; }; then
38103 ac_cv_func_pthread_attr_setstacksize=yes
38104else
38105 echo "$as_me: failed program was:" >&5
38106sed 's/^/| /' conftest.$ac_ext >&5
38107
38108ac_cv_func_pthread_attr_setstacksize=no
38109fi
38110rm -f conftest.err conftest.$ac_objext \
38111 conftest$ac_exeext conftest.$ac_ext
38112fi
38113echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38114echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38115if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38116 cat >>confdefs.h <<\_ACEOF
38117#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38118_ACEOF
38119
38120fi
38121
a848cd7e
SC
38122
38123
38124 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38125echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38126if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38127 echo $ECHO_N "(cached) $ECHO_C" >&6
38128else
38129
38130 cat >conftest.$ac_ext <<_ACEOF
38131/* confdefs.h. */
38132_ACEOF
38133cat confdefs.h >>conftest.$ac_ext
38134cat >>conftest.$ac_ext <<_ACEOF
38135/* end confdefs.h. */
38136#include <pthread.h>
38137int
38138main ()
38139{
38140
38141 pthread_mutexattr_t attr;
38142 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38143
38144 ;
38145 return 0;
38146}
38147_ACEOF
38148rm -f conftest.$ac_objext
38149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38150 (eval $ac_compile) 2>conftest.er1
a848cd7e 38151 ac_status=$?
ac1cb8d3
VS
38152 grep -v '^ *+' conftest.er1 >conftest.err
38153 rm -f conftest.er1
38154 cat conftest.err >&5
a848cd7e
SC
38155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38156 (exit $ac_status); } &&
3565d135
RR
38157 { ac_try='test -z "$ac_c_werror_flag"
38158 || test ! -s conftest.err'
ac1cb8d3
VS
38159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38160 (eval $ac_try) 2>&5
38161 ac_status=$?
38162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38163 (exit $ac_status); }; } &&
38164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38166 (eval $ac_try) 2>&5
38167 ac_status=$?
38168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38169 (exit $ac_status); }; }; then
123dca7d 38170 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38171else
38172 echo "$as_me: failed program was:" >&5
38173sed 's/^/| /' conftest.$ac_ext >&5
38174
123dca7d 38175wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38176
38177fi
ac1cb8d3 38178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38179
38180fi
38181echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38182echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38183
38184 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38185 cat >>confdefs.h <<\_ACEOF
38186#define HAVE_PTHREAD_MUTEXATTR_T 1
38187_ACEOF
38188
123dca7d
VZ
38189
38190 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38191echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38192if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38193 echo $ECHO_N "(cached) $ECHO_C" >&6
38194else
38195
38196 cat >conftest.$ac_ext <<_ACEOF
38197/* confdefs.h. */
38198_ACEOF
38199cat confdefs.h >>conftest.$ac_ext
38200cat >>conftest.$ac_ext <<_ACEOF
38201/* end confdefs.h. */
38202#include <pthread.h>
38203int
38204main ()
38205{
38206
38207 pthread_mutexattr_t attr;
38208 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38209
38210 ;
38211 return 0;
38212}
38213_ACEOF
38214rm -f conftest.$ac_objext
38215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38216 (eval $ac_compile) 2>conftest.er1
38217 ac_status=$?
38218 grep -v '^ *+' conftest.er1 >conftest.err
38219 rm -f conftest.er1
38220 cat conftest.err >&5
38221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38222 (exit $ac_status); } &&
3565d135
RR
38223 { ac_try='test -z "$ac_c_werror_flag"
38224 || test ! -s conftest.err'
123dca7d
VZ
38225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38226 (eval $ac_try) 2>&5
38227 ac_status=$?
38228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38229 (exit $ac_status); }; } &&
38230 { ac_try='test -s conftest.$ac_objext'
38231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38232 (eval $ac_try) 2>&5
38233 ac_status=$?
38234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38235 (exit $ac_status); }; }; then
38236 wx_cv_func_pthread_mutexattr_settype_decl=yes
38237else
38238 echo "$as_me: failed program was:" >&5
38239sed 's/^/| /' conftest.$ac_ext >&5
38240
38241wx_cv_func_pthread_mutexattr_settype_decl=no
38242
38243fi
38244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38245
38246fi
38247echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38248echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38249 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38250 cat >>confdefs.h <<\_ACEOF
38251#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38252_ACEOF
38253
38254 fi
a848cd7e
SC
38255 else
38256 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38257echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38258if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38259 echo $ECHO_N "(cached) $ECHO_C" >&6
38260else
38261
38262 cat >conftest.$ac_ext <<_ACEOF
38263/* confdefs.h. */
38264_ACEOF
38265cat confdefs.h >>conftest.$ac_ext
38266cat >>conftest.$ac_ext <<_ACEOF
38267/* end confdefs.h. */
38268#include <pthread.h>
38269int
38270main ()
38271{
38272
38273 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38274
38275 ;
38276 return 0;
38277}
38278_ACEOF
38279rm -f conftest.$ac_objext
38280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38281 (eval $ac_compile) 2>conftest.er1
a848cd7e 38282 ac_status=$?
ac1cb8d3
VS
38283 grep -v '^ *+' conftest.er1 >conftest.err
38284 rm -f conftest.er1
38285 cat conftest.err >&5
a848cd7e
SC
38286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38287 (exit $ac_status); } &&
3565d135
RR
38288 { ac_try='test -z "$ac_c_werror_flag"
38289 || test ! -s conftest.err'
ac1cb8d3
VS
38290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38291 (eval $ac_try) 2>&5
38292 ac_status=$?
38293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294 (exit $ac_status); }; } &&
38295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38297 (eval $ac_try) 2>&5
38298 ac_status=$?
38299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38300 (exit $ac_status); }; }; then
38301
38302 wx_cv_type_pthread_rec_mutex_init=yes
38303
38304else
38305 echo "$as_me: failed program was:" >&5
38306sed 's/^/| /' conftest.$ac_ext >&5
38307
38308
38309 wx_cv_type_pthread_rec_mutex_init=no
38310
38311
38312fi
ac1cb8d3 38313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38314
38315fi
38316echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38317echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38318 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38319 cat >>confdefs.h <<\_ACEOF
38320#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38321_ACEOF
38322
38323 else
38324 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38325echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38326 fi
38327 fi
38328 fi
38329
38330else
38331 if test "$wxUSE_THREADS" = "yes" ; then
38332 case "${host}" in
38333 *-*-mingw32* )
38334 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38335echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38336if test "${wx_cv_cflags_mthread+set}" = set; then
38337 echo $ECHO_N "(cached) $ECHO_C" >&6
38338else
38339
38340 CFLAGS_OLD="$CFLAGS"
c92ad099 38341 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
38342 cat >conftest.$ac_ext <<_ACEOF
38343/* confdefs.h. */
38344_ACEOF
38345cat confdefs.h >>conftest.$ac_ext
38346cat >>conftest.$ac_ext <<_ACEOF
38347/* end confdefs.h. */
38348
38349int
38350main ()
38351{
38352
38353 ;
38354 return 0;
38355}
38356_ACEOF
38357rm -f conftest.$ac_objext
38358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38359 (eval $ac_compile) 2>conftest.er1
a848cd7e 38360 ac_status=$?
ac1cb8d3
VS
38361 grep -v '^ *+' conftest.er1 >conftest.err
38362 rm -f conftest.er1
38363 cat conftest.err >&5
a848cd7e
SC
38364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38365 (exit $ac_status); } &&
3565d135
RR
38366 { ac_try='test -z "$ac_c_werror_flag"
38367 || test ! -s conftest.err'
ac1cb8d3
VS
38368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38369 (eval $ac_try) 2>&5
38370 ac_status=$?
38371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372 (exit $ac_status); }; } &&
38373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38375 (eval $ac_try) 2>&5
38376 ac_status=$?
38377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38378 (exit $ac_status); }; }; then
38379 wx_cv_cflags_mthread=yes
38380else
38381 echo "$as_me: failed program was:" >&5
38382sed 's/^/| /' conftest.$ac_ext >&5
38383
38384wx_cv_cflags_mthread=no
38385
38386fi
ac1cb8d3 38387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38388
38389
38390fi
38391echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38392echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38393
38394 if test "$wx_cv_cflags_mthread" = "yes"; then
5ff751d6 38395 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
38396 LDFLAGS="$LDFLAGS -mthreads"
38397 else
38398 CFLAGS="$CFLAGS_OLD"
38399 fi
38400 ;;
38401 *-pc-os2*emx )
5ff751d6
VZ
38402 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38403 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38404 LDFLAGS="$LDFLAGS -Zmt"
38405 ;;
38406 esac
38407 fi
38408fi
38409
004ee6da
RL
38410echo "$as_me:$LINENO: checking for localtime_r" >&5
38411echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38412if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38413 echo $ECHO_N "(cached) $ECHO_C" >&6
38414else
38415 cat >conftest.$ac_ext <<_ACEOF
38416/* confdefs.h. */
38417_ACEOF
38418cat confdefs.h >>conftest.$ac_ext
38419cat >>conftest.$ac_ext <<_ACEOF
38420/* end confdefs.h. */
004ee6da 38421/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38423#define localtime_r innocuous_localtime_r
ac1cb8d3 38424
a848cd7e 38425/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38426 which can conflict with char localtime_r (); below.
a848cd7e
SC
38427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38428 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38429
a848cd7e
SC
38430#ifdef __STDC__
38431# include <limits.h>
38432#else
38433# include <assert.h>
38434#endif
ac1cb8d3 38435
004ee6da 38436#undef localtime_r
ac1cb8d3 38437
a848cd7e
SC
38438/* Override any gcc2 internal prototype to avoid an error. */
38439#ifdef __cplusplus
38440extern "C"
38441{
38442#endif
38443/* We use char because int might match the return type of a gcc2
38444 builtin and then its argument prototype would still apply. */
004ee6da 38445char localtime_r ();
a848cd7e
SC
38446/* The GNU C library defines this for functions which it implements
38447 to always fail with ENOSYS. Some functions are actually named
38448 something starting with __ and the normal name is an alias. */
004ee6da 38449#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38450choke me
38451#else
004ee6da 38452char (*f) () = localtime_r;
a848cd7e
SC
38453#endif
38454#ifdef __cplusplus
38455}
38456#endif
38457
38458int
38459main ()
38460{
004ee6da
RL
38461return f != localtime_r;
38462 ;
38463 return 0;
38464}
38465_ACEOF
38466rm -f conftest.$ac_objext conftest$ac_exeext
38467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38468 (eval $ac_link) 2>conftest.er1
38469 ac_status=$?
38470 grep -v '^ *+' conftest.er1 >conftest.err
38471 rm -f conftest.er1
38472 cat conftest.err >&5
38473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38474 (exit $ac_status); } &&
3565d135
RR
38475 { ac_try='test -z "$ac_c_werror_flag"
38476 || test ! -s conftest.err'
004ee6da
RL
38477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38478 (eval $ac_try) 2>&5
38479 ac_status=$?
38480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481 (exit $ac_status); }; } &&
38482 { ac_try='test -s conftest$ac_exeext'
38483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38484 (eval $ac_try) 2>&5
38485 ac_status=$?
38486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487 (exit $ac_status); }; }; then
38488 ac_cv_func_localtime_r=yes
38489else
38490 echo "$as_me: failed program was:" >&5
38491sed 's/^/| /' conftest.$ac_ext >&5
38492
38493ac_cv_func_localtime_r=no
38494fi
38495rm -f conftest.err conftest.$ac_objext \
38496 conftest$ac_exeext conftest.$ac_ext
38497fi
38498echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38499echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38500if test $ac_cv_func_localtime_r = yes; then
38501 cat >>confdefs.h <<\_ACEOF
38502#define HAVE_LOCALTIME_R 1
38503_ACEOF
38504
38505fi
38506
38507echo "$as_me:$LINENO: checking for gmtime_r" >&5
38508echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38509if test "${ac_cv_func_gmtime_r+set}" = set; then
38510 echo $ECHO_N "(cached) $ECHO_C" >&6
38511else
38512 cat >conftest.$ac_ext <<_ACEOF
38513/* confdefs.h. */
38514_ACEOF
38515cat confdefs.h >>conftest.$ac_ext
38516cat >>conftest.$ac_ext <<_ACEOF
38517/* end confdefs.h. */
38518/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38520#define gmtime_r innocuous_gmtime_r
38521
38522/* System header to define __stub macros and hopefully few prototypes,
38523 which can conflict with char gmtime_r (); below.
38524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38525 <limits.h> exists even on freestanding compilers. */
38526
38527#ifdef __STDC__
38528# include <limits.h>
38529#else
38530# include <assert.h>
38531#endif
38532
38533#undef gmtime_r
38534
38535/* Override any gcc2 internal prototype to avoid an error. */
38536#ifdef __cplusplus
38537extern "C"
38538{
38539#endif
38540/* We use char because int might match the return type of a gcc2
38541 builtin and then its argument prototype would still apply. */
38542char gmtime_r ();
38543/* The GNU C library defines this for functions which it implements
38544 to always fail with ENOSYS. Some functions are actually named
38545 something starting with __ and the normal name is an alias. */
38546#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38547choke me
38548#else
38549char (*f) () = gmtime_r;
38550#endif
38551#ifdef __cplusplus
38552}
38553#endif
38554
38555int
38556main ()
38557{
38558return f != gmtime_r;
38559 ;
38560 return 0;
38561}
38562_ACEOF
38563rm -f conftest.$ac_objext conftest$ac_exeext
38564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38565 (eval $ac_link) 2>conftest.er1
38566 ac_status=$?
38567 grep -v '^ *+' conftest.er1 >conftest.err
38568 rm -f conftest.er1
38569 cat conftest.err >&5
38570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571 (exit $ac_status); } &&
3565d135
RR
38572 { ac_try='test -z "$ac_c_werror_flag"
38573 || test ! -s conftest.err'
004ee6da
RL
38574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38575 (eval $ac_try) 2>&5
38576 ac_status=$?
38577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578 (exit $ac_status); }; } &&
38579 { ac_try='test -s conftest$ac_exeext'
38580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38581 (eval $ac_try) 2>&5
38582 ac_status=$?
38583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584 (exit $ac_status); }; }; then
38585 ac_cv_func_gmtime_r=yes
38586else
38587 echo "$as_me: failed program was:" >&5
38588sed 's/^/| /' conftest.$ac_ext >&5
38589
38590ac_cv_func_gmtime_r=no
38591fi
38592rm -f conftest.err conftest.$ac_objext \
38593 conftest$ac_exeext conftest.$ac_ext
38594fi
38595echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38596echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38597if test $ac_cv_func_gmtime_r = yes; then
38598 cat >>confdefs.h <<\_ACEOF
38599#define HAVE_GMTIME_R 1
38600_ACEOF
38601
38602fi
38603
38604echo "$as_me:$LINENO: checking for readdir_r" >&5
38605echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38606if test "${ac_cv_func_readdir_r+set}" = set; then
38607 echo $ECHO_N "(cached) $ECHO_C" >&6
38608else
38609 cat >conftest.$ac_ext <<_ACEOF
38610/* confdefs.h. */
38611_ACEOF
38612cat confdefs.h >>conftest.$ac_ext
38613cat >>conftest.$ac_ext <<_ACEOF
38614/* end confdefs.h. */
38615/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38617#define readdir_r innocuous_readdir_r
38618
38619/* System header to define __stub macros and hopefully few prototypes,
38620 which can conflict with char readdir_r (); below.
38621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38622 <limits.h> exists even on freestanding compilers. */
38623
38624#ifdef __STDC__
38625# include <limits.h>
38626#else
38627# include <assert.h>
38628#endif
38629
38630#undef readdir_r
38631
38632/* Override any gcc2 internal prototype to avoid an error. */
38633#ifdef __cplusplus
38634extern "C"
38635{
38636#endif
38637/* We use char because int might match the return type of a gcc2
38638 builtin and then its argument prototype would still apply. */
38639char readdir_r ();
38640/* The GNU C library defines this for functions which it implements
38641 to always fail with ENOSYS. Some functions are actually named
38642 something starting with __ and the normal name is an alias. */
38643#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38644choke me
38645#else
38646char (*f) () = readdir_r;
38647#endif
38648#ifdef __cplusplus
38649}
38650#endif
38651
38652int
38653main ()
38654{
38655return f != readdir_r;
38656 ;
38657 return 0;
38658}
38659_ACEOF
38660rm -f conftest.$ac_objext conftest$ac_exeext
38661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38662 (eval $ac_link) 2>conftest.er1
38663 ac_status=$?
38664 grep -v '^ *+' conftest.er1 >conftest.err
38665 rm -f conftest.er1
38666 cat conftest.err >&5
38667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668 (exit $ac_status); } &&
3565d135
RR
38669 { ac_try='test -z "$ac_c_werror_flag"
38670 || test ! -s conftest.err'
004ee6da
RL
38671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38672 (eval $ac_try) 2>&5
38673 ac_status=$?
38674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38675 (exit $ac_status); }; } &&
38676 { ac_try='test -s conftest$ac_exeext'
38677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38678 (eval $ac_try) 2>&5
38679 ac_status=$?
38680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681 (exit $ac_status); }; }; then
38682 ac_cv_func_readdir_r=yes
38683else
38684 echo "$as_me: failed program was:" >&5
38685sed 's/^/| /' conftest.$ac_ext >&5
38686
38687ac_cv_func_readdir_r=no
38688fi
38689rm -f conftest.err conftest.$ac_objext \
38690 conftest$ac_exeext conftest.$ac_ext
38691fi
38692echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38693echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38694if test $ac_cv_func_readdir_r = yes; then
38695 cat >>confdefs.h <<\_ACEOF
38696#define HAVE_READDIR_R 1
38697_ACEOF
38698
38699fi
38700
004ee6da 38701
5ec3bc43
JS
38702ac_ext=cc
38703ac_cpp='$CXXCPP $CPPFLAGS'
38704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38707
004ee6da
RL
38708
38709
38710 ac_ext=c
38711ac_cpp='$CPP $CPPFLAGS'
38712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38714ac_compiler_gnu=$ac_cv_c_compiler_gnu
38715
38716 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38717echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38718
38719 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38720 echo $ECHO_N "(cached) $ECHO_C" >&6
38721else
38722
38723
38724################################################################
38725
38726ac_cv_func_which_gethostbyname_r=unknown
38727
38728#
38729# ONE ARGUMENT (sanity check)
38730#
38731
38732# This should fail, as there is no variant of gethostbyname_r() that takes
38733# a single argument. If it actually compiles, then we can assume that
38734# netdb.h is not declaring the function, and the compiler is thereby
38735# assuming an implicit prototype. In which case, we're out of luck.
38736#
38737cat >conftest.$ac_ext <<_ACEOF
38738/* confdefs.h. */
38739_ACEOF
38740cat confdefs.h >>conftest.$ac_ext
38741cat >>conftest.$ac_ext <<_ACEOF
38742/* end confdefs.h. */
38743#include <netdb.h>
38744int
38745main ()
38746{
38747
38748 char *name = "www.gnu.org";
38749 (void)gethostbyname_r(name) /* ; */
38750
38751 ;
38752 return 0;
38753}
38754_ACEOF
38755rm -f conftest.$ac_objext
38756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38757 (eval $ac_compile) 2>conftest.er1
38758 ac_status=$?
38759 grep -v '^ *+' conftest.er1 >conftest.err
38760 rm -f conftest.er1
38761 cat conftest.err >&5
38762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38763 (exit $ac_status); } &&
3565d135
RR
38764 { ac_try='test -z "$ac_c_werror_flag"
38765 || test ! -s conftest.err'
004ee6da
RL
38766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38767 (eval $ac_try) 2>&5
38768 ac_status=$?
38769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38770 (exit $ac_status); }; } &&
38771 { ac_try='test -s conftest.$ac_objext'
38772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38773 (eval $ac_try) 2>&5
38774 ac_status=$?
38775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38776 (exit $ac_status); }; }; then
38777 ac_cv_func_which_gethostbyname_r=no
38778else
38779 echo "$as_me: failed program was:" >&5
38780sed 's/^/| /' conftest.$ac_ext >&5
38781
38782fi
38783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38784
38785#
38786# SIX ARGUMENTS
38787# (e.g. Linux)
38788#
38789
38790if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38791
38792cat >conftest.$ac_ext <<_ACEOF
38793/* confdefs.h. */
38794_ACEOF
38795cat confdefs.h >>conftest.$ac_ext
38796cat >>conftest.$ac_ext <<_ACEOF
38797/* end confdefs.h. */
38798#include <netdb.h>
38799int
38800main ()
38801{
38802
38803 char *name = "www.gnu.org";
38804 struct hostent ret, *retp;
38805 char buf[1024];
38806 int buflen = 1024;
38807 int my_h_errno;
38808 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
38809
38810 ;
38811 return 0;
38812}
38813_ACEOF
38814rm -f conftest.$ac_objext
38815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38816 (eval $ac_compile) 2>conftest.er1
38817 ac_status=$?
38818 grep -v '^ *+' conftest.er1 >conftest.err
38819 rm -f conftest.er1
38820 cat conftest.err >&5
38821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822 (exit $ac_status); } &&
3565d135
RR
38823 { ac_try='test -z "$ac_c_werror_flag"
38824 || test ! -s conftest.err'
004ee6da
RL
38825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826 (eval $ac_try) 2>&5
38827 ac_status=$?
38828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829 (exit $ac_status); }; } &&
38830 { ac_try='test -s conftest.$ac_objext'
38831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38832 (eval $ac_try) 2>&5
38833 ac_status=$?
38834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38835 (exit $ac_status); }; }; then
38836 ac_cv_func_which_gethostbyname_r=six
38837else
38838 echo "$as_me: failed program was:" >&5
38839sed 's/^/| /' conftest.$ac_ext >&5
38840
38841fi
38842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38843
38844fi
38845
38846#
38847# FIVE ARGUMENTS
38848# (e.g. Solaris)
38849#
38850
38851if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38852
38853cat >conftest.$ac_ext <<_ACEOF
38854/* confdefs.h. */
38855_ACEOF
38856cat confdefs.h >>conftest.$ac_ext
38857cat >>conftest.$ac_ext <<_ACEOF
38858/* end confdefs.h. */
38859#include <netdb.h>
38860int
38861main ()
38862{
38863
38864 char *name = "www.gnu.org";
38865 struct hostent ret;
38866 char buf[1024];
38867 int buflen = 1024;
38868 int my_h_errno;
38869 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
38870
38871 ;
38872 return 0;
38873}
38874_ACEOF
38875rm -f conftest.$ac_objext
38876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38877 (eval $ac_compile) 2>conftest.er1
38878 ac_status=$?
38879 grep -v '^ *+' conftest.er1 >conftest.err
38880 rm -f conftest.er1
38881 cat conftest.err >&5
38882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883 (exit $ac_status); } &&
3565d135
RR
38884 { ac_try='test -z "$ac_c_werror_flag"
38885 || test ! -s conftest.err'
004ee6da
RL
38886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38887 (eval $ac_try) 2>&5
38888 ac_status=$?
38889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38890 (exit $ac_status); }; } &&
38891 { ac_try='test -s conftest.$ac_objext'
38892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38893 (eval $ac_try) 2>&5
38894 ac_status=$?
38895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38896 (exit $ac_status); }; }; then
38897 ac_cv_func_which_gethostbyname_r=five
38898else
38899 echo "$as_me: failed program was:" >&5
38900sed 's/^/| /' conftest.$ac_ext >&5
38901
38902fi
38903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38904
38905fi
38906
38907#
38908# THREE ARGUMENTS
38909# (e.g. AIX, HP-UX, Tru64)
38910#
38911
38912if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38913
38914cat >conftest.$ac_ext <<_ACEOF
38915/* confdefs.h. */
38916_ACEOF
38917cat confdefs.h >>conftest.$ac_ext
38918cat >>conftest.$ac_ext <<_ACEOF
38919/* end confdefs.h. */
38920#include <netdb.h>
38921int
38922main ()
38923{
38924
38925 char *name = "www.gnu.org";
38926 struct hostent ret;
38927 struct hostent_data data;
38928 (void)gethostbyname_r(name, &ret, &data) /* ; */
38929
38930 ;
38931 return 0;
38932}
38933_ACEOF
38934rm -f conftest.$ac_objext
38935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38936 (eval $ac_compile) 2>conftest.er1
38937 ac_status=$?
38938 grep -v '^ *+' conftest.er1 >conftest.err
38939 rm -f conftest.er1
38940 cat conftest.err >&5
38941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38942 (exit $ac_status); } &&
3565d135
RR
38943 { ac_try='test -z "$ac_c_werror_flag"
38944 || test ! -s conftest.err'
004ee6da
RL
38945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38946 (eval $ac_try) 2>&5
38947 ac_status=$?
38948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38949 (exit $ac_status); }; } &&
38950 { ac_try='test -s conftest.$ac_objext'
38951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38952 (eval $ac_try) 2>&5
38953 ac_status=$?
38954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955 (exit $ac_status); }; }; then
38956 ac_cv_func_which_gethostbyname_r=three
38957else
38958 echo "$as_me: failed program was:" >&5
38959sed 's/^/| /' conftest.$ac_ext >&5
38960
38961fi
38962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38963
38964fi
38965
38966################################################################
38967
38968
38969fi
38970
38971case "$ac_cv_func_which_gethostbyname_r" in
38972 three)
38973 echo "$as_me:$LINENO: result: three" >&5
38974echo "${ECHO_T}three" >&6
38975 cat >>confdefs.h <<\_ACEOF
38976#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
38977_ACEOF
38978
38979 ;;
38980
38981 five)
38982 echo "$as_me:$LINENO: result: five" >&5
38983echo "${ECHO_T}five" >&6
38984 cat >>confdefs.h <<\_ACEOF
38985#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
38986_ACEOF
38987
38988 ;;
38989
38990 six)
38991 echo "$as_me:$LINENO: result: six" >&5
38992echo "${ECHO_T}six" >&6
38993 cat >>confdefs.h <<\_ACEOF
38994#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
38995_ACEOF
38996
38997 ;;
38998
38999 no)
39000 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39001echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39002 ;;
39003
39004 unknown)
39005 echo "$as_me:$LINENO: result: can't tell" >&5
39006echo "${ECHO_T}can't tell" >&6
39007 ;;
39008
39009 *)
39010 { { echo "$as_me:$LINENO: error: internal error" >&5
39011echo "$as_me: error: internal error" >&2;}
39012 { (exit 1); exit 1; }; }
39013 ;;
39014esac
39015
5ec3bc43
JS
39016ac_ext=cc
39017ac_cpp='$CXXCPP $CPPFLAGS'
39018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39021
39022
39023
39024 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39025 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39026 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39027echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39028if test "${ac_cv_func_gethostbyname+set}" = set; then
39029 echo $ECHO_N "(cached) $ECHO_C" >&6
39030else
39031 cat >conftest.$ac_ext <<_ACEOF
39032/* confdefs.h. */
39033_ACEOF
39034cat confdefs.h >>conftest.$ac_ext
39035cat >>conftest.$ac_ext <<_ACEOF
39036/* end confdefs.h. */
39037/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39039#define gethostbyname innocuous_gethostbyname
39040
39041/* System header to define __stub macros and hopefully few prototypes,
39042 which can conflict with char gethostbyname (); below.
39043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39044 <limits.h> exists even on freestanding compilers. */
39045
39046#ifdef __STDC__
39047# include <limits.h>
39048#else
39049# include <assert.h>
39050#endif
39051
39052#undef gethostbyname
39053
39054/* Override any gcc2 internal prototype to avoid an error. */
39055#ifdef __cplusplus
39056extern "C"
39057{
39058#endif
39059/* We use char because int might match the return type of a gcc2
39060 builtin and then its argument prototype would still apply. */
39061char gethostbyname ();
39062/* The GNU C library defines this for functions which it implements
39063 to always fail with ENOSYS. Some functions are actually named
39064 something starting with __ and the normal name is an alias. */
39065#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39066choke me
39067#else
39068char (*f) () = gethostbyname;
39069#endif
39070#ifdef __cplusplus
39071}
39072#endif
39073
39074int
39075main ()
39076{
39077return f != gethostbyname;
39078 ;
39079 return 0;
39080}
39081_ACEOF
39082rm -f conftest.$ac_objext conftest$ac_exeext
39083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39084 (eval $ac_link) 2>conftest.er1
39085 ac_status=$?
39086 grep -v '^ *+' conftest.er1 >conftest.err
39087 rm -f conftest.er1
39088 cat conftest.err >&5
39089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39090 (exit $ac_status); } &&
5ec3bc43 39091 { ac_try='test -z "$ac_cxx_werror_flag"
3565d135 39092 || test ! -s conftest.err'
004ee6da
RL
39093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39094 (eval $ac_try) 2>&5
39095 ac_status=$?
39096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39097 (exit $ac_status); }; } &&
39098 { ac_try='test -s conftest$ac_exeext'
39099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39100 (eval $ac_try) 2>&5
39101 ac_status=$?
39102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39103 (exit $ac_status); }; }; then
39104 ac_cv_func_gethostbyname=yes
39105else
39106 echo "$as_me: failed program was:" >&5
39107sed 's/^/| /' conftest.$ac_ext >&5
39108
39109ac_cv_func_gethostbyname=no
39110fi
39111rm -f conftest.err conftest.$ac_objext \
39112 conftest$ac_exeext conftest.$ac_ext
39113fi
39114echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39115echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39116if test $ac_cv_func_gethostbyname = yes; then
39117 cat >>confdefs.h <<\_ACEOF
39118#define HAVE_GETHOSTBYNAME 1
39119_ACEOF
39120
39121fi
39122
39123 fi
39124 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39125echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39126if test "${ac_cv_func_getservbyname_r+set}" = set; then
39127 echo $ECHO_N "(cached) $ECHO_C" >&6
39128else
39129 cat >conftest.$ac_ext <<_ACEOF
39130/* confdefs.h. */
39131_ACEOF
39132cat confdefs.h >>conftest.$ac_ext
39133cat >>conftest.$ac_ext <<_ACEOF
39134/* end confdefs.h. */
39135/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39137#define getservbyname_r innocuous_getservbyname_r
39138
39139/* System header to define __stub macros and hopefully few prototypes,
39140 which can conflict with char getservbyname_r (); below.
39141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39142 <limits.h> exists even on freestanding compilers. */
39143
39144#ifdef __STDC__
39145# include <limits.h>
39146#else
39147# include <assert.h>
39148#endif
39149
39150#undef getservbyname_r
39151
39152/* Override any gcc2 internal prototype to avoid an error. */
39153#ifdef __cplusplus
39154extern "C"
39155{
39156#endif
39157/* We use char because int might match the return type of a gcc2
39158 builtin and then its argument prototype would still apply. */
39159char getservbyname_r ();
39160/* The GNU C library defines this for functions which it implements
39161 to always fail with ENOSYS. Some functions are actually named
39162 something starting with __ and the normal name is an alias. */
39163#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39164choke me
39165#else
39166char (*f) () = getservbyname_r;
39167#endif
39168#ifdef __cplusplus
39169}
39170#endif
39171
39172int
39173main ()
39174{
39175return f != getservbyname_r;
39176 ;
39177 return 0;
39178}
39179_ACEOF
39180rm -f conftest.$ac_objext conftest$ac_exeext
39181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39182 (eval $ac_link) 2>conftest.er1
39183 ac_status=$?
39184 grep -v '^ *+' conftest.er1 >conftest.err
39185 rm -f conftest.er1
39186 cat conftest.err >&5
39187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39188 (exit $ac_status); } &&
5ec3bc43 39189 { ac_try='test -z "$ac_cxx_werror_flag"
3565d135 39190 || test ! -s conftest.err'
004ee6da
RL
39191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39192 (eval $ac_try) 2>&5
39193 ac_status=$?
39194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39195 (exit $ac_status); }; } &&
39196 { ac_try='test -s conftest$ac_exeext'
39197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39198 (eval $ac_try) 2>&5
39199 ac_status=$?
39200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39201 (exit $ac_status); }; }; then
39202 ac_cv_func_getservbyname_r=yes
39203else
39204 echo "$as_me: failed program was:" >&5
39205sed 's/^/| /' conftest.$ac_ext >&5
39206
39207ac_cv_func_getservbyname_r=no
39208fi
39209rm -f conftest.err conftest.$ac_objext \
39210 conftest$ac_exeext conftest.$ac_ext
39211fi
39212echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39213echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39214if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39215 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39216/* confdefs.h. */
39217_ACEOF
39218cat confdefs.h >>conftest.$ac_ext
39219cat >>conftest.$ac_ext <<_ACEOF
39220/* end confdefs.h. */
99879bbf 39221#include <netdb.h>
004ee6da
RL
39222int
39223main ()
39224{
39225
99879bbf
MR
39226 char *name;
39227 char *proto;
39228 struct servent *se;
39229 struct servent_data data;
39230 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39231
39232 ;
39233 return 0;
39234}
39235_ACEOF
39236rm -f conftest.$ac_objext
39237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39238 (eval $ac_compile) 2>conftest.er1
39239 ac_status=$?
39240 grep -v '^ *+' conftest.er1 >conftest.err
39241 rm -f conftest.er1
39242 cat conftest.err >&5
39243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39244 (exit $ac_status); } &&
5ec3bc43 39245 { ac_try='test -z "$ac_cxx_werror_flag"
3565d135 39246 || test ! -s conftest.err'
004ee6da
RL
39247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39248 (eval $ac_try) 2>&5
39249 ac_status=$?
39250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39251 (exit $ac_status); }; } &&
39252 { ac_try='test -s conftest.$ac_objext'
39253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39254 (eval $ac_try) 2>&5
39255 ac_status=$?
39256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39257 (exit $ac_status); }; }; then
39258 ac_cv_func_which_getservbyname_r=four
39259else
39260 echo "$as_me: failed program was:" >&5
39261sed 's/^/| /' conftest.$ac_ext >&5
39262
99879bbf 39263cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39264/* confdefs.h. */
39265_ACEOF
39266cat confdefs.h >>conftest.$ac_ext
39267cat >>conftest.$ac_ext <<_ACEOF
39268/* end confdefs.h. */
99879bbf 39269#include <netdb.h>
004ee6da
RL
39270int
39271main ()
39272{
39273
99879bbf
MR
39274 char *name;
39275 char *proto;
39276 struct servent *se, *res;
39277 char buffer[2048];
39278 int buflen = 2048;
39279 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39280
39281 ;
39282 return 0;
39283}
39284_ACEOF
39285rm -f conftest.$ac_objext
39286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39287 (eval $ac_compile) 2>conftest.er1
39288 ac_status=$?
39289 grep -v '^ *+' conftest.er1 >conftest.err
39290 rm -f conftest.er1
39291 cat conftest.err >&5
39292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39293 (exit $ac_status); } &&
5ec3bc43 39294 { ac_try='test -z "$ac_cxx_werror_flag"
3565d135 39295 || test ! -s conftest.err'
004ee6da
RL
39296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39297 (eval $ac_try) 2>&5
39298 ac_status=$?
39299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39300 (exit $ac_status); }; } &&
39301 { ac_try='test -s conftest.$ac_objext'
39302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39303 (eval $ac_try) 2>&5
39304 ac_status=$?
39305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39306 (exit $ac_status); }; }; then
39307 ac_cv_func_which_getservbyname_r=six
39308else
39309 echo "$as_me: failed program was:" >&5
39310sed 's/^/| /' conftest.$ac_ext >&5
39311
99879bbf 39312cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39313/* confdefs.h. */
39314_ACEOF
39315cat confdefs.h >>conftest.$ac_ext
39316cat >>conftest.$ac_ext <<_ACEOF
39317/* end confdefs.h. */
99879bbf 39318#include <netdb.h>
004ee6da
RL
39319int
39320main ()
39321{
39322
99879bbf
MR
39323 char *name;
39324 char *proto;
39325 struct servent *se;
39326 char buffer[2048];
39327 int buflen = 2048;
39328 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39329
39330 ;
39331 return 0;
39332}
39333_ACEOF
39334rm -f conftest.$ac_objext
39335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39336 (eval $ac_compile) 2>conftest.er1
39337 ac_status=$?
39338 grep -v '^ *+' conftest.er1 >conftest.err
39339 rm -f conftest.er1
39340 cat conftest.err >&5
39341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39342 (exit $ac_status); } &&
5ec3bc43 39343 { ac_try='test -z "$ac_cxx_werror_flag"
3565d135 39344 || test ! -s conftest.err'
004ee6da
RL
39345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39346 (eval $ac_try) 2>&5
39347 ac_status=$?
39348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349 (exit $ac_status); }; } &&
39350 { ac_try='test -s conftest.$ac_objext'
39351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39352 (eval $ac_try) 2>&5
39353 ac_status=$?
39354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39355 (exit $ac_status); }; }; then
39356 ac_cv_func_which_getservbyname_r=five
39357else
39358 echo "$as_me: failed program was:" >&5
39359sed 's/^/| /' conftest.$ac_ext >&5
39360
39361ac_cv_func_which_getservbyname_r=no
99879bbf 39362
004ee6da
RL
39363fi
39364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39365
004ee6da
RL
39366fi
39367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39368
004ee6da
RL
39369fi
39370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39371else
39372 ac_cv_func_which_getservbyname_r=no
39373fi
39374
004ee6da
RL
39375
39376if test $ac_cv_func_which_getservbyname_r = six; then
39377 cat >>confdefs.h <<\_ACEOF
39378#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39379_ACEOF
39380
39381elif test $ac_cv_func_which_getservbyname_r = five; then
39382 cat >>confdefs.h <<\_ACEOF
39383#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39384_ACEOF
39385
39386elif test $ac_cv_func_which_getservbyname_r = four; then
39387 cat >>confdefs.h <<\_ACEOF
39388#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39389_ACEOF
39390
004ee6da
RL
39391fi
39392
39393
39394 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39395 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39396
39397for ac_func in getservbyname
39398do
39399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39400echo "$as_me:$LINENO: checking for $ac_func" >&5
39401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39402if eval "test \"\${$as_ac_var+set}\" = set"; then
39403 echo $ECHO_N "(cached) $ECHO_C" >&6
39404else
39405 cat >conftest.$ac_ext <<_ACEOF
39406/* confdefs.h. */
39407_ACEOF
39408cat confdefs.h >>conftest.$ac_ext
39409cat >>conftest.$ac_ext <<_ACEOF
39410/* end confdefs.h. */
39411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39413#define $ac_func innocuous_$ac_func
39414
39415/* System header to define __stub macros and hopefully few prototypes,
39416 which can conflict with char $ac_func (); below.
39417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39418 <limits.h> exists even on freestanding compilers. */
39419
39420#ifdef __STDC__
39421# include <limits.h>
39422#else
39423# include <assert.h>
39424#endif
39425
39426#undef $ac_func
39427
39428/* Override any gcc2 internal prototype to avoid an error. */
39429#ifdef __cplusplus
39430extern "C"
39431{
39432#endif
39433/* We use char because int might match the return type of a gcc2
39434 builtin and then its argument prototype would still apply. */
39435char $ac_func ();
39436/* The GNU C library defines this for functions which it implements
39437 to always fail with ENOSYS. Some functions are actually named
39438 something starting with __ and the normal name is an alias. */
39439#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39440choke me
39441#else
39442char (*f) () = $ac_func;
39443#endif
39444#ifdef __cplusplus
39445}
39446#endif
39447
39448int
39449main ()
39450{
39451return f != $ac_func;
39452 ;
39453 return 0;
39454}
39455_ACEOF
39456rm -f conftest.$ac_objext conftest$ac_exeext
39457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39458 (eval $ac_link) 2>conftest.er1
39459 ac_status=$?
39460 grep -v '^ *+' conftest.er1 >conftest.err
39461 rm -f conftest.er1
39462 cat conftest.err >&5
39463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39464 (exit $ac_status); } &&
5ec3bc43 39465 { ac_try='test -z "$ac_cxx_werror_flag"
3565d135 39466 || test ! -s conftest.err'
004ee6da
RL
39467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39468 (eval $ac_try) 2>&5
39469 ac_status=$?
39470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39471 (exit $ac_status); }; } &&
39472 { ac_try='test -s conftest$ac_exeext'
39473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39474 (eval $ac_try) 2>&5
39475 ac_status=$?
39476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477 (exit $ac_status); }; }; then
39478 eval "$as_ac_var=yes"
39479else
39480 echo "$as_me: failed program was:" >&5
39481sed 's/^/| /' conftest.$ac_ext >&5
39482
39483eval "$as_ac_var=no"
39484fi
39485rm -f conftest.err conftest.$ac_objext \
39486 conftest$ac_exeext conftest.$ac_ext
39487fi
39488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39489echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39490if test `eval echo '${'$as_ac_var'}'` = yes; then
39491 cat >>confdefs.h <<_ACEOF
39492#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39493_ACEOF
39494 cat >>confdefs.h <<\_ACEOF
39495#define HAVE_GETSERVBYNAME 1
39496_ACEOF
39497
39498fi
39499done
39500
39501 fi
5ec3bc43
JS
39502 ac_ext=c
39503ac_cpp='$CPP $CPPFLAGS'
39504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39506ac_compiler_gnu=$ac_cv_c_compiler_gnu
39507
004ee6da 39508
004ee6da
RL
39509if test "$wxUSE_THREADS" = "yes"; then
39510 cat >>confdefs.h <<\_ACEOF
39511#define wxUSE_THREADS 1
39512_ACEOF
39513
39514
39515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39516else
39517 if test "$ac_cv_func_strtok_r" = "yes"; then
39518 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39519echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39520 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39521 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39522 echo "$as_me:$LINENO: result: yes" >&5
39523echo "${ECHO_T}yes" >&6
39524 else
39525 echo "$as_me:$LINENO: result: no" >&5
39526echo "${ECHO_T}no" >&6
39527 fi
39528 fi
39529fi
39530
39531if test "$WXGTK20" = 1 ; then
39532 cat >>confdefs.h <<_ACEOF
39533#define __WXGTK20__ $WXGTK20
39534_ACEOF
39535
39536 WXGTK12=1
39537fi
39538
39539if test "$WXGTK12" = 1 ; then
39540 cat >>confdefs.h <<_ACEOF
39541#define __WXGTK12__ $WXGTK12
39542_ACEOF
39543
39544fi
39545
39546if test "$WXGTK127" = 1 ; then
39547 cat >>confdefs.h <<_ACEOF
39548#define __WXGTK127__ $WXGTK127
39549_ACEOF
39550
39551fi
39552
39553if test "$WXGPE" = 1 ; then
39554 cat >>confdefs.h <<_ACEOF
39555#define __WXGPE__ $WXGPE
39556_ACEOF
39557
39558fi
39559
39560DEBUG_CFLAGS=
39561if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39562 DEBUG_CFLAGS="-g"
39563 wxUSE_OPTIMISE=no
39564fi
39565
39566if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39567 wxUSE_DEBUG_INFO=yes
39568 if test "$GCC" = yes; then
39569 DEBUG_CFLAGS="-ggdb"
39570 fi
39571fi
39572
39573if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39574 cat >>confdefs.h <<\_ACEOF
39575#define WXDEBUG 1
39576_ACEOF
39577
39578 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39579else
39580 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
39581 if test "x$wxGTK_VERSION" = "x1" ; then
39582 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
39583 fi
004ee6da
RL
39584 fi
39585fi
39586
39587if test "$wxUSE_MEM_TRACING" = "yes" ; then
39588 cat >>confdefs.h <<\_ACEOF
39589#define wxUSE_MEMORY_TRACING 1
39590_ACEOF
39591
39592 cat >>confdefs.h <<\_ACEOF
39593#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39594_ACEOF
39595
39596 cat >>confdefs.h <<\_ACEOF
39597#define wxUSE_DEBUG_NEW_ALWAYS 1
39598_ACEOF
39599
39600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39601fi
39602
39603if test "$wxUSE_DMALLOC" = "yes" ; then
39604 DMALLOC_LIBS="-ldmallocthcxx"
39605fi
39606
39607PROFILE_FLAGS=
39608if test "$wxUSE_PROFILE" = "yes" ; then
39609 PROFILE_FLAGS=" -pg"
39610fi
39611
39612if test "$GCC" = "yes" ; then
39613 if test "$wxUSE_NO_RTTI" = "yes" ; then
39614 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39615 fi
39616 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39617 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39618 fi
39619 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39620 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39621 fi
39622
39623 case "${host}" in
39624 powerpc*-*-aix* )
39625 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39626 ;;
39627 *-hppa* )
39628 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39629 ;;
39630 esac
39631fi
39632
39633OPTIMISE_CFLAGS=
39634if test "$wxUSE_OPTIMISE" = "no" ; then
39635 if test "$GCC" = yes ; then
39636 OPTIMISE_CFLAGS="-O0"
39637 fi
39638else
39639 if test "$GCC" = yes ; then
39640 OPTIMISE_CFLAGS="-O2"
39641 else
39642 OPTIMISE_CFLAGS="-O"
39643 fi
39644fi
39645
39646
39647if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39648 cat >>confdefs.h <<\_ACEOF
39649#define WXWIN_COMPATIBILITY_2_4 1
39650_ACEOF
39651
39652
39653 WXWIN_COMPATIBILITY_2_6="yes"
39654fi
39655
39656if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39657 cat >>confdefs.h <<\_ACEOF
39658#define WXWIN_COMPATIBILITY_2_6 1
39659_ACEOF
39660
39661fi
39662
39663
39664if test "$wxUSE_GUI" = "yes"; then
39665 cat >>confdefs.h <<\_ACEOF
39666#define wxUSE_GUI 1
39667_ACEOF
39668
39669
39670 fi
39671
39672
39673if test "$wxUSE_UNIX" = "yes"; then
39674 cat >>confdefs.h <<\_ACEOF
39675#define wxUSE_UNIX 1
39676_ACEOF
39677
39678fi
39679
39680
39681if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39682
39683 HAVE_DL_FUNCS=0
39684 HAVE_SHL_FUNCS=0
39685 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39686 if test "$USE_DARWIN" = 1; then
39687 HAVE_DL_FUNCS=1
39688 elif test "$USE_DOS" = 1; then
39689 HAVE_DL_FUNCS=0
39690 else
39691
39692for ac_func in dlopen
39693do
39694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39695echo "$as_me:$LINENO: checking for $ac_func" >&5
39696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39697if eval "test \"\${$as_ac_var+set}\" = set"; then
39698 echo $ECHO_N "(cached) $ECHO_C" >&6
39699else
39700 cat >conftest.$ac_ext <<_ACEOF
39701/* confdefs.h. */
39702_ACEOF
39703cat confdefs.h >>conftest.$ac_ext
39704cat >>conftest.$ac_ext <<_ACEOF
39705/* end confdefs.h. */
39706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39708#define $ac_func innocuous_$ac_func
39709
39710/* System header to define __stub macros and hopefully few prototypes,
39711 which can conflict with char $ac_func (); below.
39712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39713 <limits.h> exists even on freestanding compilers. */
39714
39715#ifdef __STDC__
39716# include <limits.h>
39717#else
39718# include <assert.h>
39719#endif
39720
39721#undef $ac_func
39722
39723/* Override any gcc2 internal prototype to avoid an error. */
39724#ifdef __cplusplus
39725extern "C"
39726{
39727#endif
39728/* We use char because int might match the return type of a gcc2
39729 builtin and then its argument prototype would still apply. */
39730char $ac_func ();
39731/* The GNU C library defines this for functions which it implements
39732 to always fail with ENOSYS. Some functions are actually named
39733 something starting with __ and the normal name is an alias. */
39734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39735choke me
39736#else
39737char (*f) () = $ac_func;
39738#endif
39739#ifdef __cplusplus
39740}
39741#endif
39742
39743int
39744main ()
39745{
39746return f != $ac_func;
a848cd7e
SC
39747 ;
39748 return 0;
39749}
39750_ACEOF
39751rm -f conftest.$ac_objext conftest$ac_exeext
39752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39753 (eval $ac_link) 2>conftest.er1
a848cd7e 39754 ac_status=$?
ac1cb8d3
VS
39755 grep -v '^ *+' conftest.er1 >conftest.err
39756 rm -f conftest.er1
39757 cat conftest.err >&5
a848cd7e
SC
39758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39759 (exit $ac_status); } &&
3565d135
RR
39760 { ac_try='test -z "$ac_c_werror_flag"
39761 || test ! -s conftest.err'
ac1cb8d3
VS
39762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39763 (eval $ac_try) 2>&5
39764 ac_status=$?
39765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766 (exit $ac_status); }; } &&
39767 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39769 (eval $ac_try) 2>&5
39770 ac_status=$?
39771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39772 (exit $ac_status); }; }; then
39773 eval "$as_ac_var=yes"
39774else
39775 echo "$as_me: failed program was:" >&5
39776sed 's/^/| /' conftest.$ac_ext >&5
39777
39778eval "$as_ac_var=no"
39779fi
ac1cb8d3
VS
39780rm -f conftest.err conftest.$ac_objext \
39781 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39782fi
39783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39784echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39785if test `eval echo '${'$as_ac_var'}'` = yes; then
39786 cat >>confdefs.h <<_ACEOF
39787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39788_ACEOF
39789
39790 cat >>confdefs.h <<\_ACEOF
39791#define HAVE_DLOPEN 1
39792_ACEOF
39793
39794 HAVE_DL_FUNCS=1
39795
39796else
39797
39798 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39799echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39800if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39801 echo $ECHO_N "(cached) $ECHO_C" >&6
39802else
39803 ac_check_lib_save_LIBS=$LIBS
39804LIBS="-ldl $LIBS"
39805cat >conftest.$ac_ext <<_ACEOF
39806/* confdefs.h. */
39807_ACEOF
39808cat confdefs.h >>conftest.$ac_ext
39809cat >>conftest.$ac_ext <<_ACEOF
39810/* end confdefs.h. */
39811
39812/* Override any gcc2 internal prototype to avoid an error. */
39813#ifdef __cplusplus
39814extern "C"
39815#endif
39816/* We use char because int might match the return type of a gcc2
39817 builtin and then its argument prototype would still apply. */
39818char dlopen ();
39819int
39820main ()
39821{
39822dlopen ();
39823 ;
39824 return 0;
39825}
39826_ACEOF
39827rm -f conftest.$ac_objext conftest$ac_exeext
39828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39829 (eval $ac_link) 2>conftest.er1
a848cd7e 39830 ac_status=$?
ac1cb8d3
VS
39831 grep -v '^ *+' conftest.er1 >conftest.err
39832 rm -f conftest.er1
39833 cat conftest.err >&5
a848cd7e
SC
39834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39835 (exit $ac_status); } &&
3565d135
RR
39836 { ac_try='test -z "$ac_c_werror_flag"
39837 || test ! -s conftest.err'
ac1cb8d3
VS
39838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39839 (eval $ac_try) 2>&5
39840 ac_status=$?
39841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842 (exit $ac_status); }; } &&
39843 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39845 (eval $ac_try) 2>&5
39846 ac_status=$?
39847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39848 (exit $ac_status); }; }; then
39849 ac_cv_lib_dl_dlopen=yes
39850else
39851 echo "$as_me: failed program was:" >&5
39852sed 's/^/| /' conftest.$ac_ext >&5
39853
39854ac_cv_lib_dl_dlopen=no
39855fi
ac1cb8d3
VS
39856rm -f conftest.err conftest.$ac_objext \
39857 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39858LIBS=$ac_check_lib_save_LIBS
39859fi
39860echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39861echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
39862if test $ac_cv_lib_dl_dlopen = yes; then
39863
39864 cat >>confdefs.h <<\_ACEOF
39865#define HAVE_DLOPEN 1
39866_ACEOF
39867
39868 HAVE_DL_FUNCS=1
39869 DL_LINK=" -ldl$DL_LINK"
39870
39871else
39872
39873
39874for ac_func in shl_load
39875do
39876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39877echo "$as_me:$LINENO: checking for $ac_func" >&5
39878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39879if eval "test \"\${$as_ac_var+set}\" = set"; then
39880 echo $ECHO_N "(cached) $ECHO_C" >&6
39881else
39882 cat >conftest.$ac_ext <<_ACEOF
39883/* confdefs.h. */
39884_ACEOF
39885cat confdefs.h >>conftest.$ac_ext
39886cat >>conftest.$ac_ext <<_ACEOF
39887/* end confdefs.h. */
ac1cb8d3
VS
39888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39890#define $ac_func innocuous_$ac_func
39891
a848cd7e
SC
39892/* System header to define __stub macros and hopefully few prototypes,
39893 which can conflict with char $ac_func (); below.
39894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39895 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39896
a848cd7e
SC
39897#ifdef __STDC__
39898# include <limits.h>
39899#else
39900# include <assert.h>
39901#endif
ac1cb8d3
VS
39902
39903#undef $ac_func
39904
a848cd7e
SC
39905/* Override any gcc2 internal prototype to avoid an error. */
39906#ifdef __cplusplus
39907extern "C"
39908{
39909#endif
39910/* We use char because int might match the return type of a gcc2
39911 builtin and then its argument prototype would still apply. */
39912char $ac_func ();
39913/* The GNU C library defines this for functions which it implements
39914 to always fail with ENOSYS. Some functions are actually named
39915 something starting with __ and the normal name is an alias. */
39916#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39917choke me
39918#else
39919char (*f) () = $ac_func;
39920#endif
39921#ifdef __cplusplus
39922}
39923#endif
39924
39925int
39926main ()
39927{
39928return f != $ac_func;
39929 ;
39930 return 0;
39931}
39932_ACEOF
39933rm -f conftest.$ac_objext conftest$ac_exeext
39934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39935 (eval $ac_link) 2>conftest.er1
a848cd7e 39936 ac_status=$?
ac1cb8d3
VS
39937 grep -v '^ *+' conftest.er1 >conftest.err
39938 rm -f conftest.er1
39939 cat conftest.err >&5
a848cd7e
SC
39940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941 (exit $ac_status); } &&
3565d135
RR
39942 { ac_try='test -z "$ac_c_werror_flag"
39943 || test ! -s conftest.err'
ac1cb8d3
VS
39944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39945 (eval $ac_try) 2>&5
39946 ac_status=$?
39947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948 (exit $ac_status); }; } &&
39949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39951 (eval $ac_try) 2>&5
39952 ac_status=$?
39953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954 (exit $ac_status); }; }; then
39955 eval "$as_ac_var=yes"
39956else
39957 echo "$as_me: failed program was:" >&5
39958sed 's/^/| /' conftest.$ac_ext >&5
39959
39960eval "$as_ac_var=no"
39961fi
ac1cb8d3
VS
39962rm -f conftest.err conftest.$ac_objext \
39963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39964fi
39965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39966echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39967if test `eval echo '${'$as_ac_var'}'` = yes; then
39968 cat >>confdefs.h <<_ACEOF
39969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39970_ACEOF
39971
39972 cat >>confdefs.h <<\_ACEOF
39973#define HAVE_SHL_LOAD 1
39974_ACEOF
39975
39976 HAVE_SHL_FUNCS=1
39977
39978else
39979
39980 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
39981echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
39982if test "${ac_cv_lib_shl_load_dld+set}" = set; then
39983 echo $ECHO_N "(cached) $ECHO_C" >&6
39984else
39985 ac_check_lib_save_LIBS=$LIBS
39986LIBS="-lshl_load $LIBS"
39987cat >conftest.$ac_ext <<_ACEOF
39988/* confdefs.h. */
39989_ACEOF
39990cat confdefs.h >>conftest.$ac_ext
39991cat >>conftest.$ac_ext <<_ACEOF
39992/* end confdefs.h. */
39993
39994/* Override any gcc2 internal prototype to avoid an error. */
39995#ifdef __cplusplus
39996extern "C"
39997#endif
39998/* We use char because int might match the return type of a gcc2
39999 builtin and then its argument prototype would still apply. */
40000char dld ();
40001int
40002main ()
40003{
40004dld ();
40005 ;
40006 return 0;
40007}
40008_ACEOF
40009rm -f conftest.$ac_objext conftest$ac_exeext
40010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40011 (eval $ac_link) 2>conftest.er1
a848cd7e 40012 ac_status=$?
ac1cb8d3
VS
40013 grep -v '^ *+' conftest.er1 >conftest.err
40014 rm -f conftest.er1
40015 cat conftest.err >&5
a848cd7e
SC
40016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017 (exit $ac_status); } &&
3565d135
RR
40018 { ac_try='test -z "$ac_c_werror_flag"
40019 || test ! -s conftest.err'
ac1cb8d3
VS
40020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40021 (eval $ac_try) 2>&5
40022 ac_status=$?
40023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40024 (exit $ac_status); }; } &&
40025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40027 (eval $ac_try) 2>&5
40028 ac_status=$?
40029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40030 (exit $ac_status); }; }; then
40031 ac_cv_lib_shl_load_dld=yes
40032else
40033 echo "$as_me: failed program was:" >&5
40034sed 's/^/| /' conftest.$ac_ext >&5
40035
40036ac_cv_lib_shl_load_dld=no
40037fi
ac1cb8d3
VS
40038rm -f conftest.err conftest.$ac_objext \
40039 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40040LIBS=$ac_check_lib_save_LIBS
40041fi
40042echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40043echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40044if test $ac_cv_lib_shl_load_dld = yes; then
40045
40046 HAVE_SHL_FUNCS=1
40047 DL_LINK=" -ldld$DL_LINK"
40048
40049fi
40050
40051
40052fi
40053done
40054
40055
40056fi
40057
40058
40059fi
40060done
40061
40062
40063 if test "$HAVE_DL_FUNCS" = 1; then
40064
40065for ac_func in dlerror
40066do
40067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40068echo "$as_me:$LINENO: checking for $ac_func" >&5
40069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40070if eval "test \"\${$as_ac_var+set}\" = set"; then
40071 echo $ECHO_N "(cached) $ECHO_C" >&6
40072else
40073 cat >conftest.$ac_ext <<_ACEOF
40074/* confdefs.h. */
40075_ACEOF
40076cat confdefs.h >>conftest.$ac_ext
40077cat >>conftest.$ac_ext <<_ACEOF
40078/* end confdefs.h. */
ac1cb8d3
VS
40079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40081#define $ac_func innocuous_$ac_func
40082
a848cd7e
SC
40083/* System header to define __stub macros and hopefully few prototypes,
40084 which can conflict with char $ac_func (); below.
40085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40086 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40087
a848cd7e
SC
40088#ifdef __STDC__
40089# include <limits.h>
40090#else
40091# include <assert.h>
40092#endif
ac1cb8d3
VS
40093
40094#undef $ac_func
40095
a848cd7e
SC
40096/* Override any gcc2 internal prototype to avoid an error. */
40097#ifdef __cplusplus
40098extern "C"
40099{
40100#endif
40101/* We use char because int might match the return type of a gcc2
40102 builtin and then its argument prototype would still apply. */
40103char $ac_func ();
40104/* The GNU C library defines this for functions which it implements
40105 to always fail with ENOSYS. Some functions are actually named
40106 something starting with __ and the normal name is an alias. */
40107#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40108choke me
40109#else
40110char (*f) () = $ac_func;
40111#endif
40112#ifdef __cplusplus
40113}
40114#endif
40115
40116int
40117main ()
40118{
40119return f != $ac_func;
40120 ;
40121 return 0;
40122}
40123_ACEOF
40124rm -f conftest.$ac_objext conftest$ac_exeext
40125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40126 (eval $ac_link) 2>conftest.er1
a848cd7e 40127 ac_status=$?
ac1cb8d3
VS
40128 grep -v '^ *+' conftest.er1 >conftest.err
40129 rm -f conftest.er1
40130 cat conftest.err >&5
a848cd7e
SC
40131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40132 (exit $ac_status); } &&
3565d135
RR
40133 { ac_try='test -z "$ac_c_werror_flag"
40134 || test ! -s conftest.err'
ac1cb8d3
VS
40135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40136 (eval $ac_try) 2>&5
40137 ac_status=$?
40138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40139 (exit $ac_status); }; } &&
40140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40142 (eval $ac_try) 2>&5
40143 ac_status=$?
40144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40145 (exit $ac_status); }; }; then
40146 eval "$as_ac_var=yes"
40147else
40148 echo "$as_me: failed program was:" >&5
40149sed 's/^/| /' conftest.$ac_ext >&5
40150
40151eval "$as_ac_var=no"
40152fi
ac1cb8d3
VS
40153rm -f conftest.err conftest.$ac_objext \
40154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40155fi
40156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40157echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40158if test `eval echo '${'$as_ac_var'}'` = yes; then
40159 cat >>confdefs.h <<_ACEOF
40160#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40161_ACEOF
40162 cat >>confdefs.h <<\_ACEOF
40163#define HAVE_DLERROR 1
40164_ACEOF
40165
40166else
40167
40168 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40169echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40170if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40171 echo $ECHO_N "(cached) $ECHO_C" >&6
40172else
40173 ac_check_lib_save_LIBS=$LIBS
40174LIBS="-ldl $LIBS"
40175cat >conftest.$ac_ext <<_ACEOF
40176/* confdefs.h. */
40177_ACEOF
40178cat confdefs.h >>conftest.$ac_ext
40179cat >>conftest.$ac_ext <<_ACEOF
40180/* end confdefs.h. */
40181
40182/* Override any gcc2 internal prototype to avoid an error. */
40183#ifdef __cplusplus
40184extern "C"
40185#endif
40186/* We use char because int might match the return type of a gcc2
40187 builtin and then its argument prototype would still apply. */
40188char dlerror ();
40189int
40190main ()
40191{
40192dlerror ();
40193 ;
40194 return 0;
40195}
40196_ACEOF
40197rm -f conftest.$ac_objext conftest$ac_exeext
40198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40199 (eval $ac_link) 2>conftest.er1
a848cd7e 40200 ac_status=$?
ac1cb8d3
VS
40201 grep -v '^ *+' conftest.er1 >conftest.err
40202 rm -f conftest.er1
40203 cat conftest.err >&5
a848cd7e
SC
40204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40205 (exit $ac_status); } &&
3565d135
RR
40206 { ac_try='test -z "$ac_c_werror_flag"
40207 || test ! -s conftest.err'
ac1cb8d3
VS
40208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40209 (eval $ac_try) 2>&5
40210 ac_status=$?
40211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40212 (exit $ac_status); }; } &&
40213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40215 (eval $ac_try) 2>&5
40216 ac_status=$?
40217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40218 (exit $ac_status); }; }; then
40219 ac_cv_lib_dl_dlerror=yes
40220else
40221 echo "$as_me: failed program was:" >&5
40222sed 's/^/| /' conftest.$ac_ext >&5
40223
40224ac_cv_lib_dl_dlerror=no
40225fi
ac1cb8d3
VS
40226rm -f conftest.err conftest.$ac_objext \
40227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40228LIBS=$ac_check_lib_save_LIBS
40229fi
40230echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40231echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40232if test $ac_cv_lib_dl_dlerror = yes; then
40233 cat >>confdefs.h <<\_ACEOF
40234#define HAVE_DLERROR 1
40235_ACEOF
40236
40237fi
40238
40239
40240
40241fi
40242done
40243
40244 fi
40245 fi
40246
40247 if test "$HAVE_DL_FUNCS" = 0; then
40248 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40249 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40250 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40251echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40252 wxUSE_DYNAMIC_LOADER=no
40253 wxUSE_DYNLIB_CLASS=no
40254 else
40255 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40256echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40257 fi
40258 fi
40259 fi
40260 fi
40261fi
40262
40263if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40264 cat >>confdefs.h <<\_ACEOF
40265#define wxUSE_DYNAMIC_LOADER 1
40266_ACEOF
40267
40268fi
40269if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40270 cat >>confdefs.h <<\_ACEOF
40271#define wxUSE_DYNLIB_CLASS 1
40272_ACEOF
40273
40274fi
40275
40276
40277
40278if test "$wxUSE_PLUGINS" = "yes" ; then
40279 if test "$wxUSE_SHARED" = "no" ; then
40280 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40281echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40282 wxUSE_PLUGINS=no
40283 fi
40284 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40285 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40286echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40287 wxUSE_PLUGINS=no
40288 fi
40289 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40290 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40291echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40292 wxUSE_PLUGINS=no
40293 fi
40294 if test "$wxUSE_PLUGINS" = "yes" ; then
40295 cat >>confdefs.h <<\_ACEOF
40296#define wxUSE_PLUGINS 1
40297_ACEOF
40298
40299 fi
40300fi
40301
40302
40303if test "$wxUSE_STL" = "yes"; then
40304 cat >>confdefs.h <<\_ACEOF
40305#define wxUSE_STL 1
40306_ACEOF
40307
40308fi
40309
40310if test "$wxUSE_APPLE_IEEE" = "yes"; then
40311 cat >>confdefs.h <<\_ACEOF
40312#define wxUSE_APPLE_IEEE 1
40313_ACEOF
40314
40315fi
40316
40317if test "$wxUSE_TIMER" = "yes"; then
40318 cat >>confdefs.h <<\_ACEOF
40319#define wxUSE_TIMER 1
40320_ACEOF
40321
40322fi
40323
9c112555 40324if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40325 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40326echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40327if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40328 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40329else
d12aef51
VZ
40330
40331 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40332/* confdefs.h. */
40333_ACEOF
40334cat confdefs.h >>conftest.$ac_ext
40335cat >>conftest.$ac_ext <<_ACEOF
40336/* end confdefs.h. */
d12aef51
VZ
40337
40338 #include <sys/soundcard.h>
40339
40340int
40341main ()
40342{
40343
40344 ioctl(0, SNDCTL_DSP_SYNC, 0);
40345
40346 ;
40347 return 0;
40348}
a848cd7e 40349_ACEOF
d12aef51
VZ
40350rm -f conftest.$ac_objext conftest$ac_exeext
40351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40352 (eval $ac_link) 2>conftest.er1
a848cd7e 40353 ac_status=$?
ac1cb8d3
VS
40354 grep -v '^ *+' conftest.er1 >conftest.err
40355 rm -f conftest.er1
40356 cat conftest.err >&5
a848cd7e
SC
40357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40358 (exit $ac_status); } &&
3565d135
RR
40359 { ac_try='test -z "$ac_c_werror_flag"
40360 || test ! -s conftest.err'
ac1cb8d3
VS
40361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40362 (eval $ac_try) 2>&5
40363 ac_status=$?
40364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365 (exit $ac_status); }; } &&
d12aef51 40366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40368 (eval $ac_try) 2>&5
40369 ac_status=$?
40370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40371 (exit $ac_status); }; }; then
d12aef51 40372 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40373else
40374 echo "$as_me: failed program was:" >&5
40375sed 's/^/| /' conftest.$ac_ext >&5
40376
a848cd7e 40377
d12aef51
VZ
40378 saveLibs="$LIBS"
40379 LIBS="$saveLibs -lossaudio"
40380 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40381/* confdefs.h. */
40382_ACEOF
40383cat confdefs.h >>conftest.$ac_ext
40384cat >>conftest.$ac_ext <<_ACEOF
40385/* end confdefs.h. */
d12aef51
VZ
40386
40387 #include <sys/soundcard.h>
40388
40389int
40390main ()
40391{
40392
40393 ioctl(0, SNDCTL_DSP_SYNC, 0);
40394
40395 ;
40396 return 0;
40397}
a848cd7e 40398_ACEOF
d12aef51
VZ
40399rm -f conftest.$ac_objext conftest$ac_exeext
40400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40401 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40402 ac_status=$?
40403 grep -v '^ *+' conftest.er1 >conftest.err
40404 rm -f conftest.er1
40405 cat conftest.err >&5
40406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40407 (exit $ac_status); } &&
3565d135
RR
40408 { ac_try='test -z "$ac_c_werror_flag"
40409 || test ! -s conftest.err'
d12aef51
VZ
40410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40411 (eval $ac_try) 2>&5
40412 ac_status=$?
40413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414 (exit $ac_status); }; } &&
40415 { ac_try='test -s conftest$ac_exeext'
40416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40417 (eval $ac_try) 2>&5
40418 ac_status=$?
40419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420 (exit $ac_status); }; }; then
40421 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40422else
40423 echo "$as_me: failed program was:" >&5
40424sed 's/^/| /' conftest.$ac_ext >&5
40425
a848cd7e 40426
d12aef51
VZ
40427 LIBS="$saveLibs"
40428 ac_cv_header_sys_soundcard=no
40429
40430
a848cd7e 40431fi
d12aef51
VZ
40432rm -f conftest.err conftest.$ac_objext \
40433 conftest$ac_exeext conftest.$ac_ext
40434
a848cd7e
SC
40435
40436fi
d12aef51
VZ
40437rm -f conftest.err conftest.$ac_objext \
40438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40439
40440fi
d12aef51
VZ
40441echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40442echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40443
d12aef51
VZ
40444 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40445 cat >>confdefs.h <<\_ACEOF
40446#define HAVE_SYS_SOUNDCARD_H 1
40447_ACEOF
a848cd7e 40448
d12aef51
VZ
40449 else
40450 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40451 fi
9c112555
MW
40452fi
40453WITH_PLUGIN_SDL=0
40454if test "$wxUSE_SOUND" = "yes"; then
40455 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40456 if test "$wxUSE_LIBSDL" != "no"; then
40457
40458# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40459if test "${with_sdl_prefix+set}" = set; then
40460 withval="$with_sdl_prefix"
40461 sdl_prefix="$withval"
40462else
40463 sdl_prefix=""
40464fi;
40465
40466# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40467if test "${with_sdl_exec_prefix+set}" = set; then
40468 withval="$with_sdl_exec_prefix"
40469 sdl_exec_prefix="$withval"
40470else
40471 sdl_exec_prefix=""
40472fi;
40473# Check whether --enable-sdltest or --disable-sdltest was given.
40474if test "${enable_sdltest+set}" = set; then
40475 enableval="$enable_sdltest"
40476
40477else
40478 enable_sdltest=yes
40479fi;
40480
40481 if test x$sdl_exec_prefix != x ; then
40482 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40483 if test x${SDL_CONFIG+set} != xset ; then
40484 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40485 fi
40486 fi
40487 if test x$sdl_prefix != x ; then
40488 sdl_args="$sdl_args --prefix=$sdl_prefix"
40489 if test x${SDL_CONFIG+set} != xset ; then
40490 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40491 fi
40492 fi
40493
40494
40495 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40496 # Extract the first word of "sdl-config", so it can be a program name with args.
40497set dummy sdl-config; ac_word=$2
40498echo "$as_me:$LINENO: checking for $ac_word" >&5
40499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40500if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40501 echo $ECHO_N "(cached) $ECHO_C" >&6
40502else
40503 case $SDL_CONFIG in
40504 [\\/]* | ?:[\\/]*)
40505 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40506 ;;
40507 *)
40508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40509for as_dir in $PATH
40510do
40511 IFS=$as_save_IFS
40512 test -z "$as_dir" && as_dir=.
40513 for ac_exec_ext in '' $ac_executable_extensions; do
40514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40515 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40517 break 2
40518 fi
40519done
40520done
40521
40522 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40523 ;;
40524esac
40525fi
40526SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40527
40528if test -n "$SDL_CONFIG"; then
40529 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40530echo "${ECHO_T}$SDL_CONFIG" >&6
40531else
40532 echo "$as_me:$LINENO: result: no" >&5
40533echo "${ECHO_T}no" >&6
40534fi
40535
40536 min_sdl_version=1.2.0
40537 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40538echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40539 no_sdl=""
40540 if test "$SDL_CONFIG" = "no" ; then
40541 no_sdl=yes
40542 else
40543 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40544 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40545
40546 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40547 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40548 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40549 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40550 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40551 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40552 if test "x$enable_sdltest" = "xyes" ; then
40553 ac_save_CFLAGS="$CFLAGS"
94acd38e 40554 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40555 ac_save_LIBS="$LIBS"
40556 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40557 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40558 LIBS="$LIBS $SDL_LIBS"
40559 rm -f conf.sdltest
40560 if test "$cross_compiling" = yes; then
40561 echo $ac_n "cross compiling; assumed OK... $ac_c"
40562else
40563 cat >conftest.$ac_ext <<_ACEOF
40564/* confdefs.h. */
40565_ACEOF
40566cat confdefs.h >>conftest.$ac_ext
40567cat >>conftest.$ac_ext <<_ACEOF
40568/* end confdefs.h. */
40569
40570#include <stdio.h>
40571#include <stdlib.h>
40572#include <string.h>
40573#include "SDL.h"
40574
40575char*
40576my_strdup (char *str)
40577{
40578 char *new_str;
40579
40580 if (str)
40581 {
40582 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40583 strcpy (new_str, str);
40584 }
40585 else
40586 new_str = NULL;
40587
40588 return new_str;
40589}
40590
40591int main (int argc, char *argv[])
40592{
40593 int major, minor, micro;
40594 char *tmp_version;
40595
40596 /* This hangs on some systems (?)
40597 system ("touch conf.sdltest");
40598 */
40599 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40600
40601 /* HP/UX 9 (%@#!) writes to sscanf strings */
40602 tmp_version = my_strdup("$min_sdl_version");
40603 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40604 printf("%s, bad version string\n", "$min_sdl_version");
40605 exit(1);
40606 }
40607
40608 if (($sdl_major_version > major) ||
40609 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40610 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40611 {
40612 return 0;
40613 }
40614 else
40615 {
40616 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40617 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40618 printf("*** best to upgrade to the required version.\n");
40619 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40620 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40621 printf("*** config.cache before re-running configure\n");
40622 return 1;
40623 }
40624}
40625
40626
40627_ACEOF
40628rm -f conftest$ac_exeext
40629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40630 (eval $ac_link) 2>&5
40631 ac_status=$?
40632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40635 (eval $ac_try) 2>&5
40636 ac_status=$?
40637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40638 (exit $ac_status); }; }; then
40639 :
40640else
40641 echo "$as_me: program exited with status $ac_status" >&5
40642echo "$as_me: failed program was:" >&5
40643sed 's/^/| /' conftest.$ac_ext >&5
40644
40645( exit $ac_status )
40646no_sdl=yes
40647fi
ac1cb8d3 40648rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40649fi
40650 CFLAGS="$ac_save_CFLAGS"
94acd38e 40651 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40652 LIBS="$ac_save_LIBS"
40653 fi
40654 fi
40655 if test "x$no_sdl" = x ; then
40656 echo "$as_me:$LINENO: result: yes" >&5
40657echo "${ECHO_T}yes" >&6
40658
40659 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 40660 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
40661 cat >>confdefs.h <<\_ACEOF
40662#define wxUSE_LIBSDL 1
40663_ACEOF
40664
40665
40666 else
40667 echo "$as_me:$LINENO: result: no" >&5
40668echo "${ECHO_T}no" >&6
40669 if test "$SDL_CONFIG" = "no" ; then
40670 echo "*** The sdl-config script installed by SDL could not be found"
40671 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40672 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40673 echo "*** full path to sdl-config."
40674 else
40675 if test -f conf.sdltest ; then
40676 :
40677 else
40678 echo "*** Could not run SDL test program, checking why..."
40679 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40680 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40681 LIBS="$LIBS $SDL_LIBS"
40682 cat >conftest.$ac_ext <<_ACEOF
40683/* confdefs.h. */
40684_ACEOF
40685cat confdefs.h >>conftest.$ac_ext
40686cat >>conftest.$ac_ext <<_ACEOF
40687/* end confdefs.h. */
40688
40689#include <stdio.h>
40690#include "SDL.h"
40691
40692int main(int argc, char *argv[])
40693{ return 0; }
40694#undef main
40695#define main K_and_R_C_main
40696
40697int
40698main ()
40699{
40700 return 0;
40701 ;
40702 return 0;
40703}
40704_ACEOF
40705rm -f conftest.$ac_objext conftest$ac_exeext
40706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40707 (eval $ac_link) 2>conftest.er1
a848cd7e 40708 ac_status=$?
ac1cb8d3
VS
40709 grep -v '^ *+' conftest.er1 >conftest.err
40710 rm -f conftest.er1
40711 cat conftest.err >&5
a848cd7e
SC
40712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40713 (exit $ac_status); } &&
3565d135
RR
40714 { ac_try='test -z "$ac_c_werror_flag"
40715 || test ! -s conftest.err'
ac1cb8d3
VS
40716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40717 (eval $ac_try) 2>&5
40718 ac_status=$?
40719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40720 (exit $ac_status); }; } &&
40721 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40723 (eval $ac_try) 2>&5
40724 ac_status=$?
40725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40726 (exit $ac_status); }; }; then
40727 echo "*** The test program compiled, but did not run. This usually means"
40728 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40729 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40730 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40731 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40732 echo "*** is required on your system"
40733 echo "***"
40734 echo "*** If you have an old version installed, it is best to remove it, although"
40735 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40736else
40737 echo "$as_me: failed program was:" >&5
40738sed 's/^/| /' conftest.$ac_ext >&5
40739
40740 echo "*** The test program failed to compile or link. See the file config.log for the"
40741 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40742 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40743 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40744fi
ac1cb8d3
VS
40745rm -f conftest.err conftest.$ac_objext \
40746 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40747 CFLAGS="$ac_save_CFLAGS"
94acd38e 40748 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40749 LIBS="$ac_save_LIBS"
40750 fi
40751 fi
40752 SDL_CFLAGS=""
40753 SDL_LIBS=""
40754 wxUSE_LIBSDL="no"
40755 fi
40756
40757
40758 rm -f conf.sdltest
40759
40760 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40761 WITH_PLUGIN_SDL=1
40762 fi
40763 fi
40764 fi
40765
40766 cat >>confdefs.h <<\_ACEOF
40767#define wxUSE_SOUND 1
40768_ACEOF
40769
40770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40771fi
40772
d1c38808
VZ
40773if test "$WXGTK20" = 1; then
40774 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40775 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40776
40777
40778 succeeded=no
40779
40780 if test -z "$PKG_CONFIG"; then
40781 # Extract the first word of "pkg-config", so it can be a program name with args.
40782set dummy pkg-config; ac_word=$2
40783echo "$as_me:$LINENO: checking for $ac_word" >&5
40784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40785if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40786 echo $ECHO_N "(cached) $ECHO_C" >&6
40787else
40788 case $PKG_CONFIG in
40789 [\\/]* | ?:[\\/]*)
40790 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40791 ;;
40792 *)
40793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40794for as_dir in $PATH
40795do
40796 IFS=$as_save_IFS
40797 test -z "$as_dir" && as_dir=.
40798 for ac_exec_ext in '' $ac_executable_extensions; do
40799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40800 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40802 break 2
40803 fi
40804done
40805done
40806
40807 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40808 ;;
40809esac
40810fi
40811PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40812
40813if test -n "$PKG_CONFIG"; then
40814 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40815echo "${ECHO_T}$PKG_CONFIG" >&6
40816else
40817 echo "$as_me:$LINENO: result: no" >&5
40818echo "${ECHO_T}no" >&6
40819fi
40820
40821 fi
40822
40823 if test "$PKG_CONFIG" = "no" ; then
40824 echo "*** The pkg-config script could not be found. Make sure it is"
40825 echo "*** in your path, or set the PKG_CONFIG environment variable"
40826 echo "*** to the full path to pkg-config."
40827 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40828 else
40829 PKG_CONFIG_MIN_VERSION=0.9.0
40830 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
40831 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
40832echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 40833
ffa762ff 40834 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
40835 echo "$as_me:$LINENO: result: yes" >&5
40836echo "${ECHO_T}yes" >&6
40837 succeeded=yes
40838
40839 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
40840echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 40841 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40842 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
40843echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
40844
40845 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
40846echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 40847 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40848 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
40849echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
40850 else
40851 LIBGNOMEPRINTUI_CFLAGS=""
40852 LIBGNOMEPRINTUI_LIBS=""
40853 ## If we have a custom action on failure, don't print errors, but
40854 ## do set a variable so people can do so.
ffa762ff 40855 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40856
40857 fi
40858
40859
40860
40861 else
40862 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40863 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40864 fi
40865 fi
40866
40867 if test $succeeded = yes; then
40868
c92ad099 40869 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
40870 cat >>confdefs.h <<\_ACEOF
40871#define wxUSE_LIBGNOMEPRINT 1
40872_ACEOF
40873
40874
40875 else
40876
40877 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
40878echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
40879 wxUSE_LIBGNOMEPRINT="no"
40880
40881
40882 fi
40883
40884 fi
40885 fi
40886fi
40887
3565d135
RR
40888if test "$WXGTK20" = 1; then
40889 if test "$wxUSE_LIBHILDON" = "yes" ; then
40890
40891 succeeded=no
40892
40893 if test -z "$PKG_CONFIG"; then
40894 # Extract the first word of "pkg-config", so it can be a program name with args.
40895set dummy pkg-config; ac_word=$2
40896echo "$as_me:$LINENO: checking for $ac_word" >&5
40897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40898if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40899 echo $ECHO_N "(cached) $ECHO_C" >&6
40900else
40901 case $PKG_CONFIG in
40902 [\\/]* | ?:[\\/]*)
40903 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40904 ;;
40905 *)
40906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40907for as_dir in $PATH
40908do
40909 IFS=$as_save_IFS
40910 test -z "$as_dir" && as_dir=.
40911 for ac_exec_ext in '' $ac_executable_extensions; do
40912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40913 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40915 break 2
40916 fi
40917done
40918done
40919
40920 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40921 ;;
40922esac
40923fi
40924PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40925
40926if test -n "$PKG_CONFIG"; then
40927 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40928echo "${ECHO_T}$PKG_CONFIG" >&6
40929else
40930 echo "$as_me:$LINENO: result: no" >&5
40931echo "${ECHO_T}no" >&6
40932fi
40933
40934 fi
40935
40936 if test "$PKG_CONFIG" = "no" ; then
40937 echo "*** The pkg-config script could not be found. Make sure it is"
40938 echo "*** in your path, or set the PKG_CONFIG environment variable"
40939 echo "*** to the full path to pkg-config."
40940 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40941 else
40942 PKG_CONFIG_MIN_VERSION=0.9.0
40943 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40944 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
40945echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
40946
40947 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
40948 echo "$as_me:$LINENO: result: yes" >&5
40949echo "${ECHO_T}yes" >&6
40950 succeeded=yes
40951
40952 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
40953echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
40954 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
40955 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
40956echo "${ECHO_T}$HILDON_CFLAGS" >&6
40957
40958 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
40959echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
40960 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
40961 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
40962echo "${ECHO_T}$HILDON_LIBS" >&6
40963 else
40964 HILDON_CFLAGS=""
40965 HILDON_LIBS=""
40966 ## If we have a custom action on failure, don't print errors, but
40967 ## do set a variable so people can do so.
40968 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
40969
40970 fi
40971
40972
40973
40974 else
40975 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40976 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40977 fi
40978 fi
40979
40980 if test $succeeded = yes; then
40981
40982 EXTRALIBS_HILDON="$HILDON_LIBS"
40983 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
40984 cat >>confdefs.h <<\_ACEOF
40985#define wxUSE_LIBHILDON 1
40986_ACEOF
40987
40988
40989 else
40990
40991 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
40992echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
40993 wxUSE_LIBHILDON="no"
40994
40995
40996 fi
40997
40998 fi
40999fi
d1c38808 41000
a848cd7e
SC
41001if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41002 cat >>confdefs.h <<\_ACEOF
41003#define wxUSE_CMDLINE_PARSER 1
41004_ACEOF
41005
41006fi
41007
41008if test "$wxUSE_STOPWATCH" = "yes"; then
41009 cat >>confdefs.h <<\_ACEOF
41010#define wxUSE_STOPWATCH 1
41011_ACEOF
41012
41013fi
41014
41015if test "$wxUSE_DATETIME" = "yes"; then
41016 cat >>confdefs.h <<\_ACEOF
41017#define wxUSE_DATETIME 1
41018_ACEOF
41019
41020fi
41021
41022if test "$wxUSE_FILE" = "yes"; then
41023 cat >>confdefs.h <<\_ACEOF
41024#define wxUSE_FILE 1
41025_ACEOF
41026
41027fi
41028
41029if test "$wxUSE_FFILE" = "yes"; then
41030 cat >>confdefs.h <<\_ACEOF
41031#define wxUSE_FFILE 1
41032_ACEOF
41033
41034fi
41035
41036if test "$wxUSE_FILESYSTEM" = "yes"; then
41037 cat >>confdefs.h <<\_ACEOF
41038#define wxUSE_FILESYSTEM 1
41039_ACEOF
41040
41041fi
41042
41043if test "$wxUSE_FS_ZIP" = "yes"; then
41044 cat >>confdefs.h <<\_ACEOF
41045#define wxUSE_FS_ZIP 1
41046_ACEOF
41047
41048fi
41049
9e8e867f 41050if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41051 cat >>confdefs.h <<\_ACEOF
9e8e867f 41052#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41053_ACEOF
41054
41055fi
41056
41057if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41058 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41059 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41060echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41061 elif test "$wxUSE_ZLIB" = "no"; then
41062 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41063echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41064 else
41065 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41066#define wxUSE_ZIPSTREAM 1
41067_ACEOF
41068
81f90336 41069 fi
a848cd7e
SC
41070fi
41071
a848cd7e 41072if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41073 if test "$USE_UNIX" != 1; then
41074 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41075echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41076 wxUSE_ON_FATAL_EXCEPTION=no
41077 else
41078 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41079#define wxUSE_ON_FATAL_EXCEPTION 1
41080_ACEOF
41081
18228ab4 41082 fi
a848cd7e
SC
41083fi
41084
eaff0f0d
VZ
41085if test "$wxUSE_STACKWALKER" = "yes"; then
41086 cat >>confdefs.h <<\_ACEOF
41087#define wxUSE_STACKWALKER 1
41088_ACEOF
41089
41090fi
41091
36b6448c 41092if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41093 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41094 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41095echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41096 wxUSE_DEBUGREPORT=no
41097 else
41098 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41099#define wxUSE_DEBUGREPORT 1
41100_ACEOF
41101
21dfc162
MW
41102 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41104 fi
dfe0c803 41105 fi
36b6448c
VZ
41106fi
41107
a848cd7e
SC
41108if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41109 cat >>confdefs.h <<\_ACEOF
41110#define wxUSE_SNGLINST_CHECKER 1
41111_ACEOF
41112
41113fi
41114
41115if test "$wxUSE_BUSYINFO" = "yes"; then
41116 cat >>confdefs.h <<\_ACEOF
41117#define wxUSE_BUSYINFO 1
41118_ACEOF
41119
41120fi
41121
41122if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41123 cat >>confdefs.h <<\_ACEOF
41124#define wxUSE_STD_IOSTREAM 1
41125_ACEOF
41126
41127fi
41128
59746b65
MW
41129if test "$wxUSE_STD_STRING" = "yes"; then
41130 cat >>confdefs.h <<\_ACEOF
41131#define wxUSE_STD_STRING 1
41132_ACEOF
41133
41134fi
41135
07158944
VZ
41136if test "$wxUSE_STDPATHS" = "yes"; then
41137 cat >>confdefs.h <<\_ACEOF
41138#define wxUSE_STDPATHS 1
41139_ACEOF
41140
41141fi
41142
a848cd7e
SC
41143if test "$wxUSE_TEXTBUFFER" = "yes"; then
41144 cat >>confdefs.h <<\_ACEOF
41145#define wxUSE_TEXTBUFFER 1
41146_ACEOF
41147
41148fi
41149
41150if test "$wxUSE_TEXTFILE" = "yes"; then
41151 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41152 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41153echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41154 else
41155 cat >>confdefs.h <<\_ACEOF
41156#define wxUSE_TEXTFILE 1
41157_ACEOF
41158
41159 fi
41160fi
41161
41162if test "$wxUSE_CONFIG" = "yes" ; then
41163 if test "$wxUSE_TEXTFILE" != "yes"; then
41164 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41165echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41166 else
41167 cat >>confdefs.h <<\_ACEOF
41168#define wxUSE_CONFIG 1
89be85c2
VS
41169_ACEOF
41170
41171 cat >>confdefs.h <<\_ACEOF
41172#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41173_ACEOF
41174
41175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41176 fi
41177fi
41178
41179if test "$wxUSE_INTL" = "yes" ; then
41180 if test "$wxUSE_FILE" != "yes"; then
41181 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41182echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41183 else
41184 cat >>confdefs.h <<\_ACEOF
41185#define wxUSE_INTL 1
41186_ACEOF
41187
41188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41189 GUIDIST="$GUIDIST INTL_DIST"
41190 fi
41191fi
41192
41193if test "$wxUSE_LOG" = "yes"; then
41194 cat >>confdefs.h <<\_ACEOF
41195#define wxUSE_LOG 1
41196_ACEOF
41197
41198
41199 if test "$wxUSE_LOGGUI" = "yes"; then
41200 cat >>confdefs.h <<\_ACEOF
41201#define wxUSE_LOGGUI 1
41202_ACEOF
41203
41204 fi
41205
41206 if test "$wxUSE_LOGWINDOW" = "yes"; then
41207 cat >>confdefs.h <<\_ACEOF
41208#define wxUSE_LOGWINDOW 1
41209_ACEOF
41210
41211 fi
41212
41213 if test "$wxUSE_LOGDIALOG" = "yes"; then
41214 cat >>confdefs.h <<\_ACEOF
41215#define wxUSE_LOG_DIALOG 1
41216_ACEOF
41217
41218 fi
0b78747f
MW
41219
41220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41221fi
41222
41223if test "$wxUSE_LONGLONG" = "yes"; then
41224 cat >>confdefs.h <<\_ACEOF
41225#define wxUSE_LONGLONG 1
41226_ACEOF
41227
41228fi
41229
41230if test "$wxUSE_GEOMETRY" = "yes"; then
41231 cat >>confdefs.h <<\_ACEOF
41232#define wxUSE_GEOMETRY 1
41233_ACEOF
41234
41235fi
41236
a848cd7e
SC
41237if test "$wxUSE_STREAMS" = "yes" ; then
41238 cat >>confdefs.h <<\_ACEOF
41239#define wxUSE_STREAMS 1
41240_ACEOF
41241
41242fi
41243
41244
41245if test "$wxUSE_DATETIME" = "yes"; then
41246
41247for ac_func in strptime
41248do
41249as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41250echo "$as_me:$LINENO: checking for $ac_func" >&5
41251echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41252if eval "test \"\${$as_ac_var+set}\" = set"; then
41253 echo $ECHO_N "(cached) $ECHO_C" >&6
41254else
41255 cat >conftest.$ac_ext <<_ACEOF
41256/* confdefs.h. */
41257_ACEOF
41258cat confdefs.h >>conftest.$ac_ext
41259cat >>conftest.$ac_ext <<_ACEOF
41260/* end confdefs.h. */
ac1cb8d3
VS
41261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41263#define $ac_func innocuous_$ac_func
41264
a848cd7e
SC
41265/* System header to define __stub macros and hopefully few prototypes,
41266 which can conflict with char $ac_func (); below.
41267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41268 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41269
a848cd7e
SC
41270#ifdef __STDC__
41271# include <limits.h>
41272#else
41273# include <assert.h>
41274#endif
ac1cb8d3
VS
41275
41276#undef $ac_func
41277
a848cd7e
SC
41278/* Override any gcc2 internal prototype to avoid an error. */
41279#ifdef __cplusplus
41280extern "C"
41281{
41282#endif
41283/* We use char because int might match the return type of a gcc2
41284 builtin and then its argument prototype would still apply. */
41285char $ac_func ();
41286/* The GNU C library defines this for functions which it implements
41287 to always fail with ENOSYS. Some functions are actually named
41288 something starting with __ and the normal name is an alias. */
41289#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41290choke me
41291#else
41292char (*f) () = $ac_func;
41293#endif
41294#ifdef __cplusplus
41295}
41296#endif
41297
41298int
41299main ()
41300{
41301return f != $ac_func;
41302 ;
41303 return 0;
41304}
41305_ACEOF
41306rm -f conftest.$ac_objext conftest$ac_exeext
41307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41308 (eval $ac_link) 2>conftest.er1
a848cd7e 41309 ac_status=$?
ac1cb8d3
VS
41310 grep -v '^ *+' conftest.er1 >conftest.err
41311 rm -f conftest.er1
41312 cat conftest.err >&5
a848cd7e
SC
41313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41314 (exit $ac_status); } &&
3565d135
RR
41315 { ac_try='test -z "$ac_c_werror_flag"
41316 || test ! -s conftest.err'
ac1cb8d3
VS
41317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41318 (eval $ac_try) 2>&5
41319 ac_status=$?
41320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41321 (exit $ac_status); }; } &&
41322 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41324 (eval $ac_try) 2>&5
41325 ac_status=$?
41326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41327 (exit $ac_status); }; }; then
41328 eval "$as_ac_var=yes"
41329else
41330 echo "$as_me: failed program was:" >&5
41331sed 's/^/| /' conftest.$ac_ext >&5
41332
41333eval "$as_ac_var=no"
41334fi
ac1cb8d3
VS
41335rm -f conftest.err conftest.$ac_objext \
41336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41337fi
41338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41339echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41340if test `eval echo '${'$as_ac_var'}'` = yes; then
41341 cat >>confdefs.h <<_ACEOF
41342#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41343_ACEOF
41344
41345fi
41346done
41347
f536f005
VZ
41348 if test "$ac_cv_func_strptime" = "yes"; then
41349 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41350echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41351if test "${wx_cv_func_strptime_decl+set}" = set; then
41352 echo $ECHO_N "(cached) $ECHO_C" >&6
41353else
41354
f536f005
VZ
41355 ac_ext=cc
41356ac_cpp='$CXXCPP $CPPFLAGS'
41357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41360
41361 cat >conftest.$ac_ext <<_ACEOF
41362/* confdefs.h. */
41363_ACEOF
41364cat confdefs.h >>conftest.$ac_ext
41365cat >>conftest.$ac_ext <<_ACEOF
41366/* end confdefs.h. */
41367
41368 #include <time.h>
41369
41370int
41371main ()
41372{
41373
41374 struct tm t;
41375 strptime("foo", "bar", &t);
41376
41377 ;
41378 return 0;
41379}
41380_ACEOF
41381rm -f conftest.$ac_objext
41382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41383 (eval $ac_compile) 2>conftest.er1
41384 ac_status=$?
41385 grep -v '^ *+' conftest.er1 >conftest.err
41386 rm -f conftest.er1
41387 cat conftest.err >&5
41388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41389 (exit $ac_status); } &&
3565d135
RR
41390 { ac_try='test -z "$ac_cxx_werror_flag"
41391 || test ! -s conftest.err'
f536f005
VZ
41392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41393 (eval $ac_try) 2>&5
41394 ac_status=$?
41395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41396 (exit $ac_status); }; } &&
41397 { ac_try='test -s conftest.$ac_objext'
41398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41399 (eval $ac_try) 2>&5
41400 ac_status=$?
41401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41402 (exit $ac_status); }; }; then
41403 wx_cv_func_strptime_decl=yes
41404else
41405 echo "$as_me: failed program was:" >&5
41406sed 's/^/| /' conftest.$ac_ext >&5
41407
41408wx_cv_func_strptime_decl=no
41409
41410fi
41411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41412 ac_ext=c
41413ac_cpp='$CPP $CPPFLAGS'
41414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41416ac_compiler_gnu=$ac_cv_c_compiler_gnu
41417
41418
41419
41420fi
41421echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41422echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41423 fi
41424 if test "$wx_cv_func_strptime_decl" = "yes"; then
41425 cat >>confdefs.h <<\_ACEOF
41426#define HAVE_STRPTIME_DECL 1
41427_ACEOF
41428
41429 fi
a848cd7e
SC
41430
41431 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41432echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41433if test "${wx_cv_var_timezone+set}" = set; then
41434 echo $ECHO_N "(cached) $ECHO_C" >&6
41435else
41436
41437 cat >conftest.$ac_ext <<_ACEOF
41438/* confdefs.h. */
41439_ACEOF
41440cat confdefs.h >>conftest.$ac_ext
41441cat >>conftest.$ac_ext <<_ACEOF
41442/* end confdefs.h. */
41443
41444 #include <time.h>
41445
41446int
41447main ()
41448{
41449
41450 int tz;
41451 tz = timezone;
41452
41453 ;
41454 return 0;
41455}
41456_ACEOF
41457rm -f conftest.$ac_objext
41458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41459 (eval $ac_compile) 2>conftest.er1
a848cd7e 41460 ac_status=$?
ac1cb8d3
VS
41461 grep -v '^ *+' conftest.er1 >conftest.err
41462 rm -f conftest.er1
41463 cat conftest.err >&5
a848cd7e
SC
41464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41465 (exit $ac_status); } &&
3565d135
RR
41466 { ac_try='test -z "$ac_c_werror_flag"
41467 || test ! -s conftest.err'
ac1cb8d3
VS
41468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41469 (eval $ac_try) 2>&5
41470 ac_status=$?
41471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41472 (exit $ac_status); }; } &&
41473 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41475 (eval $ac_try) 2>&5
41476 ac_status=$?
41477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41478 (exit $ac_status); }; }; then
41479
41480 wx_cv_var_timezone=timezone
41481
41482else
41483 echo "$as_me: failed program was:" >&5
41484sed 's/^/| /' conftest.$ac_ext >&5
41485
41486
41487 cat >conftest.$ac_ext <<_ACEOF
41488/* confdefs.h. */
41489_ACEOF
41490cat confdefs.h >>conftest.$ac_ext
41491cat >>conftest.$ac_ext <<_ACEOF
41492/* end confdefs.h. */
41493
41494 #include <time.h>
41495
41496int
41497main ()
41498{
41499
41500 int tz;
41501 tz = _timezone;
41502
41503 ;
41504 return 0;
41505}
41506_ACEOF
41507rm -f conftest.$ac_objext
41508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41509 (eval $ac_compile) 2>conftest.er1
a848cd7e 41510 ac_status=$?
ac1cb8d3
VS
41511 grep -v '^ *+' conftest.er1 >conftest.err
41512 rm -f conftest.er1
41513 cat conftest.err >&5
a848cd7e
SC
41514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41515 (exit $ac_status); } &&
3565d135
RR
41516 { ac_try='test -z "$ac_c_werror_flag"
41517 || test ! -s conftest.err'
ac1cb8d3
VS
41518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41519 (eval $ac_try) 2>&5
41520 ac_status=$?
41521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41522 (exit $ac_status); }; } &&
41523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41525 (eval $ac_try) 2>&5
41526 ac_status=$?
41527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41528 (exit $ac_status); }; }; then
41529
41530 wx_cv_var_timezone=_timezone
41531
41532else
41533 echo "$as_me: failed program was:" >&5
41534sed 's/^/| /' conftest.$ac_ext >&5
41535
41536
41537 cat >conftest.$ac_ext <<_ACEOF
41538/* confdefs.h. */
41539_ACEOF
41540cat confdefs.h >>conftest.$ac_ext
41541cat >>conftest.$ac_ext <<_ACEOF
41542/* end confdefs.h. */
41543
41544 #include <time.h>
41545
41546int
41547main ()
41548{
41549
41550 int tz;
41551 tz = __timezone;
41552
41553 ;
41554 return 0;
41555}
41556_ACEOF
41557rm -f conftest.$ac_objext
41558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41559 (eval $ac_compile) 2>conftest.er1
a848cd7e 41560 ac_status=$?
ac1cb8d3
VS
41561 grep -v '^ *+' conftest.er1 >conftest.err
41562 rm -f conftest.er1
41563 cat conftest.err >&5
a848cd7e
SC
41564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41565 (exit $ac_status); } &&
3565d135
RR
41566 { ac_try='test -z "$ac_c_werror_flag"
41567 || test ! -s conftest.err'
ac1cb8d3
VS
41568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41569 (eval $ac_try) 2>&5
41570 ac_status=$?
41571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41572 (exit $ac_status); }; } &&
41573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41575 (eval $ac_try) 2>&5
41576 ac_status=$?
41577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41578 (exit $ac_status); }; }; then
41579
41580 wx_cv_var_timezone=__timezone
41581
41582else
41583 echo "$as_me: failed program was:" >&5
41584sed 's/^/| /' conftest.$ac_ext >&5
41585
41586
41587 if test "$USE_DOS" = 0 ; then
41588 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41589echo "$as_me: WARNING: no timezone variable" >&2;}
41590 fi
41591
41592
41593fi
ac1cb8d3 41594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41595
41596
41597fi
ac1cb8d3 41598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41599
41600
41601fi
ac1cb8d3 41602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41603
41604
41605fi
41606echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41607echo "${ECHO_T}$wx_cv_var_timezone" >&6
41608
41609 if test "x$wx_cv_var_timezone" != x ; then
41610 cat >>confdefs.h <<_ACEOF
41611#define WX_TIMEZONE $wx_cv_var_timezone
41612_ACEOF
41613
41614 fi
41615
41616
41617for ac_func in localtime
41618do
41619as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41620echo "$as_me:$LINENO: checking for $ac_func" >&5
41621echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41622if eval "test \"\${$as_ac_var+set}\" = set"; then
41623 echo $ECHO_N "(cached) $ECHO_C" >&6
41624else
41625 cat >conftest.$ac_ext <<_ACEOF
41626/* confdefs.h. */
41627_ACEOF
41628cat confdefs.h >>conftest.$ac_ext
41629cat >>conftest.$ac_ext <<_ACEOF
41630/* end confdefs.h. */
ac1cb8d3
VS
41631/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41633#define $ac_func innocuous_$ac_func
41634
a848cd7e
SC
41635/* System header to define __stub macros and hopefully few prototypes,
41636 which can conflict with char $ac_func (); below.
41637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41638 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41639
a848cd7e
SC
41640#ifdef __STDC__
41641# include <limits.h>
41642#else
41643# include <assert.h>
41644#endif
ac1cb8d3
VS
41645
41646#undef $ac_func
41647
a848cd7e
SC
41648/* Override any gcc2 internal prototype to avoid an error. */
41649#ifdef __cplusplus
41650extern "C"
41651{
41652#endif
41653/* We use char because int might match the return type of a gcc2
41654 builtin and then its argument prototype would still apply. */
41655char $ac_func ();
41656/* The GNU C library defines this for functions which it implements
41657 to always fail with ENOSYS. Some functions are actually named
41658 something starting with __ and the normal name is an alias. */
41659#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41660choke me
41661#else
41662char (*f) () = $ac_func;
41663#endif
41664#ifdef __cplusplus
41665}
41666#endif
41667
41668int
41669main ()
41670{
41671return f != $ac_func;
41672 ;
41673 return 0;
41674}
41675_ACEOF
41676rm -f conftest.$ac_objext conftest$ac_exeext
41677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41678 (eval $ac_link) 2>conftest.er1
a848cd7e 41679 ac_status=$?
ac1cb8d3
VS
41680 grep -v '^ *+' conftest.er1 >conftest.err
41681 rm -f conftest.er1
41682 cat conftest.err >&5
a848cd7e
SC
41683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41684 (exit $ac_status); } &&
3565d135
RR
41685 { ac_try='test -z "$ac_c_werror_flag"
41686 || test ! -s conftest.err'
ac1cb8d3
VS
41687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41688 (eval $ac_try) 2>&5
41689 ac_status=$?
41690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41691 (exit $ac_status); }; } &&
41692 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41694 (eval $ac_try) 2>&5
41695 ac_status=$?
41696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41697 (exit $ac_status); }; }; then
41698 eval "$as_ac_var=yes"
41699else
41700 echo "$as_me: failed program was:" >&5
41701sed 's/^/| /' conftest.$ac_ext >&5
41702
41703eval "$as_ac_var=no"
41704fi
ac1cb8d3
VS
41705rm -f conftest.err conftest.$ac_objext \
41706 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41707fi
41708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41709echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41710if test `eval echo '${'$as_ac_var'}'` = yes; then
41711 cat >>confdefs.h <<_ACEOF
41712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41713_ACEOF
41714
41715fi
41716done
41717
41718
41719 if test "$ac_cv_func_localtime" = "yes"; then
41720 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41721echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41722if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41723 echo $ECHO_N "(cached) $ECHO_C" >&6
41724else
41725
41726 cat >conftest.$ac_ext <<_ACEOF
41727/* confdefs.h. */
41728_ACEOF
41729cat confdefs.h >>conftest.$ac_ext
41730cat >>conftest.$ac_ext <<_ACEOF
41731/* end confdefs.h. */
41732
41733 #include <time.h>
41734
41735int
41736main ()
41737{
41738
41739 struct tm tm;
41740 tm.tm_gmtoff++;
41741
41742 ;
41743 return 0;
41744}
41745_ACEOF
41746rm -f conftest.$ac_objext
41747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41748 (eval $ac_compile) 2>conftest.er1
a848cd7e 41749 ac_status=$?
ac1cb8d3
VS
41750 grep -v '^ *+' conftest.er1 >conftest.err
41751 rm -f conftest.er1
41752 cat conftest.err >&5
a848cd7e
SC
41753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754 (exit $ac_status); } &&
3565d135
RR
41755 { ac_try='test -z "$ac_c_werror_flag"
41756 || test ! -s conftest.err'
ac1cb8d3
VS
41757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41758 (eval $ac_try) 2>&5
41759 ac_status=$?
41760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41761 (exit $ac_status); }; } &&
41762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41764 (eval $ac_try) 2>&5
41765 ac_status=$?
41766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41767 (exit $ac_status); }; }; then
41768
41769 wx_cv_struct_tm_has_gmtoff=yes
41770
41771else
41772 echo "$as_me: failed program was:" >&5
41773sed 's/^/| /' conftest.$ac_ext >&5
41774
41775wx_cv_struct_tm_has_gmtoff=no
41776
41777fi
ac1cb8d3 41778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41779
41780fi
41781echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
41782echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
41783 fi
41784
41785 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
41786 cat >>confdefs.h <<\_ACEOF
41787#define WX_GMTOFF_IN_TM 1
41788_ACEOF
41789
41790 fi
41791
41792
41793
41794for ac_func in gettimeofday ftime
41795do
41796as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41797echo "$as_me:$LINENO: checking for $ac_func" >&5
41798echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41799if eval "test \"\${$as_ac_var+set}\" = set"; then
41800 echo $ECHO_N "(cached) $ECHO_C" >&6
41801else
41802 cat >conftest.$ac_ext <<_ACEOF
41803/* confdefs.h. */
41804_ACEOF
41805cat confdefs.h >>conftest.$ac_ext
41806cat >>conftest.$ac_ext <<_ACEOF
41807/* end confdefs.h. */
ac1cb8d3
VS
41808/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41810#define $ac_func innocuous_$ac_func
41811
a848cd7e
SC
41812/* System header to define __stub macros and hopefully few prototypes,
41813 which can conflict with char $ac_func (); below.
41814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41815 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41816
a848cd7e
SC
41817#ifdef __STDC__
41818# include <limits.h>
41819#else
41820# include <assert.h>
41821#endif
ac1cb8d3
VS
41822
41823#undef $ac_func
41824
a848cd7e
SC
41825/* Override any gcc2 internal prototype to avoid an error. */
41826#ifdef __cplusplus
41827extern "C"
41828{
41829#endif
41830/* We use char because int might match the return type of a gcc2
41831 builtin and then its argument prototype would still apply. */
41832char $ac_func ();
41833/* The GNU C library defines this for functions which it implements
41834 to always fail with ENOSYS. Some functions are actually named
41835 something starting with __ and the normal name is an alias. */
41836#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41837choke me
41838#else
41839char (*f) () = $ac_func;
41840#endif
41841#ifdef __cplusplus
41842}
41843#endif
41844
41845int
41846main ()
41847{
41848return f != $ac_func;
41849 ;
41850 return 0;
41851}
41852_ACEOF
41853rm -f conftest.$ac_objext conftest$ac_exeext
41854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41855 (eval $ac_link) 2>conftest.er1
a848cd7e 41856 ac_status=$?
ac1cb8d3
VS
41857 grep -v '^ *+' conftest.er1 >conftest.err
41858 rm -f conftest.er1
41859 cat conftest.err >&5
a848cd7e
SC
41860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41861 (exit $ac_status); } &&
3565d135
RR
41862 { ac_try='test -z "$ac_c_werror_flag"
41863 || test ! -s conftest.err'
ac1cb8d3
VS
41864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41865 (eval $ac_try) 2>&5
41866 ac_status=$?
41867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41868 (exit $ac_status); }; } &&
41869 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41871 (eval $ac_try) 2>&5
41872 ac_status=$?
41873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41874 (exit $ac_status); }; }; then
41875 eval "$as_ac_var=yes"
41876else
41877 echo "$as_me: failed program was:" >&5
41878sed 's/^/| /' conftest.$ac_ext >&5
41879
41880eval "$as_ac_var=no"
41881fi
ac1cb8d3
VS
41882rm -f conftest.err conftest.$ac_objext \
41883 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41884fi
41885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41887if test `eval echo '${'$as_ac_var'}'` = yes; then
41888 cat >>confdefs.h <<_ACEOF
41889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41890_ACEOF
41891 break
41892fi
41893done
41894
41895
41896 if test "$ac_cv_func_gettimeofday" = "yes"; then
41897 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
41898echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
41899if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
41900 echo $ECHO_N "(cached) $ECHO_C" >&6
41901else
41902
5ec3bc43 41903 ac_ext=cc
a848cd7e
SC
41904ac_cpp='$CXXCPP $CPPFLAGS'
41905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41908
41909
41910 cat >conftest.$ac_ext <<_ACEOF
41911/* confdefs.h. */
41912_ACEOF
41913cat confdefs.h >>conftest.$ac_ext
41914cat >>conftest.$ac_ext <<_ACEOF
41915/* end confdefs.h. */
41916
41917 #include <sys/time.h>
41918 #include <unistd.h>
41919
41920int
41921main ()
41922{
41923
41924 struct timeval tv;
41925 gettimeofday(&tv, NULL);
41926
41927 ;
41928 return 0;
41929}
41930_ACEOF
41931rm -f conftest.$ac_objext
41932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41933 (eval $ac_compile) 2>conftest.er1
a848cd7e 41934 ac_status=$?
ac1cb8d3
VS
41935 grep -v '^ *+' conftest.er1 >conftest.err
41936 rm -f conftest.er1
41937 cat conftest.err >&5
a848cd7e
SC
41938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41939 (exit $ac_status); } &&
3565d135
RR
41940 { ac_try='test -z "$ac_cxx_werror_flag"
41941 || test ! -s conftest.err'
ac1cb8d3
VS
41942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41943 (eval $ac_try) 2>&5
41944 ac_status=$?
41945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946 (exit $ac_status); }; } &&
41947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41949 (eval $ac_try) 2>&5
41950 ac_status=$?
41951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41952 (exit $ac_status); }; }; then
41953 wx_cv_func_gettimeofday_has_2_args=yes
41954else
41955 echo "$as_me: failed program was:" >&5
41956sed 's/^/| /' conftest.$ac_ext >&5
41957
41958cat >conftest.$ac_ext <<_ACEOF
41959/* confdefs.h. */
41960_ACEOF
41961cat confdefs.h >>conftest.$ac_ext
41962cat >>conftest.$ac_ext <<_ACEOF
41963/* end confdefs.h. */
41964
41965 #include <sys/time.h>
41966 #include <unistd.h>
41967
41968int
41969main ()
41970{
41971
41972 struct timeval tv;
41973 gettimeofday(&tv);
41974
41975 ;
41976 return 0;
41977}
41978_ACEOF
41979rm -f conftest.$ac_objext
41980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41981 (eval $ac_compile) 2>conftest.er1
a848cd7e 41982 ac_status=$?
ac1cb8d3
VS
41983 grep -v '^ *+' conftest.er1 >conftest.err
41984 rm -f conftest.er1
41985 cat conftest.err >&5
a848cd7e
SC
41986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41987 (exit $ac_status); } &&
3565d135
RR
41988 { ac_try='test -z "$ac_cxx_werror_flag"
41989 || test ! -s conftest.err'
ac1cb8d3
VS
41990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41991 (eval $ac_try) 2>&5
41992 ac_status=$?
41993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41994 (exit $ac_status); }; } &&
41995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41997 (eval $ac_try) 2>&5
41998 ac_status=$?
41999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42000 (exit $ac_status); }; }; then
42001 wx_cv_func_gettimeofday_has_2_args=no
42002else
42003 echo "$as_me: failed program was:" >&5
42004sed 's/^/| /' conftest.$ac_ext >&5
42005
42006
42007 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42008echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42009 wx_cv_func_gettimeofday_has_2_args=unknown
42010
42011
42012fi
ac1cb8d3 42013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42014
42015fi
ac1cb8d3 42016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42017 ac_ext=c
42018ac_cpp='$CPP $CPPFLAGS'
42019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42021ac_compiler_gnu=$ac_cv_c_compiler_gnu
42022
42023
42024fi
42025echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42026echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42027
42028 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42029 cat >>confdefs.h <<\_ACEOF
42030#define WX_GETTIMEOFDAY_NO_TZ 1
42031_ACEOF
42032
42033 fi
42034 fi
42035
42036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42037fi
42038
42039
42040if test "$wxUSE_SOCKETS" = "yes"; then
42041 if test "$wxUSE_MGL" = "1"; then
42042 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42043echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42044 wxUSE_SOCKETS="no"
42045 fi
42046fi
42047
42048if test "$wxUSE_SOCKETS" = "yes"; then
42049 if test "$TOOLKIT" != "MSW"; then
42050 echo "$as_me:$LINENO: checking for socket" >&5
42051echo $ECHO_N "checking for socket... $ECHO_C" >&6
42052if test "${ac_cv_func_socket+set}" = set; then
42053 echo $ECHO_N "(cached) $ECHO_C" >&6
42054else
42055 cat >conftest.$ac_ext <<_ACEOF
42056/* confdefs.h. */
42057_ACEOF
42058cat confdefs.h >>conftest.$ac_ext
42059cat >>conftest.$ac_ext <<_ACEOF
42060/* end confdefs.h. */
ac1cb8d3
VS
42061/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42063#define socket innocuous_socket
42064
a848cd7e
SC
42065/* System header to define __stub macros and hopefully few prototypes,
42066 which can conflict with char socket (); below.
42067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42068 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42069
a848cd7e
SC
42070#ifdef __STDC__
42071# include <limits.h>
42072#else
42073# include <assert.h>
42074#endif
ac1cb8d3
VS
42075
42076#undef socket
42077
a848cd7e
SC
42078/* Override any gcc2 internal prototype to avoid an error. */
42079#ifdef __cplusplus
42080extern "C"
42081{
42082#endif
42083/* We use char because int might match the return type of a gcc2
42084 builtin and then its argument prototype would still apply. */
42085char socket ();
42086/* The GNU C library defines this for functions which it implements
42087 to always fail with ENOSYS. Some functions are actually named
42088 something starting with __ and the normal name is an alias. */
42089#if defined (__stub_socket) || defined (__stub___socket)
42090choke me
42091#else
42092char (*f) () = socket;
42093#endif
42094#ifdef __cplusplus
42095}
42096#endif
42097
42098int
42099main ()
42100{
42101return f != socket;
42102 ;
42103 return 0;
42104}
42105_ACEOF
42106rm -f conftest.$ac_objext conftest$ac_exeext
42107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42108 (eval $ac_link) 2>conftest.er1
a848cd7e 42109 ac_status=$?
ac1cb8d3
VS
42110 grep -v '^ *+' conftest.er1 >conftest.err
42111 rm -f conftest.er1
42112 cat conftest.err >&5
a848cd7e
SC
42113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42114 (exit $ac_status); } &&
3565d135
RR
42115 { ac_try='test -z "$ac_c_werror_flag"
42116 || test ! -s conftest.err'
ac1cb8d3
VS
42117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42118 (eval $ac_try) 2>&5
42119 ac_status=$?
42120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42121 (exit $ac_status); }; } &&
42122 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42124 (eval $ac_try) 2>&5
42125 ac_status=$?
42126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42127 (exit $ac_status); }; }; then
42128 ac_cv_func_socket=yes
42129else
42130 echo "$as_me: failed program was:" >&5
42131sed 's/^/| /' conftest.$ac_ext >&5
42132
42133ac_cv_func_socket=no
42134fi
ac1cb8d3
VS
42135rm -f conftest.err conftest.$ac_objext \
42136 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42137fi
42138echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42139echo "${ECHO_T}$ac_cv_func_socket" >&6
42140if test $ac_cv_func_socket = yes; then
42141 :
42142else
42143
42144 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42145echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42146if test "${ac_cv_lib_socket_socket+set}" = set; then
42147 echo $ECHO_N "(cached) $ECHO_C" >&6
42148else
42149 ac_check_lib_save_LIBS=$LIBS
42150LIBS="-lsocket $LIBS"
42151cat >conftest.$ac_ext <<_ACEOF
42152/* confdefs.h. */
42153_ACEOF
42154cat confdefs.h >>conftest.$ac_ext
42155cat >>conftest.$ac_ext <<_ACEOF
42156/* end confdefs.h. */
42157
42158/* Override any gcc2 internal prototype to avoid an error. */
42159#ifdef __cplusplus
42160extern "C"
42161#endif
42162/* We use char because int might match the return type of a gcc2
42163 builtin and then its argument prototype would still apply. */
42164char socket ();
42165int
42166main ()
42167{
42168socket ();
42169 ;
42170 return 0;
42171}
42172_ACEOF
42173rm -f conftest.$ac_objext conftest$ac_exeext
42174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42175 (eval $ac_link) 2>conftest.er1
a848cd7e 42176 ac_status=$?
ac1cb8d3
VS
42177 grep -v '^ *+' conftest.er1 >conftest.err
42178 rm -f conftest.er1
42179 cat conftest.err >&5
a848cd7e
SC
42180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42181 (exit $ac_status); } &&
3565d135
RR
42182 { ac_try='test -z "$ac_c_werror_flag"
42183 || test ! -s conftest.err'
ac1cb8d3
VS
42184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42185 (eval $ac_try) 2>&5
42186 ac_status=$?
42187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42188 (exit $ac_status); }; } &&
42189 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42191 (eval $ac_try) 2>&5
42192 ac_status=$?
42193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42194 (exit $ac_status); }; }; then
42195 ac_cv_lib_socket_socket=yes
42196else
42197 echo "$as_me: failed program was:" >&5
42198sed 's/^/| /' conftest.$ac_ext >&5
42199
42200ac_cv_lib_socket_socket=no
42201fi
ac1cb8d3
VS
42202rm -f conftest.err conftest.$ac_objext \
42203 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42204LIBS=$ac_check_lib_save_LIBS
42205fi
42206echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42207echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42208if test $ac_cv_lib_socket_socket = yes; then
42209 if test "$INET_LINK" != " -lsocket"; then
42210 INET_LINK="$INET_LINK -lsocket"
42211 fi
42212else
42213
42214 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42215echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42216 wxUSE_SOCKETS=no
42217
42218
42219fi
42220
42221
42222
42223fi
42224
42225 fi
42226fi
42227
42228if test "$wxUSE_SOCKETS" = "yes" ; then
42229 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
42230 ac_ext=cc
42231ac_cpp='$CXXCPP $CPPFLAGS'
42232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42235
42236 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42237echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42238if test "${wx_cv_type_getsockname3+set}" = set; then
42239 echo $ECHO_N "(cached) $ECHO_C" >&6
42240else
42241
42242 cat >conftest.$ac_ext <<_ACEOF
42243/* confdefs.h. */
42244_ACEOF
42245cat confdefs.h >>conftest.$ac_ext
42246cat >>conftest.$ac_ext <<_ACEOF
42247/* end confdefs.h. */
42248
42249 #include <sys/types.h>
42250 #include <sys/socket.h>
42251
42252int
42253main ()
42254{
42255
42256 socklen_t len;
42257 getsockname(0, 0, &len);
42258
42259 ;
42260 return 0;
42261}
42262_ACEOF
42263rm -f conftest.$ac_objext
42264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42265 (eval $ac_compile) 2>conftest.er1
a848cd7e 42266 ac_status=$?
ac1cb8d3
VS
42267 grep -v '^ *+' conftest.er1 >conftest.err
42268 rm -f conftest.er1
42269 cat conftest.err >&5
a848cd7e
SC
42270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42271 (exit $ac_status); } &&
3565d135
RR
42272 { ac_try='test -z "$ac_cxx_werror_flag"
42273 || test ! -s conftest.err'
ac1cb8d3
VS
42274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42275 (eval $ac_try) 2>&5
42276 ac_status=$?
42277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42278 (exit $ac_status); }; } &&
42279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42281 (eval $ac_try) 2>&5
42282 ac_status=$?
42283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42284 (exit $ac_status); }; }; then
42285 wx_cv_type_getsockname3=socklen_t
42286else
42287 echo "$as_me: failed program was:" >&5
42288sed 's/^/| /' conftest.$ac_ext >&5
42289
42290
6459a506 42291 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42292 if test "$GCC" = yes ; then
c92ad099 42293 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42294 fi
42295
42296 cat >conftest.$ac_ext <<_ACEOF
42297/* confdefs.h. */
42298_ACEOF
42299cat confdefs.h >>conftest.$ac_ext
42300cat >>conftest.$ac_ext <<_ACEOF
42301/* end confdefs.h. */
42302
42303 #include <sys/types.h>
42304 #include <sys/socket.h>
42305
42306int
42307main ()
42308{
42309
42310 size_t len;
42311 getsockname(0, 0, &len);
42312
42313 ;
42314 return 0;
42315}
42316_ACEOF
42317rm -f conftest.$ac_objext
42318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42319 (eval $ac_compile) 2>conftest.er1
a848cd7e 42320 ac_status=$?
ac1cb8d3
VS
42321 grep -v '^ *+' conftest.er1 >conftest.err
42322 rm -f conftest.er1
42323 cat conftest.err >&5
a848cd7e
SC
42324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42325 (exit $ac_status); } &&
3565d135
RR
42326 { ac_try='test -z "$ac_cxx_werror_flag"
42327 || test ! -s conftest.err'
ac1cb8d3
VS
42328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42329 (eval $ac_try) 2>&5
42330 ac_status=$?
42331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42332 (exit $ac_status); }; } &&
42333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42335 (eval $ac_try) 2>&5
42336 ac_status=$?
42337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42338 (exit $ac_status); }; }; then
42339 wx_cv_type_getsockname3=size_t
42340else
42341 echo "$as_me: failed program was:" >&5
42342sed 's/^/| /' conftest.$ac_ext >&5
42343
42344cat >conftest.$ac_ext <<_ACEOF
42345/* confdefs.h. */
42346_ACEOF
42347cat confdefs.h >>conftest.$ac_ext
42348cat >>conftest.$ac_ext <<_ACEOF
42349/* end confdefs.h. */
42350
42351 #include <sys/types.h>
42352 #include <sys/socket.h>
42353
42354int
42355main ()
42356{
42357
42358 int len;
42359 getsockname(0, 0, &len);
42360
42361 ;
42362 return 0;
42363}
42364_ACEOF
42365rm -f conftest.$ac_objext
42366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42367 (eval $ac_compile) 2>conftest.er1
a848cd7e 42368 ac_status=$?
ac1cb8d3
VS
42369 grep -v '^ *+' conftest.er1 >conftest.err
42370 rm -f conftest.er1
42371 cat conftest.err >&5
a848cd7e
SC
42372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42373 (exit $ac_status); } &&
3565d135
RR
42374 { ac_try='test -z "$ac_cxx_werror_flag"
42375 || test ! -s conftest.err'
ac1cb8d3
VS
42376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42377 (eval $ac_try) 2>&5
42378 ac_status=$?
42379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42380 (exit $ac_status); }; } &&
42381 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42383 (eval $ac_try) 2>&5
42384 ac_status=$?
42385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42386 (exit $ac_status); }; }; then
42387 wx_cv_type_getsockname3=int
42388else
42389 echo "$as_me: failed program was:" >&5
42390sed 's/^/| /' conftest.$ac_ext >&5
42391
42392wx_cv_type_getsockname3=unknown
42393
42394fi
ac1cb8d3 42395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42396
42397fi
ac1cb8d3 42398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42399
6459a506 42400 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42401
42402
42403fi
ac1cb8d3 42404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42405
42406fi
42407echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42408echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42409
42410 if test "$wx_cv_type_getsockname3" = "unknown"; then
42411 wxUSE_SOCKETS=no
42412 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42413echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42414 else
42415 cat >>confdefs.h <<_ACEOF
9e03e02d 42416#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42417_ACEOF
42418
42419 fi
42420 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42421echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42422if test "${wx_cv_type_getsockopt5+set}" = set; then
42423 echo $ECHO_N "(cached) $ECHO_C" >&6
42424else
42425
42426 cat >conftest.$ac_ext <<_ACEOF
42427/* confdefs.h. */
42428_ACEOF
42429cat confdefs.h >>conftest.$ac_ext
42430cat >>conftest.$ac_ext <<_ACEOF
42431/* end confdefs.h. */
42432
42433 #include <sys/types.h>
42434 #include <sys/socket.h>
42435
42436int
42437main ()
42438{
42439
42440 socklen_t len;
42441 getsockopt(0, 0, 0, 0, &len);
42442
42443 ;
42444 return 0;
42445}
42446_ACEOF
42447rm -f conftest.$ac_objext
42448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42449 (eval $ac_compile) 2>conftest.er1
42450 ac_status=$?
42451 grep -v '^ *+' conftest.er1 >conftest.err
42452 rm -f conftest.er1
42453 cat conftest.err >&5
42454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42455 (exit $ac_status); } &&
3565d135
RR
42456 { ac_try='test -z "$ac_cxx_werror_flag"
42457 || test ! -s conftest.err'
5b674b9d
DE
42458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42459 (eval $ac_try) 2>&5
42460 ac_status=$?
42461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42462 (exit $ac_status); }; } &&
42463 { ac_try='test -s conftest.$ac_objext'
42464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42465 (eval $ac_try) 2>&5
42466 ac_status=$?
42467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42468 (exit $ac_status); }; }; then
42469 wx_cv_type_getsockopt5=socklen_t
42470else
42471 echo "$as_me: failed program was:" >&5
42472sed 's/^/| /' conftest.$ac_ext >&5
42473
42474
6459a506 42475 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42476 if test "$GCC" = yes ; then
c92ad099 42477 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42478 fi
42479
42480 cat >conftest.$ac_ext <<_ACEOF
42481/* confdefs.h. */
42482_ACEOF
42483cat confdefs.h >>conftest.$ac_ext
42484cat >>conftest.$ac_ext <<_ACEOF
42485/* end confdefs.h. */
42486
42487 #include <sys/types.h>
42488 #include <sys/socket.h>
42489
42490int
42491main ()
42492{
42493
42494 size_t len;
42495 getsockopt(0, 0, 0, 0, &len);
42496
42497 ;
42498 return 0;
42499}
42500_ACEOF
42501rm -f conftest.$ac_objext
42502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42503 (eval $ac_compile) 2>conftest.er1
42504 ac_status=$?
42505 grep -v '^ *+' conftest.er1 >conftest.err
42506 rm -f conftest.er1
42507 cat conftest.err >&5
42508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42509 (exit $ac_status); } &&
3565d135
RR
42510 { ac_try='test -z "$ac_cxx_werror_flag"
42511 || test ! -s conftest.err'
5b674b9d
DE
42512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42513 (eval $ac_try) 2>&5
42514 ac_status=$?
42515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42516 (exit $ac_status); }; } &&
42517 { ac_try='test -s conftest.$ac_objext'
42518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42519 (eval $ac_try) 2>&5
42520 ac_status=$?
42521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42522 (exit $ac_status); }; }; then
42523 wx_cv_type_getsockopt5=size_t
42524else
42525 echo "$as_me: failed program was:" >&5
42526sed 's/^/| /' conftest.$ac_ext >&5
42527
42528cat >conftest.$ac_ext <<_ACEOF
42529/* confdefs.h. */
42530_ACEOF
42531cat confdefs.h >>conftest.$ac_ext
42532cat >>conftest.$ac_ext <<_ACEOF
42533/* end confdefs.h. */
42534
42535 #include <sys/types.h>
42536 #include <sys/socket.h>
42537
42538int
42539main ()
42540{
42541
42542 int len;
42543 getsockopt(0, 0, 0, 0, &len);
42544
42545 ;
42546 return 0;
42547}
42548_ACEOF
42549rm -f conftest.$ac_objext
42550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42551 (eval $ac_compile) 2>conftest.er1
42552 ac_status=$?
42553 grep -v '^ *+' conftest.er1 >conftest.err
42554 rm -f conftest.er1
42555 cat conftest.err >&5
42556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42557 (exit $ac_status); } &&
3565d135
RR
42558 { ac_try='test -z "$ac_cxx_werror_flag"
42559 || test ! -s conftest.err'
5b674b9d
DE
42560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42561 (eval $ac_try) 2>&5
42562 ac_status=$?
42563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42564 (exit $ac_status); }; } &&
42565 { ac_try='test -s conftest.$ac_objext'
42566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42567 (eval $ac_try) 2>&5
42568 ac_status=$?
42569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42570 (exit $ac_status); }; }; then
42571 wx_cv_type_getsockopt5=int
42572else
42573 echo "$as_me: failed program was:" >&5
42574sed 's/^/| /' conftest.$ac_ext >&5
42575
42576wx_cv_type_getsockopt5=unknown
42577
42578fi
42579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42580
42581fi
42582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42583
6459a506 42584 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
42585
42586
42587fi
42588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42589
42590fi
42591echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42592echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42593
42594 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42595 wxUSE_SOCKETS=no
42596 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42597echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42598 else
42599 cat >>confdefs.h <<_ACEOF
42600#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
42601_ACEOF
42602
42603 fi
4d4ff94c
VZ
42604 ac_ext=c
42605ac_cpp='$CPP $CPPFLAGS'
42606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42608ac_compiler_gnu=$ac_cv_c_compiler_gnu
42609
a848cd7e
SC
42610 fi
42611fi
42612
42613if test "$wxUSE_SOCKETS" = "yes" ; then
42614 cat >>confdefs.h <<\_ACEOF
42615#define wxUSE_SOCKETS 1
42616_ACEOF
42617
42618 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42619fi
42620
42621if test "$wxUSE_PROTOCOL" = "yes"; then
42622 if test "$wxUSE_SOCKETS" != "yes"; then
42623 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42624echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42625 wxUSE_PROTOCOL=no
42626 fi
42627fi
42628
42629if test "$wxUSE_PROTOCOL" = "yes"; then
42630 cat >>confdefs.h <<\_ACEOF
42631#define wxUSE_PROTOCOL 1
42632_ACEOF
42633
42634
42635 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42636 cat >>confdefs.h <<\_ACEOF
42637#define wxUSE_PROTOCOL_HTTP 1
42638_ACEOF
42639
42640 fi
42641 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42642 cat >>confdefs.h <<\_ACEOF
42643#define wxUSE_PROTOCOL_FTP 1
42644_ACEOF
42645
42646 fi
42647 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42648 cat >>confdefs.h <<\_ACEOF
42649#define wxUSE_PROTOCOL_FILE 1
42650_ACEOF
42651
42652 fi
42653else
42654 if test "$wxUSE_FS_INET" = "yes"; then
42655 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42656echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42657 wxUSE_FS_INET="no"
42658 fi
42659fi
42660
42661if test "$wxUSE_URL" = "yes"; then
42662 if test "$wxUSE_PROTOCOL" != "yes"; then
42663 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42664echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42665 wxUSE_URL=no
42666 fi
42667 if test "$wxUSE_URL" = "yes"; then
42668 cat >>confdefs.h <<\_ACEOF
42669#define wxUSE_URL 1
42670_ACEOF
42671
42672 fi
42673fi
42674
42675if test "$wxUSE_FS_INET" = "yes"; then
42676 cat >>confdefs.h <<\_ACEOF
42677#define wxUSE_FS_INET 1
42678_ACEOF
42679
42680fi
42681
42682
ee45c548
MW
42683if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42684 wxUSE_JOYSTICK=no
42685
42686 if test "$TOOLKIT" = "MSW"; then
42687 wxUSE_JOYSTICK=yes
42688
42689 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42690 if test "$USE_DARWIN" = 1; then
42691 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42692echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
42693 ac_ext=cc
42694ac_cpp='$CXXCPP $CPPFLAGS'
42695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42698
42699 cat >conftest.$ac_ext <<_ACEOF
42700/* confdefs.h. */
42701_ACEOF
42702cat confdefs.h >>conftest.$ac_ext
42703cat >>conftest.$ac_ext <<_ACEOF
42704/* end confdefs.h. */
42705 #include <IOKit/hid/IOHIDLib.h>
42706int
42707main ()
42708{
42709 IOHIDQueueInterface *qi = NULL;
42710 IOHIDCallbackFunction cb = NULL;
42711 qi->setEventCallout(NULL, cb, NULL, NULL);
42712 ;
42713 return 0;
42714}
42715_ACEOF
42716rm -f conftest.$ac_objext
42717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42718 (eval $ac_compile) 2>conftest.er1
42719 ac_status=$?
42720 grep -v '^ *+' conftest.er1 >conftest.err
42721 rm -f conftest.er1
42722 cat conftest.err >&5
42723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42724 (exit $ac_status); } &&
3565d135
RR
42725 { ac_try='test -z "$ac_cxx_werror_flag"
42726 || test ! -s conftest.err'
ee45c548
MW
42727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42728 (eval $ac_try) 2>&5
42729 ac_status=$?
42730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42731 (exit $ac_status); }; } &&
42732 { ac_try='test -s conftest.$ac_objext'
42733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42734 (eval $ac_try) 2>&5
42735 ac_status=$?
42736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42737 (exit $ac_status); }; }; then
42738 wxUSE_JOYSTICK=yes
a848cd7e 42739
ee45c548
MW
42740else
42741 echo "$as_me: failed program was:" >&5
42742sed 's/^/| /' conftest.$ac_ext >&5
42743
42744fi
42745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42746 ac_ext=c
42747ac_cpp='$CPP $CPPFLAGS'
42748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42750ac_compiler_gnu=$ac_cv_c_compiler_gnu
42751
42752 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42753echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42754 fi
42755
42756 else
a848cd7e
SC
42757
42758for ac_header in linux/joystick.h
42759do
42760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42761if eval "test \"\${$as_ac_Header+set}\" = set"; then
42762 echo "$as_me:$LINENO: checking for $ac_header" >&5
42763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42764if eval "test \"\${$as_ac_Header+set}\" = set"; then
42765 echo $ECHO_N "(cached) $ECHO_C" >&6
42766fi
42767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42769else
42770 # Is the header compilable?
42771echo "$as_me:$LINENO: checking $ac_header usability" >&5
42772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42773cat >conftest.$ac_ext <<_ACEOF
42774/* confdefs.h. */
42775_ACEOF
42776cat confdefs.h >>conftest.$ac_ext
42777cat >>conftest.$ac_ext <<_ACEOF
42778/* end confdefs.h. */
42779$ac_includes_default
42780#include <$ac_header>
42781_ACEOF
42782rm -f conftest.$ac_objext
42783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42784 (eval $ac_compile) 2>conftest.er1
a848cd7e 42785 ac_status=$?
ac1cb8d3
VS
42786 grep -v '^ *+' conftest.er1 >conftest.err
42787 rm -f conftest.er1
42788 cat conftest.err >&5
a848cd7e
SC
42789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42790 (exit $ac_status); } &&
3565d135
RR
42791 { ac_try='test -z "$ac_c_werror_flag"
42792 || test ! -s conftest.err'
ac1cb8d3
VS
42793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42794 (eval $ac_try) 2>&5
42795 ac_status=$?
42796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42797 (exit $ac_status); }; } &&
42798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42800 (eval $ac_try) 2>&5
42801 ac_status=$?
42802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803 (exit $ac_status); }; }; then
42804 ac_header_compiler=yes
42805else
42806 echo "$as_me: failed program was:" >&5
42807sed 's/^/| /' conftest.$ac_ext >&5
42808
42809ac_header_compiler=no
42810fi
ac1cb8d3 42811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42812echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42813echo "${ECHO_T}$ac_header_compiler" >&6
42814
42815# Is the header present?
42816echo "$as_me:$LINENO: checking $ac_header presence" >&5
42817echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42818cat >conftest.$ac_ext <<_ACEOF
42819/* confdefs.h. */
42820_ACEOF
42821cat confdefs.h >>conftest.$ac_ext
42822cat >>conftest.$ac_ext <<_ACEOF
42823/* end confdefs.h. */
42824#include <$ac_header>
42825_ACEOF
42826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42828 ac_status=$?
42829 grep -v '^ *+' conftest.er1 >conftest.err
42830 rm -f conftest.er1
42831 cat conftest.err >&5
42832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42833 (exit $ac_status); } >/dev/null; then
42834 if test -s conftest.err; then
42835 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 42836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
42837 else
42838 ac_cpp_err=
42839 fi
42840else
42841 ac_cpp_err=yes
42842fi
42843if test -z "$ac_cpp_err"; then
42844 ac_header_preproc=yes
42845else
42846 echo "$as_me: failed program was:" >&5
42847sed 's/^/| /' conftest.$ac_ext >&5
42848
42849 ac_header_preproc=no
42850fi
42851rm -f conftest.err conftest.$ac_ext
42852echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42853echo "${ECHO_T}$ac_header_preproc" >&6
42854
42855# So? What about this header?
ac1cb8d3
VS
42856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42857 yes:no: )
a848cd7e
SC
42858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
42860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42862 ac_header_preproc=yes
a848cd7e 42863 ;;
ac1cb8d3 42864 no:yes:* )
a848cd7e
SC
42865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
42867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42868echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42872echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
42873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
42875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
42877 (
42878 cat <<\_ASBOX
ac1cb8d3
VS
42879## ----------------------------------------- ##
42880## Report this to wx-dev@lists.wxwidgets.org ##
42881## ----------------------------------------- ##
a848cd7e
SC
42882_ASBOX
42883 ) |
42884 sed "s/^/$as_me: WARNING: /" >&2
42885 ;;
42886esac
42887echo "$as_me:$LINENO: checking for $ac_header" >&5
42888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42889if eval "test \"\${$as_ac_Header+set}\" = set"; then
42890 echo $ECHO_N "(cached) $ECHO_C" >&6
42891else
ac1cb8d3 42892 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
42893fi
42894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42896
42897fi
42898if test `eval echo '${'$as_ac_Header'}'` = yes; then
42899 cat >>confdefs.h <<_ACEOF
42900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42901_ACEOF
ee45c548 42902 wxUSE_JOYSTICK=yes
a848cd7e
SC
42903fi
42904
42905done
42906
ee45c548 42907 fi
4cb1d3da 42908
ee45c548
MW
42909 if test "$wxUSE_JOYSTICK" = "yes"; then
42910 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42911#define wxUSE_JOYSTICK 1
42912_ACEOF
42913
ee45c548
MW
42914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
42915 else
42916 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
42917echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
42918 fi
42919fi
42920
42921
42922
42923if test "$wxUSE_FONTMAP" = "yes" ; then
42924 cat >>confdefs.h <<\_ACEOF
42925#define wxUSE_FONTMAP 1
42926_ACEOF
42927
42928fi
42929
42930if test "$wxUSE_UNICODE" = "yes" ; then
42931 cat >>confdefs.h <<\_ACEOF
42932#define wxUSE_UNICODE 1
42933_ACEOF
42934
42935
42936 if test "$USE_WIN32" != 1; then
42937 wxUSE_UNICODE_MSLU=no
42938 fi
42939
42940 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
42941 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
42942echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
42943if test "${ac_cv_lib_unicows_main+set}" = set; then
42944 echo $ECHO_N "(cached) $ECHO_C" >&6
42945else
42946 ac_check_lib_save_LIBS=$LIBS
42947LIBS="-lunicows $LIBS"
42948cat >conftest.$ac_ext <<_ACEOF
42949/* confdefs.h. */
42950_ACEOF
42951cat confdefs.h >>conftest.$ac_ext
42952cat >>conftest.$ac_ext <<_ACEOF
42953/* end confdefs.h. */
42954
42955
42956int
42957main ()
42958{
42959main ();
42960 ;
42961 return 0;
42962}
42963_ACEOF
42964rm -f conftest.$ac_objext conftest$ac_exeext
42965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42966 (eval $ac_link) 2>conftest.er1
a848cd7e 42967 ac_status=$?
ac1cb8d3
VS
42968 grep -v '^ *+' conftest.er1 >conftest.err
42969 rm -f conftest.er1
42970 cat conftest.err >&5
a848cd7e
SC
42971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42972 (exit $ac_status); } &&
3565d135
RR
42973 { ac_try='test -z "$ac_c_werror_flag"
42974 || test ! -s conftest.err'
ac1cb8d3
VS
42975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42976 (eval $ac_try) 2>&5
42977 ac_status=$?
42978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42979 (exit $ac_status); }; } &&
42980 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42982 (eval $ac_try) 2>&5
42983 ac_status=$?
42984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42985 (exit $ac_status); }; }; then
42986 ac_cv_lib_unicows_main=yes
42987else
42988 echo "$as_me: failed program was:" >&5
42989sed 's/^/| /' conftest.$ac_ext >&5
42990
42991ac_cv_lib_unicows_main=no
42992fi
ac1cb8d3
VS
42993rm -f conftest.err conftest.$ac_objext \
42994 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42995LIBS=$ac_check_lib_save_LIBS
42996fi
42997echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
42998echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
42999if test $ac_cv_lib_unicows_main = yes; then
43000
43001 cat >>confdefs.h <<\_ACEOF
43002#define wxUSE_UNICODE_MSLU 1
43003_ACEOF
43004
43005
43006else
43007
43008 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43009 Applications will only run on Windows NT/2000/XP!" >&5
43010echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43011 Applications will only run on Windows NT/2000/XP!" >&2;}
43012 wxUSE_UNICODE_MSLU=no
43013
43014fi
43015
43016 fi
43017fi
43018
43019if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43020 cat >>confdefs.h <<\_ACEOF
43021#define wxUSE_EXPERIMENTAL_PRINTF 1
43022_ACEOF
43023
43024fi
43025
43026
43027if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43028 cat >>confdefs.h <<\_ACEOF
43029#define wxUSE_POSTSCRIPT 1
43030_ACEOF
43031
43032fi
43033
43034cat >>confdefs.h <<\_ACEOF
43035#define wxUSE_AFM_FOR_POSTSCRIPT 1
43036_ACEOF
43037
43038
43039cat >>confdefs.h <<\_ACEOF
43040#define wxUSE_NORMALIZED_PS_FONTS 1
43041_ACEOF
43042
43043
43044
43045if test "$wxUSE_CONSTRAINTS" = "yes"; then
43046 cat >>confdefs.h <<\_ACEOF
43047#define wxUSE_CONSTRAINTS 1
43048_ACEOF
43049
43050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43051fi
43052
8a7b1113
VZ
43053if test "$wxUSE_MDI" = "yes"; then
43054 cat >>confdefs.h <<\_ACEOF
43055#define wxUSE_MDI 1
43056_ACEOF
43057
43058
43059 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43060 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43061#define wxUSE_MDI_ARCHITECTURE 1
43062_ACEOF
43063
8a7b1113
VZ
43064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43065 fi
a848cd7e
SC
43066fi
43067
43068if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43069 cat >>confdefs.h <<\_ACEOF
43070#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43071_ACEOF
43072
43073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43074 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43076 fi
43077fi
43078
43079if test "$wxUSE_HELP" = "yes"; then
43080 cat >>confdefs.h <<\_ACEOF
43081#define wxUSE_HELP 1
43082_ACEOF
43083
43084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43085
43086 if test "$wxUSE_MSW" = 1; then
43087 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43088 cat >>confdefs.h <<\_ACEOF
43089#define wxUSE_MS_HTML_HELP 1
43090_ACEOF
43091
43092 fi
43093 fi
43094
43095 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43096 if test "$wxUSE_HTML" = "yes"; then
43097 cat >>confdefs.h <<\_ACEOF
43098#define wxUSE_WXHTML_HELP 1
43099_ACEOF
43100
43101 else
43102 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43103echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43104 wxUSE_WXHTML_HELP=no
43105 fi
43106 fi
43107fi
43108
43109if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43110 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43111 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43112echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43113 else
43114 cat >>confdefs.h <<\_ACEOF
43115#define wxUSE_PRINTING_ARCHITECTURE 1
43116_ACEOF
43117
43118 fi
43119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43120fi
43121
43122if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43123 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43124echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43125 { (exit 1); exit 1; }; }
43126fi
43127
43128
efdf6afe
VZ
43129if test "$wxUSE_METAFILE" = "yes"; then
43130 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43131 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43132echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43133 wxUSE_METAFILE=no
43134 fi
43135fi
43136
43137
a848cd7e
SC
43138if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43139 -o "$wxUSE_CLIPBOARD" = "yes" \
43140 -o "$wxUSE_OLE" = "yes" \
43141 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43142
43143for ac_header in ole2.h
43144do
43145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43146if eval "test \"\${$as_ac_Header+set}\" = set"; then
43147 echo "$as_me:$LINENO: checking for $ac_header" >&5
43148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43149if eval "test \"\${$as_ac_Header+set}\" = set"; then
43150 echo $ECHO_N "(cached) $ECHO_C" >&6
43151fi
43152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43154else
43155 # Is the header compilable?
43156echo "$as_me:$LINENO: checking $ac_header usability" >&5
43157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43158cat >conftest.$ac_ext <<_ACEOF
43159/* confdefs.h. */
43160_ACEOF
43161cat confdefs.h >>conftest.$ac_ext
43162cat >>conftest.$ac_ext <<_ACEOF
43163/* end confdefs.h. */
43164$ac_includes_default
43165#include <$ac_header>
43166_ACEOF
43167rm -f conftest.$ac_objext
43168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43169 (eval $ac_compile) 2>conftest.er1
a848cd7e 43170 ac_status=$?
ac1cb8d3
VS
43171 grep -v '^ *+' conftest.er1 >conftest.err
43172 rm -f conftest.er1
43173 cat conftest.err >&5
a848cd7e
SC
43174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43175 (exit $ac_status); } &&
3565d135
RR
43176 { ac_try='test -z "$ac_c_werror_flag"
43177 || test ! -s conftest.err'
ac1cb8d3
VS
43178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43179 (eval $ac_try) 2>&5
43180 ac_status=$?
43181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43182 (exit $ac_status); }; } &&
43183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43185 (eval $ac_try) 2>&5
43186 ac_status=$?
43187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43188 (exit $ac_status); }; }; then
43189 ac_header_compiler=yes
43190else
43191 echo "$as_me: failed program was:" >&5
43192sed 's/^/| /' conftest.$ac_ext >&5
43193
43194ac_header_compiler=no
43195fi
ac1cb8d3 43196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43198echo "${ECHO_T}$ac_header_compiler" >&6
43199
43200# Is the header present?
43201echo "$as_me:$LINENO: checking $ac_header presence" >&5
43202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43203cat >conftest.$ac_ext <<_ACEOF
43204/* confdefs.h. */
43205_ACEOF
43206cat confdefs.h >>conftest.$ac_ext
43207cat >>conftest.$ac_ext <<_ACEOF
43208/* end confdefs.h. */
43209#include <$ac_header>
43210_ACEOF
43211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43213 ac_status=$?
43214 grep -v '^ *+' conftest.er1 >conftest.err
43215 rm -f conftest.er1
43216 cat conftest.err >&5
43217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43218 (exit $ac_status); } >/dev/null; then
43219 if test -s conftest.err; then
43220 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 43221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
43222 else
43223 ac_cpp_err=
43224 fi
43225else
43226 ac_cpp_err=yes
43227fi
43228if test -z "$ac_cpp_err"; then
43229 ac_header_preproc=yes
43230else
43231 echo "$as_me: failed program was:" >&5
43232sed 's/^/| /' conftest.$ac_ext >&5
43233
43234 ac_header_preproc=no
43235fi
43236rm -f conftest.err conftest.$ac_ext
43237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43238echo "${ECHO_T}$ac_header_preproc" >&6
43239
43240# So? What about this header?
ac1cb8d3
VS
43241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43242 yes:no: )
a848cd7e
SC
43243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43247 ac_header_preproc=yes
a848cd7e 43248 ;;
ac1cb8d3 43249 no:yes:* )
a848cd7e
SC
43250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43253echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43257echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43262 (
43263 cat <<\_ASBOX
ac1cb8d3
VS
43264## ----------------------------------------- ##
43265## Report this to wx-dev@lists.wxwidgets.org ##
43266## ----------------------------------------- ##
a848cd7e
SC
43267_ASBOX
43268 ) |
43269 sed "s/^/$as_me: WARNING: /" >&2
43270 ;;
43271esac
43272echo "$as_me:$LINENO: checking for $ac_header" >&5
43273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43274if eval "test \"\${$as_ac_Header+set}\" = set"; then
43275 echo $ECHO_N "(cached) $ECHO_C" >&6
43276else
ac1cb8d3 43277 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43278fi
43279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43281
43282fi
43283if test `eval echo '${'$as_ac_Header'}'` = yes; then
43284 cat >>confdefs.h <<_ACEOF
43285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43286_ACEOF
43287
43288fi
43289
43290done
43291
43292
43293 if test "$ac_cv_header_ole2_h" = "yes" ; then
43294 if test "$GCC" = yes ; then
a848cd7e
SC
43295 ac_ext=cc
43296ac_cpp='$CXXCPP $CPPFLAGS'
43297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43300
43301
43302 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43303echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43304 cat >conftest.$ac_ext <<_ACEOF
43305/* confdefs.h. */
43306_ACEOF
43307cat confdefs.h >>conftest.$ac_ext
43308cat >>conftest.$ac_ext <<_ACEOF
43309/* end confdefs.h. */
43310#include <windows.h>
43311 #include <ole2.h>
43312int
43313main ()
43314{
43315
43316 ;
43317 return 0;
43318}
43319_ACEOF
43320rm -f conftest.$ac_objext
43321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43322 (eval $ac_compile) 2>conftest.er1
a848cd7e 43323 ac_status=$?
ac1cb8d3
VS
43324 grep -v '^ *+' conftest.er1 >conftest.err
43325 rm -f conftest.er1
43326 cat conftest.err >&5
a848cd7e
SC
43327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43328 (exit $ac_status); } &&
3565d135
RR
43329 { ac_try='test -z "$ac_cxx_werror_flag"
43330 || test ! -s conftest.err'
ac1cb8d3
VS
43331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43332 (eval $ac_try) 2>&5
43333 ac_status=$?
43334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43335 (exit $ac_status); }; } &&
43336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43338 (eval $ac_try) 2>&5
43339 ac_status=$?
43340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43341 (exit $ac_status); }; }; then
43342 echo "$as_me:$LINENO: result: no" >&5
43343echo "${ECHO_T}no" >&6
43344else
43345 echo "$as_me: failed program was:" >&5
43346sed 's/^/| /' conftest.$ac_ext >&5
43347
43348echo "$as_me:$LINENO: result: yes" >&5
43349echo "${ECHO_T}yes" >&6
5ff751d6 43350 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43351fi
ac1cb8d3 43352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43353 ac_ext=c
43354ac_cpp='$CPP $CPPFLAGS'
43355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43357ac_compiler_gnu=$ac_cv_c_compiler_gnu
43358
a848cd7e
SC
43359 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43360 if test "$wxUSE_OLE" = "yes" ; then
43361 cat >>confdefs.h <<\_ACEOF
43362#define wxUSE_OLE 1
43363_ACEOF
43364
0b78747f 43365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43366 fi
43367 fi
43368
43369 if test "$wxUSE_DATAOBJ" = "yes" ; then
43370 cat >>confdefs.h <<\_ACEOF
43371#define wxUSE_DATAOBJ 1
43372_ACEOF
43373
43374 fi
43375 else
43376 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43377echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43378
43379 wxUSE_CLIPBOARD=no
43380 wxUSE_DRAG_AND_DROP=no
43381 wxUSE_DATAOBJ=no
43382 wxUSE_OLE=no
43383 fi
43384
43385 if test "$wxUSE_METAFILE" = "yes"; then
43386 cat >>confdefs.h <<\_ACEOF
43387#define wxUSE_METAFILE 1
43388_ACEOF
43389
43390
43391 cat >>confdefs.h <<\_ACEOF
43392#define wxUSE_ENH_METAFILE 1
43393_ACEOF
43394
43395 fi
43396fi
43397
43398if test "$wxUSE_IPC" = "yes"; then
0b78747f 43399 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43400 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43401echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43402 wxUSE_IPC=no
a848cd7e
SC
43403 fi
43404
0b78747f
MW
43405 if test "$wxUSE_IPC" = "yes"; then
43406 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43407#define wxUSE_IPC 1
43408_ACEOF
43409
0b78747f
MW
43410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43411 fi
a848cd7e
SC
43412fi
43413
eb730a0c 43414if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43415 if test "$wxUSE_MGL" = 1; then
43416 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43417echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43418 wxUSE_DATAOBJ=no
43419 else
43420 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43421#define wxUSE_DATAOBJ 1
43422_ACEOF
43423
2113bc77 43424 fi
eb730a0c
JS
43425else
43426 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43427echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43428 wxUSE_CLIPBOARD=no
43429 wxUSE_DRAG_AND_DROP=no
43430fi
43431
a848cd7e
SC
43432if test "$wxUSE_CLIPBOARD" = "yes"; then
43433 if test "$wxUSE_MGL" = 1; then
43434 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43435echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43436 wxUSE_CLIPBOARD=no
43437 fi
43438
43439 if test "$wxUSE_CLIPBOARD" = "yes"; then
43440 cat >>confdefs.h <<\_ACEOF
43441#define wxUSE_CLIPBOARD 1
43442_ACEOF
43443
a848cd7e
SC
43444 fi
43445fi
43446
43447if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43448 if test "$wxUSE_GTK" = 1; then
43449 if test "$WXGTK12" != 1; then
43450 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43451echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43452 wxUSE_DRAG_AND_DROP=no
43453 fi
43454 fi
43455
43456 if test "$wxUSE_MOTIF" = 1; then
43457 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43458echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43459 wxUSE_DRAG_AND_DROP=no
43460 fi
43461
43462 if test "$wxUSE_X11" = 1; then
43463 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43464echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43465 wxUSE_DRAG_AND_DROP=no
43466 fi
43467
43468 if test "$wxUSE_MGL" = 1; then
43469 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43470echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43471 wxUSE_DRAG_AND_DROP=no
43472 fi
43473
43474 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43475 cat >>confdefs.h <<\_ACEOF
43476#define wxUSE_DRAG_AND_DROP 1
43477_ACEOF
43478
43479 fi
43480
43481fi
43482
43483if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43485fi
43486
43487if test "$wxUSE_SPLINES" = "yes" ; then
43488 cat >>confdefs.h <<\_ACEOF
43489#define wxUSE_SPLINES 1
43490_ACEOF
43491
43492fi
43493
fbe2ca43
SN
43494if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43495 cat >>confdefs.h <<\_ACEOF
43496#define wxUSE_MOUSEWHEEL 1
43497_ACEOF
43498
43499fi
43500
a848cd7e
SC
43501
43502USES_CONTROLS=0
43503if test "$wxUSE_CONTROLS" = "yes"; then
43504 USES_CONTROLS=1
43505fi
43506
43507if test "$wxUSE_ACCEL" = "yes"; then
43508 cat >>confdefs.h <<\_ACEOF
43509#define wxUSE_ACCEL 1
43510_ACEOF
43511
43512 USES_CONTROLS=1
43513fi
43514
43515if test "$wxUSE_BUTTON" = "yes"; then
43516 cat >>confdefs.h <<\_ACEOF
43517#define wxUSE_BUTTON 1
43518_ACEOF
43519
43520 USES_CONTROLS=1
43521fi
43522
43523if test "$wxUSE_BMPBUTTON" = "yes"; then
43524 cat >>confdefs.h <<\_ACEOF
43525#define wxUSE_BMPBUTTON 1
43526_ACEOF
43527
43528 USES_CONTROLS=1
43529fi
43530
43531if test "$wxUSE_CALCTRL" = "yes"; then
43532 cat >>confdefs.h <<\_ACEOF
43533#define wxUSE_CALENDARCTRL 1
43534_ACEOF
43535
43536 USES_CONTROLS=1
43537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43538fi
43539
43540if test "$wxUSE_CARET" = "yes"; then
43541 cat >>confdefs.h <<\_ACEOF
43542#define wxUSE_CARET 1
43543_ACEOF
43544
43545 USES_CONTROLS=1
43546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43547fi
43548
43549if test "$wxUSE_COMBOBOX" = "yes"; then
43550 cat >>confdefs.h <<\_ACEOF
43551#define wxUSE_COMBOBOX 1
43552_ACEOF
43553
43554 USES_CONTROLS=1
43555fi
43556
43557if test "$wxUSE_CHOICE" = "yes"; then
43558 cat >>confdefs.h <<\_ACEOF
43559#define wxUSE_CHOICE 1
43560_ACEOF
43561
43562 USES_CONTROLS=1
43563fi
43564
92bbdbcd
WS
43565if test "$wxUSE_CHOICEBOOK" = "yes"; then
43566 cat >>confdefs.h <<\_ACEOF
43567#define wxUSE_CHOICEBOOK 1
43568_ACEOF
43569
43570 USES_CONTROLS=1
43571fi
43572
a848cd7e
SC
43573if test "$wxUSE_CHECKBOX" = "yes"; then
43574 cat >>confdefs.h <<\_ACEOF
43575#define wxUSE_CHECKBOX 1
43576_ACEOF
43577
43578 USES_CONTROLS=1
43579fi
43580
43581if test "$wxUSE_CHECKLST" = "yes"; then
43582 cat >>confdefs.h <<\_ACEOF
43583#define wxUSE_CHECKLISTBOX 1
43584_ACEOF
43585
43586 USES_CONTROLS=1
43587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43588fi
43589
da98e9be
VZ
43590if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43591 cat >>confdefs.h <<\_ACEOF
43592#define wxUSE_DATEPICKCTRL 1
43593_ACEOF
43594
43595 USES_CONTROLS=1
43596fi
43597
a848cd7e
SC
43598if test "$wxUSE_DISPLAY" = "yes"; then
43599 cat >>confdefs.h <<\_ACEOF
43600#define wxUSE_DISPLAY 1
43601_ACEOF
43602
0b78747f 43603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
43604fi
43605
43606if test "$wxUSE_GAUGE" = "yes"; then
43607 cat >>confdefs.h <<\_ACEOF
43608#define wxUSE_GAUGE 1
43609_ACEOF
43610
43611 USES_CONTROLS=1
43612fi
43613
43614if test "$wxUSE_GRID" = "yes"; then
43615 cat >>confdefs.h <<\_ACEOF
43616#define wxUSE_GRID 1
43617_ACEOF
43618
43619 USES_CONTROLS=1
43620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43621fi
43622
20e34ecc
RR
43623if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
43624 cat >>confdefs.h <<\_ACEOF
43625#define wxUSE_DATAVIEWCTRL 1
43626_ACEOF
43627
43628 USES_CONTROLS=1
43629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
43630fi
43631
a848cd7e
SC
43632if test "$wxUSE_IMAGLIST" = "yes"; then
43633 cat >>confdefs.h <<\_ACEOF
43634#define wxUSE_IMAGLIST 1
43635_ACEOF
43636
43637fi
43638
43639if test "$wxUSE_LISTBOOK" = "yes"; then
43640 cat >>confdefs.h <<\_ACEOF
43641#define wxUSE_LISTBOOK 1
43642_ACEOF
43643
43644 USES_CONTROLS=1
43645fi
43646
43647if test "$wxUSE_LISTBOX" = "yes"; then
43648 cat >>confdefs.h <<\_ACEOF
43649#define wxUSE_LISTBOX 1
43650_ACEOF
43651
43652 USES_CONTROLS=1
0b78747f 43653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
43654fi
43655
43656if test "$wxUSE_LISTCTRL" = "yes"; then
43657 if test "$wxUSE_IMAGLIST" = "yes"; then
43658 cat >>confdefs.h <<\_ACEOF
43659#define wxUSE_LISTCTRL 1
43660_ACEOF
43661
43662 USES_CONTROLS=1
43663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43664 else
43665 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43666echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43667 fi
43668fi
43669
43670if test "$wxUSE_NOTEBOOK" = "yes"; then
43671 cat >>confdefs.h <<\_ACEOF
43672#define wxUSE_NOTEBOOK 1
43673_ACEOF
43674
43675 USES_CONTROLS=1
43676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43677fi
43678
43679
43680if test "$wxUSE_RADIOBOX" = "yes"; then
43681 cat >>confdefs.h <<\_ACEOF
43682#define wxUSE_RADIOBOX 1
43683_ACEOF
43684
43685 USES_CONTROLS=1
43686fi
43687
43688if test "$wxUSE_RADIOBTN" = "yes"; then
43689 cat >>confdefs.h <<\_ACEOF
43690#define wxUSE_RADIOBTN 1
43691_ACEOF
43692
43693 USES_CONTROLS=1
43694fi
43695
43696if test "$wxUSE_SASH" = "yes"; then
43697 cat >>confdefs.h <<\_ACEOF
43698#define wxUSE_SASH 1
43699_ACEOF
43700
43701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43702fi
43703
43704if test "$wxUSE_SCROLLBAR" = "yes"; then
43705 cat >>confdefs.h <<\_ACEOF
43706#define wxUSE_SCROLLBAR 1
43707_ACEOF
43708
43709 USES_CONTROLS=1
43710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43711fi
43712
43713if test "$wxUSE_SLIDER" = "yes"; then
43714 cat >>confdefs.h <<\_ACEOF
43715#define wxUSE_SLIDER 1
43716_ACEOF
43717
43718 USES_CONTROLS=1
43719fi
43720
43721if test "$wxUSE_SPINBTN" = "yes"; then
43722 cat >>confdefs.h <<\_ACEOF
43723#define wxUSE_SPINBTN 1
43724_ACEOF
43725
43726 USES_CONTROLS=1
43727fi
43728
43729if test "$wxUSE_SPINCTRL" = "yes"; then
43730 cat >>confdefs.h <<\_ACEOF
43731#define wxUSE_SPINCTRL 1
43732_ACEOF
43733
43734 USES_CONTROLS=1
43735fi
43736
43737if test "$wxUSE_SPLITTER" = "yes"; then
43738 cat >>confdefs.h <<\_ACEOF
43739#define wxUSE_SPLITTER 1
43740_ACEOF
43741
43742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43743fi
43744
43745if test "$wxUSE_STATBMP" = "yes"; then
43746 cat >>confdefs.h <<\_ACEOF
43747#define wxUSE_STATBMP 1
43748_ACEOF
43749
43750 USES_CONTROLS=1
43751fi
43752
43753if test "$wxUSE_STATBOX" = "yes"; then
43754 cat >>confdefs.h <<\_ACEOF
43755#define wxUSE_STATBOX 1
43756_ACEOF
43757
43758 USES_CONTROLS=1
43759fi
43760
43761if test "$wxUSE_STATTEXT" = "yes"; then
43762 cat >>confdefs.h <<\_ACEOF
43763#define wxUSE_STATTEXT 1
43764_ACEOF
43765
43766 USES_CONTROLS=1
43767fi
43768
43769if test "$wxUSE_STATLINE" = "yes"; then
43770 cat >>confdefs.h <<\_ACEOF
43771#define wxUSE_STATLINE 1
43772_ACEOF
43773
43774 USES_CONTROLS=1
43775fi
43776
43777if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
43778 cat >>confdefs.h <<\_ACEOF
43779#define wxUSE_NATIVE_STATUSBAR 1
43780_ACEOF
43781
a848cd7e
SC
43782 cat >>confdefs.h <<\_ACEOF
43783#define wxUSE_STATUSBAR 1
43784_ACEOF
43785
43786 USES_CONTROLS=1
43787
43788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
43789fi
43790
43791if test "$wxUSE_TABDIALOG" = "yes"; then
43792 cat >>confdefs.h <<\_ACEOF
43793#define wxUSE_TAB_DIALOG 1
43794_ACEOF
43795
a848cd7e
SC
43796fi
43797
43798if test "$wxUSE_TEXTCTRL" = "yes"; then
43799 cat >>confdefs.h <<\_ACEOF
43800#define wxUSE_TEXTCTRL 1
43801_ACEOF
43802
43803 USES_CONTROLS=1
43804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
43805fi
43806
43807if test "$wxUSE_TOGGLEBTN" = "yes"; then
43808 if test "$wxUSE_COCOA" = 1 ; then
43809 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
43810echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
43811 wxUSE_TOGGLEBTN=no
43812 fi
43813 if test "$wxUSE_UNIVERSAL" = "yes"; then
43814 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
43815echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
43816 wxUSE_TOGGLEBTN=no
43817 fi
43818
43819 if test "$wxUSE_TOGGLEBTN" = "yes"; then
43820 cat >>confdefs.h <<\_ACEOF
43821#define wxUSE_TOGGLEBTN 1
43822_ACEOF
43823
43824 USES_CONTROLS=1
43825 fi
43826fi
43827
43828if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
43829 cat >>confdefs.h <<\_ACEOF
43830#define wxUSE_TOOLBAR_SIMPLE 1
43831_ACEOF
43832
43833 wxUSE_TOOLBAR="yes"
43834 USES_CONTROLS=1
43835fi
43836
43837if test "$wxUSE_TOOLBAR" = "yes"; then
43838 cat >>confdefs.h <<\_ACEOF
43839#define wxUSE_TOOLBAR 1
43840_ACEOF
43841
43842 USES_CONTROLS=1
43843
43844 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
43845 wxUSE_TOOLBAR_NATIVE="yes"
43846 fi
43847
43848 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
43849 cat >>confdefs.h <<\_ACEOF
43850#define wxUSE_TOOLBAR_NATIVE 1
43851_ACEOF
43852
43853 USES_CONTROLS=1
43854 fi
43855
43856 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
43857fi
43858
43859if test "$wxUSE_TOOLTIPS" = "yes"; then
43860 if test "$wxUSE_MOTIF" = 1; then
43861 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
43862echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
43863 else
43864 if test "$wxUSE_UNIVERSAL" = "yes"; then
43865 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
43866echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
43867 else
43868 cat >>confdefs.h <<\_ACEOF
43869#define wxUSE_TOOLTIPS 1
43870_ACEOF
43871
43872 fi
43873 fi
43874fi
43875
0093c2fc
VZ
43876if test "$wxUSE_TREEBOOK" = "yes"; then
43877 cat >>confdefs.h <<\_ACEOF
43878#define wxUSE_TREEBOOK 1
43879_ACEOF
43880
43881 USES_CONTROLS=1
43882fi
43883
5ec3bc43
JS
43884if test "$wxUSE_TOOLBOOK" = "yes"; then
43885 cat >>confdefs.h <<\_ACEOF
43886#define wxUSE_TOOLBOOK 1
43887_ACEOF
43888
43889 USES_CONTROLS=1
43890fi
43891
a848cd7e
SC
43892if test "$wxUSE_TREECTRL" = "yes"; then
43893 if test "$wxUSE_IMAGLIST" = "yes"; then
43894 cat >>confdefs.h <<\_ACEOF
43895#define wxUSE_TREECTRL 1
43896_ACEOF
43897
43898 USES_CONTROLS=1
43899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
43900 else
43901 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
43902echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
43903 fi
43904fi
43905
43906if test "$wxUSE_POPUPWIN" = "yes"; then
43907 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43908 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
43909echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
43910 else
43911 if test "$wxUSE_PM" = 1; then
43912 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
43913echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
43914 else
43915 cat >>confdefs.h <<\_ACEOF
43916#define wxUSE_POPUPWIN 1
43917_ACEOF
43918
0b78747f 43919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
43920
43921 USES_CONTROLS=1
43922 fi
43923 fi
43924fi
43925
0dcd06dd 43926if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
43927 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43928 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
43929echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
43930 else
43931 cat >>confdefs.h <<\_ACEOF
43932#define wxUSE_DIALUP_MANAGER 1
43933_ACEOF
43934
43935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
43936 fi
43937fi
43938
a848cd7e
SC
43939if test "$wxUSE_TIPWINDOW" = "yes"; then
43940 if test "$wxUSE_PM" = 1; then
43941 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
43942echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
43943 else
43944 cat >>confdefs.h <<\_ACEOF
43945#define wxUSE_TIPWINDOW 1
43946_ACEOF
43947
43948 fi
43949fi
43950
43951if test "$USES_CONTROLS" = 1; then
43952 cat >>confdefs.h <<\_ACEOF
43953#define wxUSE_CONTROLS 1
43954_ACEOF
43955
43956fi
43957
43958
43959if test "$wxUSE_ACCESSIBILITY" = "yes"; then
43960 cat >>confdefs.h <<\_ACEOF
43961#define wxUSE_ACCESSIBILITY 1
43962_ACEOF
43963
43964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
43965fi
43966
38b4a946
VZ
43967if test "$wxUSE_DC_CACHEING" = "yes"; then
43968 cat >>confdefs.h <<\_ACEOF
43969#define wxUSE_DC_CACHEING 1
43970_ACEOF
43971
43972fi
43973
a848cd7e
SC
43974if test "$wxUSE_DRAGIMAGE" = "yes"; then
43975 cat >>confdefs.h <<\_ACEOF
43976#define wxUSE_DRAGIMAGE 1
43977_ACEOF
43978
43979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
43980fi
43981
43982if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
43983 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43984 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
43985echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
43986 else
43987 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43988#define wxUSE_EXCEPTIONS 1
43989_ACEOF
43990
07bea8f0
VS
43991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
43992 fi
a848cd7e
SC
43993fi
43994
43995USE_HTML=0
43996if test "$wxUSE_HTML" = "yes"; then
43997 cat >>confdefs.h <<\_ACEOF
43998#define wxUSE_HTML 1
43999_ACEOF
44000
44001 USE_HTML=1
44002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44003 if test "$wxUSE_MAC" = 1; then
44004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44005 fi
a848cd7e 44006fi
646b6ec1 44007if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44008 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44009 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44010 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44011 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44012echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44013if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44014 echo $ECHO_N "(cached) $ECHO_C" >&6
44015else
44016 cat >conftest.$ac_ext <<_ACEOF
44017/* confdefs.h. */
44018_ACEOF
44019cat confdefs.h >>conftest.$ac_ext
44020cat >>conftest.$ac_ext <<_ACEOF
44021/* end confdefs.h. */
44022#include <Carbon/Carbon.h>
44023
44024#include <WebKit/HIWebView.h>
44025_ACEOF
44026rm -f conftest.$ac_objext
44027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44028 (eval $ac_compile) 2>conftest.er1
44029 ac_status=$?
44030 grep -v '^ *+' conftest.er1 >conftest.err
44031 rm -f conftest.er1
44032 cat conftest.err >&5
44033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44034 (exit $ac_status); } &&
3565d135
RR
44035 { ac_try='test -z "$ac_c_werror_flag"
44036 || test ! -s conftest.err'
07bea8f0
VS
44037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44038 (eval $ac_try) 2>&5
44039 ac_status=$?
44040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44041 (exit $ac_status); }; } &&
44042 { ac_try='test -s conftest.$ac_objext'
44043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44044 (eval $ac_try) 2>&5
44045 ac_status=$?
44046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44047 (exit $ac_status); }; }; then
44048 ac_cv_header_WebKit_HIWebView_h=yes
44049else
44050 echo "$as_me: failed program was:" >&5
44051sed 's/^/| /' conftest.$ac_ext >&5
44052
44053ac_cv_header_WebKit_HIWebView_h=no
44054fi
44055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44056fi
44057echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44058echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44059if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44060
44061 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44062#define wxUSE_WEBKIT 1
44063_ACEOF
44064
07bea8f0
VS
44065 WEBKIT_LINK="-framework WebKit"
44066
44067else
44068
44069 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44070echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44071 wxUSE_WEBKIT=no
44072
646b6ec1
VS
44073fi
44074
07bea8f0
VS
44075
44076 CPPFLAGS="$old_CPPFLAGS"
44077 elif test "$wxUSE_COCOA" = 1; then
44078 cat >>confdefs.h <<\_ACEOF
44079#define wxUSE_WEBKIT 1
44080_ACEOF
44081
44082 else
44083 wxUSE_WEBKIT=no
44084 fi
44085fi
44086
9a8f0513
VS
44087USE_XRC=0
44088if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44089 if test "$wxUSE_XML" != "yes"; then
44090 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44091echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44092 wxUSE_XRC=no
44093 else
44094 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44095#define wxUSE_XRC 1
44096_ACEOF
44097
d2ebf0b7
VS
44098 USE_XRC=1
44099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44100 fi
9a8f0513 44101fi
07bea8f0 44102
a848cd7e
SC
44103if test "$wxUSE_MENUS" = "yes"; then
44104 cat >>confdefs.h <<\_ACEOF
44105#define wxUSE_MENUS 1
44106_ACEOF
44107
44108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44109fi
44110
44111if test "$wxUSE_METAFILE" = "yes"; then
44112 cat >>confdefs.h <<\_ACEOF
44113#define wxUSE_METAFILE 1
44114_ACEOF
44115
44116fi
44117
44118if test "$wxUSE_MIMETYPE" = "yes"; then
44119 cat >>confdefs.h <<\_ACEOF
44120#define wxUSE_MIMETYPE 1
44121_ACEOF
44122
44123fi
44124
44125if test "$wxUSE_MINIFRAME" = "yes"; then
44126 cat >>confdefs.h <<\_ACEOF
44127#define wxUSE_MINIFRAME 1
44128_ACEOF
44129
44130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44131fi
44132
44133if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44134 cat >>confdefs.h <<\_ACEOF
44135#define wxUSE_SYSTEM_OPTIONS 1
44136_ACEOF
44137
44138 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44139 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44141 fi
44142fi
44143
44144
44145if test "$wxUSE_VALIDATORS" = "yes"; then
44146 cat >>confdefs.h <<\_ACEOF
44147#define wxUSE_VALIDATORS 1
44148_ACEOF
44149
44150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44151fi
44152
44153if test "$wxUSE_PALETTE" = "yes" ; then
44154 cat >>confdefs.h <<\_ACEOF
44155#define wxUSE_PALETTE 1
44156_ACEOF
44157
44158fi
44159
44160if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44161 LIBS=" -lunicows $LIBS"
44162fi
44163
91dea314
MW
44164USE_RICHTEXT=0
44165if test "$wxUSE_RICHTEXT" = "yes"; then
44166 cat >>confdefs.h <<\_ACEOF
44167#define wxUSE_RICHTEXT 1
44168_ACEOF
44169
44170 USE_RICHTEXT=1
44171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44172fi
44173
a848cd7e
SC
44174
44175if test "$wxUSE_IMAGE" = "yes" ; then
44176 cat >>confdefs.h <<\_ACEOF
44177#define wxUSE_IMAGE 1
44178_ACEOF
44179
44180
44181 if test "$wxUSE_GIF" = "yes" ; then
44182 cat >>confdefs.h <<\_ACEOF
44183#define wxUSE_GIF 1
44184_ACEOF
44185
44186 fi
44187
44188 if test "$wxUSE_PCX" = "yes" ; then
44189 cat >>confdefs.h <<\_ACEOF
44190#define wxUSE_PCX 1
44191_ACEOF
44192
44193 fi
44194
44195 if test "$wxUSE_IFF" = "yes" ; then
44196 cat >>confdefs.h <<\_ACEOF
44197#define wxUSE_IFF 1
44198_ACEOF
44199
44200 fi
44201
44202 if test "$wxUSE_PNM" = "yes" ; then
44203 cat >>confdefs.h <<\_ACEOF
44204#define wxUSE_PNM 1
44205_ACEOF
44206
44207 fi
44208
44209 if test "$wxUSE_XPM" = "yes" ; then
44210 cat >>confdefs.h <<\_ACEOF
44211#define wxUSE_XPM 1
44212_ACEOF
44213
44214 fi
44215
44216 if test "$wxUSE_ICO_CUR" = "yes" ; then
44217 cat >>confdefs.h <<\_ACEOF
44218#define wxUSE_ICO_CUR 1
44219_ACEOF
44220
44221 fi
44222fi
44223
44224
44225if test "$wxUSE_CHOICEDLG" = "yes"; then
44226 cat >>confdefs.h <<\_ACEOF
44227#define wxUSE_CHOICEDLG 1
44228_ACEOF
44229
44230fi
44231
44232if test "$wxUSE_COLOURDLG" = "yes"; then
44233 cat >>confdefs.h <<\_ACEOF
44234#define wxUSE_COLOURDLG 1
44235_ACEOF
44236
44237fi
44238
44239if test "$wxUSE_FILEDLG" = "yes"; then
44240 cat >>confdefs.h <<\_ACEOF
44241#define wxUSE_FILEDLG 1
44242_ACEOF
44243
44244fi
44245
44246if test "$wxUSE_FINDREPLDLG" = "yes"; then
44247 cat >>confdefs.h <<\_ACEOF
44248#define wxUSE_FINDREPLDLG 1
44249_ACEOF
44250
44251fi
44252
44253if test "$wxUSE_FONTDLG" = "yes"; then
44254 cat >>confdefs.h <<\_ACEOF
44255#define wxUSE_FONTDLG 1
44256_ACEOF
44257
44258fi
44259
44260if test "$wxUSE_DIRDLG" = "yes"; then
44261 if test "$wxUSE_TREECTRL" != "yes"; then
44262 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44263echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44264 else
44265 cat >>confdefs.h <<\_ACEOF
44266#define wxUSE_DIRDLG 1
44267_ACEOF
44268
44269 fi
44270fi
44271
44272if test "$wxUSE_MSGDLG" = "yes"; then
44273 cat >>confdefs.h <<\_ACEOF
44274#define wxUSE_MSGDLG 1
44275_ACEOF
44276
44277fi
44278
44279if test "$wxUSE_NUMBERDLG" = "yes"; then
44280 cat >>confdefs.h <<\_ACEOF
44281#define wxUSE_NUMBERDLG 1
44282_ACEOF
44283
44284fi
44285
44286if test "$wxUSE_PROGRESSDLG" = "yes"; then
44287 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44288 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44289echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44290 else
44291 cat >>confdefs.h <<\_ACEOF
44292#define wxUSE_PROGRESSDLG 1
44293_ACEOF
44294
44295 fi
44296fi
44297
44298if test "$wxUSE_SPLASH" = "yes"; then
44299 cat >>confdefs.h <<\_ACEOF
44300#define wxUSE_SPLASH 1
44301_ACEOF
44302
2057db16 44303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44304fi
44305
44306if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44307 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44308 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44309echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44310 else
44311 cat >>confdefs.h <<\_ACEOF
44312#define wxUSE_STARTUP_TIPS 1
44313_ACEOF
44314
44315 fi
44316fi
44317
44318if test "$wxUSE_TEXTDLG" = "yes"; then
44319 cat >>confdefs.h <<\_ACEOF
44320#define wxUSE_TEXTDLG 1
44321_ACEOF
44322
44323fi
44324
44325if test "$wxUSE_WIZARDDLG" = "yes"; then
44326 cat >>confdefs.h <<\_ACEOF
44327#define wxUSE_WIZARDDLG 1
44328_ACEOF
44329
44330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44331fi
44332
44333
ce756cb0 44334if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44335 if test "$wxUSE_GTK" = 1; then
44336 wxUSE_GSTREAMER="yes"
44337
ce756cb0 44338
dae87f93 44339 succeeded=no
ce756cb0 44340
dae87f93
RN
44341 if test -z "$PKG_CONFIG"; then
44342 # Extract the first word of "pkg-config", so it can be a program name with args.
44343set dummy pkg-config; ac_word=$2
44344echo "$as_me:$LINENO: checking for $ac_word" >&5
44345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44346if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44347 echo $ECHO_N "(cached) $ECHO_C" >&6
44348else
44349 case $PKG_CONFIG in
44350 [\\/]* | ?:[\\/]*)
44351 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44352 ;;
44353 *)
44354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44355for as_dir in $PATH
44356do
44357 IFS=$as_save_IFS
44358 test -z "$as_dir" && as_dir=.
44359 for ac_exec_ext in '' $ac_executable_extensions; do
44360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44361 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44363 break 2
44364 fi
44365done
44366done
44367
44368 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44369 ;;
44370esac
44371fi
44372PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44373
44374if test -n "$PKG_CONFIG"; then
44375 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44376echo "${ECHO_T}$PKG_CONFIG" >&6
44377else
44378 echo "$as_me:$LINENO: result: no" >&5
44379echo "${ECHO_T}no" >&6
44380fi
44381
44382 fi
44383
44384 if test "$PKG_CONFIG" = "no" ; then
44385 echo "*** The pkg-config script could not be found. Make sure it is"
44386 echo "*** in your path, or set the PKG_CONFIG environment variable"
44387 echo "*** to the full path to pkg-config."
44388 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44389 else
44390 PKG_CONFIG_MIN_VERSION=0.9.0
44391 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44392 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
44393echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
44394
44395 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
44396 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44397echo "${ECHO_T}yes" >&6
dae87f93 44398 succeeded=yes
ce756cb0 44399
dae87f93
RN
44400 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
44401echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
44402 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
44403 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
44404echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
44405
44406 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
44407echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
44408 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
44409 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
44410echo "${ECHO_T}$GSTREAMER_LIBS" >&6
44411 else
44412 GSTREAMER_CFLAGS=""
44413 GSTREAMER_LIBS=""
44414 ## If we have a custom action on failure, don't print errors, but
44415 ## do set a variable so people can do so.
44416 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 44417
dae87f93
RN
44418 fi
44419
44420
44421
44422 else
44423 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44424 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44425 fi
44426 fi
44427
44428 if test $succeeded = yes; then
44429
c92ad099 44430 CPPFLAGS="$GSTREAMER_CFLAGS $CPPFLAGS"
dae87f93 44431 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 44432
ce756cb0 44433 else
dae87f93
RN
44434
44435 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
44436echo "$as_me: WARNING: GStreamer installation not found" >&2;}
44437 wxUSE_GSTREAMER="no"
44438
44439 fi
44440
44441
44442
44443
44444
44445 if test "x$GST_INSPECT" == "x"; then
44446 # Extract the first word of "gst-inspect", so it can be a program name with args.
44447set dummy gst-inspect; ac_word=$2
44448echo "$as_me:$LINENO: checking for $ac_word" >&5
44449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44450if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
44451 echo $ECHO_N "(cached) $ECHO_C" >&6
44452else
44453 if test -n "$GST_INSPECT"; then
44454 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
44455else
44456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44457for as_dir in $PATH
44458do
44459 IFS=$as_save_IFS
44460 test -z "$as_dir" && as_dir=.
44461 for ac_exec_ext in '' $ac_executable_extensions; do
44462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44463 ac_cv_prog_GST_INSPECT="gst-inspect"
44464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44465 break 2
ce756cb0 44466 fi
dae87f93
RN
44467done
44468done
44469
44470fi
44471fi
44472GST_INSPECT=$ac_cv_prog_GST_INSPECT
44473if test -n "$GST_INSPECT"; then
44474 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
44475echo "${ECHO_T}$GST_INSPECT" >&6
44476else
44477 echo "$as_me:$LINENO: result: no" >&5
44478echo "${ECHO_T}no" >&6
44479fi
44480
44481 fi
44482
44483 if test "x$GST_INSPECT" != "x"; then
44484 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
44485echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
44486 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
44487 echo "$as_me:$LINENO: result: found." >&5
44488echo "${ECHO_T}found." >&6
ce756cb0 44489
ce756cb0 44490 else
dae87f93
RN
44491 echo "$as_me:$LINENO: result: not found." >&5
44492echo "${ECHO_T}not found." >&6
44493
44494 wxUSE_GSTREAMER="no"
44495 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
44496echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
44497
44498 fi
44499 fi
44500
44501
44502 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
44503echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
44504if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
44505 echo $ECHO_N "(cached) $ECHO_C" >&6
44506else
44507 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
44508/* confdefs.h. */
44509_ACEOF
44510cat confdefs.h >>conftest.$ac_ext
44511cat >>conftest.$ac_ext <<_ACEOF
44512/* end confdefs.h. */
dae87f93 44513#include <gst/gst.h>
ce756cb0 44514
dae87f93 44515#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
44516_ACEOF
44517rm -f conftest.$ac_objext
44518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44519 (eval $ac_compile) 2>conftest.er1
44520 ac_status=$?
44521 grep -v '^ *+' conftest.er1 >conftest.err
44522 rm -f conftest.er1
44523 cat conftest.err >&5
44524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44525 (exit $ac_status); } &&
3565d135
RR
44526 { ac_try='test -z "$ac_c_werror_flag"
44527 || test ! -s conftest.err'
ce756cb0
RN
44528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44529 (eval $ac_try) 2>&5
44530 ac_status=$?
44531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44532 (exit $ac_status); }; } &&
44533 { ac_try='test -s conftest.$ac_objext'
44534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44535 (eval $ac_try) 2>&5
44536 ac_status=$?
44537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44538 (exit $ac_status); }; }; then
dae87f93 44539 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
44540else
44541 echo "$as_me: failed program was:" >&5
44542sed 's/^/| /' conftest.$ac_ext >&5
44543
dae87f93 44544ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
44545fi
44546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
44547fi
44548echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
44549echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
44550if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
44551 :
44552else
ce756cb0 44553
dae87f93
RN
44554 wxUSE_GSTREAMER="no"
44555 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
44556echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 44557
dae87f93 44558fi
ce756cb0 44559
dae87f93
RN
44560
44561
44562 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
44563echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
44564
0ad5d837
VZ
44565 ac_find_libraries=
44566 for ac_dir in $SEARCH_LIB;
ce756cb0 44567 do
3eca31dc 44568 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
44569 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
44570 ac_find_libraries=$ac_dir
44571 break 2
44572 fi
44573 done
44574 done
44575
ce756cb0 44576
dae87f93
RN
44577 if test "$ac_find_libraries" = "" ; then
44578 echo "$as_me:$LINENO: result: no" >&5
44579echo "${ECHO_T}no" >&6
44580 wxUSE_GSTREAMER="no"
44581 else
44582 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44583echo "${ECHO_T}yes" >&6
dae87f93 44584 fi
ce756cb0 44585
dae87f93
RN
44586 if test "$wxUSE_GSTREAMER" = "yes"; then
44587 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
44588#define wxUSE_GSTREAMER 1
44589_ACEOF
44590
dae87f93
RN
44591 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44592echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
44593 fi
44594 fi
44595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44596 cat >>confdefs.h <<\_ACEOF
44597#define wxUSE_MEDIACTRL 1
44598_ACEOF
44599
44600fi
44601
44602
a848cd7e
SC
44603if test "$cross_compiling" = "yes"; then
44604 OSINFO="\"$host\""
44605else
44606 OSINFO=`uname -s -r -m`
44607 OSINFO="\"$OSINFO\""
44608fi
44609
44610cat >>confdefs.h <<_ACEOF
44611#define WXWIN_OS_DESCRIPTION $OSINFO
44612_ACEOF
44613
44614
44615
44616if test "x$prefix" != "xNONE"; then
44617 wxPREFIX=$prefix
44618else
44619 wxPREFIX=$ac_default_prefix
44620fi
44621
44622cat >>confdefs.h <<_ACEOF
44623#define wxINSTALL_PREFIX "$wxPREFIX"
44624_ACEOF
44625
44626
a848cd7e
SC
44627
44628
44629CORE_BASE_LIBS="net base"
44630CORE_GUI_LIBS="adv core"
44631
44632if test "$wxUSE_XML" = "yes" ; then
44633 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44634fi
44635if test "$wxUSE_ODBC" != "no" ; then
44636 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44637 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44638fi
44639if test "$wxUSE_HTML" = "yes" ; then
44640 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44641fi
61639efb
VZ
44642if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44643 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44644fi
9a8f0513
VS
44645if test "$wxUSE_XRC" = "yes" ; then
44646 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44647fi
a848cd7e
SC
44648
44649if test "$wxUSE_GUI" != "yes"; then
44650 CORE_GUI_LIBS=""
44651fi
44652
44653
44654
44655
44656
44657
44658
a848cd7e 44659if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 44660 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
44661 if test "$USE_DARWIN" = 1; then
44662 LDFLAGS="$LDFLAGS -framework QuickTime"
44663 else
44664 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44665 fi
07bea8f0 44666 fi
5dcf30a0 44667 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
44668 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44669 else
44670 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 44671 fi
a848cd7e
SC
44672fi
44673if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 44674 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
44675 if test "$wxUSE_MEDIACTRL" = "yes"; then
44676 LDFLAGS="$LDFLAGS -framework QuickTime"
44677 fi
a848cd7e 44678fi
19b27e78
MW
44679if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44680 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44681fi
a848cd7e
SC
44682
44683
44684LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44685
44686have_cos=0
44687have_floor=0
44688
44689for ac_func in cos
44690do
44691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44692echo "$as_me:$LINENO: checking for $ac_func" >&5
44693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44694if eval "test \"\${$as_ac_var+set}\" = set"; then
44695 echo $ECHO_N "(cached) $ECHO_C" >&6
44696else
44697 cat >conftest.$ac_ext <<_ACEOF
44698/* confdefs.h. */
44699_ACEOF
44700cat confdefs.h >>conftest.$ac_ext
44701cat >>conftest.$ac_ext <<_ACEOF
44702/* end confdefs.h. */
ac1cb8d3
VS
44703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44705#define $ac_func innocuous_$ac_func
44706
a848cd7e
SC
44707/* System header to define __stub macros and hopefully few prototypes,
44708 which can conflict with char $ac_func (); below.
44709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44710 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44711
a848cd7e
SC
44712#ifdef __STDC__
44713# include <limits.h>
44714#else
44715# include <assert.h>
44716#endif
ac1cb8d3
VS
44717
44718#undef $ac_func
44719
a848cd7e
SC
44720/* Override any gcc2 internal prototype to avoid an error. */
44721#ifdef __cplusplus
44722extern "C"
44723{
44724#endif
44725/* We use char because int might match the return type of a gcc2
44726 builtin and then its argument prototype would still apply. */
44727char $ac_func ();
44728/* The GNU C library defines this for functions which it implements
44729 to always fail with ENOSYS. Some functions are actually named
44730 something starting with __ and the normal name is an alias. */
44731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44732choke me
44733#else
44734char (*f) () = $ac_func;
44735#endif
44736#ifdef __cplusplus
44737}
44738#endif
44739
44740int
44741main ()
44742{
44743return f != $ac_func;
44744 ;
44745 return 0;
44746}
44747_ACEOF
44748rm -f conftest.$ac_objext conftest$ac_exeext
44749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44750 (eval $ac_link) 2>conftest.er1
a848cd7e 44751 ac_status=$?
ac1cb8d3
VS
44752 grep -v '^ *+' conftest.er1 >conftest.err
44753 rm -f conftest.er1
44754 cat conftest.err >&5
a848cd7e
SC
44755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44756 (exit $ac_status); } &&
3565d135
RR
44757 { ac_try='test -z "$ac_c_werror_flag"
44758 || test ! -s conftest.err'
ac1cb8d3
VS
44759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44760 (eval $ac_try) 2>&5
44761 ac_status=$?
44762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44763 (exit $ac_status); }; } &&
44764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44766 (eval $ac_try) 2>&5
44767 ac_status=$?
44768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44769 (exit $ac_status); }; }; then
44770 eval "$as_ac_var=yes"
44771else
44772 echo "$as_me: failed program was:" >&5
44773sed 's/^/| /' conftest.$ac_ext >&5
44774
44775eval "$as_ac_var=no"
44776fi
ac1cb8d3
VS
44777rm -f conftest.err conftest.$ac_objext \
44778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44779fi
44780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44782if test `eval echo '${'$as_ac_var'}'` = yes; then
44783 cat >>confdefs.h <<_ACEOF
44784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44785_ACEOF
44786 have_cos=1
44787fi
44788done
44789
44790
44791for ac_func in floor
44792do
44793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44794echo "$as_me:$LINENO: checking for $ac_func" >&5
44795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44796if eval "test \"\${$as_ac_var+set}\" = set"; then
44797 echo $ECHO_N "(cached) $ECHO_C" >&6
44798else
44799 cat >conftest.$ac_ext <<_ACEOF
44800/* confdefs.h. */
44801_ACEOF
44802cat confdefs.h >>conftest.$ac_ext
44803cat >>conftest.$ac_ext <<_ACEOF
44804/* end confdefs.h. */
ac1cb8d3
VS
44805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44807#define $ac_func innocuous_$ac_func
44808
a848cd7e
SC
44809/* System header to define __stub macros and hopefully few prototypes,
44810 which can conflict with char $ac_func (); below.
44811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44812 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44813
a848cd7e
SC
44814#ifdef __STDC__
44815# include <limits.h>
44816#else
44817# include <assert.h>
44818#endif
ac1cb8d3
VS
44819
44820#undef $ac_func
44821
a848cd7e
SC
44822/* Override any gcc2 internal prototype to avoid an error. */
44823#ifdef __cplusplus
44824extern "C"
44825{
44826#endif
44827/* We use char because int might match the return type of a gcc2
44828 builtin and then its argument prototype would still apply. */
44829char $ac_func ();
44830/* The GNU C library defines this for functions which it implements
44831 to always fail with ENOSYS. Some functions are actually named
44832 something starting with __ and the normal name is an alias. */
44833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44834choke me
44835#else
44836char (*f) () = $ac_func;
44837#endif
44838#ifdef __cplusplus
44839}
44840#endif
44841
44842int
44843main ()
44844{
44845return f != $ac_func;
44846 ;
44847 return 0;
44848}
44849_ACEOF
44850rm -f conftest.$ac_objext conftest$ac_exeext
44851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44852 (eval $ac_link) 2>conftest.er1
a848cd7e 44853 ac_status=$?
ac1cb8d3
VS
44854 grep -v '^ *+' conftest.er1 >conftest.err
44855 rm -f conftest.er1
44856 cat conftest.err >&5
a848cd7e
SC
44857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44858 (exit $ac_status); } &&
3565d135
RR
44859 { ac_try='test -z "$ac_c_werror_flag"
44860 || test ! -s conftest.err'
ac1cb8d3
VS
44861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44862 (eval $ac_try) 2>&5
44863 ac_status=$?
44864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44865 (exit $ac_status); }; } &&
44866 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44868 (eval $ac_try) 2>&5
44869 ac_status=$?
44870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44871 (exit $ac_status); }; }; then
44872 eval "$as_ac_var=yes"
44873else
44874 echo "$as_me: failed program was:" >&5
44875sed 's/^/| /' conftest.$ac_ext >&5
44876
44877eval "$as_ac_var=no"
44878fi
ac1cb8d3
VS
44879rm -f conftest.err conftest.$ac_objext \
44880 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44881fi
44882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44884if test `eval echo '${'$as_ac_var'}'` = yes; then
44885 cat >>confdefs.h <<_ACEOF
44886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44887_ACEOF
44888 have_floor=1
44889fi
44890done
44891
44892echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
44893echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
44894if test "$have_cos" = 1 -a "$have_floor" = 1; then
44895 echo "$as_me:$LINENO: result: yes" >&5
44896echo "${ECHO_T}yes" >&6
44897else
44898 echo "$as_me:$LINENO: result: no" >&5
44899echo "${ECHO_T}no" >&6
44900 LIBS="$LIBS -lm"
44901 # use different functions to avoid configure caching
44902 have_sin=0
44903 have_ceil=0
44904
44905for ac_func in sin
44906do
44907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44908echo "$as_me:$LINENO: checking for $ac_func" >&5
44909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44910if eval "test \"\${$as_ac_var+set}\" = set"; then
44911 echo $ECHO_N "(cached) $ECHO_C" >&6
44912else
44913 cat >conftest.$ac_ext <<_ACEOF
44914/* confdefs.h. */
44915_ACEOF
44916cat confdefs.h >>conftest.$ac_ext
44917cat >>conftest.$ac_ext <<_ACEOF
44918/* end confdefs.h. */
ac1cb8d3
VS
44919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44921#define $ac_func innocuous_$ac_func
44922
a848cd7e
SC
44923/* System header to define __stub macros and hopefully few prototypes,
44924 which can conflict with char $ac_func (); below.
44925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44926 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44927
a848cd7e
SC
44928#ifdef __STDC__
44929# include <limits.h>
44930#else
44931# include <assert.h>
44932#endif
ac1cb8d3
VS
44933
44934#undef $ac_func
44935
a848cd7e
SC
44936/* Override any gcc2 internal prototype to avoid an error. */
44937#ifdef __cplusplus
44938extern "C"
44939{
44940#endif
44941/* We use char because int might match the return type of a gcc2
44942 builtin and then its argument prototype would still apply. */
44943char $ac_func ();
44944/* The GNU C library defines this for functions which it implements
44945 to always fail with ENOSYS. Some functions are actually named
44946 something starting with __ and the normal name is an alias. */
44947#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44948choke me
44949#else
44950char (*f) () = $ac_func;
44951#endif
44952#ifdef __cplusplus
44953}
44954#endif
44955
44956int
44957main ()
44958{
44959return f != $ac_func;
44960 ;
44961 return 0;
44962}
44963_ACEOF
44964rm -f conftest.$ac_objext conftest$ac_exeext
44965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44966 (eval $ac_link) 2>conftest.er1
a848cd7e 44967 ac_status=$?
ac1cb8d3
VS
44968 grep -v '^ *+' conftest.er1 >conftest.err
44969 rm -f conftest.er1
44970 cat conftest.err >&5
a848cd7e
SC
44971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44972 (exit $ac_status); } &&
3565d135
RR
44973 { ac_try='test -z "$ac_c_werror_flag"
44974 || test ! -s conftest.err'
ac1cb8d3
VS
44975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44976 (eval $ac_try) 2>&5
44977 ac_status=$?
44978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44979 (exit $ac_status); }; } &&
44980 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44982 (eval $ac_try) 2>&5
44983 ac_status=$?
44984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44985 (exit $ac_status); }; }; then
44986 eval "$as_ac_var=yes"
44987else
44988 echo "$as_me: failed program was:" >&5
44989sed 's/^/| /' conftest.$ac_ext >&5
44990
44991eval "$as_ac_var=no"
44992fi
ac1cb8d3
VS
44993rm -f conftest.err conftest.$ac_objext \
44994 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44995fi
44996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44997echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44998if test `eval echo '${'$as_ac_var'}'` = yes; then
44999 cat >>confdefs.h <<_ACEOF
45000#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45001_ACEOF
45002 have_sin=1
45003fi
45004done
45005
45006
45007for ac_func in ceil
45008do
45009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45010echo "$as_me:$LINENO: checking for $ac_func" >&5
45011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45012if eval "test \"\${$as_ac_var+set}\" = set"; then
45013 echo $ECHO_N "(cached) $ECHO_C" >&6
45014else
45015 cat >conftest.$ac_ext <<_ACEOF
45016/* confdefs.h. */
45017_ACEOF
45018cat confdefs.h >>conftest.$ac_ext
45019cat >>conftest.$ac_ext <<_ACEOF
45020/* end confdefs.h. */
ac1cb8d3
VS
45021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45023#define $ac_func innocuous_$ac_func
45024
a848cd7e
SC
45025/* System header to define __stub macros and hopefully few prototypes,
45026 which can conflict with char $ac_func (); below.
45027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45028 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 45029
a848cd7e
SC
45030#ifdef __STDC__
45031# include <limits.h>
45032#else
45033# include <assert.h>
45034#endif
ac1cb8d3
VS
45035
45036#undef $ac_func
45037
a848cd7e
SC
45038/* Override any gcc2 internal prototype to avoid an error. */
45039#ifdef __cplusplus
45040extern "C"
45041{
45042#endif
45043/* We use char because int might match the return type of a gcc2
45044 builtin and then its argument prototype would still apply. */
45045char $ac_func ();
45046/* The GNU C library defines this for functions which it implements
45047 to always fail with ENOSYS. Some functions are actually named
45048 something starting with __ and the normal name is an alias. */
45049#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45050choke me
45051#else
45052char (*f) () = $ac_func;
45053#endif
45054#ifdef __cplusplus
45055}
45056#endif
45057
45058int
45059main ()
45060{
45061return f != $ac_func;
45062 ;
45063 return 0;
45064}
45065_ACEOF
45066rm -f conftest.$ac_objext conftest$ac_exeext
45067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45068 (eval $ac_link) 2>conftest.er1
a848cd7e 45069 ac_status=$?
ac1cb8d3
VS
45070 grep -v '^ *+' conftest.er1 >conftest.err
45071 rm -f conftest.er1
45072 cat conftest.err >&5
a848cd7e
SC
45073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45074 (exit $ac_status); } &&
3565d135
RR
45075 { ac_try='test -z "$ac_c_werror_flag"
45076 || test ! -s conftest.err'
ac1cb8d3
VS
45077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45078 (eval $ac_try) 2>&5
45079 ac_status=$?
45080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45081 (exit $ac_status); }; } &&
45082 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45084 (eval $ac_try) 2>&5
45085 ac_status=$?
45086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45087 (exit $ac_status); }; }; then
45088 eval "$as_ac_var=yes"
45089else
45090 echo "$as_me: failed program was:" >&5
45091sed 's/^/| /' conftest.$ac_ext >&5
45092
45093eval "$as_ac_var=no"
45094fi
ac1cb8d3
VS
45095rm -f conftest.err conftest.$ac_objext \
45096 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45097fi
45098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45099echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45100if test `eval echo '${'$as_ac_var'}'` = yes; then
45101 cat >>confdefs.h <<_ACEOF
45102#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45103_ACEOF
45104 have_ceil=1
45105fi
45106done
45107
45108 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
45109echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
45110 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
45111 echo "$as_me:$LINENO: result: yes" >&5
45112echo "${ECHO_T}yes" >&6
45113 else
45114 echo "$as_me:$LINENO: result: no" >&5
45115echo "${ECHO_T}no" >&6
45116 # not sure we should warn the user, crash, etc.
45117 fi
45118fi
45119
45120if test "$wxUSE_GUI" = "yes"; then
45121
45122
8bce5cda
MW
45123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45124 dynamic erase event exec font image minimal mobile \
45125 mobile/wxedit mobile/styles propsize render \
45126 richedit rotate shaped vscroll widgets"
a848cd7e
SC
45127
45128 if test "$wxUSE_MONOLITHIC" != "yes"; then
45129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45130 fi
0b78747f 45131 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45133 if test "$wxUSE_UNIVERSAL" != "yes"; then
45134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45135 fi
45136 fi
45137 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45139 fi
a848cd7e
SC
45140else
45141 SAMPLES_SUBDIRS="console"
45142fi
45143
45144
48f625bc 45145if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45146 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45147elif test "$GCC" = yes ; then
45148 CWARNINGS="-Wall -Wundef"
45149fi
45150
48f625bc 45151if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45152 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45153elif test "$GXX" = yes ; then
45154 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45155fi
a848cd7e 45156
a848cd7e 45157
5ff751d6
VZ
45158WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45159WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45160
45161
c92ad099 45162CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45163 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45164 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45165 $CPPFLAGS `
5ff751d6 45166
8aeeb05c 45167C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45168CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45169CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45170
45171WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45172
a848cd7e 45173
95986553
DE
45174if test "x$MWCC" = "xyes"; then
45175
45176 CC="$CC -cwd source -I-"
45177 CXX="$CXX -cwd source -I-"
45178fi
45179
a848cd7e 45180
0c3c69fc 45181LIBS=`echo $LIBS`
a848cd7e
SC
45182EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45183EXTRALIBS_XML="$EXPAT_LINK"
45184EXTRALIBS_HTML="$MSPACK_LINK"
45185EXTRALIBS_ODBC="$ODBC_LINK"
45186if test "$wxUSE_GUI" = "yes"; then
3565d135 45187 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45188fi
45189if test "$wxUSE_OPENGL" = "yes"; then
45190 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45191fi
45192
8aeeb05c 45193LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45194
5ff751d6 45195WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45196
45197if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45198 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45199fi
45200if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45201 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45202fi
45203if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45204 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45205fi
45206if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45207 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45208fi
45209if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45210 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45211fi
45212if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45213 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45214fi
45215if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45216 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45217fi
45218
45219for i in $wxconfig_3rdparty ; do
5ff751d6 45220 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45221done
45222
45223
45224if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45225 WXUNIV=1
45226else
45227 WXUNIV=0
45228fi
45229
45230
45231
45232
45233
45234
45235
45236
45237
45238if test $wxUSE_MONOLITHIC = "yes" ; then
45239 MONOLITHIC=1
45240else
45241 MONOLITHIC=0
45242fi
45243
45244if test $wxUSE_PLUGINS = "yes" ; then
45245 USE_PLUGINS=1
45246else
45247 USE_PLUGINS=0
45248fi
45249
45250if test $wxUSE_ODBC != "no" ; then
45251 USE_ODBC=1
45252else
45253 USE_ODBC=0
45254fi
45255
16358932
VZ
45256if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45257 USE_QA=1
45258else
45259 USE_QA=0
45260fi
45261
a848cd7e
SC
45262if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45263 OFFICIAL_BUILD=1
45264else
45265 OFFICIAL_BUILD=0
45266fi
45267
45268
45269
45270
45271
45272
45273
45274
45275
45276
45277
45278
45279
45280
45281
45282
45283
45284
45285
ceec2216 45286
d1c38808 45287
3565d135 45288
a848cd7e
SC
45289
45290
45291TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45292
45293
45294
45295
45296
45297
45298
45299
4d4ff94c
VZ
45300case "$TOOLKIT" in
45301 GTK)
45302 TOOLKIT_USER="GTK+"
45303 if test "$WXGTK20" = 1; then
45304 TOOLKIT_USER="$TOOLKIT_USER 2"
45305 fi
9a8f0513 45306 ;;
4d4ff94c
VZ
45307
45308 *)
45309 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45310 ;;
4d4ff94c 45311esac
a848cd7e 45312
fb00f58d
JS
45313if test "$wxUSE_WINE" = "yes"; then
45314 BAKEFILE_FORCE_PLATFORM=win32
45315fi
45316
7afc46ab
KO
45317if test "$wxUSE_MAC" = 1 ; then
45318 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45319 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45320 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45321 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45322 bk_use_pch=no
45323 fi
45324 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45325 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45326 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45327fi
45328
9a8f0513 45329
1e9e8aba
DE
45330
45331
a848cd7e
SC
45332 if test "x$BAKEFILE_HOST" = "x"; then
45333 BAKEFILE_HOST="${host}"
45334 fi
45335
45336 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45337
45338 if test -n "$ac_tool_prefix"; then
45339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45340set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45341echo "$as_me:$LINENO: checking for $ac_word" >&5
45342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45343if test "${ac_cv_prog_RANLIB+set}" = set; then
45344 echo $ECHO_N "(cached) $ECHO_C" >&6
45345else
45346 if test -n "$RANLIB"; then
45347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45348else
45349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45350for as_dir in $PATH
45351do
45352 IFS=$as_save_IFS
45353 test -z "$as_dir" && as_dir=.
45354 for ac_exec_ext in '' $ac_executable_extensions; do
45355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45358 break 2
45359 fi
45360done
45361done
45362
45363fi
45364fi
45365RANLIB=$ac_cv_prog_RANLIB
45366if test -n "$RANLIB"; then
45367 echo "$as_me:$LINENO: result: $RANLIB" >&5
45368echo "${ECHO_T}$RANLIB" >&6
45369else
45370 echo "$as_me:$LINENO: result: no" >&5
45371echo "${ECHO_T}no" >&6
45372fi
45373
45374fi
45375if test -z "$ac_cv_prog_RANLIB"; then
45376 ac_ct_RANLIB=$RANLIB
45377 # Extract the first word of "ranlib", so it can be a program name with args.
45378set dummy ranlib; ac_word=$2
45379echo "$as_me:$LINENO: checking for $ac_word" >&5
45380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45381if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45382 echo $ECHO_N "(cached) $ECHO_C" >&6
45383else
45384 if test -n "$ac_ct_RANLIB"; then
45385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45386else
45387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45388for as_dir in $PATH
45389do
45390 IFS=$as_save_IFS
45391 test -z "$as_dir" && as_dir=.
45392 for ac_exec_ext in '' $ac_executable_extensions; do
45393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45394 ac_cv_prog_ac_ct_RANLIB="ranlib"
45395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45396 break 2
45397 fi
45398done
45399done
45400
45401 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45402fi
45403fi
45404ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45405if test -n "$ac_ct_RANLIB"; then
45406 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45407echo "${ECHO_T}$ac_ct_RANLIB" >&6
45408else
45409 echo "$as_me:$LINENO: result: no" >&5
45410echo "${ECHO_T}no" >&6
45411fi
45412
45413 RANLIB=$ac_ct_RANLIB
45414else
45415 RANLIB="$ac_cv_prog_RANLIB"
45416fi
45417
45418 # Find a good install program. We prefer a C program (faster),
45419# so one script is as good as another. But avoid the broken or
45420# incompatible versions:
45421# SysV /etc/install, /usr/sbin/install
45422# SunOS /usr/etc/install
45423# IRIX /sbin/install
45424# AIX /bin/install
45425# AmigaOS /C/install, which installs bootblocks on floppy discs
45426# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45427# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45428# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45429# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45430# ./install, which can be erroneously created by make from ./install.sh.
45431echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45432echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45433if test -z "$INSTALL"; then
45434if test "${ac_cv_path_install+set}" = set; then
45435 echo $ECHO_N "(cached) $ECHO_C" >&6
45436else
45437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45438for as_dir in $PATH
45439do
45440 IFS=$as_save_IFS
45441 test -z "$as_dir" && as_dir=.
45442 # Account for people who put trailing slashes in PATH elements.
45443case $as_dir/ in
45444 ./ | .// | /cC/* | \
45445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45446 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45447 /usr/ucb/* ) ;;
45448 *)
45449 # OSF1 and SCO ODT 3.0 have their own names for install.
45450 # Don't use installbsd from OSF since it installs stuff as root
45451 # by default.
45452 for ac_prog in ginstall scoinst install; do
45453 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45454 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45455 if test $ac_prog = install &&
45456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45457 # AIX install. It has an incompatible calling convention.
45458 :
45459 elif test $ac_prog = install &&
45460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45461 # program-specific install script used by HP pwplus--don't use.
45462 :
45463 else
45464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45465 break 3
45466 fi
45467 fi
a848cd7e
SC
45468 done
45469 done
45470 ;;
45471esac
45472done
45473
45474
45475fi
45476 if test "${ac_cv_path_install+set}" = set; then
45477 INSTALL=$ac_cv_path_install
45478 else
45479 # As a last resort, use the slow shell script. We don't cache a
45480 # path for INSTALL within a source directory, because that will
45481 # break other packages using the cache if that directory is
45482 # removed, or if the path is relative.
45483 INSTALL=$ac_install_sh
45484 fi
45485fi
45486echo "$as_me:$LINENO: result: $INSTALL" >&5
45487echo "${ECHO_T}$INSTALL" >&6
45488
45489# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45490# It thinks the first close brace ends the variable substitution.
45491test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45492
45493test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45494
45495test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45496
45497 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45498echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45499LN_S=$as_ln_s
45500if test "$LN_S" = "ln -s"; then
45501 echo "$as_me:$LINENO: result: yes" >&5
45502echo "${ECHO_T}yes" >&6
45503else
45504 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45505echo "${ECHO_T}no, using $LN_S" >&6
45506fi
45507
45508
45509 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45510echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45511set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45512if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45513 echo $ECHO_N "(cached) $ECHO_C" >&6
45514else
45515 cat >conftest.make <<\_ACEOF
45516all:
45517 @echo 'ac_maketemp="$(MAKE)"'
45518_ACEOF
45519# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45520eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45521if test -n "$ac_maketemp"; then
45522 eval ac_cv_prog_make_${ac_make}_set=yes
45523else
45524 eval ac_cv_prog_make_${ac_make}_set=no
45525fi
45526rm -f conftest.make
45527fi
45528if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45529 echo "$as_me:$LINENO: result: yes" >&5
45530echo "${ECHO_T}yes" >&6
45531 SET_MAKE=
45532else
45533 echo "$as_me:$LINENO: result: no" >&5
45534echo "${ECHO_T}no" >&6
45535 SET_MAKE="MAKE=${MAKE-make}"
45536fi
45537
45538
45539
45540 if test -n "$ac_tool_prefix"; then
45541 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45542set dummy ${ac_tool_prefix}ar; ac_word=$2
45543echo "$as_me:$LINENO: checking for $ac_word" >&5
45544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45545if test "${ac_cv_prog_AR+set}" = set; then
45546 echo $ECHO_N "(cached) $ECHO_C" >&6
45547else
45548 if test -n "$AR"; then
45549 ac_cv_prog_AR="$AR" # Let the user override the test.
45550else
45551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45552for as_dir in $PATH
45553do
45554 IFS=$as_save_IFS
45555 test -z "$as_dir" && as_dir=.
45556 for ac_exec_ext in '' $ac_executable_extensions; do
45557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45558 ac_cv_prog_AR="${ac_tool_prefix}ar"
45559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45560 break 2
45561 fi
45562done
45563done
45564
45565fi
45566fi
45567AR=$ac_cv_prog_AR
45568if test -n "$AR"; then
45569 echo "$as_me:$LINENO: result: $AR" >&5
45570echo "${ECHO_T}$AR" >&6
45571else
45572 echo "$as_me:$LINENO: result: no" >&5
45573echo "${ECHO_T}no" >&6
45574fi
45575
45576fi
45577if test -z "$ac_cv_prog_AR"; then
45578 ac_ct_AR=$AR
45579 # Extract the first word of "ar", so it can be a program name with args.
45580set dummy ar; ac_word=$2
45581echo "$as_me:$LINENO: checking for $ac_word" >&5
45582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45583if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45584 echo $ECHO_N "(cached) $ECHO_C" >&6
45585else
45586 if test -n "$ac_ct_AR"; then
45587 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45588else
45589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45590for as_dir in $PATH
45591do
45592 IFS=$as_save_IFS
45593 test -z "$as_dir" && as_dir=.
45594 for ac_exec_ext in '' $ac_executable_extensions; do
45595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45596 ac_cv_prog_ac_ct_AR="ar"
45597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45598 break 2
45599 fi
45600done
45601done
45602
45603 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45604fi
45605fi
45606ac_ct_AR=$ac_cv_prog_ac_ct_AR
45607if test -n "$ac_ct_AR"; then
45608 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45609echo "${ECHO_T}$ac_ct_AR" >&6
45610else
45611 echo "$as_me:$LINENO: result: no" >&5
45612echo "${ECHO_T}no" >&6
45613fi
45614
45615 AR=$ac_ct_AR
45616else
45617 AR="$ac_cv_prog_AR"
45618fi
45619
45620 if test -n "$ac_tool_prefix"; then
45621 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45622set dummy ${ac_tool_prefix}strip; ac_word=$2
45623echo "$as_me:$LINENO: checking for $ac_word" >&5
45624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45625if test "${ac_cv_prog_STRIP+set}" = set; then
45626 echo $ECHO_N "(cached) $ECHO_C" >&6
45627else
45628 if test -n "$STRIP"; then
45629 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45630else
45631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45632for as_dir in $PATH
45633do
45634 IFS=$as_save_IFS
45635 test -z "$as_dir" && as_dir=.
45636 for ac_exec_ext in '' $ac_executable_extensions; do
45637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45638 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45640 break 2
45641 fi
45642done
45643done
45644
45645fi
45646fi
45647STRIP=$ac_cv_prog_STRIP
45648if test -n "$STRIP"; then
45649 echo "$as_me:$LINENO: result: $STRIP" >&5
45650echo "${ECHO_T}$STRIP" >&6
45651else
45652 echo "$as_me:$LINENO: result: no" >&5
45653echo "${ECHO_T}no" >&6
45654fi
45655
45656fi
45657if test -z "$ac_cv_prog_STRIP"; then
45658 ac_ct_STRIP=$STRIP
45659 # Extract the first word of "strip", so it can be a program name with args.
45660set dummy strip; ac_word=$2
45661echo "$as_me:$LINENO: checking for $ac_word" >&5
45662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45663if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45664 echo $ECHO_N "(cached) $ECHO_C" >&6
45665else
45666 if test -n "$ac_ct_STRIP"; then
45667 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45668else
45669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45670for as_dir in $PATH
45671do
45672 IFS=$as_save_IFS
45673 test -z "$as_dir" && as_dir=.
45674 for ac_exec_ext in '' $ac_executable_extensions; do
45675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45676 ac_cv_prog_ac_ct_STRIP="strip"
45677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45678 break 2
45679 fi
45680done
45681done
45682
45683 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45684fi
45685fi
45686ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45687if test -n "$ac_ct_STRIP"; then
45688 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45689echo "${ECHO_T}$ac_ct_STRIP" >&6
45690else
45691 echo "$as_me:$LINENO: result: no" >&5
45692echo "${ECHO_T}no" >&6
45693fi
45694
45695 STRIP=$ac_ct_STRIP
45696else
45697 STRIP="$ac_cv_prog_STRIP"
45698fi
45699
45700 if test -n "$ac_tool_prefix"; then
45701 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45702set dummy ${ac_tool_prefix}nm; ac_word=$2
45703echo "$as_me:$LINENO: checking for $ac_word" >&5
45704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45705if test "${ac_cv_prog_NM+set}" = set; then
45706 echo $ECHO_N "(cached) $ECHO_C" >&6
45707else
45708 if test -n "$NM"; then
45709 ac_cv_prog_NM="$NM" # Let the user override the test.
45710else
45711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45712for as_dir in $PATH
45713do
45714 IFS=$as_save_IFS
45715 test -z "$as_dir" && as_dir=.
45716 for ac_exec_ext in '' $ac_executable_extensions; do
45717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45718 ac_cv_prog_NM="${ac_tool_prefix}nm"
45719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45720 break 2
45721 fi
45722done
45723done
45724
45725fi
45726fi
45727NM=$ac_cv_prog_NM
45728if test -n "$NM"; then
45729 echo "$as_me:$LINENO: result: $NM" >&5
45730echo "${ECHO_T}$NM" >&6
45731else
45732 echo "$as_me:$LINENO: result: no" >&5
45733echo "${ECHO_T}no" >&6
45734fi
45735
45736fi
45737if test -z "$ac_cv_prog_NM"; then
45738 ac_ct_NM=$NM
45739 # Extract the first word of "nm", so it can be a program name with args.
45740set dummy nm; ac_word=$2
45741echo "$as_me:$LINENO: checking for $ac_word" >&5
45742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45743if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45744 echo $ECHO_N "(cached) $ECHO_C" >&6
45745else
45746 if test -n "$ac_ct_NM"; then
45747 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45748else
45749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45750for as_dir in $PATH
45751do
45752 IFS=$as_save_IFS
45753 test -z "$as_dir" && as_dir=.
45754 for ac_exec_ext in '' $ac_executable_extensions; do
45755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45756 ac_cv_prog_ac_ct_NM="nm"
45757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45758 break 2
45759 fi
45760done
45761done
45762
45763 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45764fi
45765fi
45766ac_ct_NM=$ac_cv_prog_ac_ct_NM
45767if test -n "$ac_ct_NM"; then
45768 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45769echo "${ECHO_T}$ac_ct_NM" >&6
45770else
45771 echo "$as_me:$LINENO: result: no" >&5
45772echo "${ECHO_T}no" >&6
45773fi
45774
45775 NM=$ac_ct_NM
45776else
45777 NM="$ac_cv_prog_NM"
45778fi
45779
45780
45781 case ${BAKEFILE_HOST} in
45782 *-hp-hpux* )
1e9e8aba 45783 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45784 ;;
45785 *) INSTALL_DIR="$INSTALL -d"
45786 ;;
45787 esac
45788
45789
45790 LDFLAGS_GUI=
45791 case ${BAKEFILE_HOST} in
45792 *-*-cygwin* | *-*-mingw32* )
45793 LDFLAGS_GUI="-mwindows"
45794 esac
45795
45796
45797 fi
45798
45799 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45800echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45801if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45802 echo $ECHO_N "(cached) $ECHO_C" >&6
45803else
45804
45805 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45806 egrep -s GNU > /dev/null); then
45807 bakefile_cv_prog_makeisgnu="yes"
45808 else
45809 bakefile_cv_prog_makeisgnu="no"
45810 fi
45811
45812fi
45813echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45814echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45815
45816 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45817 IF_GNU_MAKE=""
45818 else
45819 IF_GNU_MAKE="#"
45820 fi
45821
45822
45823
45824 PLATFORM_UNIX=0
45825 PLATFORM_WIN32=0
45826 PLATFORM_MSDOS=0
45827 PLATFORM_MAC=0
1e9e8aba 45828 PLATFORM_MACOS=0
a848cd7e
SC
45829 PLATFORM_MACOSX=0
45830 PLATFORM_OS2=0
1e9e8aba 45831 PLATFORM_BEOS=0
a848cd7e
SC
45832
45833 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45834 case "${BAKEFILE_HOST}" in
810b94f0 45835 *-*-mingw32* )
a848cd7e
SC
45836 PLATFORM_WIN32=1
45837 ;;
45838 *-pc-msdosdjgpp )
45839 PLATFORM_MSDOS=1
45840 ;;
45841 *-pc-os2_emx | *-pc-os2-emx )
45842 PLATFORM_OS2=1
45843 ;;
47bd5406 45844 *-*-darwin* )
a848cd7e
SC
45845 PLATFORM_MAC=1
45846 PLATFORM_MACOSX=1
45847 ;;
1e9e8aba
DE
45848 *-*-beos* )
45849 PLATFORM_BEOS=1
45850 ;;
45851 powerpc-apple-macos* )
45852 PLATFORM_MAC=1
45853 PLATFORM_MACOS=1
45854 ;;
a848cd7e
SC
45855 * )
45856 PLATFORM_UNIX=1
45857 ;;
45858 esac
45859 else
45860 case "$BAKEFILE_FORCE_PLATFORM" in
45861 win32 )
45862 PLATFORM_WIN32=1
45863 ;;
45864 msdos )
45865 PLATFORM_MSDOS=1
45866 ;;
45867 os2 )
45868 PLATFORM_OS2=1
45869 ;;
45870 darwin )
45871 PLATFORM_MAC=1
45872 PLATFORM_MACOSX=1
45873 ;;
45874 unix )
45875 PLATFORM_UNIX=1
45876 ;;
1e9e8aba
DE
45877 beos )
45878 PLATFORM_BEOS=1
45879 ;;
a848cd7e
SC
45880 * )
45881 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45882echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45883 { (exit 1); exit 1; }; }
45884 ;;
45885 esac
45886 fi
45887
45888
45889
45890
45891
45892
45893
45894
45895
1e9e8aba
DE
45896
45897
a848cd7e
SC
45898 # Check whether --enable-omf or --disable-omf was given.
45899if test "${enable_omf+set}" = set; then
45900 enableval="$enable_omf"
45901 bk_os2_use_omf="$enableval"
45902fi;
45903
45904 case "${BAKEFILE_HOST}" in
45905 *-*-darwin* )
47bd5406
VZ
45906 if test "x$GCC" = "xyes"; then
45907 CFLAGS="$CFLAGS -fno-common"
45908 CXXFLAGS="$CXXFLAGS -fno-common"
45909 fi
45910 if test "x$XLCC" = "xyes"; then
45911 CFLAGS="$CFLAGS -qnocommon"
45912 CXXFLAGS="$CXXFLAGS -qnocommon"
45913 fi
a848cd7e
SC
45914 ;;
45915
45916 *-pc-os2_emx | *-pc-os2-emx )
45917 if test "x$bk_os2_use_omf" = "xyes" ; then
45918 AR=emxomfar
45919 RANLIB=:
45920 LDFLAGS="-Zomf $LDFLAGS"
45921 CFLAGS="-Zomf $CFLAGS"
45922 CXXFLAGS="-Zomf $CXXFLAGS"
45923 OS2_LIBEXT="lib"
45924 else
45925 OS2_LIBEXT="a"
45926 fi
45927 ;;
1e9e8aba
DE
45928
45929 i*86-*-beos* )
45930 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
45931 ;;
a848cd7e
SC
45932 esac
45933
45934
45935 SO_SUFFIX="so"
45936 SO_SUFFIX_MODULE="so"
45937 EXEEXT=""
45938 LIBPREFIX="lib"
45939 LIBEXT=".a"
45940 DLLPREFIX="lib"
45941 DLLPREFIX_MODULE=""
45942 DLLIMP_SUFFIX=""
810b94f0 45943 dlldir="$libdir"
a848cd7e
SC
45944
45945 case "${BAKEFILE_HOST}" in
45946 *-hp-hpux* )
45947 SO_SUFFIX="sl"
45948 SO_SUFFIX_MODULE="sl"
45949 ;;
45950 *-*-aix* )
45951 SO_SUFFIX="a"
45952 SO_SUFFIX_MODULE="a"
45953 ;;
810b94f0
MW
45954 *-*-cygwin* )
45955 SO_SUFFIX="dll"
45956 SO_SUFFIX_MODULE="dll"
45957 DLLIMP_SUFFIX="dll.a"
45958 EXEEXT=".exe"
45959 DLLPREFIX="cyg"
45960 dlldir="$bindir"
45961 ;;
45962 *-*-mingw32* )
a848cd7e
SC
45963 SO_SUFFIX="dll"
45964 SO_SUFFIX_MODULE="dll"
45965 DLLIMP_SUFFIX="dll.a"
45966 EXEEXT=".exe"
45967 DLLPREFIX=""
810b94f0 45968 dlldir="$bindir"
a848cd7e
SC
45969 ;;
45970 *-pc-msdosdjgpp )
45971 EXEEXT=".exe"
45972 DLLPREFIX=""
810b94f0 45973 dlldir="$bindir"
a848cd7e
SC
45974 ;;
45975 *-pc-os2_emx | *-pc-os2-emx )
45976 SO_SUFFIX="dll"
45977 SO_SUFFIX_MODULE="dll"
45978 DLLIMP_SUFFIX=$OS2_LIBEXT
45979 EXEEXT=".exe"
45980 DLLPREFIX=""
45981 LIBPREFIX=""
45982 LIBEXT=".$OS2_LIBEXT"
810b94f0 45983 dlldir="$bindir"
a848cd7e 45984 ;;
47bd5406 45985 *-*-darwin* )
a848cd7e
SC
45986 SO_SUFFIX="dylib"
45987 SO_SUFFIX_MODULE="bundle"
45988 ;;
45989 esac
45990
45991 if test "x$DLLIMP_SUFFIX" = "x" ; then
45992 DLLIMP_SUFFIX="$SO_SUFFIX"
45993 fi
45994
45995
45996
45997
45998
45999
46000
46001
46002
46003
46004
810b94f0 46005
1e9e8aba
DE
46006 PIC_FLAG=""
46007 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46008 PIC_FLAG="-fPIC"
46009 fi
46010
1e9e8aba
DE
46011 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46012 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46013 WINDOWS_IMPLIB=0
1e9e8aba 46014
a848cd7e
SC
46015 case "${BAKEFILE_HOST}" in
46016 *-hp-hpux* )
1e9e8aba 46017 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46018 LDFLAGS="$LDFLAGS -L/usr/lib"
46019
46020 SHARED_LD_CC="${CC} -b -o"
46021 SHARED_LD_CXX="${CXX} -b -o"
46022 PIC_FLAG="+Z"
46023 fi
46024 ;;
46025
46026 *-*-linux* )
46027 if test "x$GCC" != "xyes"; then
46028 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46029echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46030if test "${bakefile_cv_prog_icc+set}" = set; then
46031 echo $ECHO_N "(cached) $ECHO_C" >&6
46032else
46033
46034 cat >conftest.$ac_ext <<_ACEOF
46035/* confdefs.h. */
46036_ACEOF
46037cat confdefs.h >>conftest.$ac_ext
46038cat >>conftest.$ac_ext <<_ACEOF
46039/* end confdefs.h. */
46040
46041int
46042main ()
46043{
46044
46045 #ifndef __INTEL_COMPILER
46046 #error Not icc
46047 #endif
46048
46049 ;
46050 return 0;
46051}
46052_ACEOF
46053rm -f conftest.$ac_objext
46054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46055 (eval $ac_compile) 2>conftest.er1
a848cd7e 46056 ac_status=$?
ac1cb8d3
VS
46057 grep -v '^ *+' conftest.er1 >conftest.err
46058 rm -f conftest.er1
46059 cat conftest.err >&5
a848cd7e
SC
46060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46061 (exit $ac_status); } &&
3565d135
RR
46062 { ac_try='test -z "$ac_c_werror_flag"
46063 || test ! -s conftest.err'
ac1cb8d3
VS
46064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46065 (eval $ac_try) 2>&5
46066 ac_status=$?
46067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46068 (exit $ac_status); }; } &&
46069 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46071 (eval $ac_try) 2>&5
46072 ac_status=$?
46073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46074 (exit $ac_status); }; }; then
46075 bakefile_cv_prog_icc=yes
46076else
46077 echo "$as_me: failed program was:" >&5
46078sed 's/^/| /' conftest.$ac_ext >&5
46079
46080bakefile_cv_prog_icc=no
46081
46082fi
ac1cb8d3 46083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46084
46085fi
46086echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46087echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46088 if test "$bakefile_cv_prog_icc" = "yes"; then
46089 PIC_FLAG="-KPIC"
46090 fi
46091 fi
46092 ;;
46093
46094 *-*-solaris2* )
46095 if test "x$GCC" != xyes ; then
46096 SHARED_LD_CC="${CC} -G -o"
46097 SHARED_LD_CXX="${CXX} -G -o"
46098 PIC_FLAG="-KPIC"
46099 fi
46100 ;;
46101
46102 *-*-darwin* )
46103
473276a9
VS
46104D='$'
46105cat <<EOF >shared-ld-sh
a848cd7e
SC
46106#!/bin/sh
46107#-----------------------------------------------------------------------------
46108#-- Name: distrib/mac/shared-ld-sh
46109#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46110#-- Author: Gilles Depeyrot
46111#-- Copyright: (c) 2002 Gilles Depeyrot
46112#-- Licence: any use permitted
46113#-----------------------------------------------------------------------------
46114
46115verbose=0
46116args=""
46117objects=""
46118linking_flag="-dynamiclib"
810b94f0 46119ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46120
473276a9
VS
46121while test ${D}# -gt 0; do
46122 case ${D}1 in
a848cd7e
SC
46123
46124 -v)
46125 verbose=1
46126 ;;
46127
46128 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46129 # collect these options and values
473276a9 46130 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46131 shift
46132 ;;
46133
810b94f0
MW
46134 -s|-Wl,*)
46135 # collect these load args
46136 ldargs="${D}{ldargs} ${D}1"
2113bc77 46137 ;;
810b94f0
MW
46138
46139 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46140 # collect these options
473276a9 46141 args="${D}{args} ${D}1"
a848cd7e
SC
46142 ;;
46143
46144 -dynamiclib|-bundle)
473276a9 46145 linking_flag="${D}1"
a848cd7e
SC
46146 ;;
46147
46148 -*)
473276a9 46149 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46150 exit 1
46151 ;;
46152
46153 *.o | *.a | *.dylib)
46154 # collect object files
473276a9 46155 objects="${D}{objects} ${D}1"
a848cd7e
SC
46156 ;;
46157
46158 *)
473276a9 46159 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46160 exit 1
46161 ;;
46162
46163 esac
46164 shift
46165done
46166
810b94f0
MW
46167status=0
46168
a848cd7e
SC
46169#
46170# Link one module containing all the others
46171#
473276a9 46172if test ${D}{verbose} = 1; then
810b94f0 46173 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46174fi
810b94f0 46175c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46176status=${D}?
a848cd7e
SC
46177
46178#
810b94f0
MW
46179# Link the shared library from the single module created, but only if the
46180# previous command didn't fail:
a848cd7e 46181#
810b94f0
MW
46182if test ${D}{status} = 0; then
46183 if test ${D}{verbose} = 1; then
46184 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46185 fi
46186 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46187 status=${D}?
a848cd7e
SC
46188fi
46189
46190#
46191# Remove intermediate module
46192#
473276a9 46193rm -f master.${D}${D}.o
a848cd7e 46194
810b94f0 46195exit ${D}status
a848cd7e 46196EOF
473276a9 46197
583d6b4b
VZ
46198 chmod +x shared-ld-sh
46199
46200 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46201 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46202
46203
46204 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46205echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46206if test "${bakefile_cv_gcc31+set}" = set; then
46207 echo $ECHO_N "(cached) $ECHO_C" >&6
46208else
46209
46210 cat >conftest.$ac_ext <<_ACEOF
46211/* confdefs.h. */
46212_ACEOF
46213cat confdefs.h >>conftest.$ac_ext
46214cat >>conftest.$ac_ext <<_ACEOF
46215/* end confdefs.h. */
46216
46217int
46218main ()
46219{
46220
46221 #if (__GNUC__ < 3) || \
46222 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
46223 #error old gcc
46224 #endif
a848cd7e 46225
583d6b4b
VZ
46226 ;
46227 return 0;
46228}
46229_ACEOF
46230rm -f conftest.$ac_objext
46231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46232 (eval $ac_compile) 2>conftest.er1
46233 ac_status=$?
46234 grep -v '^ *+' conftest.er1 >conftest.err
46235 rm -f conftest.er1
46236 cat conftest.err >&5
46237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46238 (exit $ac_status); } &&
3565d135
RR
46239 { ac_try='test -z "$ac_c_werror_flag"
46240 || test ! -s conftest.err'
583d6b4b
VZ
46241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46242 (eval $ac_try) 2>&5
46243 ac_status=$?
46244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46245 (exit $ac_status); }; } &&
46246 { ac_try='test -s conftest.$ac_objext'
46247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46248 (eval $ac_try) 2>&5
46249 ac_status=$?
46250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46251 (exit $ac_status); }; }; then
46252
46253 bakefile_cv_gcc31=yes
46254
46255else
46256 echo "$as_me: failed program was:" >&5
46257sed 's/^/| /' conftest.$ac_ext >&5
46258
46259
46260 bakefile_cv_gcc31=no
46261
46262
46263fi
46264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46265
46266fi
46267echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46268echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46269 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46270 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46271 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46272 else
46273 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46274 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46275 fi
46276
47bd5406
VZ
46277 if test "x$GCC" == "xyes"; then
46278 PIC_FLAG="-dynamic -fPIC"
46279 fi
46280 if test "x$XLCC" = "xyes"; then
46281 PIC_FLAG="-dynamic -DPIC"
46282 fi
a848cd7e
SC
46283 ;;
46284
46285 *-*-aix* )
f6b50c59 46286 if test "x$GCC" = "xyes"; then
583d6b4b 46287 PIC_FLAG=""
f6b50c59 46288
583d6b4b
VZ
46289 case "${BAKEFILE_HOST}" in
46290 *-*-aix5* )
46291 LD_EXPFULL="-Wl,-bexpfull"
46292 ;;
46293 esac
f6b50c59 46294
583d6b4b
VZ
46295 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46296 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46297 else
46298 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46299set dummy makeC++SharedLib; ac_word=$2
46300echo "$as_me:$LINENO: checking for $ac_word" >&5
46301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46302if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46303 echo $ECHO_N "(cached) $ECHO_C" >&6
46304else
46305 if test -n "$AIX_CXX_LD"; then
46306 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46307else
46308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46309for as_dir in $PATH
46310do
46311 IFS=$as_save_IFS
46312 test -z "$as_dir" && as_dir=.
46313 for ac_exec_ext in '' $ac_executable_extensions; do
46314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46315 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46317 break 2
46318 fi
46319done
46320done
46321
46322 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46323fi
46324fi
46325AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46326if test -n "$AIX_CXX_LD"; then
46327 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46328echo "${ECHO_T}$AIX_CXX_LD" >&6
46329else
46330 echo "$as_me:$LINENO: result: no" >&5
46331echo "${ECHO_T}no" >&6
46332fi
46333
f6b50c59 46334 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46335 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46336 fi
46337 ;;
46338
46339 *-*-beos* )
1e9e8aba
DE
46340 SHARED_LD_CC="${LD} -nostart -o"
46341 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46342 ;;
46343
46344 *-*-irix* )
46345 if test "x$GCC" != "xyes"; then
46346 PIC_FLAG="-KPIC"
46347 fi
46348 ;;
46349
46350 *-*-cygwin* | *-*-mingw32* )
46351 PIC_FLAG=""
1e9e8aba
DE
46352 SHARED_LD_CC="\$(CC) -shared -o"
46353 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46354 WINDOWS_IMPLIB=1
a848cd7e
SC
46355 ;;
46356
46357 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46358 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46359 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46360 PIC_FLAG=""
473276a9
VS
46361
46362D='$'
46363cat <<EOF >dllar.sh
46364#!/bin/sh
46365#
46366# dllar - a tool to build both a .dll and an .a file
46367# from a set of object (.o) files for EMX/OS2.
46368#
46369# Written by Andrew Zabolotny, bit@freya.etu.ru
46370# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46371#
46372# This script will accept a set of files on the command line.
46373# All the public symbols from the .o files will be exported into
46374# a .DEF file, then linker will be run (through gcc) against them to
46375# build a shared library consisting of all given .o files. All libraries
46376# (.a) will be first decompressed into component .o files then act as
46377# described above. You can optionally give a description (-d "description")
46378# which will be put into .DLL. To see the list of accepted options (as well
46379# as command-line format) simply run this program without options. The .DLL
46380# is built to be imported by name (there is no guarantee that new versions
46381# of the library you build will have same ordinals for same symbols).
46382#
46383# dllar is free software; you can redistribute it and/or modify
46384# it under the terms of the GNU General Public License as published by
46385# the Free Software Foundation; either version 2, or (at your option)
46386# any later version.
46387#
46388# dllar is distributed in the hope that it will be useful,
46389# but WITHOUT ANY WARRANTY; without even the implied warranty of
46390# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46391# GNU General Public License for more details.
46392#
46393# You should have received a copy of the GNU General Public License
46394# along with dllar; see the file COPYING. If not, write to the Free
46395# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46396# 02111-1307, USA.
46397
46398# To successfuly run this program you will need:
46399# - Current drive should have LFN support (HPFS, ext2, network, etc)
46400# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46401# - gcc
46402# (used to build the .dll)
46403# - emxexp
46404# (used to create .def file from .o files)
46405# - emximp
46406# (used to create .a file from .def file)
46407# - GNU text utilites (cat, sort, uniq)
46408# used to process emxexp output
46409# - GNU file utilities (mv, rm)
46410# - GNU sed
46411# - lxlite (optional, see flag below)
46412# (used for general .dll cleanup)
46413#
46414
46415flag_USE_LXLITE=1;
46416
46417#
46418# helper functions
46419# basnam, variant of basename, which does _not_ remove the path, _iff_
46420# second argument (suffix to remove) is given
46421basnam(){
46422 case ${D}# in
46423 1)
1e9e8aba 46424 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46425 ;;
46426 2)
46427 echo ${D}1 | sed 's/'${D}2'${D}//'
46428 ;;
46429 *)
46430 echo "error in basnam ${D}*"
46431 exit 8
46432 ;;
46433 esac
46434}
46435
46436# Cleanup temporary files and output
46437CleanUp() {
46438 cd ${D}curDir
46439 for i in ${D}inputFiles ; do
46440 case ${D}i in
46441 *!)
46442 rm -rf \`basnam ${D}i !\`
46443 ;;
46444 *)
46445 ;;
46446 esac
46447 done
46448
46449 # Kill result in case of failure as there is just to many stupid make/nmake
46450 # things out there which doesn't do this.
1e9e8aba 46451 if [ ${D}# -eq 0 ]; then
473276a9
VS
46452 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46453 fi
46454}
46455
46456# Print usage and exit script with rc=1.
46457PrintHelp() {
b1d22ded
DE
46458 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46459 echo ' [-name-mangler-script script.sh]'
46460 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46461 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46462 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46463 echo ' [*.o] [*.a]'
473276a9
VS
46464 echo '*> "output_file" should have no extension.'
46465 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46466 echo ' The import library name is derived from this and is set to "name".a,'
46467 echo ' unless overridden by -import'
46468 echo '*> "importlib_name" should have no extension.'
46469 echo ' If it has the .o, or .a extension, it is automatically removed.'
46470 echo ' This name is used as the import library name and may be longer and'
46471 echo ' more descriptive than the DLL name which has to follow the old '
46472 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46473 echo '*> "script.sh may be given to override the output_file name by a'
46474 echo ' different name. It is mainly useful if the regular make process'
46475 echo ' of some package does not take into account OS/2 restriction of'
46476 echo ' DLL name lengths. It takes the importlib name as input and is'
46477 echo ' supposed to procude a shorter name as output. The script should'
46478 echo ' expect to get importlib_name without extension and should produce'
46479 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46480 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46481 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46482 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46483 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46484 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46485 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46486 echo ' If the last character of a symbol is "*", all symbols beginning'
46487 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46488 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46489 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46490 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46491 echo ' C runtime DLLs.'
b1d22ded 46492 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46493 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46494 echo ' unchanged to GCC at the end of command line.'
46495 echo '*> If you create a DLL from a library and you do not specify -o,'
46496 echo ' the basename for DLL and import library will be set to library name,'
46497 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46498 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46499 echo ' library will be renamed into gcc_s.a.'
46500 echo '--------'
46501 echo 'Example:'
46502 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46503 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46504 CleanUp
46505 exit 1
46506}
46507
46508# Execute a command.
46509# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46510# @Uses Whatever CleanUp() uses.
46511doCommand() {
46512 echo "${D}*"
46513 eval ${D}*
46514 rcCmd=${D}?
46515
1e9e8aba 46516 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46517 echo "command failed, exit code="${D}rcCmd
46518 CleanUp
46519 exit ${D}rcCmd
46520 fi
46521}
46522
46523# main routine
46524# setup globals
46525cmdLine=${D}*
46526outFile=""
46527outimpFile=""
46528inputFiles=""
b1d22ded 46529renameScript=""
473276a9
VS
46530description=""
46531CC=gcc.exe
46532CFLAGS="-s -Zcrtdll"
46533EXTRA_CFLAGS=""
46534EXPORT_BY_ORDINALS=0
46535exclude_symbols=""
46536library_flags=""
46537curDir=\`pwd\`
46538curDirS=curDir
46539case ${D}curDirS in
46540*/)
46541 ;;
46542*)
46543 curDirS=${D}{curDirS}"/"
46544 ;;
46545esac
46546# Parse commandline
46547libsToLink=0
b1d22ded 46548omfLinking=0
1e9e8aba 46549while [ ${D}1 ]; do
473276a9
VS
46550 case ${D}1 in
46551 -ord*)
46552 EXPORT_BY_ORDINALS=1;
46553 ;;
46554 -o*)
46555 shift
46556 outFile=${D}1
46557 ;;
46558 -i*)
46559 shift
46560 outimpFile=${D}1
46561 ;;
b1d22ded
DE
46562 -name-mangler-script)
46563 shift
46564 renameScript=${D}1
46565 ;;
473276a9
VS
46566 -d*)
46567 shift
46568 description=${D}1
46569 ;;
46570 -f*)
46571 shift
46572 CFLAGS=${D}1
46573 ;;
46574 -c*)
46575 shift
46576 CC=${D}1
46577 ;;
46578 -h*)
46579 PrintHelp
46580 ;;
46581 -ex*)
46582 shift
46583 exclude_symbols=${D}{exclude_symbols}${D}1" "
46584 ;;
46585 -libf*)
46586 shift
46587 library_flags=${D}{library_flags}${D}1" "
46588 ;;
46589 -nocrt*)
46590 CFLAGS="-s"
46591 ;;
46592 -nolxl*)
46593 flag_USE_LXLITE=0
46594 ;;
46595 -* | /*)
46596 case ${D}1 in
46597 -L* | -l*)
46598 libsToLink=1
46599 ;;
b1d22ded
DE
46600 -Zomf)
46601 omfLinking=1
46602 ;;
473276a9
VS
46603 *)
46604 ;;
46605 esac
46606 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46607 ;;
b1d22ded
DE
46608 *.dll)
46609 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46610 if [ ${D}omfLinking -eq 1 ]; then
46611 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46612 else
46613 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46614 fi
46615 ;;
473276a9
VS
46616 *)
46617 found=0;
1e9e8aba 46618 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46619 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46620 else
46621 for file in ${D}1 ; do
1e9e8aba 46622 if [ -f ${D}file ]; then
473276a9
VS
46623 inputFiles="${D}{inputFiles} ${D}file"
46624 found=1
46625 fi
46626 done
1e9e8aba 46627 if [ ${D}found -eq 0 ]; then
473276a9
VS
46628 echo "ERROR: No file(s) found: "${D}1
46629 exit 8
46630 fi
46631 fi
46632 ;;
46633 esac
46634 shift
46635done # iterate cmdline words
46636
46637#
1e9e8aba 46638if [ -z "${D}inputFiles" ]; then
473276a9
VS
46639 echo "dllar: no input files"
46640 PrintHelp
46641fi
46642
46643# Now extract all .o files from .a files
46644newInputFiles=""
46645for file in ${D}inputFiles ; do
46646 case ${D}file in
46647 *.a | *.lib)
46648 case ${D}file in
46649 *.a)
46650 suffix=".a"
46651 AR="ar"
46652 ;;
46653 *.lib)
46654 suffix=".lib"
46655 AR="emxomfar"
46656 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46657 ;;
46658 *)
46659 ;;
46660 esac
46661 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46662 mkdir ${D}dirname
1e9e8aba 46663 if [ ${D}? -ne 0 ]; then
473276a9
VS
46664 echo "Failed to create subdirectory ./${D}dirname"
46665 CleanUp
46666 exit 8;
46667 fi
46668 # Append '!' to indicate archive
46669 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46670 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46671 cd ${D}curDir
46672 found=0;
46673 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46674 if [ -f ${D}subfile ]; then
473276a9 46675 found=1
1e9e8aba 46676 if [ -s ${D}subfile ]; then
473276a9
VS
46677 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46678 newInputFiles="${D}newInputFiles ${D}subfile"
46679 fi
46680 fi
46681 done
1e9e8aba
DE
46682 if [ ${D}found -eq 0 ]; then
46683 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46684 fi
46685 ;;
46686 *)
46687 newInputFiles="${D}{newInputFiles} ${D}file"
46688 ;;
46689 esac
46690done
46691inputFiles="${D}newInputFiles"
46692
46693# Output filename(s).
46694do_backup=0;
1e9e8aba 46695if [ -z ${D}outFile ]; then
473276a9
VS
46696 do_backup=1;
46697 set outFile ${D}inputFiles; outFile=${D}2
46698fi
46699
46700# If it is an archive, remove the '!' and the '_%' suffixes
46701case ${D}outFile in
46702*_%!)
46703 outFile=\`basnam ${D}outFile _%!\`
46704 ;;
46705*)
46706 ;;
46707esac
46708case ${D}outFile in
46709*.dll)
46710 outFile=\`basnam ${D}outFile .dll\`
46711 ;;
46712*.DLL)
46713 outFile=\`basnam ${D}outFile .DLL\`
46714 ;;
46715*.o)
46716 outFile=\`basnam ${D}outFile .o\`
46717 ;;
46718*.obj)
46719 outFile=\`basnam ${D}outFile .obj\`
46720 ;;
46721*.a)
46722 outFile=\`basnam ${D}outFile .a\`
46723 ;;
46724*.lib)
46725 outFile=\`basnam ${D}outFile .lib\`
46726 ;;
46727*)
46728 ;;
46729esac
46730case ${D}outimpFile in
46731*.a)
46732 outimpFile=\`basnam ${D}outimpFile .a\`
46733 ;;
46734*.lib)
46735 outimpFile=\`basnam ${D}outimpFile .lib\`
46736 ;;
46737*)
46738 ;;
46739esac
1e9e8aba 46740if [ -z ${D}outimpFile ]; then
473276a9
VS
46741 outimpFile=${D}outFile
46742fi
46743defFile="${D}{outFile}.def"
46744arcFile="${D}{outimpFile}.a"
46745arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46746
46747#create ${D}dllFile as something matching 8.3 restrictions,
46748if [ -z ${D}renameScript ] ; then
46749 dllFile="${D}outFile"
46750else
46751 dllFile=\`${D}renameScript ${D}outimpFile\`
46752fi
473276a9 46753
1e9e8aba
DE
46754if [ ${D}do_backup -ne 0 ] ; then
46755 if [ -f ${D}arcFile ] ; then
473276a9
VS
46756 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46757 fi
1e9e8aba 46758 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46759 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46760 fi
46761fi
46762
46763# Extract public symbols from all the object files.
46764tmpdefFile=${D}{defFile}_%
46765rm -f ${D}tmpdefFile
46766for file in ${D}inputFiles ; do
46767 case ${D}file in
46768 *!)
46769 ;;
46770 *)
46771 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46772 ;;
46773 esac
46774done
46775
46776# Create the def file.
46777rm -f ${D}defFile
46778echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46779dllFile="${D}{dllFile}.dll"
46780if [ ! -z ${D}description ]; then
1e9e8aba 46781 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46782fi
46783echo "EXPORTS" >> ${D}defFile
46784
46785doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46786grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46787
46788# Checks if the export is ok or not.
46789for word in ${D}exclude_symbols; do
46790 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46791 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46792done
46793
46794
1e9e8aba
DE
46795if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46796 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46797 sed '
46798 N
46799 : loop
1e9e8aba 46800 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46801 t loop
46802 ' > ${D}{tmpdefFile}%
46803 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46804else
46805 rm -f ${D}{tmpdefFile}%
46806fi
46807cat ${D}tmpdefFile >> ${D}defFile
46808rm -f ${D}tmpdefFile
46809
46810# Do linking, create implib, and apply lxlite.
46811gccCmdl="";
46812for file in ${D}inputFiles ; do
46813 case ${D}file in
46814 *!)
46815 ;;
46816 *)
46817 gccCmdl="${D}gccCmdl ${D}file"
46818 ;;
46819 esac
46820done
46821doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46822touch "${D}{outFile}.dll"
46823
46824doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46825if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46826 add_flags="";
1e9e8aba 46827 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46828 add_flags="-ynd"
46829 fi
46830 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46831fi
46832doCommand "emxomf -s -l ${D}arcFile"
46833
46834# Successful exit.
46835CleanUp 1
46836exit 0
46837EOF
46838
46839 chmod +x dllar.sh
a848cd7e
SC
46840 ;;
46841
1e9e8aba 46842 powerpc-apple-macos* | \
0ad5d837 46843 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46844 *-*-sunos4* | \
46845 *-*-osf* | \
46846 *-*-dgux5* | \
47a7e797
MW
46847 *-*-sysv5* | \
46848 *-pc-msdosdjgpp )
a848cd7e
SC
46849 ;;
46850
46851 *)
46852 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46853echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46854 { (exit 1); exit 1; }; }
46855 esac
46856
2057db16
VS
46857 if test "x$PIC_FLAG" != "x" ; then
46858 PIC_FLAG="$PIC_FLAG -DPIC"
46859 fi
46860
a848cd7e
SC
46861 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46862 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46863 fi
46864 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46865 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46866 fi
46867
46868
46869
46870
46871
46872
46873
46874
810b94f0 46875
a848cd7e
SC
46876 USE_SOVERSION=0
46877 USE_SOVERLINUX=0
46878 USE_SOVERSOLARIS=0
810b94f0 46879 USE_SOVERCYGWIN=0
a848cd7e
SC
46880 USE_SOSYMLINKS=0
46881 USE_MACVERSION=0
46882 SONAME_FLAG=
46883
46884 case "${BAKEFILE_HOST}" in
0ad5d837 46885 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46886 SONAME_FLAG="-Wl,-soname,"
46887 USE_SOVERSION=1
46888 USE_SOVERLINUX=1
46889 USE_SOSYMLINKS=1
46890 ;;
46891
a848cd7e
SC
46892 *-*-solaris2* )
46893 SONAME_FLAG="-h "
46894 USE_SOVERSION=1
46895 USE_SOVERSOLARIS=1
46896 USE_SOSYMLINKS=1
46897 ;;
46898
46899 *-*-darwin* )
46900 USE_MACVERSION=1
46901 USE_SOVERSION=1
46902 USE_SOSYMLINKS=1
46903 ;;
810b94f0
MW
46904
46905 *-*-cygwin* )
46906 USE_SOVERSION=1
46907 USE_SOVERCYGWIN=1
46908 ;;
a848cd7e
SC
46909 esac
46910
46911
46912
46913
46914
46915
46916
46917
46918
810b94f0 46919
a848cd7e
SC
46920 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
46921echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 46922 DEPS_TRACKING=1
a848cd7e
SC
46923
46924 if test "x$GCC" = "xyes"; then
46925 DEPSMODE=gcc
a848cd7e 46926 case "${BAKEFILE_HOST}" in
47bd5406 46927 *-*-darwin* )
0ad5d837 46928 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
46929 ;;
46930 * )
0ad5d837 46931 DEPSFLAG="-MMD"
a848cd7e
SC
46932 ;;
46933 esac
46934 echo "$as_me:$LINENO: result: gcc" >&5
46935echo "${ECHO_T}gcc" >&6
b1d22ded 46936 elif test "x$MWCC" = "xyes"; then
81f90336 46937 DEPSMODE=mwcc
0ad5d837 46938 DEPSFLAG="-MM"
b1d22ded
DE
46939 echo "$as_me:$LINENO: result: mwcc" >&5
46940echo "${ECHO_T}mwcc" >&6
a9e5b1f0 46941 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
46942 DEPSMODE=unixcc
46943 DEPSFLAG="-xM1"
46944 echo "$as_me:$LINENO: result: Sun cc" >&5
46945echo "${ECHO_T}Sun cc" >&6
46946 elif test "x$SGICC" = "xyes"; then
46947 DEPSMODE=unixcc
46948 DEPSFLAG="-M"
46949 echo "$as_me:$LINENO: result: SGI cc" >&5
46950echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
46951 elif test "x$HPCC" = "xyes"; then
46952 DEPSMODE=unixcc
46953 DEPSFLAG="+make"
46954 echo "$as_me:$LINENO: result: HP cc" >&5
46955echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
46956 elif test "x$COMPAQCC" = "xyes"; then
46957 DEPSMODE=gcc
46958 DEPSFLAG="-MD"
46959 echo "$as_me:$LINENO: result: Compaq cc" >&5
46960echo "${ECHO_T}Compaq cc" >&6
a848cd7e 46961 else
3006edc0 46962 DEPS_TRACKING=0
a848cd7e
SC
46963 echo "$as_me:$LINENO: result: none" >&5
46964echo "${ECHO_T}none" >&6
46965 fi
46966
46967 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
46968
46969D='$'
46970cat <<EOF >bk-deps
a848cd7e
SC
46971#!/bin/sh
46972
46973# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
46974# script. It is used to track C/C++ files dependencies in portable way.
46975#
46976# Permission is given to use this file in any way.
46977
473276a9 46978DEPSMODE=${DEPSMODE}
a848cd7e 46979DEPSDIR=.deps
0ad5d837 46980DEPSFLAG="${DEPSFLAG}"
a848cd7e 46981
473276a9 46982mkdir -p ${D}DEPSDIR
a848cd7e 46983
473276a9 46984if test ${D}DEPSMODE = gcc ; then
0ad5d837 46985 ${D}* ${D}{DEPSFLAG}
473276a9
VS
46986 status=${D}?
46987 if test ${D}{status} != 0 ; then
46988 exit ${D}{status}
a848cd7e
SC
46989 fi
46990 # move created file to the location we want it in:
473276a9
VS
46991 while test ${D}# -gt 0; do
46992 case "${D}1" in
a848cd7e
SC
46993 -o )
46994 shift
473276a9 46995 objfile=${D}1
a848cd7e
SC
46996 ;;
46997 -* )
46998 ;;
46999 * )
473276a9 47000 srcfile=${D}1
a848cd7e
SC
47001 ;;
47002 esac
47003 shift
47004 done
1e9e8aba
DE
47005 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47006 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47007 if test -f ${D}depfile ; then
47008 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47009 rm -f ${D}depfile
a848cd7e 47010 else
a1aa0349 47011 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47012 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47013 if test ! -f ${D}depfile ; then
47014 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47015 depfile="${D}objfile.d"
47016 fi
473276a9
VS
47017 if test -f ${D}depfile ; then
47018 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47019 rm -f ${D}depfile
a848cd7e
SC
47020 fi
47021 fi
47022 exit 0
81f90336 47023elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47024 ${D}* || exit ${D}?
81f90336
MW
47025 # Run mwcc again with -MM and redirect into the dep file we want
47026 # NOTE: We can't use shift here because we need ${D}* to be valid
47027 prevarg=
47028 for arg in ${D}* ; do
47029 if test "${D}prevarg" = "-o"; then
47030 objfile=${D}arg
47031 else
47032 case "${D}arg" in
47033 -* )
47034 ;;
47035 * )
47036 srcfile=${D}arg
47037 ;;
47038 esac
47039 fi
47040 prevarg="${D}arg"
47041 done
0ad5d837 47042 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47043 exit 0
0ad5d837 47044elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47045 ${D}* || exit ${D}?
a9e5b1f0
MW
47046 # Run compiler again with deps flag and redirect into the dep file.
47047 # It doesn't work if the '-o FILE' option is used, but without it the
47048 # dependency file will contain the wrong name for the object. So it is
47049 # removed from the command line, and the dep file is fixed with sed.
47050 cmd=""
47051 while test ${D}# -gt 0; do
47052 case "${D}1" in
47053 -o )
47054 shift
47055 objfile=${D}1
47056 ;;
47057 * )
47058 eval arg${D}#=\\${D}1
47059 cmd="${D}cmd \\${D}arg${D}#"
47060 ;;
47061 esac
47062 shift
47063 done
0ad5d837 47064 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47065 exit 0
a848cd7e 47066else
473276a9
VS
47067 ${D}*
47068 exit ${D}?
a848cd7e
SC
47069fi
47070EOF
473276a9 47071
a848cd7e
SC
47072 chmod +x bk-deps
47073 fi
47074
47075
47076
47077
a848cd7e
SC
47078 case ${BAKEFILE_HOST} in
47079 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47080 if test -n "$ac_tool_prefix"; then
47081 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47082set dummy ${ac_tool_prefix}windres; ac_word=$2
47083echo "$as_me:$LINENO: checking for $ac_word" >&5
47084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47085if test "${ac_cv_prog_WINDRES+set}" = set; then
47086 echo $ECHO_N "(cached) $ECHO_C" >&6
47087else
47088 if test -n "$WINDRES"; then
47089 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47090else
47091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47092for as_dir in $PATH
47093do
47094 IFS=$as_save_IFS
47095 test -z "$as_dir" && as_dir=.
47096 for ac_exec_ext in '' $ac_executable_extensions; do
47097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47098 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47100 break 2
47101 fi
47102done
47103done
47104
47105fi
47106fi
47107WINDRES=$ac_cv_prog_WINDRES
47108if test -n "$WINDRES"; then
47109 echo "$as_me:$LINENO: result: $WINDRES" >&5
47110echo "${ECHO_T}$WINDRES" >&6
47111else
47112 echo "$as_me:$LINENO: result: no" >&5
47113echo "${ECHO_T}no" >&6
47114fi
47115
47116fi
47117if test -z "$ac_cv_prog_WINDRES"; then
47118 ac_ct_WINDRES=$WINDRES
47119 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47120set dummy windres; ac_word=$2
47121echo "$as_me:$LINENO: checking for $ac_word" >&5
47122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47123if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47124 echo $ECHO_N "(cached) $ECHO_C" >&6
47125else
8ced02f6
DE
47126 if test -n "$ac_ct_WINDRES"; then
47127 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47128else
47129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47130for as_dir in $PATH
47131do
47132 IFS=$as_save_IFS
47133 test -z "$as_dir" && as_dir=.
47134 for ac_exec_ext in '' $ac_executable_extensions; do
47135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47136 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47138 break 2
47139 fi
47140done
47141done
47142
a848cd7e
SC
47143fi
47144fi
8ced02f6
DE
47145ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47146if test -n "$ac_ct_WINDRES"; then
47147 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47148echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47149else
47150 echo "$as_me:$LINENO: result: no" >&5
47151echo "${ECHO_T}no" >&6
47152fi
47153
8ced02f6
DE
47154 WINDRES=$ac_ct_WINDRES
47155else
47156 WINDRES="$ac_cv_prog_WINDRES"
47157fi
47158
a848cd7e
SC
47159 ;;
47160
1e9e8aba 47161 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47162 # Extract the first word of "Rez", so it can be a program name with args.
47163set dummy Rez; ac_word=$2
47164echo "$as_me:$LINENO: checking for $ac_word" >&5
47165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47166if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47167 echo $ECHO_N "(cached) $ECHO_C" >&6
47168else
8ced02f6
DE
47169 if test -n "$REZ"; then
47170 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47171else
47172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47173for as_dir in $PATH
47174do
47175 IFS=$as_save_IFS
47176 test -z "$as_dir" && as_dir=.
47177 for ac_exec_ext in '' $ac_executable_extensions; do
47178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47179 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47181 break 2
47182 fi
47183done
47184done
47185
8ced02f6 47186 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47187fi
47188fi
8ced02f6
DE
47189REZ=$ac_cv_prog_REZ
47190if test -n "$REZ"; then
47191 echo "$as_me:$LINENO: result: $REZ" >&5
47192echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47193else
47194 echo "$as_me:$LINENO: result: no" >&5
47195echo "${ECHO_T}no" >&6
47196fi
47197
47198 # Extract the first word of "SetFile", so it can be a program name with args.
47199set dummy SetFile; ac_word=$2
47200echo "$as_me:$LINENO: checking for $ac_word" >&5
47201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47202if test "${ac_cv_prog_SETFILE+set}" = set; then
47203 echo $ECHO_N "(cached) $ECHO_C" >&6
47204else
47205 if test -n "$SETFILE"; then
47206 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47207else
47208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47209for as_dir in $PATH
47210do
47211 IFS=$as_save_IFS
47212 test -z "$as_dir" && as_dir=.
47213 for ac_exec_ext in '' $ac_executable_extensions; do
47214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47215 ac_cv_prog_SETFILE="SetFile"
47216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47217 break 2
47218 fi
47219done
47220done
47221
47222 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47223fi
47224fi
47225SETFILE=$ac_cv_prog_SETFILE
47226if test -n "$SETFILE"; then
47227 echo "$as_me:$LINENO: result: $SETFILE" >&5
47228echo "${ECHO_T}$SETFILE" >&6
47229else
47230 echo "$as_me:$LINENO: result: no" >&5
47231echo "${ECHO_T}no" >&6
47232fi
47233
47234 ;;
47235 esac
47236
47237
47238
47239
47240
8ced02f6 47241
c9469659 47242 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 47243
dcc1b6ad 47244
c9469659 47245BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 47246
646b6ec1 47247
74b84332 47248
a848cd7e
SC
47249 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47250if test "${enable_precomp_headers+set}" = set; then
47251 enableval="$enable_precomp_headers"
47252 bk_use_pch="$enableval"
47253fi;
47254
47255 GCC_PCH=0
47256
5c60e845
MW
47257 case ${BAKEFILE_HOST} in
47258 *-*-cygwin* )
47259 bk_use_pch="no"
47260 ;;
47261 esac
47262
a848cd7e
SC
47263 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47264 if test "x$GCC" = "xyes"; then
47265 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47266echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47267 cat >conftest.$ac_ext <<_ACEOF
47268/* confdefs.h. */
47269_ACEOF
47270cat confdefs.h >>conftest.$ac_ext
47271cat >>conftest.$ac_ext <<_ACEOF
47272/* end confdefs.h. */
47273
47274int
47275main ()
47276{
47277
47278 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
47279 #error "no pch support"
47280 #endif
47281 #if (__GNUC__ < 3)
47282 #error "no pch support"
47283 #endif
47284 #if (__GNUC__ == 3) && \
47285 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
47286 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
47287 #error "no pch support"
47288 #endif
47289
47290 ;
47291 return 0;
47292}
47293_ACEOF
47294rm -f conftest.$ac_objext
47295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47296 (eval $ac_compile) 2>conftest.er1
a848cd7e 47297 ac_status=$?
ac1cb8d3
VS
47298 grep -v '^ *+' conftest.er1 >conftest.err
47299 rm -f conftest.er1
47300 cat conftest.err >&5
a848cd7e
SC
47301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47302 (exit $ac_status); } &&
3565d135
RR
47303 { ac_try='test -z "$ac_c_werror_flag"
47304 || test ! -s conftest.err'
ac1cb8d3
VS
47305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47306 (eval $ac_try) 2>&5
47307 ac_status=$?
47308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47309 (exit $ac_status); }; } &&
47310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47312 (eval $ac_try) 2>&5
47313 ac_status=$?
47314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47315 (exit $ac_status); }; }; then
47316
47317 echo "$as_me:$LINENO: result: yes" >&5
47318echo "${ECHO_T}yes" >&6
a848cd7e
SC
47319 GCC_PCH=1
47320
47321else
47322 echo "$as_me: failed program was:" >&5
47323sed 's/^/| /' conftest.$ac_ext >&5
47324
47325
47326 echo "$as_me:$LINENO: result: no" >&5
47327echo "${ECHO_T}no" >&6
47328
47329fi
ac1cb8d3 47330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 47331 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
47332
47333D='$'
47334cat <<EOF >bk-make-pch
a848cd7e
SC
47335#!/bin/sh
47336
47337# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47338# script. It is used to generated precompiled headers.
47339#
47340# Permission is given to use this file in any way.
47341
1e9e8aba
DE
47342outfile="${D}{1}"
47343header="${D}{2}"
a848cd7e
SC
47344shift
47345shift
47346
47347compiler=
47348headerfile=
1e9e8aba
DE
47349while test ${D}{#} -gt 0; do
47350 case "${D}{1}" in
a848cd7e 47351 -I* )
1e9e8aba
DE
47352 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47353 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47354 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47355 fi
47356 ;;
47357 esac
1e9e8aba 47358 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
47359 shift
47360done
47361
1e9e8aba
DE
47362if test "x${D}{headerfile}" = "x" ; then
47363 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 47364else
1e9e8aba
DE
47365 if test -f ${D}{outfile} ; then
47366 rm -f ${D}{outfile}
a848cd7e 47367 else
1e9e8aba 47368 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47369 fi
1e9e8aba 47370 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
47371 mkdir -p .deps
47372 # can do this because gcc is >= 3.4:
1e9e8aba
DE
47373 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47374 exit ${D}{?}
a848cd7e
SC
47375fi
47376EOF
1e9e8aba 47377
a848cd7e
SC
47378 chmod +x bk-make-pch
47379 fi
47380 fi
47381 fi
47382
47383
47384
a848cd7e
SC
47385 COND_BUILD_DEBUG="#"
47386 if test "x$BUILD" = "xdebug" ; then
47387 COND_BUILD_DEBUG=""
47388 fi
47389
47390 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47391 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47392 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47393 fi
47394
47395 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47396 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47397 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47398 fi
47399
47400 COND_BUILD_DEBUG_UNICODE_0="#"
47401 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47402 COND_BUILD_DEBUG_UNICODE_0=""
47403 fi
47404
47405 COND_BUILD_DEBUG_UNICODE_1="#"
47406 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47407 COND_BUILD_DEBUG_UNICODE_1=""
47408 fi
47409
47410 COND_BUILD_RELEASE="#"
47411 if test "x$BUILD" = "xrelease" ; then
47412 COND_BUILD_RELEASE=""
47413 fi
47414
47415 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47416 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47417 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47418 fi
47419
47420 COND_BUILD_RELEASE_UNICODE_0="#"
47421 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47422 COND_BUILD_RELEASE_UNICODE_0=""
47423 fi
47424
47425 COND_BUILD_RELEASE_UNICODE_1="#"
47426 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47427 COND_BUILD_RELEASE_UNICODE_1=""
47428 fi
47429
47430 COND_DEBUG_FLAG_1="#"
47431 if test "x$DEBUG_FLAG" = "x1" ; then
47432 COND_DEBUG_FLAG_1=""
47433 fi
47434
47435 COND_DEBUG_INFO_0="#"
47436 if test "x$DEBUG_INFO" = "x0" ; then
47437 COND_DEBUG_INFO_0=""
47438 fi
47439
47440 COND_DEBUG_INFO_1="#"
47441 if test "x$DEBUG_INFO" = "x1" ; then
47442 COND_DEBUG_INFO_1=""
47443 fi
47444
47445 COND_DEPS_TRACKING_0="#"
47446 if test "x$DEPS_TRACKING" = "x0" ; then
47447 COND_DEPS_TRACKING_0=""
47448 fi
47449
47450 COND_DEPS_TRACKING_1="#"
47451 if test "x$DEPS_TRACKING" = "x1" ; then
47452 COND_DEPS_TRACKING_1=""
47453 fi
47454
47455 COND_GCC_PCH_1="#"
47456 if test "x$GCC_PCH" = "x1" ; then
47457 COND_GCC_PCH_1=""
47458 fi
47459
47460 COND_MONOLITHIC_0="#"
47461 if test "x$MONOLITHIC" = "x0" ; then
47462 COND_MONOLITHIC_0=""
47463 fi
47464
47465 COND_MONOLITHIC_0_SHARED_0="#"
47466 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47467 COND_MONOLITHIC_0_SHARED_0=""
47468 fi
47469
47470 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47471 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47472 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47473 fi
47474
90970d69
DE
47475 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47476 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47477 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47478 fi
47479
a848cd7e
SC
47480 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47481 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47482 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47483 fi
47484
6671c68b
VZ
47485 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47486 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47487 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47488 fi
47489
a848cd7e
SC
47490 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47491 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47492 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47493 fi
47494
ceec2216
RL
47495 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47496 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47497 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47498 fi
47499
a848cd7e
SC
47500 COND_MONOLITHIC_0_SHARED_1="#"
47501 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47502 COND_MONOLITHIC_0_SHARED_1=""
47503 fi
47504
47505 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47506 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47507 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47508 fi
47509
90970d69
DE
47510 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47511 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47512 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47513 fi
47514
a848cd7e
SC
47515 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47516 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47517 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47518 fi
47519
6671c68b
VZ
47520 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47521 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47522 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47523 fi
47524
a848cd7e
SC
47525 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47526 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47527 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47528 fi
47529
ceec2216
RL
47530 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47531 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47532 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47533 fi
47534
a848cd7e
SC
47535 COND_MONOLITHIC_0_USE_ODBC_1="#"
47536 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47537 COND_MONOLITHIC_0_USE_ODBC_1=""
47538 fi
47539
47540 COND_MONOLITHIC_1="#"
47541 if test "x$MONOLITHIC" = "x1" ; then
47542 COND_MONOLITHIC_1=""
47543 fi
47544
47545 COND_MONOLITHIC_1_SHARED_0="#"
47546 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47547 COND_MONOLITHIC_1_SHARED_0=""
47548 fi
47549
47550 COND_MONOLITHIC_1_SHARED_1="#"
47551 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47552 COND_MONOLITHIC_1_SHARED_1=""
47553 fi
47554
47555 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47556 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47557 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47558 fi
47559
47560 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47561 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47562 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47563 fi
47564
eb730a0c
JS
47565 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47566 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47567 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47568 fi
47569
a848cd7e
SC
47570 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47571 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47572 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47573 fi
47574
47575 COND_PLATFORM_MACOSX_1="#"
47576 if test "x$PLATFORM_MACOSX" = "x1" ; then
47577 COND_PLATFORM_MACOSX_1=""
47578 fi
47579
a30f955f
VS
47580 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47581 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47582 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47583 fi
47584
a848cd7e
SC
47585 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47586 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47587 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47588 fi
47589
47590 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47591 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47592 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47593 fi
47594
47595 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47596 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47597 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47598 fi
47599
fc480dc1
DE
47600 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47601 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47602 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47603 fi
47604
1e9e8aba
DE
47605 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47606 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47607 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47608 fi
47609
ebee3cd0
VS
47610 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47611 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47612 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47613 fi
47614
47615 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47616 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47617 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47618 fi
47619
a848cd7e
SC
47620 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47621 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47622 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47623 fi
47624
47625 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47626 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47627 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47628 fi
47629
b48a2016
DE
47630 COND_PLATFORM_MACOS_1="#"
47631 if test "x$PLATFORM_MACOS" = "x1" ; then
47632 COND_PLATFORM_MACOS_1=""
47633 fi
47634
083508af
MW
47635 COND_PLATFORM_MAC_1="#"
47636 if test "x$PLATFORM_MAC" = "x1" ; then
47637 COND_PLATFORM_MAC_1=""
47638 fi
47639
83d8eb47
MW
47640 COND_PLATFORM_MSDOS_1="#"
47641 if test "x$PLATFORM_MSDOS" = "x1" ; then
47642 COND_PLATFORM_MSDOS_1=""
47643 fi
47644
a848cd7e
SC
47645 COND_PLATFORM_OS2_1="#"
47646 if test "x$PLATFORM_OS2" = "x1" ; then
47647 COND_PLATFORM_OS2_1=""
47648 fi
47649
47650 COND_PLATFORM_UNIX_0="#"
47651 if test "x$PLATFORM_UNIX" = "x0" ; then
47652 COND_PLATFORM_UNIX_0=""
47653 fi
47654
47655 COND_PLATFORM_UNIX_1="#"
47656 if test "x$PLATFORM_UNIX" = "x1" ; then
47657 COND_PLATFORM_UNIX_1=""
47658 fi
47659
47660 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47661 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47662 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47663 fi
47664
47665 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47666 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47667 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47668 fi
47669
47670 COND_PLATFORM_WIN32_0="#"
47671 if test "x$PLATFORM_WIN32" = "x0" ; then
47672 COND_PLATFORM_WIN32_0=""
47673 fi
47674
47675 COND_PLATFORM_WIN32_1="#"
47676 if test "x$PLATFORM_WIN32" = "x1" ; then
47677 COND_PLATFORM_WIN32_1=""
47678 fi
47679
47680 COND_SHARED_0="#"
47681 if test "x$SHARED" = "x0" ; then
47682 COND_SHARED_0=""
47683 fi
47684
083508af
MW
47685 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47686 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47687 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47688 fi
47689
47690 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47691 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47692 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47693 fi
47694
47695 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47696 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47697 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47698 fi
47699
a848cd7e
SC
47700 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47701 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47702 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47703 fi
47704
47705 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47706 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47707 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47708 fi
47709
47710 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47711 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47712 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47713 fi
47714
47715 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47716 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47717 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47718 fi
47719
083508af
MW
47720 COND_SHARED_0_USE_XRC_1="#"
47721 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47722 COND_SHARED_0_USE_XRC_1=""
47723 fi
47724
a848cd7e
SC
47725 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47726 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47727 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47728 fi
47729
47730 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47731 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47732 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47733 fi
47734
47735 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47736 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47737 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47738 fi
47739
47740 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47741 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47742 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47743 fi
47744
47745 COND_SHARED_1="#"
47746 if test "x$SHARED" = "x1" ; then
47747 COND_SHARED_1=""
47748 fi
47749
47750 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47751 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47752 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47753 fi
47754
083508af
MW
47755 COND_SHARED_1_USE_XRC_1="#"
47756 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47757 COND_SHARED_1_USE_XRC_1=""
47758 fi
47759
a30f955f
VS
47760 COND_TOOLKIT_="#"
47761 if test "x$TOOLKIT" = "x" ; then
47762 COND_TOOLKIT_=""
47763 fi
47764
a848cd7e
SC
47765 COND_TOOLKIT_COCOA="#"
47766 if test "x$TOOLKIT" = "xCOCOA" ; then
47767 COND_TOOLKIT_COCOA=""
47768 fi
47769
a49baeab
DE
47770 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47771 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47772 COND_TOOLKIT_COCOA_USE_GUI_1=""
47773 fi
47774
a848cd7e
SC
47775 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47776 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47777 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47778 fi
47779
47780 COND_TOOLKIT_GTK="#"
47781 if test "x$TOOLKIT" = "xGTK" ; then
47782 COND_TOOLKIT_GTK=""
47783 fi
47784
d044deea
MW
47785 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47786 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47787 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47788 fi
47789
47790 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
47791 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
47792 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
47793 fi
47794
47795 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
47796 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
47797 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
47798 fi
47799
47800 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
47801 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47802 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
47803 fi
47804
47805 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
47806 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
47807 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
47808 fi
47809
47810 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
47811 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47812 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
47813 fi
47814
a848cd7e
SC
47815 COND_TOOLKIT_GTK_USE_GUI_1="#"
47816 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
47817 COND_TOOLKIT_GTK_USE_GUI_1=""
47818 fi
47819
a848cd7e
SC
47820 COND_TOOLKIT_MAC="#"
47821 if test "x$TOOLKIT" = "xMAC" ; then
47822 COND_TOOLKIT_MAC=""
47823 fi
47824
47825 COND_TOOLKIT_MAC_USE_GUI_1="#"
47826 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47827 COND_TOOLKIT_MAC_USE_GUI_1=""
47828 fi
47829
47830 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47831 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47832 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47833 fi
47834
47835 COND_TOOLKIT_MGL="#"
47836 if test "x$TOOLKIT" = "xMGL" ; then
47837 COND_TOOLKIT_MGL=""
47838 fi
47839
47840 COND_TOOLKIT_MGL_USE_GUI_1="#"
47841 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
47842 COND_TOOLKIT_MGL_USE_GUI_1=""
47843 fi
47844
47845 COND_TOOLKIT_MOTIF="#"
47846 if test "x$TOOLKIT" = "xMOTIF" ; then
47847 COND_TOOLKIT_MOTIF=""
47848 fi
47849
47850 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
47851 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
47852 COND_TOOLKIT_MOTIF_USE_GUI_1=""
47853 fi
47854
47855 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
47856 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47857 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
47858 fi
47859
47860 COND_TOOLKIT_MSW="#"
47861 if test "x$TOOLKIT" = "xMSW" ; then
47862 COND_TOOLKIT_MSW=""
47863 fi
47864
47865 COND_TOOLKIT_MSW_USE_GUI_1="#"
47866 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
47867 COND_TOOLKIT_MSW_USE_GUI_1=""
47868 fi
47869
47870 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
47871 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47872 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
47873 fi
47874
0ee4059d
DE
47875 COND_TOOLKIT_MSW_WXUNIV_0="#"
47876 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47877 COND_TOOLKIT_MSW_WXUNIV_0=""
47878 fi
47879
a848cd7e
SC
47880 COND_TOOLKIT_PM="#"
47881 if test "x$TOOLKIT" = "xPM" ; then
47882 COND_TOOLKIT_PM=""
47883 fi
47884
47885 COND_TOOLKIT_PM_USE_GUI_1="#"
47886 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
47887 COND_TOOLKIT_PM_USE_GUI_1=""
47888 fi
47889
47890 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
47891 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47892 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
47893 fi
47894
3fd9c298
DE
47895 COND_TOOLKIT_WINCE="#"
47896 if test "x$TOOLKIT" = "xWINCE" ; then
47897 COND_TOOLKIT_WINCE=""
47898 fi
47899
47900 COND_TOOLKIT_WINCE_USE_GUI_1="#"
47901 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
47902 COND_TOOLKIT_WINCE_USE_GUI_1=""
47903 fi
47904
47905 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
47906 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47907 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
47908 fi
47909
0ee4059d
DE
47910 COND_TOOLKIT_WINCE_WXUNIV_0="#"
47911 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
47912 COND_TOOLKIT_WINCE_WXUNIV_0=""
47913 fi
47914
a848cd7e
SC
47915 COND_TOOLKIT_X11="#"
47916 if test "x$TOOLKIT" = "xX11" ; then
47917 COND_TOOLKIT_X11=""
47918 fi
47919
47920 COND_TOOLKIT_X11_USE_GUI_1="#"
47921 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
47922 COND_TOOLKIT_X11_USE_GUI_1=""
47923 fi
47924
47925 COND_UNICODE_1="#"
47926 if test "x$UNICODE" = "x1" ; then
47927 COND_UNICODE_1=""
47928 fi
47929
47930 COND_USE_EXCEPTIONS_0="#"
47931 if test "x$USE_EXCEPTIONS" = "x0" ; then
47932 COND_USE_EXCEPTIONS_0=""
47933 fi
47934
47935 COND_USE_EXCEPTIONS_1="#"
47936 if test "x$USE_EXCEPTIONS" = "x1" ; then
47937 COND_USE_EXCEPTIONS_1=""
47938 fi
47939
47940 COND_USE_GUI_0="#"
47941 if test "x$USE_GUI" = "x0" ; then
47942 COND_USE_GUI_0=""
47943 fi
47944
47945 COND_USE_GUI_1="#"
47946 if test "x$USE_GUI" = "x1" ; then
47947 COND_USE_GUI_1=""
47948 fi
47949
47950 COND_USE_GUI_1_WXUNIV_0="#"
47951 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47952 COND_USE_GUI_1_WXUNIV_0=""
47953 fi
47954
47955 COND_USE_GUI_1_WXUNIV_1="#"
47956 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
47957 COND_USE_GUI_1_WXUNIV_1=""
47958 fi
47959
47960 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47961 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47962 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47963 fi
47964
47965 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47966 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47967 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47968 fi
47969
47970 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47971 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47972 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47973 fi
47974
083508af
MW
47975 COND_USE_ODBC_1="#"
47976 if test "x$USE_ODBC" = "x1" ; then
47977 COND_USE_ODBC_1=""
47978 fi
47979
47980 COND_USE_OPENGL_1="#"
47981 if test "x$USE_OPENGL" = "x1" ; then
47982 COND_USE_OPENGL_1=""
47983 fi
47984
a848cd7e
SC
47985 COND_USE_PLUGINS_0="#"
47986 if test "x$USE_PLUGINS" = "x0" ; then
47987 COND_USE_PLUGINS_0=""
47988 fi
47989
0b78747f
MW
47990 COND_USE_RTTI_0="#"
47991 if test "x$USE_RTTI" = "x0" ; then
47992 COND_USE_RTTI_0=""
47993 fi
47994
47995 COND_USE_RTTI_1="#"
47996 if test "x$USE_RTTI" = "x1" ; then
47997 COND_USE_RTTI_1=""
47998 fi
47999
a848cd7e
SC
48000 COND_USE_SOSYMLINKS_1="#"
48001 if test "x$USE_SOSYMLINKS" = "x1" ; then
48002 COND_USE_SOSYMLINKS_1=""
48003 fi
48004
eb730a0c
JS
48005 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48006 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48007 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48008 fi
48009
a848cd7e
SC
48010 COND_USE_SOVERLINUX_1="#"
48011 if test "x$USE_SOVERLINUX" = "x1" ; then
48012 COND_USE_SOVERLINUX_1=""
48013 fi
48014
48015 COND_USE_SOVERSION_0="#"
48016 if test "x$USE_SOVERSION" = "x0" ; then
48017 COND_USE_SOVERSION_0=""
48018 fi
48019
48020 COND_USE_SOVERSOLARIS_1="#"
48021 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48022 COND_USE_SOVERSOLARIS_1=""
48023 fi
48024
0b78747f
MW
48025 COND_USE_THREADS_0="#"
48026 if test "x$USE_THREADS" = "x0" ; then
48027 COND_USE_THREADS_0=""
48028 fi
48029
48030 COND_USE_THREADS_1="#"
48031 if test "x$USE_THREADS" = "x1" ; then
48032 COND_USE_THREADS_1=""
48033 fi
48034
a13a7f89
RL
48035 COND_USE_XRC_1="#"
48036 if test "x$USE_XRC" = "x1" ; then
48037 COND_USE_XRC_1=""
48038 fi
48039
eb730a0c
JS
48040 COND_WINDOWS_IMPLIB_1="#"
48041 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48042 COND_WINDOWS_IMPLIB_1=""
48043 fi
48044
a848cd7e
SC
48045 COND_WITH_PLUGIN_SDL_1="#"
48046 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48047 COND_WITH_PLUGIN_SDL_1=""
48048 fi
48049
1e6eb025
VZ
48050 COND_WXUNIV_0="#"
48051 if test "x$WXUNIV" = "x0" ; then
48052 COND_WXUNIV_0=""
48053 fi
48054
a848cd7e
SC
48055 COND_WXUNIV_1="#"
48056 if test "x$WXUNIV" = "x1" ; then
48057 COND_WXUNIV_1=""
48058 fi
48059
48060 COND_WXUSE_EXPAT_BUILTIN="#"
48061 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48062 COND_WXUSE_EXPAT_BUILTIN=""
48063 fi
48064
48065 COND_WXUSE_LIBJPEG_BUILTIN="#"
48066 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48067 COND_WXUSE_LIBJPEG_BUILTIN=""
48068 fi
48069
48070 COND_WXUSE_LIBPNG_BUILTIN="#"
48071 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48072 COND_WXUSE_LIBPNG_BUILTIN=""
48073 fi
48074
48075 COND_WXUSE_LIBTIFF_BUILTIN="#"
48076 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48077 COND_WXUSE_LIBTIFF_BUILTIN=""
48078 fi
48079
48080 COND_WXUSE_ODBC_BUILTIN="#"
48081 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48082 COND_WXUSE_ODBC_BUILTIN=""
48083 fi
48084
48085 COND_WXUSE_REGEX_BUILTIN="#"
48086 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48087 COND_WXUSE_REGEX_BUILTIN=""
48088 fi
48089
48090 COND_WXUSE_ZLIB_BUILTIN="#"
48091 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48092 COND_WXUSE_ZLIB_BUILTIN=""
48093 fi
48094
48095
48096
810b94f0
MW
48097 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48098 { { 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
48099echo "$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;}
48100 { (exit 1); exit 1; }; }
48101 fi
48102
2057db16
VS
48103 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48104 { { 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
48105echo "$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;}
48106 { (exit 1); exit 1; }; }
48107 fi
48108
a848cd7e 48109
7afc46ab
KO
48110
48111if test "$wxUSE_MAC" = 1 ; then
48112 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
48113 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48114 mv temp bk-deps
48115 chmod +x bk-deps
48116 fi
48117fi
48118
ceec2216
RL
48119if test "$wxUSE_SHARED" = "yes"; then
48120
48121 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48122 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48123
5b674b9d
DE
48124 case "${host}" in
48125 *-pc-os2_emx | *-pc-os2-emx )
48126 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48127 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48128 cp -p ${srcdir}/src/os2/dllnames.sh .
48129 cp -p ${srcdir}/src/os2/dllar.sh .
48130 ;;
48131 esac
ceec2216
RL
48132else
48133
48134 EXE_LINKER="$CXX -o"
48135
48136fi
69120ee4
VZ
48137if test "$wxUSE_OMF" = "yes"; then
48138 case "${host}" in
48139 *-pc-os2_emx | *-pc-os2-emx )
48140 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48141 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48142 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48143 ;;
48144 esac
48145fi
a848cd7e 48146
c08ebc62 48147if test $GCC_PCH = 1 ; then
254e8e29 48148 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48149fi
a848cd7e 48150
5ff751d6 48151WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48152
48153SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48154
48155
48156
48157
48158
48159
48160
48161
48162
48163
48164
48165
48166
48167
48168
48169
48170
48171
48172
48173
48174
48175
48176
48177
48178
48179
48180
48181
48182
48183
48184
48185
48186
48187
48188
48189
48190
48191
48192
48193
48194
48195
a848cd7e
SC
48196
48197
48198
48199
48200
48201
48202
48203
48204
48205
48206
48207
a848cd7e
SC
48208
48209
ddd14b14 48210
370d2fd7 48211
8ced02f6 48212
a848cd7e
SC
48213
48214
48215echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48216echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48217set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48218if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48219 echo $ECHO_N "(cached) $ECHO_C" >&6
48220else
48221 cat >conftest.make <<\_ACEOF
48222all:
48223 @echo 'ac_maketemp="$(MAKE)"'
48224_ACEOF
48225# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48226eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48227if test -n "$ac_maketemp"; then
48228 eval ac_cv_prog_make_${ac_make}_set=yes
48229else
48230 eval ac_cv_prog_make_${ac_make}_set=no
48231fi
48232rm -f conftest.make
48233fi
48234if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48235 echo "$as_me:$LINENO: result: yes" >&5
48236echo "${ECHO_T}yes" >&6
48237 SET_MAKE=
48238else
48239 echo "$as_me:$LINENO: result: no" >&5
48240echo "${ECHO_T}no" >&6
48241 SET_MAKE="MAKE=${MAKE-make}"
48242fi
48243
48244
a848cd7e 48245
ceec2216
RL
48246 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48247
a848cd7e 48248
5c60e845
MW
48249if test "$USE_WIN32" = 1; then
48250 ac_config_commands="$ac_config_commands
48251 rcdefs.h
48252 "
48253
48254fi
48255
ceec2216 48256 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48257
a848cd7e 48258
ceec2216 48259 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48260
ceec2216
RL
48261
48262 ac_config_files="$ac_config_files version-script Makefile"
48263
48264
5c60e845 48265 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48266
48267
9103d280 48268
1c14217d 48269if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48270if test "$wxUSE_GUI" = "yes"; then
48271 SUBDIRS="samples demos utils contrib"
48272else SUBDIRS="samples utils"
48273fi
48274
48275
48276
48277# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48278if test "${with_cppunit_prefix+set}" = set; then
48279 withval="$with_cppunit_prefix"
48280 cppunit_config_prefix="$withval"
48281else
48282 cppunit_config_prefix=""
48283fi;
48284
48285# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48286if test "${with_cppunit_exec_prefix+set}" = set; then
48287 withval="$with_cppunit_exec_prefix"
48288 cppunit_config_exec_prefix="$withval"
48289else
48290 cppunit_config_exec_prefix=""
48291fi;
48292
48293 if test x$cppunit_config_exec_prefix != x ; then
48294 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48295 if test x${CPPUNIT_CONFIG+set} != xset ; then
48296 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48297 fi
48298 fi
48299 if test x$cppunit_config_prefix != x ; then
48300 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48301 if test x${CPPUNIT_CONFIG+set} != xset ; then
48302 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48303 fi
48304 fi
48305
48306 # Extract the first word of "cppunit-config", so it can be a program name with args.
48307set dummy cppunit-config; ac_word=$2
48308echo "$as_me:$LINENO: checking for $ac_word" >&5
48309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48310if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48311 echo $ECHO_N "(cached) $ECHO_C" >&6
48312else
48313 case $CPPUNIT_CONFIG in
48314 [\\/]* | ?:[\\/]*)
48315 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48316 ;;
48317 *)
48318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48319for as_dir in $PATH
48320do
48321 IFS=$as_save_IFS
48322 test -z "$as_dir" && as_dir=.
48323 for ac_exec_ext in '' $ac_executable_extensions; do
48324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48325 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48327 break 2
48328 fi
48329done
48330done
48331
48332 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48333 ;;
48334esac
48335fi
48336CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48337
48338if test -n "$CPPUNIT_CONFIG"; then
48339 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48340echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48341else
48342 echo "$as_me:$LINENO: result: no" >&5
48343echo "${ECHO_T}no" >&6
48344fi
48345
48346 cppunit_version_min=1.8.0
48347
48348 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48349echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48350 no_cppunit=""
48351 if test "$CPPUNIT_CONFIG" = "no" ; then
48352 no_cppunit=yes
48353 else
48354 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48355 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48356 cppunit_version=`$CPPUNIT_CONFIG --version`
48357
48358 cppunit_major_version=`echo $cppunit_version | \
48359 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48360 cppunit_minor_version=`echo $cppunit_version | \
48361 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48362 cppunit_micro_version=`echo $cppunit_version | \
48363 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48364
48365 cppunit_major_min=`echo $cppunit_version_min | \
48366 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48367 cppunit_minor_min=`echo $cppunit_version_min | \
48368 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48369 cppunit_micro_min=`echo $cppunit_version_min | \
48370 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48371
48372 cppunit_version_proper=`expr \
48373 $cppunit_major_version \> $cppunit_major_min \| \
48374 $cppunit_major_version \= $cppunit_major_min \& \
48375 $cppunit_minor_version \> $cppunit_minor_min \| \
48376 $cppunit_major_version \= $cppunit_major_min \& \
48377 $cppunit_minor_version \= $cppunit_minor_min \& \
48378 $cppunit_micro_version \>= $cppunit_micro_min `
48379
48380 if test "$cppunit_version_proper" = "1" ; then
48381 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48382echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48383 else
48384 echo "$as_me:$LINENO: result: no" >&5
48385echo "${ECHO_T}no" >&6
48386 no_cppunit=yes
48387 fi
48388 fi
48389
48390 if test "x$no_cppunit" = x ; then
c2218763 48391 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48392 else
48393 CPPUNIT_CFLAGS=""
48394 CPPUNIT_LIBS=""
c2218763 48395 :
a848cd7e
SC
48396 fi
48397
48398
48399
48400
48401
48402for subdir in `echo $SUBDIRS`; do
48403 if test -d ${srcdir}/${subdir} ; then
48404 if test "$wxUSE_GUI" = "yes"; then
48405 if test ${subdir} = "samples"; then
48406 makefiles="samples/Makefile.in $makefiles"
48407 for sample in `echo $SAMPLES_SUBDIRS`; do
48408 if test -d $srcdir/samples/$sample; then
48409 makefiles="samples/$sample/Makefile.in $makefiles"
48410 fi
48411 done
9c112555
MW
48412 else
48413 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48414 eval "disabled=\$$disabled_var"
48415 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48416 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48417 fi
48418 else if test ${subdir} = "samples"; then
48419 makefiles="samples/Makefile.in samples/console/Makefile.in"
48420 elif test ${subdir} = "utils"; then
6537ccf8
VS
48421 makefiles=""
48422 for util in HelpGen tex2rtf ; do
48423 if test -d $srcdir/utils/$util ; then
48424 makefiles="utils/$util/Makefile.in \
48425 utils/$util/src/Makefile.in \
48426 $makefiles"
48427 fi
48428 done
a848cd7e
SC
48429 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48430 fi
48431 fi
48432
48433 for mkin in $makefiles ; do
48434 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48435 ac_config_files="$ac_config_files $mk"
48436
48437 done
48438 fi
48439done
1c14217d 48440fi
a848cd7e
SC
48441cat >confcache <<\_ACEOF
48442# This file is a shell script that caches the results of configure
48443# tests run on this system so they can be shared between configure
48444# scripts and configure runs, see configure's option --config-cache.
48445# It is not useful on other systems. If it contains results you don't
48446# want to keep, you may remove or edit it.
48447#
48448# config.status only pays attention to the cache file if you give it
48449# the --recheck option to rerun configure.
48450#
48451# `ac_cv_env_foo' variables (set or unset) will be overridden when
48452# loading this file, other *unset* `ac_cv_foo' will be assigned the
48453# following values.
48454
48455_ACEOF
48456
48457# The following way of writing the cache mishandles newlines in values,
48458# but we know of no workaround that is simple, portable, and efficient.
48459# So, don't put newlines in cache variables' values.
48460# Ultrix sh set writes to stderr and can't be redirected directly,
48461# and sets the high bit in the cache file unless we assign to the vars.
48462{
48463 (set) 2>&1 |
48464 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48465 *ac_space=\ *)
48466 # `set' does not quote correctly, so add quotes (double-quote
48467 # substitution turns \\\\ into \\, and sed turns \\ into \).
48468 sed -n \
ac1cb8d3
VS
48469 "s/'/'\\\\''/g;
48470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48471 ;;
48472 *)
48473 # `set' quotes correctly as required by POSIX, so do not add quotes.
48474 sed -n \
ac1cb8d3 48475 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48476 ;;
48477 esac;
48478} |
48479 sed '
48480 t clear
48481 : clear
48482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48483 t end
48484 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48485 : end' >>confcache
48486if diff $cache_file confcache >/dev/null 2>&1; then :; else
48487 if test -w $cache_file; then
48488 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48489 cat confcache >$cache_file
48490 else
48491 echo "not updating unwritable cache $cache_file"
48492 fi
48493fi
48494rm -f confcache
48495
48496test "x$prefix" = xNONE && prefix=$ac_default_prefix
48497# Let make expand exec_prefix.
48498test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48499
48500# VPATH may cause trouble with some makes, so we remove $(srcdir),
48501# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48502# trailing colons and then remove the whole line if VPATH becomes empty
48503# (actually we leave an empty line to preserve line numbers).
48504if test "x$srcdir" = x.; then
ac1cb8d3 48505 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48506s/:*\$(srcdir):*/:/;
48507s/:*\${srcdir}:*/:/;
48508s/:*@srcdir@:*/:/;
ac1cb8d3 48509s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48510s/:*$//;
ac1cb8d3 48511s/^[^=]*=[ ]*$//;
a848cd7e
SC
48512}'
48513fi
48514
48515DEFS=-DHAVE_CONFIG_H
48516
48517ac_libobjs=
48518ac_ltlibobjs=
48519for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48520 # 1. Remove the extension, and $U if already installed.
48521 ac_i=`echo "$ac_i" |
ac1cb8d3 48522 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48523 # 2. Add them.
48524 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48525 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48526done
48527LIBOBJS=$ac_libobjs
48528
48529LTLIBOBJS=$ac_ltlibobjs
48530
48531
48532
48533: ${CONFIG_STATUS=./config.status}
48534ac_clean_files_save=$ac_clean_files
48535ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48536{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48537echo "$as_me: creating $CONFIG_STATUS" >&6;}
48538cat >$CONFIG_STATUS <<_ACEOF
48539#! $SHELL
48540# Generated by $as_me.
48541# Run this file to recreate the current configuration.
48542# Compiler output produced by configure, useful for debugging
48543# configure, is in config.log if it exists.
48544
48545debug=false
48546ac_cs_recheck=false
48547ac_cs_silent=false
48548SHELL=\${CONFIG_SHELL-$SHELL}
48549_ACEOF
48550
48551cat >>$CONFIG_STATUS <<\_ACEOF
48552## --------------------- ##
48553## M4sh Initialization. ##
48554## --------------------- ##
48555
48556# Be Bourne compatible
48557if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48558 emulate sh
48559 NULLCMD=:
48560 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48561 # is contrary to our usage. Disable this feature.
48562 alias -g '${1+"$@"}'='"$@"'
48563elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48564 set -o posix
48565fi
ac1cb8d3 48566DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48567
48568# Support unset when possible.
ac1cb8d3 48569if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48570 as_unset=unset
48571else
48572 as_unset=false
48573fi
48574
48575
48576# Work around bugs in pre-3.0 UWIN ksh.
48577$as_unset ENV MAIL MAILPATH
48578PS1='$ '
48579PS2='> '
48580PS4='+ '
48581
48582# NLS nuisances.
48583for as_var in \
48584 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48585 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48586 LC_TELEPHONE LC_TIME
48587do
ac1cb8d3 48588 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48589 eval $as_var=C; export $as_var
48590 else
48591 $as_unset $as_var
48592 fi
48593done
48594
48595# Required to use basename.
48596if expr a : '\(a\)' >/dev/null 2>&1; then
48597 as_expr=expr
48598else
48599 as_expr=false
48600fi
48601
48602if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48603 as_basename=basename
48604else
48605 as_basename=false
48606fi
48607
48608
48609# Name of the executable.
48610as_me=`$as_basename "$0" ||
48611$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48612 X"$0" : 'X\(//\)$' \| \
48613 X"$0" : 'X\(/\)$' \| \
48614 . : '\(.\)' 2>/dev/null ||
48615echo X/"$0" |
48616 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48617 /^X\/\(\/\/\)$/{ s//\1/; q; }
48618 /^X\/\(\/\).*/{ s//\1/; q; }
48619 s/.*/./; q'`
48620
48621
48622# PATH needs CR, and LINENO needs CR and PATH.
48623# Avoid depending upon Character Ranges.
48624as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48625as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48626as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48627as_cr_digits='0123456789'
48628as_cr_alnum=$as_cr_Letters$as_cr_digits
48629
48630# The user is always right.
48631if test "${PATH_SEPARATOR+set}" != set; then
48632 echo "#! /bin/sh" >conf$$.sh
48633 echo "exit 0" >>conf$$.sh
48634 chmod +x conf$$.sh
48635 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48636 PATH_SEPARATOR=';'
48637 else
48638 PATH_SEPARATOR=:
48639 fi
48640 rm -f conf$$.sh
48641fi
48642
48643
48644 as_lineno_1=$LINENO
48645 as_lineno_2=$LINENO
48646 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48647 test "x$as_lineno_1" != "x$as_lineno_2" &&
48648 test "x$as_lineno_3" = "x$as_lineno_2" || {
48649 # Find who we are. Look in the path if we contain no path at all
48650 # relative or not.
48651 case $0 in
48652 *[\\/]* ) as_myself=$0 ;;
48653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48654for as_dir in $PATH
48655do
48656 IFS=$as_save_IFS
48657 test -z "$as_dir" && as_dir=.
48658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48659done
48660
48661 ;;
48662 esac
48663 # We did not find ourselves, most probably we were run as `sh COMMAND'
48664 # in which case we are not to be found in the path.
48665 if test "x$as_myself" = x; then
48666 as_myself=$0
48667 fi
48668 if test ! -f "$as_myself"; then
48669 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48670echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48671 { (exit 1); exit 1; }; }
48672 fi
48673 case $CONFIG_SHELL in
48674 '')
48675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48676for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48677do
48678 IFS=$as_save_IFS
48679 test -z "$as_dir" && as_dir=.
48680 for as_base in sh bash ksh sh5; do
48681 case $as_dir in
48682 /*)
48683 if ("$as_dir/$as_base" -c '
48684 as_lineno_1=$LINENO
48685 as_lineno_2=$LINENO
48686 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48687 test "x$as_lineno_1" != "x$as_lineno_2" &&
48688 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48689 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48690 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48691 CONFIG_SHELL=$as_dir/$as_base
48692 export CONFIG_SHELL
48693 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48694 fi;;
48695 esac
48696 done
48697done
48698;;
48699 esac
48700
48701 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48702 # uniformly replaced by the line number. The first 'sed' inserts a
48703 # line-number line before each line; the second 'sed' does the real
48704 # work. The second script uses 'N' to pair each line-number line
48705 # with the numbered line, and appends trailing '-' during
48706 # substitution so that $LINENO is not a special case at line end.
48707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48708 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48709 sed '=' <$as_myself |
48710 sed '
48711 N
48712 s,$,-,
48713 : loop
48714 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48715 t loop
48716 s,-$,,
48717 s,^['$as_cr_digits']*\n,,
48718 ' >$as_me.lineno &&
48719 chmod +x $as_me.lineno ||
48720 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48721echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48722 { (exit 1); exit 1; }; }
48723
48724 # Don't try to exec as it changes $[0], causing all sort of problems
48725 # (the dirname of $[0] is not the place where we might find the
48726 # original and so on. Autoconf is especially sensible to this).
48727 . ./$as_me.lineno
48728 # Exit status is that of the last command.
48729 exit
48730}
48731
48732
48733case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48734 *c*,-n*) ECHO_N= ECHO_C='
48735' ECHO_T=' ' ;;
48736 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48737 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48738esac
48739
48740if expr a : '\(a\)' >/dev/null 2>&1; then
48741 as_expr=expr
48742else
48743 as_expr=false
48744fi
48745
48746rm -f conf$$ conf$$.exe conf$$.file
48747echo >conf$$.file
48748if ln -s conf$$.file conf$$ 2>/dev/null; then
48749 # We could just check for DJGPP; but this test a) works b) is more generic
48750 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48751 if test -f conf$$.exe; then
48752 # Don't use ln at all; we don't have any links
48753 as_ln_s='cp -p'
48754 else
48755 as_ln_s='ln -s'
48756 fi
48757elif ln conf$$.file conf$$ 2>/dev/null; then
48758 as_ln_s=ln
48759else
48760 as_ln_s='cp -p'
48761fi
48762rm -f conf$$ conf$$.exe conf$$.file
48763
48764if mkdir -p . 2>/dev/null; then
48765 as_mkdir_p=:
48766else
ac1cb8d3 48767 test -d ./-p && rmdir ./-p
a848cd7e
SC
48768 as_mkdir_p=false
48769fi
48770
48771as_executable_p="test -f"
48772
48773# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48774as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48775
48776# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48777as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48778
48779
48780# IFS
48781# We need space, tab and new line, in precisely that order.
48782as_nl='
48783'
48784IFS=" $as_nl"
48785
48786# CDPATH.
48787$as_unset CDPATH
48788
48789exec 6>&1
48790
48791# Open the log real soon, to keep \$[0] and so on meaningful, and to
48792# report actual input values of CONFIG_FILES etc. instead of their
48793# values after options handling. Logging --version etc. is OK.
48794exec 5>>config.log
48795{
48796 echo
48797 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48798## Running $as_me. ##
48799_ASBOX
48800} >&5
48801cat >&5 <<_CSEOF
48802
dd8df4fc 48803This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 48804generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
48805
48806 CONFIG_FILES = $CONFIG_FILES
48807 CONFIG_HEADERS = $CONFIG_HEADERS
48808 CONFIG_LINKS = $CONFIG_LINKS
48809 CONFIG_COMMANDS = $CONFIG_COMMANDS
48810 $ $0 $@
48811
48812_CSEOF
48813echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
48814echo >&5
48815_ACEOF
48816
48817# Files that config.status was made for.
48818if test -n "$ac_config_files"; then
48819 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
48820fi
48821
48822if test -n "$ac_config_headers"; then
48823 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
48824fi
48825
48826if test -n "$ac_config_links"; then
48827 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
48828fi
48829
48830if test -n "$ac_config_commands"; then
48831 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
48832fi
48833
48834cat >>$CONFIG_STATUS <<\_ACEOF
48835
48836ac_cs_usage="\
48837\`$as_me' instantiates files from templates according to the
48838current configuration.
48839
48840Usage: $0 [OPTIONS] [FILE]...
48841
48842 -h, --help print this help, then exit
48843 -V, --version print version number, then exit
48844 -q, --quiet do not print progress messages
48845 -d, --debug don't remove temporary files
48846 --recheck update $as_me by reconfiguring in the same conditions
48847 --file=FILE[:TEMPLATE]
ac1cb8d3 48848 instantiate the configuration file FILE
a848cd7e 48849 --header=FILE[:TEMPLATE]
ac1cb8d3 48850 instantiate the configuration header FILE
a848cd7e
SC
48851
48852Configuration files:
48853$config_files
48854
48855Configuration headers:
48856$config_headers
48857
48858Configuration commands:
48859$config_commands
48860
48861Report bugs to <bug-autoconf@gnu.org>."
48862_ACEOF
48863
48864cat >>$CONFIG_STATUS <<_ACEOF
48865ac_cs_version="\\
dd8df4fc 48866wxWidgets config.status 2.7.0
ac1cb8d3 48867configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
48868 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
48869
ac1cb8d3 48870Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
48871This config.status script is free software; the Free Software Foundation
48872gives unlimited permission to copy, distribute and modify it."
48873srcdir=$srcdir
48874INSTALL="$INSTALL"
48875_ACEOF
48876
48877cat >>$CONFIG_STATUS <<\_ACEOF
48878# If no file are specified by the user, then we need to provide default
48879# value. By we need to know if files were specified by the user.
48880ac_need_defaults=:
48881while test $# != 0
48882do
48883 case $1 in
48884 --*=*)
48885 ac_option=`expr "x$1" : 'x\([^=]*\)='`
48886 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
48887 ac_shift=:
48888 ;;
48889 -*)
48890 ac_option=$1
48891 ac_optarg=$2
48892 ac_shift=shift
48893 ;;
48894 *) # This is not an option, so the user has probably given explicit
48895 # arguments.
48896 ac_option=$1
48897 ac_need_defaults=false;;
48898 esac
48899
48900 case $ac_option in
48901 # Handling of the options.
48902_ACEOF
48903cat >>$CONFIG_STATUS <<\_ACEOF
48904 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48905 ac_cs_recheck=: ;;
48906 --version | --vers* | -V )
48907 echo "$ac_cs_version"; exit 0 ;;
48908 --he | --h)
48909 # Conflict between --help and --header
48910 { { echo "$as_me:$LINENO: error: ambiguous option: $1
48911Try \`$0 --help' for more information." >&5
48912echo "$as_me: error: ambiguous option: $1
48913Try \`$0 --help' for more information." >&2;}
48914 { (exit 1); exit 1; }; };;
48915 --help | --hel | -h )
48916 echo "$ac_cs_usage"; exit 0 ;;
48917 --debug | --d* | -d )
48918 debug=: ;;
48919 --file | --fil | --fi | --f )
48920 $ac_shift
48921 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48922 ac_need_defaults=false;;
48923 --header | --heade | --head | --hea )
48924 $ac_shift
48925 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48926 ac_need_defaults=false;;
48927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48928 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48929 ac_cs_silent=: ;;
48930
48931 # This is an error.
48932 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
48933Try \`$0 --help' for more information." >&5
48934echo "$as_me: error: unrecognized option: $1
48935Try \`$0 --help' for more information." >&2;}
48936 { (exit 1); exit 1; }; } ;;
48937
48938 *) ac_config_targets="$ac_config_targets $1" ;;
48939
48940 esac
48941 shift
48942done
48943
48944ac_configure_extra_args=
48945
48946if $ac_cs_silent; then
48947 exec 6>/dev/null
48948 ac_configure_extra_args="$ac_configure_extra_args --silent"
48949fi
48950
48951_ACEOF
48952cat >>$CONFIG_STATUS <<_ACEOF
48953if \$ac_cs_recheck; then
48954 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48955 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48956fi
48957
48958_ACEOF
48959
48960cat >>$CONFIG_STATUS <<_ACEOF
48961#
48962# INIT-COMMANDS section.
48963#
48964
5c60e845
MW
48965
48966 CPP="$CPP"
48967 infile="$srcdir/include/wx/msw/genrcdefs.h"
48968 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
48969
48970
ceec2216
RL
48971 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48972 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48973 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48974 LN_S="${LN_S}"
a848cd7e
SC
48975
48976
48977_ACEOF
48978
48979
48980
48981cat >>$CONFIG_STATUS <<\_ACEOF
48982for ac_config_target in $ac_config_targets
48983do
48984 case "$ac_config_target" in
48985 # Handling of arguments.
ceec2216
RL
48986 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
48987 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
48988 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
48989 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48990 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 48991 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
48992 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
48993 "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
48994 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48995echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48996 { (exit 1); exit 1; }; };;
48997 esac
48998done
48999
49000# If the user did not use the arguments to specify the items to instantiate,
49001# then the envvar interface is used. Set only those that are not.
49002# We use the long form for the default assignment because of an extremely
49003# bizarre bug on SunOS 4.1.3.
49004if $ac_need_defaults; then
49005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49008fi
49009
49010# Have a temporary directory for convenience. Make it in the build tree
49011# simply because there is no reason to put it here, and in addition,
49012# creating and moving files from /tmp can sometimes cause problems.
49013# Create a temporary directory, and hook for its removal unless debugging.
49014$debug ||
49015{
49016 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49017 trap '{ (exit 1); exit 1; }' 1 2 13 15
49018}
49019
49020# Create a (secure) tmp directory for tmp files.
49021
49022{
49023 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49024 test -n "$tmp" && test -d "$tmp"
49025} ||
49026{
49027 tmp=./confstat$$-$RANDOM
49028 (umask 077 && mkdir $tmp)
49029} ||
49030{
49031 echo "$me: cannot create a temporary directory in ." >&2
49032 { (exit 1); exit 1; }
49033}
49034
49035_ACEOF
49036
49037cat >>$CONFIG_STATUS <<_ACEOF
49038
49039#
49040# CONFIG_FILES section.
49041#
49042
49043# No need to generate the scripts if there are no CONFIG_FILES.
49044# This happens for instance when ./config.status config.h
49045if test -n "\$CONFIG_FILES"; then
49046 # Protect against being on the right side of a sed subst in config.status.
49047 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49048 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49049s,@SHELL@,$SHELL,;t t
49050s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49051s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49052s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49053s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49054s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49055s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49056s,@exec_prefix@,$exec_prefix,;t t
49057s,@prefix@,$prefix,;t t
49058s,@program_transform_name@,$program_transform_name,;t t
49059s,@bindir@,$bindir,;t t
49060s,@sbindir@,$sbindir,;t t
49061s,@libexecdir@,$libexecdir,;t t
49062s,@datadir@,$datadir,;t t
49063s,@sysconfdir@,$sysconfdir,;t t
49064s,@sharedstatedir@,$sharedstatedir,;t t
49065s,@localstatedir@,$localstatedir,;t t
49066s,@libdir@,$libdir,;t t
49067s,@includedir@,$includedir,;t t
49068s,@oldincludedir@,$oldincludedir,;t t
49069s,@infodir@,$infodir,;t t
49070s,@mandir@,$mandir,;t t
49071s,@build_alias@,$build_alias,;t t
49072s,@host_alias@,$host_alias,;t t
49073s,@target_alias@,$target_alias,;t t
49074s,@DEFS@,$DEFS,;t t
49075s,@ECHO_C@,$ECHO_C,;t t
49076s,@ECHO_N@,$ECHO_N,;t t
49077s,@ECHO_T@,$ECHO_T,;t t
49078s,@LIBS@,$LIBS,;t t
49079s,@build@,$build,;t t
49080s,@build_cpu@,$build_cpu,;t t
49081s,@build_vendor@,$build_vendor,;t t
49082s,@build_os@,$build_os,;t t
49083s,@host@,$host,;t t
49084s,@host_cpu@,$host_cpu,;t t
49085s,@host_vendor@,$host_vendor,;t t
49086s,@host_os@,$host_os,;t t
49087s,@target@,$target,;t t
49088s,@target_cpu@,$target_cpu,;t t
49089s,@target_vendor@,$target_vendor,;t t
49090s,@target_os@,$target_os,;t t
49091s,@CC@,$CC,;t t
49092s,@CFLAGS@,$CFLAGS,;t t
49093s,@LDFLAGS@,$LDFLAGS,;t t
49094s,@CPPFLAGS@,$CPPFLAGS,;t t
49095s,@ac_ct_CC@,$ac_ct_CC,;t t
49096s,@EXEEXT@,$EXEEXT,;t t
49097s,@OBJEXT@,$OBJEXT,;t t
49098s,@CPP@,$CPP,;t t
49099s,@EGREP@,$EGREP,;t t
49100s,@CXX@,$CXX,;t t
49101s,@CXXFLAGS@,$CXXFLAGS,;t t
49102s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49103s,@RANLIB@,$RANLIB,;t t
49104s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49105s,@AR@,$AR,;t t
8c80d384 49106s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49107s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49108s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49109s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49110s,@STRIP@,$STRIP,;t t
8c80d384 49111s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49112s,@WINDRES@,$WINDRES,;t t
49113s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49114s,@DLLTOOL@,$DLLTOOL,;t t
49115s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49116s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49117s,@LN_S@,$LN_S,;t t
49118s,@CXXCPP@,$CXXCPP,;t t
49119s,@subdirs@,$subdirs,;t t
49120s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49121s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49122s,@GTK_LIBS@,$GTK_LIBS,;t t
49123s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49124s,@X_CFLAGS@,$X_CFLAGS,;t t
49125s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49126s,@X_LIBS@,$X_LIBS,;t t
49127s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49128s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49129s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49130s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49131s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49132s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49133s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49134s,@REZ@,$REZ,;t t
a848cd7e
SC
49135s,@DEREZ@,$DEREZ,;t t
49136s,@SETFILE@,$SETFILE,;t t
49137s,@LIBICONV@,$LIBICONV,;t t
49138s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49139s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49140s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49141s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49142s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49143s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
3565d135
RR
49144s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49145s,@HILDON_LIBS@,$HILDON_LIBS,;t t
dae87f93
RN
49146s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
49147s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
49148s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
49149s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49150s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49151s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49152s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49153s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49154s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49155s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49156s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49157s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49158s,@VENDOR@,$VENDOR,;t t
49159s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49160s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49161s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49162s,@WXUNIV@,$WXUNIV,;t t
49163s,@MONOLITHIC@,$MONOLITHIC,;t t
49164s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49165s,@EXTRALIBS@,$EXTRALIBS,;t t
49166s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49167s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49168s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49169s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49170s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49171s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49172s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49173s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
3565d135 49174s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49175s,@UNICODE@,$UNICODE,;t t
49176s,@BUILD@,$BUILD,;t t
49177s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49178s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49179s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49180s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49181s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49182s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49183s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49184s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49185s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49186s,@SET_MAKE@,$SET_MAKE,;t t
49187s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49188s,@NM@,$NM,;t t
49189s,@ac_ct_NM@,$ac_ct_NM,;t t
49190s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49191s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49192s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49193s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49194s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49195s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49196s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49197s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49198s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49199s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49200s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49201s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49202s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49203s,@LIBPREFIX@,$LIBPREFIX,;t t
49204s,@LIBEXT@,$LIBEXT,;t t
49205s,@DLLPREFIX@,$DLLPREFIX,;t t
49206s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49207s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49208s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49209s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49210s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49211s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49212s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49213s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49214s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49215s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49216s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49217s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49218s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49219s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49220s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49221s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49222s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49223s,@GCC_PCH@,$GCC_PCH,;t t
49224s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49225s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49226s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49227s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49228s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49229s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49230s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49231s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49232s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49233s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49234s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49235s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49236s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49237s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49238s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
49239s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49240s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49241s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49242s,@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 49243s,@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 49244s,@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 49245s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49246s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49247s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49248s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49249s,@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 49250s,@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 49251s,@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 49252s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49253s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
49254s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49255s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49256s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49257s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49258s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49259s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49260s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49261s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49262s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49263s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49264s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49265s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49266s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49267s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49268s,@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
49269s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49270s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49271s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49272s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49273s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49274s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 49275s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49276s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49277s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49278s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49279s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49280s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49281s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49282s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49283s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49284s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49285s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49286s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49287s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49288s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49289s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49290s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49291s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49292s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49293s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49294s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49295s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49296s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49297s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49298s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49299s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49300s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49301s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49302s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49303s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49304s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49305s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49306s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49307s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49308s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49309s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49310s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49311s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49312s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49313s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49314s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49315s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49316s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49317s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49318s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49319s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49320s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49321s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49322s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49323s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49324s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49325s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49326s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49327s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49328s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49329s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49330s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49331s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49332s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49333s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49334s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49335s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49336s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49337s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49338s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49339s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49340s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49341s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49342s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49343s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 49344s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49345s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49346s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49347s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49348s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49349s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49350s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49351s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49352s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49353s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49354s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49355s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49356s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49357s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49358s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49359s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49360s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49361s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49362s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49363s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49364s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49365s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49366s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49367s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49368s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49369s,@USE_GUI@,$USE_GUI,;t t
49370s,@AFMINSTALL@,$AFMINSTALL,;t t
49371s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49372s,@TOOLKIT@,$TOOLKIT,;t t
49373s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49374s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49375s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49376s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49377s,@WIDGET_SET@,$WIDGET_SET,;t t
49378s,@WX_RELEASE@,$WX_RELEASE,;t t
49379s,@WX_VERSION@,$WX_VERSION,;t t
49380s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49381s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49382s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49383s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49384s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49385s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49386s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49387s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49388s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49389s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49390s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49391s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49392s,@DISTDIR@,$DISTDIR,;t t
49393s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49394s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49395s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49396s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49397s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49398s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49399s,@RESFLAGS@,$RESFLAGS,;t t
49400s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49401s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49402s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49403s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49404s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49405s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49406s,@GCC@,$GCC,;t t
a848cd7e
SC
49407s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49408s,@LIBOBJS@,$LIBOBJS,;t t
49409s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49410CEOF
49411
49412_ACEOF
49413
49414 cat >>$CONFIG_STATUS <<\_ACEOF
49415 # Split the substitutions into bite-sized pieces for seds with
49416 # small command number limits, like on Digital OSF/1 and HP-UX.
49417 ac_max_sed_lines=48
49418 ac_sed_frag=1 # Number of current file.
49419 ac_beg=1 # First line for current file.
49420 ac_end=$ac_max_sed_lines # Line after last line for current file.
49421 ac_more_lines=:
49422 ac_sed_cmds=
49423 while $ac_more_lines; do
49424 if test $ac_beg -gt 1; then
49425 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49426 else
49427 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49428 fi
49429 if test ! -s $tmp/subs.frag; then
49430 ac_more_lines=false
49431 else
49432 # The purpose of the label and of the branching condition is to
49433 # speed up the sed processing (if there are no `@' at all, there
49434 # is no need to browse any of the substitutions).
49435 # These are the two extra sed commands mentioned above.
49436 (echo ':t
49437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49438 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49439 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49440 else
ac1cb8d3 49441 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49442 fi
49443 ac_sed_frag=`expr $ac_sed_frag + 1`
49444 ac_beg=$ac_end
49445 ac_end=`expr $ac_end + $ac_max_sed_lines`
49446 fi
49447 done
49448 if test -z "$ac_sed_cmds"; then
49449 ac_sed_cmds=cat
49450 fi
49451fi # test -n "$CONFIG_FILES"
49452
49453_ACEOF
49454cat >>$CONFIG_STATUS <<\_ACEOF
49455for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49456 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49457 case $ac_file in
49458 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49459 cat >$tmp/stdin
49460 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49461 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49462 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49464 * ) ac_file_in=$ac_file.in ;;
49465 esac
49466
49467 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49468 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49469$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49470 X"$ac_file" : 'X\(//\)[^/]' \| \
49471 X"$ac_file" : 'X\(//\)$' \| \
49472 X"$ac_file" : 'X\(/\)' \| \
49473 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49474echo X"$ac_file" |
49475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49477 /^X\(\/\/\)$/{ s//\1/; q; }
49478 /^X\(\/\).*/{ s//\1/; q; }
49479 s/.*/./; q'`
49480 { if $as_mkdir_p; then
49481 mkdir -p "$ac_dir"
49482 else
49483 as_dir="$ac_dir"
49484 as_dirs=
49485 while test ! -d "$as_dir"; do
49486 as_dirs="$as_dir $as_dirs"
49487 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49488$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49489 X"$as_dir" : 'X\(//\)[^/]' \| \
49490 X"$as_dir" : 'X\(//\)$' \| \
49491 X"$as_dir" : 'X\(/\)' \| \
49492 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49493echo X"$as_dir" |
49494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49496 /^X\(\/\/\)$/{ s//\1/; q; }
49497 /^X\(\/\).*/{ s//\1/; q; }
49498 s/.*/./; q'`
49499 done
49500 test ! -n "$as_dirs" || mkdir $as_dirs
49501 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49502echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49503 { (exit 1); exit 1; }; }; }
49504
49505 ac_builddir=.
49506
49507if test "$ac_dir" != .; then
49508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49509 # A "../" for each directory in $ac_dir_suffix.
49510 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49511else
49512 ac_dir_suffix= ac_top_builddir=
49513fi
49514
49515case $srcdir in
49516 .) # No --srcdir option. We are building in place.
49517 ac_srcdir=.
49518 if test -z "$ac_top_builddir"; then
49519 ac_top_srcdir=.
49520 else
49521 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49522 fi ;;
49523 [\\/]* | ?:[\\/]* ) # Absolute path.
49524 ac_srcdir=$srcdir$ac_dir_suffix;
49525 ac_top_srcdir=$srcdir ;;
49526 *) # Relative path.
49527 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49528 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49529esac
ac1cb8d3
VS
49530
49531# Do not use `cd foo && pwd` to compute absolute paths, because
49532# the directories may not exist.
49533case `pwd` in
49534.) ac_abs_builddir="$ac_dir";;
49535*)
49536 case "$ac_dir" in
49537 .) ac_abs_builddir=`pwd`;;
49538 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49539 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49540 esac;;
49541esac
49542case $ac_abs_builddir in
49543.) ac_abs_top_builddir=${ac_top_builddir}.;;
49544*)
49545 case ${ac_top_builddir}. in
49546 .) ac_abs_top_builddir=$ac_abs_builddir;;
49547 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49548 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49549 esac;;
49550esac
49551case $ac_abs_builddir in
49552.) ac_abs_srcdir=$ac_srcdir;;
49553*)
49554 case $ac_srcdir in
49555 .) ac_abs_srcdir=$ac_abs_builddir;;
49556 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49557 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49558 esac;;
49559esac
49560case $ac_abs_builddir in
49561.) ac_abs_top_srcdir=$ac_top_srcdir;;
49562*)
49563 case $ac_top_srcdir in
49564 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49565 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49566 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49567 esac;;
49568esac
a848cd7e
SC
49569
49570
49571 case $INSTALL in
49572 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49573 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49574 esac
49575
3565d135
RR
49576 if test x"$ac_file" != x-; then
49577 { echo "$as_me:$LINENO: creating $ac_file" >&5
49578echo "$as_me: creating $ac_file" >&6;}
49579 rm -f "$ac_file"
49580 fi
a848cd7e
SC
49581 # Let's still pretend it is `configure' which instantiates (i.e., don't
49582 # use $as_me), people would be surprised to read:
49583 # /* config.h. Generated by config.status. */
49584 if test x"$ac_file" = x-; then
49585 configure_input=
49586 else
49587 configure_input="$ac_file. "
49588 fi
49589 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49590 sed 's,.*/,,'` by configure."
a848cd7e
SC
49591
49592 # First look for the input files in the build tree, otherwise in the
49593 # src tree.
49594 ac_file_inputs=`IFS=:
49595 for f in $ac_file_in; do
49596 case $f in
49597 -) echo $tmp/stdin ;;
49598 [\\/$]*)
ac1cb8d3
VS
49599 # Absolute (can't be DOS-style, as IFS=:)
49600 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49601echo "$as_me: error: cannot find input file: $f" >&2;}
49602 { (exit 1); exit 1; }; }
ac1cb8d3 49603 echo "$f";;
a848cd7e 49604 *) # Relative
ac1cb8d3
VS
49605 if test -f "$f"; then
49606 # Build tree
49607 echo "$f"
49608 elif test -f "$srcdir/$f"; then
49609 # Source tree
49610 echo "$srcdir/$f"
49611 else
49612 # /dev/null tree
49613 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49614echo "$as_me: error: cannot find input file: $f" >&2;}
49615 { (exit 1); exit 1; }; }
ac1cb8d3 49616 fi;;
a848cd7e
SC
49617 esac
49618 done` || { (exit 1); exit 1; }
49619_ACEOF
49620cat >>$CONFIG_STATUS <<_ACEOF
49621 sed "$ac_vpsub
49622$extrasub
49623_ACEOF
49624cat >>$CONFIG_STATUS <<\_ACEOF
49625:t
49626/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49627s,@configure_input@,$configure_input,;t t
49628s,@srcdir@,$ac_srcdir,;t t
49629s,@abs_srcdir@,$ac_abs_srcdir,;t t
49630s,@top_srcdir@,$ac_top_srcdir,;t t
49631s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49632s,@builddir@,$ac_builddir,;t t
49633s,@abs_builddir@,$ac_abs_builddir,;t t
49634s,@top_builddir@,$ac_top_builddir,;t t
49635s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49636s,@INSTALL@,$ac_INSTALL,;t t
49637" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49638 rm -f $tmp/stdin
49639 if test x"$ac_file" != x-; then
49640 mv $tmp/out $ac_file
49641 else
49642 cat $tmp/out
49643 rm -f $tmp/out
49644 fi
49645
ceec2216
RL
49646 # Run the commands associated with the file.
49647 case $ac_file in
49648 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49649 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49650 esac
a848cd7e
SC
49651done
49652_ACEOF
49653cat >>$CONFIG_STATUS <<\_ACEOF
49654
49655#
49656# CONFIG_HEADER section.
49657#
49658
49659# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49660# NAME is the cpp macro being defined and VALUE is the value it is being given.
49661#
49662# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49663ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49664ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49665ac_dC=' '
49666ac_dD=',;t'
49667# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49668ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49669ac_uB='$,\1#\2define\3'
49670ac_uC=' '
49671ac_uD=',;t'
49672
49673for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49675 case $ac_file in
49676 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49677 cat >$tmp/stdin
49678 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49679 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49680 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49681 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49682 * ) ac_file_in=$ac_file.in ;;
49683 esac
49684
49685 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49686echo "$as_me: creating $ac_file" >&6;}
49687
49688 # First look for the input files in the build tree, otherwise in the
49689 # src tree.
49690 ac_file_inputs=`IFS=:
49691 for f in $ac_file_in; do
49692 case $f in
49693 -) echo $tmp/stdin ;;
49694 [\\/$]*)
ac1cb8d3
VS
49695 # Absolute (can't be DOS-style, as IFS=:)
49696 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49697echo "$as_me: error: cannot find input file: $f" >&2;}
49698 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49699 # Do quote $f, to prevent DOS paths from being IFS'd.
49700 echo "$f";;
a848cd7e 49701 *) # Relative
ac1cb8d3
VS
49702 if test -f "$f"; then
49703 # Build tree
49704 echo "$f"
49705 elif test -f "$srcdir/$f"; then
49706 # Source tree
49707 echo "$srcdir/$f"
49708 else
49709 # /dev/null tree
49710 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49711echo "$as_me: error: cannot find input file: $f" >&2;}
49712 { (exit 1); exit 1; }; }
ac1cb8d3 49713 fi;;
a848cd7e
SC
49714 esac
49715 done` || { (exit 1); exit 1; }
49716 # Remove the trailing spaces.
ac1cb8d3 49717 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49718
49719_ACEOF
49720
49721# Transform confdefs.h into two sed scripts, `conftest.defines' and
49722# `conftest.undefs', that substitutes the proper values into
49723# config.h.in to produce config.h. The first handles `#define'
49724# templates, and the second `#undef' templates.
49725# And first: Protect against being on the right side of a sed subst in
49726# config.status. Protect against being in an unquoted here document
49727# in config.status.
49728rm -f conftest.defines conftest.undefs
49729# Using a here document instead of a string reduces the quoting nightmare.
49730# Putting comments in sed scripts is not portable.
49731#
49732# `end' is used to avoid that the second main sed command (meant for
49733# 0-ary CPP macros) applies to n-ary macro definitions.
49734# See the Autoconf documentation for `clear'.
49735cat >confdef2sed.sed <<\_ACEOF
49736s/[\\&,]/\\&/g
49737s,[\\$`],\\&,g
49738t clear
49739: clear
ac1cb8d3 49740s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49741t end
ac1cb8d3 49742s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49743: end
49744_ACEOF
49745# If some macros were called several times there might be several times
49746# the same #defines, which is useless. Nevertheless, we may not want to
49747# sort them, since we want the *last* AC-DEFINE to be honored.
49748uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49749sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49750rm -f confdef2sed.sed
49751
49752# This sed command replaces #undef with comments. This is necessary, for
49753# example, in the case of _POSIX_SOURCE, which is predefined and required
49754# on some systems where configure will not decide to define it.
49755cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49756s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49757_ACEOF
49758
49759# Break up conftest.defines because some shells have a limit on the size
49760# of here documents, and old seds have small limits too (100 cmds).
49761echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49762echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49763echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49764echo ' :' >>$CONFIG_STATUS
49765rm -f conftest.tail
49766while grep . conftest.defines >/dev/null
49767do
49768 # Write a limited-size here document to $tmp/defines.sed.
49769 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49770 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49771 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49772 # Work around the forget-to-reset-the-flag bug.
49773 echo 't clr' >>$CONFIG_STATUS
49774 echo ': clr' >>$CONFIG_STATUS
49775 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49776 echo 'CEOF
49777 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49778 rm -f $tmp/in
49779 mv $tmp/out $tmp/in
49780' >>$CONFIG_STATUS
49781 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49782 rm -f conftest.defines
49783 mv conftest.tail conftest.defines
49784done
49785rm -f conftest.defines
49786echo ' fi # grep' >>$CONFIG_STATUS
49787echo >>$CONFIG_STATUS
49788
49789# Break up conftest.undefs because some shells have a limit on the size
49790# of here documents, and old seds have small limits too (100 cmds).
49791echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
49792rm -f conftest.tail
49793while grep . conftest.undefs >/dev/null
49794do
49795 # Write a limited-size here document to $tmp/undefs.sed.
49796 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
49797 # Speed up: don't consider the non `#undef'
ac1cb8d3 49798 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
49799 # Work around the forget-to-reset-the-flag bug.
49800 echo 't clr' >>$CONFIG_STATUS
49801 echo ': clr' >>$CONFIG_STATUS
49802 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
49803 echo 'CEOF
49804 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
49805 rm -f $tmp/in
49806 mv $tmp/out $tmp/in
49807' >>$CONFIG_STATUS
49808 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
49809 rm -f conftest.undefs
49810 mv conftest.tail conftest.undefs
49811done
49812rm -f conftest.undefs
49813
49814cat >>$CONFIG_STATUS <<\_ACEOF
49815 # Let's still pretend it is `configure' which instantiates (i.e., don't
49816 # use $as_me), people would be surprised to read:
49817 # /* config.h. Generated by config.status. */
49818 if test x"$ac_file" = x-; then
49819 echo "/* Generated by configure. */" >$tmp/config.h
49820 else
49821 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
49822 fi
49823 cat $tmp/in >>$tmp/config.h
49824 rm -f $tmp/in
49825 if test x"$ac_file" != x-; then
49826 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
49827 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49828echo "$as_me: $ac_file is unchanged" >&6;}
49829 else
49830 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49831$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49832 X"$ac_file" : 'X\(//\)[^/]' \| \
49833 X"$ac_file" : 'X\(//\)$' \| \
49834 X"$ac_file" : 'X\(/\)' \| \
49835 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49836echo X"$ac_file" |
49837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49838 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49839 /^X\(\/\/\)$/{ s//\1/; q; }
49840 /^X\(\/\).*/{ s//\1/; q; }
49841 s/.*/./; q'`
49842 { if $as_mkdir_p; then
49843 mkdir -p "$ac_dir"
49844 else
49845 as_dir="$ac_dir"
49846 as_dirs=
49847 while test ! -d "$as_dir"; do
49848 as_dirs="$as_dir $as_dirs"
49849 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49850$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49851 X"$as_dir" : 'X\(//\)[^/]' \| \
49852 X"$as_dir" : 'X\(//\)$' \| \
49853 X"$as_dir" : 'X\(/\)' \| \
49854 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49855echo X"$as_dir" |
49856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49858 /^X\(\/\/\)$/{ s//\1/; q; }
49859 /^X\(\/\).*/{ s//\1/; q; }
49860 s/.*/./; q'`
49861 done
49862 test ! -n "$as_dirs" || mkdir $as_dirs
49863 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49864echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49865 { (exit 1); exit 1; }; }; }
49866
49867 rm -f $ac_file
49868 mv $tmp/config.h $ac_file
49869 fi
49870 else
49871 cat $tmp/config.h
49872 rm -f $tmp/config.h
49873 fi
49874done
49875_ACEOF
49876cat >>$CONFIG_STATUS <<\_ACEOF
49877
49878#
49879# CONFIG_COMMANDS section.
49880#
49881for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
49882 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
49883 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
49884 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
49885$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49886 X"$ac_dest" : 'X\(//\)[^/]' \| \
49887 X"$ac_dest" : 'X\(//\)$' \| \
49888 X"$ac_dest" : 'X\(/\)' \| \
49889 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49890echo X"$ac_dest" |
49891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49893 /^X\(\/\/\)$/{ s//\1/; q; }
49894 /^X\(\/\).*/{ s//\1/; q; }
49895 s/.*/./; q'`
ac1cb8d3
VS
49896 { if $as_mkdir_p; then
49897 mkdir -p "$ac_dir"
49898 else
49899 as_dir="$ac_dir"
49900 as_dirs=
49901 while test ! -d "$as_dir"; do
49902 as_dirs="$as_dir $as_dirs"
49903 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49905 X"$as_dir" : 'X\(//\)[^/]' \| \
49906 X"$as_dir" : 'X\(//\)$' \| \
49907 X"$as_dir" : 'X\(/\)' \| \
49908 . : '\(.\)' 2>/dev/null ||
49909echo X"$as_dir" |
49910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49912 /^X\(\/\/\)$/{ s//\1/; q; }
49913 /^X\(\/\).*/{ s//\1/; q; }
49914 s/.*/./; q'`
49915 done
49916 test ! -n "$as_dirs" || mkdir $as_dirs
49917 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49918echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49919 { (exit 1); exit 1; }; }; }
49920
a848cd7e
SC
49921 ac_builddir=.
49922
49923if test "$ac_dir" != .; then
49924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49925 # A "../" for each directory in $ac_dir_suffix.
49926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49927else
49928 ac_dir_suffix= ac_top_builddir=
49929fi
49930
49931case $srcdir in
49932 .) # No --srcdir option. We are building in place.
49933 ac_srcdir=.
49934 if test -z "$ac_top_builddir"; then
49935 ac_top_srcdir=.
49936 else
49937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49938 fi ;;
49939 [\\/]* | ?:[\\/]* ) # Absolute path.
49940 ac_srcdir=$srcdir$ac_dir_suffix;
49941 ac_top_srcdir=$srcdir ;;
49942 *) # Relative path.
49943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49945esac
ac1cb8d3
VS
49946
49947# Do not use `cd foo && pwd` to compute absolute paths, because
49948# the directories may not exist.
49949case `pwd` in
49950.) ac_abs_builddir="$ac_dir";;
49951*)
49952 case "$ac_dir" in
49953 .) ac_abs_builddir=`pwd`;;
49954 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49955 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49956 esac;;
49957esac
49958case $ac_abs_builddir in
49959.) ac_abs_top_builddir=${ac_top_builddir}.;;
49960*)
49961 case ${ac_top_builddir}. in
49962 .) ac_abs_top_builddir=$ac_abs_builddir;;
49963 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49964 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49965 esac;;
49966esac
49967case $ac_abs_builddir in
49968.) ac_abs_srcdir=$ac_srcdir;;
49969*)
49970 case $ac_srcdir in
49971 .) ac_abs_srcdir=$ac_abs_builddir;;
49972 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49973 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49974 esac;;
49975esac
49976case $ac_abs_builddir in
49977.) ac_abs_top_srcdir=$ac_top_srcdir;;
49978*)
49979 case $ac_top_srcdir in
49980 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49981 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49982 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49983 esac;;
49984esac
a848cd7e
SC
49985
49986
49987 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
49988echo "$as_me: executing $ac_dest commands" >&6;}
49989 case $ac_dest in
5c60e845
MW
49990 rcdefs.h )
49991 mkdir -p $outdir &&
49992 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
49993 ;;
ceec2216
RL
49994 wx-config ) rm -f wx-config
49995 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
49996 ;;
a848cd7e
SC
49997 esac
49998done
49999_ACEOF
50000
50001cat >>$CONFIG_STATUS <<\_ACEOF
50002
50003{ (exit 0); exit 0; }
50004_ACEOF
50005chmod +x $CONFIG_STATUS
50006ac_clean_files=$ac_clean_files_save
50007
50008
50009# configure is writing to config.log, and then calls config.status.
50010# config.status does its own redirection, appending to config.log.
50011# Unfortunately, on DOS this fails, as config.log is still kept open
50012# by configure, so config.status won't be able to write to it; its
50013# output is simply discarded. So we exec the FD to /dev/null,
50014# effectively closing config.log, so it can be properly (re)opened and
50015# appended to by config.status. When coming back to configure, we
50016# need to make the FD available again.
50017if test "$no_create" != yes; then
50018 ac_cs_success=:
50019 ac_config_status_args=
50020 test "$silent" = yes &&
50021 ac_config_status_args="$ac_config_status_args --quiet"
50022 exec 5>/dev/null
50023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50024 exec 5>>config.log
50025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50026 # would make configure fail if this is the last instruction.
50027 $ac_cs_success || { (exit 1); exit 1; }
50028fi
50029
50030#
50031# CONFIG_SUBDIRS section.
50032#
50033if test "$no_recursion" != yes; then
50034
50035 # Remove --cache-file and --srcdir arguments so they do not pile up.
50036 ac_sub_configure_args=
50037 ac_prev=
50038 for ac_arg in $ac_configure_args; do
50039 if test -n "$ac_prev"; then
50040 ac_prev=
50041 continue
50042 fi
50043 case $ac_arg in
50044 -cache-file | --cache-file | --cache-fil | --cache-fi \
50045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50046 ac_prev=cache_file ;;
50047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50049 | --c=*)
50050 ;;
50051 --config-cache | -C)
50052 ;;
50053 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50054 ac_prev=srcdir ;;
50055 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50056 ;;
50057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50058 ac_prev=prefix ;;
50059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50060 ;;
50061 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50062 esac
50063 done
50064
50065 # Always prepend --prefix to ensure using the same prefix
50066 # in subdir configurations.
50067 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50068
50069 ac_popdir=`pwd`
50070 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50071
50072 # Do not complain, so a configure script can configure whichever
50073 # parts of a large source tree are present.
50074 test -d $srcdir/$ac_dir || continue
50075
50076 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50077echo "$as_me: configuring in $ac_dir" >&6;}
50078 { if $as_mkdir_p; then
50079 mkdir -p "$ac_dir"
50080 else
50081 as_dir="$ac_dir"
50082 as_dirs=
50083 while test ! -d "$as_dir"; do
50084 as_dirs="$as_dir $as_dirs"
50085 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50086$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50087 X"$as_dir" : 'X\(//\)[^/]' \| \
50088 X"$as_dir" : 'X\(//\)$' \| \
50089 X"$as_dir" : 'X\(/\)' \| \
50090 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50091echo X"$as_dir" |
50092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50094 /^X\(\/\/\)$/{ s//\1/; q; }
50095 /^X\(\/\).*/{ s//\1/; q; }
50096 s/.*/./; q'`
50097 done
50098 test ! -n "$as_dirs" || mkdir $as_dirs
50099 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50100echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50101 { (exit 1); exit 1; }; }; }
50102
50103 ac_builddir=.
50104
50105if test "$ac_dir" != .; then
50106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50107 # A "../" for each directory in $ac_dir_suffix.
50108 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50109else
50110 ac_dir_suffix= ac_top_builddir=
50111fi
50112
50113case $srcdir in
50114 .) # No --srcdir option. We are building in place.
50115 ac_srcdir=.
50116 if test -z "$ac_top_builddir"; then
50117 ac_top_srcdir=.
50118 else
50119 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50120 fi ;;
50121 [\\/]* | ?:[\\/]* ) # Absolute path.
50122 ac_srcdir=$srcdir$ac_dir_suffix;
50123 ac_top_srcdir=$srcdir ;;
50124 *) # Relative path.
50125 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50126 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50127esac
ac1cb8d3
VS
50128
50129# Do not use `cd foo && pwd` to compute absolute paths, because
50130# the directories may not exist.
50131case `pwd` in
50132.) ac_abs_builddir="$ac_dir";;
50133*)
50134 case "$ac_dir" in
50135 .) ac_abs_builddir=`pwd`;;
50136 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50137 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50138 esac;;
50139esac
50140case $ac_abs_builddir in
50141.) ac_abs_top_builddir=${ac_top_builddir}.;;
50142*)
50143 case ${ac_top_builddir}. in
50144 .) ac_abs_top_builddir=$ac_abs_builddir;;
50145 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50146 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50147 esac;;
50148esac
50149case $ac_abs_builddir in
50150.) ac_abs_srcdir=$ac_srcdir;;
50151*)
50152 case $ac_srcdir in
50153 .) ac_abs_srcdir=$ac_abs_builddir;;
50154 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50155 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50156 esac;;
50157esac
50158case $ac_abs_builddir in
50159.) ac_abs_top_srcdir=$ac_top_srcdir;;
50160*)
50161 case $ac_top_srcdir in
50162 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50163 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50164 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50165 esac;;
50166esac
a848cd7e
SC
50167
50168
50169 cd $ac_dir
50170
50171 # Check for guested configure; otherwise get Cygnus style configure.
50172 if test -f $ac_srcdir/configure.gnu; then
50173 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50174 elif test -f $ac_srcdir/configure; then
50175 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50176 elif test -f $ac_srcdir/configure.in; then
50177 ac_sub_configure=$ac_configure
50178 else
50179 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50180echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50181 ac_sub_configure=
50182 fi
50183
50184 # The recursion is here.
50185 if test -n "$ac_sub_configure"; then
50186 # Make the cache file name correct relative to the subdirectory.
50187 case $cache_file in
50188 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50189 *) # Relative path.
ac1cb8d3 50190 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50191 esac
50192
50193 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50194echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50195 # The eval makes quoting arguments work.
50196 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50197 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50198 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50199echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50200 { (exit 1); exit 1; }; }
50201 fi
50202
3565d135 50203 cd $ac_popdir
a848cd7e
SC
50204 done
50205fi
50206
50207
50208echo
77ffb593 50209echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50210echo ""
4d4ff94c 50211echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50212echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50213
77ffb593
JS
50214echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50215echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50216echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50217
77ffb593 50218echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50219echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50220echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50221
77ffb593 50222echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50223echo " jpeg ${wxUSE_LIBJPEG-none}"
50224echo " png ${wxUSE_LIBPNG-none}"
50225echo " regex ${wxUSE_REGEX}"
50226echo " tiff ${wxUSE_LIBTIFF-none}"
50227if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50228echo " xpm ${wxUSE_LIBXPM-none}"
50229fi
50230echo " zlib ${wxUSE_ZLIB}"
50231echo " odbc ${wxUSE_ODBC}"
50232echo " expat ${wxUSE_EXPAT}"
50233echo " libmspack ${wxUSE_LIBMSPACK}"
50234echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50235echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
3565d135 50236echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50237
50238echo ""
50239